Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
11e374fe
Commit
11e374fe
authored
May 10, 2003
by
Christoph Hellwig
Committed by
James Bottomley
May 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix the aacraid merge a bit more
parent
96df3490
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
127 deletions
+3
-127
drivers/scsi/aacraid/aachba.c
drivers/scsi/aacraid/aachba.c
+1
-4
drivers/scsi/aacraid/aacraid.h
drivers/scsi/aacraid/aacraid.h
+2
-7
drivers/scsi/aacraid/compat.h
drivers/scsi/aacraid/compat.h
+0
-114
drivers/scsi/aacraid/linit.c
drivers/scsi/aacraid/linit.c
+0
-2
No files found.
drivers/scsi/aacraid/aachba.c
View file @
11e374fe
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
#include <linux/completion.h>
#include <linux/completion.h>
#include <asm/semaphore.h>
#include <asm/semaphore.h>
#include <asm/uaccess.h>
#include <asm/uaccess.h>
#define MAJOR_NR SCSI_DISK0_MAJOR
/* For DEVICE_NR() */
#include <linux/blk.h>
#include <linux/blk.h>
#include "scsi.h"
#include "scsi.h"
#include "hosts.h"
#include "hosts.h"
...
@@ -967,9 +966,7 @@ int aac_scsi_cmd(Scsi_Cmnd * scsicmd)
...
@@ -967,9 +966,7 @@ int aac_scsi_cmd(Scsi_Cmnd * scsicmd)
memset
(
inq_data_ptr
,
0
,
sizeof
(
struct
inquiry_data
));
memset
(
inq_data_ptr
,
0
,
sizeof
(
struct
inquiry_data
));
inq_data_ptr
->
inqd_ver
=
2
;
/* claim compliance to SCSI-2 */
inq_data_ptr
->
inqd_ver
=
2
;
/* claim compliance to SCSI-2 */
if
(
!
strstr
(
UTS_RELEASE
,
"BOOT"
)){
// If this is not a RH driver disk kernel
inq_data_ptr
->
inqd_dtq
=
0x80
;
/* set RMB bit to one indicating that the medium is removable */
inq_data_ptr
->
inqd_dtq
=
0x80
;
/* set RMB bit to one indicating that the medium is removable */
}
inq_data_ptr
->
inqd_rdf
=
2
;
/* A response data format value of two indicates that the data shall be in the format specified in SCSI-2 */
inq_data_ptr
->
inqd_rdf
=
2
;
/* A response data format value of two indicates that the data shall be in the format specified in SCSI-2 */
inq_data_ptr
->
inqd_len
=
31
;
inq_data_ptr
->
inqd_len
=
31
;
/*Format for "pad2" is RelAdr | WBus32 | WBus16 | Sync | Linked |Reserved| CmdQue | SftRe */
/*Format for "pad2" is RelAdr | WBus32 | WBus16 | Sync | Linked |Reserved| CmdQue | SftRe */
...
...
drivers/scsi/aacraid/aacraid.h
View file @
11e374fe
//#define dprintk(x) printk x
//#define dprintk(x) printk x
#define dprintk(x)
#define dprintk(x)
#include "compat.h"
/*------------------------------------------------------------------------------
/*------------------------------------------------------------------------------
* D E F I N E S
* D E F I N E S
*----------------------------------------------------------------------------*/
*----------------------------------------------------------------------------*/
...
@@ -1461,12 +1460,8 @@ struct aac_aifcmd {
...
@@ -1461,12 +1460,8 @@ struct aac_aifcmd {
*/
*/
static
inline
u32
cap_to_cyls
(
sector_t
capacity
,
u32
divisor
)
static
inline
u32
cap_to_cyls
(
sector_t
capacity
,
u32
divisor
)
{
{
#ifdef CONFIG_LBD
sector_div
(
capacity
,
divisor
);
do_div
(
capacity
,
divisor
);
return
(
u32
)
capacity
;
#else
capacity
/=
divisor
;
#endif
return
(
u32
)
capacity
;
}
}
const
char
*
aac_driverinfo
(
struct
Scsi_Host
*
);
const
char
*
aac_driverinfo
(
struct
Scsi_Host
*
);
...
...
drivers/scsi/aacraid/compat.h
deleted
100644 → 0
View file @
96df3490
/*
* Adaptec AAC series RAID controller driver
* (c) Copyright 2001 Red Hat Inc. <alan@redhat.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file COPYING. If not, write to
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
/*
* This file is for backwards compatibility with older kernel versions
*/
#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,11)
#include <linux/blk.h>
static
inline
unsigned
int
block_size
(
kdev_t
dev
)
{
int
retval
=
BLOCK_SIZE
;
int
major
=
MAJOR
(
dev
);
if
(
blksize_size
[
major
])
{
int
minor
=
MINOR
(
dev
);
if
(
blksize_size
[
major
][
minor
])
retval
=
blksize_size
[
major
][
minor
];
}
return
retval
;
}
#endif
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,4,7)
#ifndef COMPLETION_INITIALIZER
#include <linux/wait.h>
struct
completion
{
unsigned
int
done
;
wait_queue_head_t
wait
;
};
#define COMPLETION_INITIALIZER(work) \
{ 0, __WAIT_QUEUE_HEAD_INITIALIZER((work).wait) }
#define DECLARE_COMPLETION(work) \
struct completion work = COMPLETION_INITIALIZER(work)
#define INIT_COMPLETION(x) ((x).done = 0)
static
inline
void
init_completion
(
struct
completion
*
x
)
{
x
->
done
=
0
;
init_waitqueue_head
(
&
x
->
wait
);
}
#endif
#ifndef complete_and_exit
static
inline
void
complete_and_exit
(
struct
completion
*
comp
,
long
code
)
{
/*
if (comp)
complete(comp);
do_exit(code);
*/
}
#endif
#endif
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,4,2)
static
inline
void
scsi_set_pci_device
(
struct
Scsi_Host
*
SHpnt
,
struct
pci_dev
*
pdev
)
{
// SHpnt->pci_dev = pdev;
}
static
inline
void
wait_for_completion
(
struct
completion
*
x
)
{
spin_lock_irq
(
&
x
->
wait
.
lock
);
if
(
!
x
->
done
)
{
DECLARE_WAITQUEUE
(
wait
,
current
);
wait
.
flags
|=
WQ_FLAG_EXCLUSIVE
;
__add_wait_queue_tail
(
&
x
->
wait
,
&
wait
);
do
{
__set_current_state
(
TASK_UNINTERRUPTIBLE
);
spin_unlock_irq
(
&
x
->
wait
.
lock
);
schedule
();
spin_lock_irq
(
&
x
->
wait
.
lock
);
}
while
(
!
x
->
done
);
__remove_wait_queue
(
&
x
->
wait
,
&
wait
);
}
x
->
done
--
;
spin_unlock_irq
(
&
x
->
wait
.
lock
);
}
static
inline
int
pci_set_dma_mask
(
struct
pci_dev
*
dev
,
dma_addr_t
mask
)
{
dev
->
dma_mask
=
mask
;
return
0
;
}
#endif
drivers/scsi/aacraid/linit.c
View file @
11e374fe
...
@@ -62,9 +62,7 @@
...
@@ -62,9 +62,7 @@
MODULE_AUTHOR
(
"Red Hat Inc and Adaptec"
);
MODULE_AUTHOR
(
"Red Hat Inc and Adaptec"
);
MODULE_DESCRIPTION
(
"Supports Dell PERC2, 2/Si, 3/Si, 3/Di, Adaptec Advanced Raid Products, and HP NetRAID-4M devices. http://domsch.com/linux/ or http://linux.adaptec.com"
);
MODULE_DESCRIPTION
(
"Supports Dell PERC2, 2/Si, 3/Si, 3/Di, Adaptec Advanced Raid Products, and HP NetRAID-4M devices. http://domsch.com/linux/ or http://linux.adaptec.com"
);
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,4,7)
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
#endif
MODULE_PARM
(
nondasd
,
"i"
);
MODULE_PARM
(
nondasd
,
"i"
);
MODULE_PARM_DESC
(
nondasd
,
"Control scanning of hba for nondasd devices. 0=off, 1=on"
);
MODULE_PARM_DESC
(
nondasd
,
"Control scanning of hba for nondasd devices. 0=off, 1=on"
);
MODULE_PARM
(
paemode
,
"i"
);
MODULE_PARM
(
paemode
,
"i"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment