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
596a338d
Commit
596a338d
authored
Sep 01, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/davem/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux
parents
4010133e
d964d911
Changes
32
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
674 additions
and
378 deletions
+674
-378
drivers/ide/ide-probe.c
drivers/ide/ide-probe.c
+16
-0
drivers/ide/ide.c
drivers/ide/ide.c
+5
-0
drivers/ide/pci/siimage.c
drivers/ide/pci/siimage.c
+595
-233
drivers/ide/pci/siimage.h
drivers/ide/pci/siimage.h
+13
-12
drivers/ieee1394/raw1394.c
drivers/ieee1394/raw1394.c
+1
-0
drivers/scsi/3w-xxxx.h
drivers/scsi/3w-xxxx.h
+31
-36
drivers/scsi/a2091.h
drivers/scsi/a2091.h
+0
-4
drivers/scsi/a3000.h
drivers/scsi/a3000.h
+0
-4
drivers/scsi/aha1542.h
drivers/scsi/aha1542.h
+0
-4
drivers/scsi/amiga7xx.h
drivers/scsi/amiga7xx.h
+0
-4
drivers/scsi/atp870u.h
drivers/scsi/atp870u.h
+0
-4
drivers/scsi/bvme6000.h
drivers/scsi/bvme6000.h
+0
-4
drivers/scsi/gdth.h
drivers/scsi/gdth.h
+0
-3
drivers/scsi/gvp11.h
drivers/scsi/gvp11.h
+0
-4
drivers/scsi/i91uscsi.h
drivers/scsi/i91uscsi.h
+0
-3
drivers/scsi/imm.h
drivers/scsi/imm.h
+9
-8
drivers/scsi/ini9100u.h
drivers/scsi/ini9100u.h
+0
-3
drivers/scsi/inia100.h
drivers/scsi/inia100.h
+0
-3
drivers/scsi/mac_scsi.h
drivers/scsi/mac_scsi.h
+0
-3
drivers/scsi/mvme147.h
drivers/scsi/mvme147.h
+0
-4
drivers/scsi/mvme16x.h
drivers/scsi/mvme16x.h
+0
-4
drivers/scsi/pas16.h
drivers/scsi/pas16.h
+0
-4
drivers/scsi/pci2000.h
drivers/scsi/pci2000.h
+0
-4
drivers/scsi/pci2220i.h
drivers/scsi/pci2220i.h
+0
-4
drivers/scsi/psi240i.h
drivers/scsi/psi240i.h
+0
-4
drivers/scsi/qlogicfc.h
drivers/scsi/qlogicfc.h
+0
-5
drivers/scsi/qlogicisp.h
drivers/scsi/qlogicisp.h
+0
-4
drivers/scsi/sgiwd93.h
drivers/scsi/sgiwd93.h
+0
-4
drivers/scsi/sun3_scsi.h
drivers/scsi/sun3_scsi.h
+0
-5
drivers/scsi/t128.h
drivers/scsi/t128.h
+0
-4
include/linux/ide.h
include/linux/ide.h
+3
-0
include/linux/pci_ids.h
include/linux/pci_ids.h
+1
-0
No files found.
drivers/ide/ide-probe.c
View file @
596a338d
...
@@ -644,6 +644,13 @@ static inline u8 probe_for_drive (ide_drive_t *drive)
...
@@ -644,6 +644,13 @@ static inline u8 probe_for_drive (ide_drive_t *drive)
return
drive
->
present
;
return
drive
->
present
;
}
}
static
void
hwif_release_dev
(
struct
device
*
dev
)
{
ide_hwif_t
*
hwif
=
container_of
(
dev
,
ide_hwif_t
,
gendev
);
up
(
&
hwif
->
gendev_rel_sem
);
}
static
void
hwif_register
(
ide_hwif_t
*
hwif
)
static
void
hwif_register
(
ide_hwif_t
*
hwif
)
{
{
/* register with global device tree */
/* register with global device tree */
...
@@ -656,6 +663,7 @@ static void hwif_register (ide_hwif_t *hwif)
...
@@ -656,6 +663,7 @@ static void hwif_register (ide_hwif_t *hwif)
/* Would like to do = &device_legacy */
/* Would like to do = &device_legacy */
hwif
->
gendev
.
parent
=
NULL
;
hwif
->
gendev
.
parent
=
NULL
;
}
}
hwif
->
gendev
.
release
=
hwif_release_dev
;
device_register
(
&
hwif
->
gendev
);
device_register
(
&
hwif
->
gendev
);
}
}
...
@@ -1196,6 +1204,13 @@ static int alloc_disks(ide_hwif_t *hwif)
...
@@ -1196,6 +1204,13 @@ static int alloc_disks(ide_hwif_t *hwif)
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
static
void
drive_release_dev
(
struct
device
*
dev
)
{
ide_drive_t
*
drive
=
container_of
(
dev
,
ide_drive_t
,
gendev
);
up
(
&
drive
->
gendev_rel_sem
);
}
/*
/*
* init_gendisk() (as opposed to ide_geninit) is called for each major device,
* init_gendisk() (as opposed to ide_geninit) is called for each major device,
* after probing for drives, to allocate partition tables and other data
* after probing for drives, to allocate partition tables and other data
...
@@ -1214,6 +1229,7 @@ static void init_gendisk (ide_hwif_t *hwif)
...
@@ -1214,6 +1229,7 @@ static void init_gendisk (ide_hwif_t *hwif)
drive
->
gendev
.
parent
=
&
hwif
->
gendev
;
drive
->
gendev
.
parent
=
&
hwif
->
gendev
;
drive
->
gendev
.
bus
=
&
ide_bus_type
;
drive
->
gendev
.
bus
=
&
ide_bus_type
;
drive
->
gendev
.
driver_data
=
drive
;
drive
->
gendev
.
driver_data
=
drive
;
drive
->
gendev
.
release
=
drive_release_dev
;
if
(
drive
->
present
)
{
if
(
drive
->
present
)
{
device_register
(
&
drive
->
gendev
);
device_register
(
&
drive
->
gendev
);
sprintf
(
drive
->
devfs_name
,
"ide/host%d/bus%d/target%d/lun%d"
,
sprintf
(
drive
->
devfs_name
,
"ide/host%d/bus%d/target%d/lun%d"
,
...
...
drivers/ide/ide.c
View file @
596a338d
...
@@ -251,6 +251,8 @@ static void init_hwif_data (unsigned int index)
...
@@ -251,6 +251,8 @@ static void init_hwif_data (unsigned int index)
hwif
->
mwdma_mask
=
0x80
;
/* disable all mwdma */
hwif
->
mwdma_mask
=
0x80
;
/* disable all mwdma */
hwif
->
swdma_mask
=
0x80
;
/* disable all swdma */
hwif
->
swdma_mask
=
0x80
;
/* disable all swdma */
sema_init
(
&
hwif
->
gendev_rel_sem
,
0
);
default_hwif_iops
(
hwif
);
default_hwif_iops
(
hwif
);
default_hwif_transport
(
hwif
);
default_hwif_transport
(
hwif
);
for
(
unit
=
0
;
unit
<
MAX_DRIVES
;
++
unit
)
{
for
(
unit
=
0
;
unit
<
MAX_DRIVES
;
++
unit
)
{
...
@@ -273,6 +275,7 @@ static void init_hwif_data (unsigned int index)
...
@@ -273,6 +275,7 @@ static void init_hwif_data (unsigned int index)
drive
->
driver
=
&
idedefault_driver
;
drive
->
driver
=
&
idedefault_driver
;
drive
->
vdma
=
0
;
drive
->
vdma
=
0
;
INIT_LIST_HEAD
(
&
drive
->
list
);
INIT_LIST_HEAD
(
&
drive
->
list
);
sema_init
(
&
drive
->
gendev_rel_sem
,
0
);
}
}
}
}
...
@@ -745,6 +748,7 @@ void ide_unregister (unsigned int index)
...
@@ -745,6 +748,7 @@ void ide_unregister (unsigned int index)
spin_unlock_irq
(
&
ide_lock
);
spin_unlock_irq
(
&
ide_lock
);
blk_cleanup_queue
(
drive
->
queue
);
blk_cleanup_queue
(
drive
->
queue
);
device_unregister
(
&
drive
->
gendev
);
device_unregister
(
&
drive
->
gendev
);
down
(
&
drive
->
gendev_rel_sem
);
spin_lock_irq
(
&
ide_lock
);
spin_lock_irq
(
&
ide_lock
);
drive
->
queue
=
NULL
;
drive
->
queue
=
NULL
;
}
}
...
@@ -774,6 +778,7 @@ void ide_unregister (unsigned int index)
...
@@ -774,6 +778,7 @@ void ide_unregister (unsigned int index)
/* More messed up locking ... */
/* More messed up locking ... */
spin_unlock_irq
(
&
ide_lock
);
spin_unlock_irq
(
&
ide_lock
);
device_unregister
(
&
hwif
->
gendev
);
device_unregister
(
&
hwif
->
gendev
);
down
(
&
hwif
->
gendev_rel_sem
);
/*
/*
* Remove us from the kernel's knowledge
* Remove us from the kernel's knowledge
...
...
drivers/ide/pci/siimage.c
View file @
596a338d
This diff is collapsed.
Click to expand it.
drivers/ide/pci/siimage.h
View file @
596a338d
...
@@ -13,12 +13,6 @@
...
@@ -13,12 +13,6 @@
#undef SIIMAGE_BUFFERED_TASKFILE
#undef SIIMAGE_BUFFERED_TASKFILE
#undef SIIMAGE_LARGE_DMA
#undef SIIMAGE_LARGE_DMA
#if 0
typedef struct ide_io_ops_s siimage_iops {
}
#endif
#define SII_DEBUG 0
#define SII_DEBUG 0
#if SII_DEBUG
#if SII_DEBUG
...
@@ -27,12 +21,6 @@ typedef struct ide_io_ops_s siimage_iops {
...
@@ -27,12 +21,6 @@ typedef struct ide_io_ops_s siimage_iops {
#define siiprintk(x...)
#define siiprintk(x...)
#endif
#endif
#define ADJREG(B,R) ((B)|(R)|((hwif->channel)<<(4+(2*(hwif->mmio)))))
#define SELREG(R) ADJREG((0xA0),(R))
#define SELADDR(R) ((((unsigned long)hwif->hwif_data)*(hwif->mmio))|SELREG((R)))
#define HWIFADDR(R) ((((unsigned long)hwif->hwif_data)*(hwif->mmio))|(R))
#define DEVADDR(R) (((unsigned long) pci_get_drvdata(dev))|(R))
#if defined(DISPLAY_SIIMAGE_TIMINGS) && defined(CONFIG_PROC_FS)
#if defined(DISPLAY_SIIMAGE_TIMINGS) && defined(CONFIG_PROC_FS)
#include <linux/stat.h>
#include <linux/stat.h>
...
@@ -85,6 +73,19 @@ static ide_pci_device_t siimage_chipsets[] __devinitdata = {
...
@@ -85,6 +73,19 @@ static ide_pci_device_t siimage_chipsets[] __devinitdata = {
.
enablebits
=
{{
0x00
,
0x00
,
0x00
},
{
0x00
,
0x00
,
0x00
}},
.
enablebits
=
{{
0x00
,
0x00
,
0x00
},
{
0x00
,
0x00
,
0x00
}},
.
bootable
=
ON_BOARD
,
.
bootable
=
ON_BOARD
,
.
extra
=
0
,
.
extra
=
0
,
},{
/* 2 */
.
vendor
=
PCI_VENDOR_ID_CMD
,
.
device
=
PCI_DEVICE_ID_SII_1210SA
,
.
name
=
"Adaptec AAR-1210SA"
,
.
init_chipset
=
init_chipset_siimage
,
.
init_iops
=
init_iops_siimage
,
.
init_hwif
=
init_hwif_siimage
,
.
init_dma
=
init_dma_siimage
,
.
channels
=
2
,
.
autodma
=
AUTODMA
,
.
enablebits
=
{{
0x00
,
0x00
,
0x00
},
{
0x00
,
0x00
,
0x00
}},
.
bootable
=
ON_BOARD
,
.
extra
=
0
,
},{
},{
.
vendor
=
0
,
.
vendor
=
0
,
.
device
=
0
,
.
device
=
0
,
...
...
drivers/ieee1394/raw1394.c
View file @
596a338d
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
#include <linux/version.h>
#include <linux/version.h>
#include <linux/smp_lock.h>
#include <linux/smp_lock.h>
#include <linux/interrupt.h>
#include <linux/interrupt.h>
#include <linux/vmalloc.h>
#include <asm/uaccess.h>
#include <asm/uaccess.h>
#include <asm/atomic.h>
#include <asm/atomic.h>
#include <linux/devfs_fs_kernel.h>
#include <linux/devfs_fs_kernel.h>
...
...
drivers/scsi/3w-xxxx.h
View file @
596a338d
...
@@ -59,42 +59,37 @@
...
@@ -59,42 +59,37 @@
/* AEN strings */
/* AEN strings */
static
char
*
tw_aen_string
[]
=
{
static
char
*
tw_aen_string
[]
=
{
"INFO: AEN queue empty"
,
// 0x000
[
0x000
]
=
"INFO: AEN queue empty"
,
"INFO: Soft reset occurred"
,
// 0x001
[
0x001
]
=
"INFO: Soft reset occurred"
,
"ERROR: Unit degraded: Unit #"
,
// 0x002
[
0x002
]
=
"ERROR: Unit degraded: Unit #"
,
"ERROR: Controller error"
,
// 0x003
[
0x003
]
=
"ERROR: Controller error"
,
"ERROR: Rebuild failed: Unit #"
,
// 0x004
[
0x004
]
=
"ERROR: Rebuild failed: Unit #"
,
"INFO: Rebuild complete: Unit #"
,
// 0x005
[
0x005
]
=
"INFO: Rebuild complete: Unit #"
,
"ERROR: Incomplete unit detected: Unit #"
,
// 0x006
[
0x006
]
=
"ERROR: Incomplete unit detected: Unit #"
,
"INFO: Initialization complete: Unit #"
,
// 0x007
[
0x007
]
=
"INFO: Initialization complete: Unit #"
,
"WARNING: Unclean shutdown detected: Unit #"
,
// 0x008
[
0x008
]
=
"WARNING: Unclean shutdown detected: Unit #"
,
"WARNING: ATA port timeout: Port #"
,
// 0x009
[
0x009
]
=
"WARNING: ATA port timeout: Port #"
,
"ERROR: Drive error: Port #"
,
// 0x00A
[
0x00A
]
=
"ERROR: Drive error: Port #"
,
"INFO: Rebuild started: Unit #"
,
// 0x00B
[
0x00B
]
=
"INFO: Rebuild started: Unit #"
,
"INFO: Initialization started: Unit #"
,
// 0x00C
[
0x00C
]
=
"INFO: Initialization started: Unit #"
,
"ERROR: Logical unit deleted: Unit #"
,
// 0x00D
[
0x00D
]
=
"ERROR: Logical unit deleted: Unit #"
,
NULL
,
// 0x00E unused
[
0x00F
]
=
"WARNING: SMART threshold exceeded: Port #"
,
"WARNING: SMART threshold exceeded: Port #"
,
// 0x00F
[
0x021
]
=
"WARNING: ATA UDMA downgrade: Port #"
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
[
0x021
]
=
"WARNING: ATA UDMA upgrade: Port #"
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
[
0x023
]
=
"WARNING: Sector repair occurred: Port #"
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
[
0x024
]
=
"ERROR: SBUF integrity check failure"
,
NULL
,
NULL
,
// 0x010-0x020 unused
[
0x025
]
=
"ERROR: Lost cached write: Port #"
,
"WARNING: ATA UDMA downgrade: Port #"
,
// 0x021
[
0x026
]
=
"ERROR: Drive ECC error detected: Port #"
,
"WARNING: ATA UDMA upgrade: Port #"
,
// 0x022
[
0x027
]
=
"ERROR: DCB checksum error: Port #"
,
"WARNING: Sector repair occurred: Port #"
,
// 0x023
[
0x028
]
=
"ERROR: DCB unsupported version: Port #"
,
"ERROR: SBUF integrity check failure"
,
// 0x024
[
0x029
]
=
"INFO: Verify started: Unit #"
,
"ERROR: Lost cached write: Port #"
,
// 0x025
[
0x02A
]
=
"ERROR: Verify failed: Port #"
,
"ERROR: Drive ECC error detected: Port #"
,
// 0x026
[
0x02B
]
=
"INFO: Verify complete: Unit #"
,
"ERROR: DCB checksum error: Port #"
,
// 0x027
[
0x02C
]
=
"WARNING: Overwrote bad sector during rebuild: Port #"
,
"ERROR: DCB unsupported version: Port #"
,
// 0x028
[
0x02D
]
=
"ERROR: Encountered bad sector during rebuild: Port #"
,
"INFO: Verify started: Unit #"
,
// 0x029
[
0x02E
]
=
"ERROR: Replacement drive is too small: Port #"
,
"ERROR: Verify failed: Port #"
,
// 0x02A
[
0x02F
]
=
"WARNING: Verify error: Unit not previously initialized: Unit #"
,
"INFO: Verify complete: Unit #"
,
// 0x02B
[
0x030
]
=
"ERROR: Drive not supported: Port #"
,
"WARNING: Overwrote bad sector during rebuild: Port #"
,
//0x02C
"ERROR: Encountered bad sector during rebuild: Port #"
,
//0x02D
"ERROR: Replacement drive is too small: Port #"
,
//0x02E
"WARNING: Verify error: Unit not previously initialized: Unit #"
,
//0x02F
"ERROR: Drive not supported: Port #"
// 0x030
};
};
/*
/*
...
...
drivers/scsi/a2091.h
View file @
596a338d
...
@@ -18,10 +18,6 @@ int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
...
@@ -18,10 +18,6 @@ int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
int
wd33c93_abort
(
Scsi_Cmnd
*
);
int
wd33c93_abort
(
Scsi_Cmnd
*
);
int
wd33c93_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
int
wd33c93_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
#ifndef NULL
#define NULL 0
#endif
#ifndef CMD_PER_LUN
#ifndef CMD_PER_LUN
#define CMD_PER_LUN 2
#define CMD_PER_LUN 2
#endif
#endif
...
...
drivers/scsi/a3000.h
View file @
596a338d
...
@@ -18,10 +18,6 @@ int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
...
@@ -18,10 +18,6 @@ int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
int
wd33c93_abort
(
Scsi_Cmnd
*
);
int
wd33c93_abort
(
Scsi_Cmnd
*
);
int
wd33c93_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
int
wd33c93_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
#ifndef NULL
#define NULL 0
#endif
#ifndef CMD_PER_LUN
#ifndef CMD_PER_LUN
#define CMD_PER_LUN 2
#define CMD_PER_LUN 2
#endif
#endif
...
...
drivers/scsi/aha1542.h
View file @
596a338d
...
@@ -146,8 +146,4 @@ static int aha1542_biosparam(struct scsi_device *, struct block_device *,
...
@@ -146,8 +146,4 @@ static int aha1542_biosparam(struct scsi_device *, struct block_device *,
#define AHA1542_SCATTER 16
#define AHA1542_SCATTER 16
#define AHA1542_CMDLUN 1
#define AHA1542_CMDLUN 1
#ifndef NULL
#define NULL 0
#endif
#endif
#endif
drivers/scsi/amiga7xx.h
View file @
596a338d
...
@@ -10,10 +10,6 @@ int NCR53c7x0_release (struct Scsi_Host *);
...
@@ -10,10 +10,6 @@ int NCR53c7x0_release (struct Scsi_Host *);
int
NCR53c7xx_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
int
NCR53c7xx_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
void
NCR53c7x0_intr
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
void
NCR53c7x0_intr
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
#ifndef NULL
#define NULL 0
#endif
#ifndef CMD_PER_LUN
#ifndef CMD_PER_LUN
#define CMD_PER_LUN 3
#define CMD_PER_LUN 3
#endif
#endif
...
...
drivers/scsi/atp870u.h
View file @
596a338d
...
@@ -28,10 +28,6 @@ static int atp870u_release(struct Scsi_Host *);
...
@@ -28,10 +28,6 @@ static int atp870u_release(struct Scsi_Host *);
#define ATP870U_SCATTER 128
#define ATP870U_SCATTER 128
#define ATP870U_CMDLUN 1
#define ATP870U_CMDLUN 1
#ifndef NULL
#define NULL 0
#endif
extern
const
char
*
atp870u_info
(
struct
Scsi_Host
*
);
extern
const
char
*
atp870u_info
(
struct
Scsi_Host
*
);
#endif
#endif
drivers/scsi/bvme6000.h
View file @
596a338d
...
@@ -11,10 +11,6 @@ int NCR53c7x0_release (struct Scsi_Host *);
...
@@ -11,10 +11,6 @@ int NCR53c7x0_release (struct Scsi_Host *);
int
NCR53c7xx_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
int
NCR53c7xx_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
void
NCR53c7x0_intr
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
void
NCR53c7x0_intr
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
#ifndef NULL
#define NULL 0
#endif
#ifndef CMD_PER_LUN
#ifndef CMD_PER_LUN
#define CMD_PER_LUN 3
#define CMD_PER_LUN 3
#endif
#endif
...
...
drivers/scsi/gdth.h
View file @
596a338d
...
@@ -16,9 +16,6 @@
...
@@ -16,9 +16,6 @@
#include <linux/version.h>
#include <linux/version.h>
#include <linux/types.h>
#include <linux/types.h>
#ifndef NULL
#define NULL 0
#endif
#ifndef TRUE
#ifndef TRUE
#define TRUE 1
#define TRUE 1
#endif
#endif
...
...
drivers/scsi/gvp11.h
View file @
596a338d
...
@@ -18,10 +18,6 @@ int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
...
@@ -18,10 +18,6 @@ int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
int
wd33c93_abort
(
Scsi_Cmnd
*
);
int
wd33c93_abort
(
Scsi_Cmnd
*
);
int
wd33c93_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
int
wd33c93_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
#ifndef NULL
#define NULL 0
#endif
#ifndef CMD_PER_LUN
#ifndef CMD_PER_LUN
#define CMD_PER_LUN 2
#define CMD_PER_LUN 2
#endif
#endif
...
...
drivers/scsi/i91uscsi.h
View file @
596a338d
...
@@ -67,9 +67,6 @@
...
@@ -67,9 +67,6 @@
#define UDWORD unsigned long
#define UDWORD unsigned long
#define U32 u32
#define U32 u32
#ifndef NULL
#define NULL 0
/* zero */
#endif
#ifndef FAILURE
#ifndef FAILURE
#define FAILURE (-1)
#define FAILURE (-1)
#endif
#endif
...
...
drivers/scsi/imm.h
View file @
596a338d
...
@@ -96,17 +96,18 @@
...
@@ -96,17 +96,18 @@
static
char
*
IMM_MODE_STRING
[]
=
static
char
*
IMM_MODE_STRING
[]
=
{
{
"Autodetect"
,
[
IMM_AUTODETECT
]
=
"Autodetect"
,
"SPP"
,
[
IMM_NIBBLE
]
=
"SPP"
,
"PS/2"
,
[
IMM_PS2
]
=
"PS/2"
,
"EPP 8 bit"
,
[
IMM_EPP_8
]
=
"EPP 8 bit"
,
"EPP 16 bit"
,
[
IMM_EPP_16
]
=
"EPP 16 bit"
,
#ifdef CONFIG_SCSI_IZIP_EPP16
#ifdef CONFIG_SCSI_IZIP_EPP16
"EPP 16 bit"
,
[
IMM_EPP_16
]
=
"EPP 16 bit"
,
#else
#else
"EPP 32 bit"
,
[
IMM_EPP_32
]
=
"EPP 32 bit"
,
#endif
#endif
"Unknown"
};
[
IMM_UNKNOWN
]
=
"Unknown"
,
};
/* This is a global option */
/* This is a global option */
int
imm_sg
=
SG_ALL
;
/* enable/disable scatter-gather. */
int
imm_sg
=
SG_ALL
;
/* enable/disable scatter-gather. */
...
...
drivers/scsi/ini9100u.h
View file @
596a338d
...
@@ -99,9 +99,6 @@ extern int i91u_biosparam(struct scsi_device *, struct block_device *,
...
@@ -99,9 +99,6 @@ extern int i91u_biosparam(struct scsi_device *, struct block_device *,
#define UDWORD unsigned long
#define UDWORD unsigned long
#define U32 u32
#define U32 u32
#ifndef NULL
#define NULL 0
/* zero */
#endif
#ifndef TRUE
#ifndef TRUE
#define TRUE (1)
/* boolean true */
#define TRUE (1)
/* boolean true */
#endif
#endif
...
...
drivers/scsi/inia100.h
View file @
596a338d
...
@@ -88,9 +88,6 @@ static int inia100_bus_reset(Scsi_Cmnd *);
...
@@ -88,9 +88,6 @@ static int inia100_bus_reset(Scsi_Cmnd *);
#define UDWORD unsigned long
#define UDWORD unsigned long
#define U32 u32
#define U32 u32
#ifndef NULL
#define NULL 0
/* zero */
#endif
#ifndef FAILURE
#ifndef FAILURE
#define FAILURE (-1)
#define FAILURE (-1)
#endif
#endif
...
...
drivers/scsi/mac_scsi.h
View file @
596a338d
...
@@ -32,9 +32,6 @@
...
@@ -32,9 +32,6 @@
#define MACSCSI_PUBLIC_RELEASE 2
#define MACSCSI_PUBLIC_RELEASE 2
#ifndef ASM
#ifndef ASM
#ifndef NULL
#define NULL 0
#endif
#ifndef CMD_PER_LUN
#ifndef CMD_PER_LUN
#define CMD_PER_LUN 2
#define CMD_PER_LUN 2
...
...
drivers/scsi/mvme147.h
View file @
596a338d
...
@@ -17,10 +17,6 @@ int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
...
@@ -17,10 +17,6 @@ int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
int
wd33c93_abort
(
Scsi_Cmnd
*
);
int
wd33c93_abort
(
Scsi_Cmnd
*
);
int
wd33c93_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
int
wd33c93_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
#ifndef NULL
#define NULL 0
#endif
#ifndef CMD_PER_LUN
#ifndef CMD_PER_LUN
#define CMD_PER_LUN 2
#define CMD_PER_LUN 2
#endif
#endif
...
...
drivers/scsi/mvme16x.h
View file @
596a338d
...
@@ -11,10 +11,6 @@ int NCR53c7x0_release (struct Scsi_Host *);
...
@@ -11,10 +11,6 @@ int NCR53c7x0_release (struct Scsi_Host *);
int
NCR53c7xx_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
int
NCR53c7xx_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
void
NCR53c7x0_intr
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
void
NCR53c7x0_intr
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
#ifndef NULL
#define NULL 0
#endif
#ifndef CMD_PER_LUN
#ifndef CMD_PER_LUN
#define CMD_PER_LUN 3
#define CMD_PER_LUN 3
#endif
#endif
...
...
drivers/scsi/pas16.h
View file @
596a338d
...
@@ -123,10 +123,6 @@ static int pas16_bus_reset(Scsi_Cmnd *);
...
@@ -123,10 +123,6 @@ static int pas16_bus_reset(Scsi_Cmnd *);
static
int
pas16_host_reset
(
Scsi_Cmnd
*
);
static
int
pas16_host_reset
(
Scsi_Cmnd
*
);
static
int
pas16_device_reset
(
Scsi_Cmnd
*
);
static
int
pas16_device_reset
(
Scsi_Cmnd
*
);
#ifndef NULL
#define NULL 0
#endif
#ifndef CMD_PER_LUN
#ifndef CMD_PER_LUN
#define CMD_PER_LUN 2
#define CMD_PER_LUN 2
#endif
#endif
...
...
drivers/scsi/pci2000.h
View file @
596a338d
...
@@ -197,8 +197,4 @@ int Pci2000_BiosParam (struct scsi_device *sdev,
...
@@ -197,8 +197,4 @@ int Pci2000_BiosParam (struct scsi_device *sdev,
struct
block_device
*
bdev
,
struct
block_device
*
bdev
,
sector_t
capacity
,
int
geom
[]);
sector_t
capacity
,
int
geom
[]);
#ifndef NULL
#define NULL 0
#endif
#endif
#endif
drivers/scsi/pci2220i.h
View file @
596a338d
...
@@ -36,8 +36,4 @@ int Pci2220i_Release (struct Scsi_Host *pshost);
...
@@ -36,8 +36,4 @@ int Pci2220i_Release (struct Scsi_Host *pshost);
int
Pci2220i_BiosParam
(
struct
scsi_device
*
sdev
,
int
Pci2220i_BiosParam
(
struct
scsi_device
*
sdev
,
struct
block_device
*
dev
,
struct
block_device
*
dev
,
sector_t
capacity
,
int
geom
[]);
sector_t
capacity
,
int
geom
[]);
#ifndef NULL
#define NULL 0
#endif
#endif
#endif
drivers/scsi/psi240i.h
View file @
596a338d
...
@@ -316,8 +316,4 @@ int Psi240i_Abort (Scsi_Cmnd *SCpnt);
...
@@ -316,8 +316,4 @@ int Psi240i_Abort (Scsi_Cmnd *SCpnt);
int
Psi240i_Reset
(
Scsi_Cmnd
*
SCpnt
,
unsigned
int
flags
);
int
Psi240i_Reset
(
Scsi_Cmnd
*
SCpnt
,
unsigned
int
flags
);
int
Psi240i_BiosParam
(
struct
scsi_device
*
sdev
,
struct
block_device
*
bdev
,
int
Psi240i_BiosParam
(
struct
scsi_device
*
sdev
,
struct
block_device
*
bdev
,
sector_t
capacity
,
int
geom
[]);
sector_t
capacity
,
int
geom
[]);
#ifndef NULL
#define NULL 0
#endif
#endif
#endif
drivers/scsi/qlogicfc.h
View file @
596a338d
...
@@ -77,9 +77,4 @@ int isp2x00_abort(Scsi_Cmnd *);
...
@@ -77,9 +77,4 @@ int isp2x00_abort(Scsi_Cmnd *);
int
isp2x00_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
int
isp2x00_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
int
isp2x00_biosparam
(
struct
scsi_device
*
,
struct
block_device
*
,
int
isp2x00_biosparam
(
struct
scsi_device
*
,
struct
block_device
*
,
sector_t
,
int
[]);
sector_t
,
int
[]);
#ifndef NULL
#define NULL (0)
#endif
#endif
/* _QLOGICFC_H */
#endif
/* _QLOGICFC_H */
drivers/scsi/qlogicisp.h
View file @
596a338d
...
@@ -66,8 +66,4 @@ int isp1020_abort(Scsi_Cmnd *);
...
@@ -66,8 +66,4 @@ int isp1020_abort(Scsi_Cmnd *);
int
isp1020_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
int
isp1020_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
int
isp1020_biosparam
(
struct
scsi_device
*
,
struct
block_device
*
,
int
isp1020_biosparam
(
struct
scsi_device
*
,
struct
block_device
*
,
sector_t
,
int
[]);
sector_t
,
int
[]);
#ifndef NULL
#define NULL (0)
#endif
#endif
/* _QLOGICISP_H */
#endif
/* _QLOGICISP_H */
drivers/scsi/sgiwd93.h
View file @
596a338d
...
@@ -6,10 +6,6 @@
...
@@ -6,10 +6,6 @@
#ifndef _SGIWD93_H
#ifndef _SGIWD93_H
#define _SGIWD93_H
#define _SGIWD93_H
#ifndef NULL
#define NULL 0
#endif
#ifndef CMD_PER_LUN
#ifndef CMD_PER_LUN
#define CMD_PER_LUN 8
#define CMD_PER_LUN 8
#endif
#endif
...
...
drivers/scsi/sun3_scsi.h
View file @
596a338d
...
@@ -36,11 +36,6 @@
...
@@ -36,11 +36,6 @@
#ifndef SUN3_NCR5380_H
#ifndef SUN3_NCR5380_H
#define SUN3_NCR5380_H
#define SUN3_NCR5380_H
#ifndef NULL
#define NULL 0
#endif
#define SUN3SCSI_PUBLIC_RELEASE 1
#define SUN3SCSI_PUBLIC_RELEASE 1
/*
/*
...
...
drivers/scsi/t128.h
View file @
596a338d
...
@@ -100,10 +100,6 @@ static int t128_host_reset(Scsi_Cmnd *);
...
@@ -100,10 +100,6 @@ static int t128_host_reset(Scsi_Cmnd *);
static
int
t128_bus_reset
(
Scsi_Cmnd
*
);
static
int
t128_bus_reset
(
Scsi_Cmnd
*
);
static
int
t128_device_reset
(
Scsi_Cmnd
*
);
static
int
t128_device_reset
(
Scsi_Cmnd
*
);
#ifndef NULL
#define NULL 0
#endif
#ifndef CMD_PER_LUN
#ifndef CMD_PER_LUN
#define CMD_PER_LUN 2
#define CMD_PER_LUN 2
#endif
#endif
...
...
include/linux/ide.h
View file @
596a338d
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
#include <asm/system.h>
#include <asm/system.h>
#include <asm/hdreg.h>
#include <asm/hdreg.h>
#include <asm/io.h>
#include <asm/io.h>
#include <asm/semaphore.h>
#define DEBUG_PM
#define DEBUG_PM
...
@@ -774,6 +775,7 @@ typedef struct ide_drive_s {
...
@@ -774,6 +775,7 @@ typedef struct ide_drive_s {
int
crc_count
;
/* crc counter to reduce drive speed */
int
crc_count
;
/* crc counter to reduce drive speed */
struct
list_head
list
;
struct
list_head
list
;
struct
device
gendev
;
struct
device
gendev
;
struct
semaphore
gendev_rel_sem
;
/* to deal with device release() */
struct
gendisk
*
disk
;
struct
gendisk
*
disk
;
}
ide_drive_t
;
}
ide_drive_t
;
...
@@ -1040,6 +1042,7 @@ typedef struct hwif_s {
...
@@ -1040,6 +1042,7 @@ typedef struct hwif_s {
unsigned
auto_poll
:
1
;
/* supports nop auto-poll */
unsigned
auto_poll
:
1
;
/* supports nop auto-poll */
struct
device
gendev
;
struct
device
gendev
;
struct
semaphore
gendev_rel_sem
;
/* To deal with device release() */
void
*
hwif_data
;
/* extra hwif data */
void
*
hwif_data
;
/* extra hwif data */
...
...
include/linux/pci_ids.h
View file @
596a338d
...
@@ -878,6 +878,7 @@
...
@@ -878,6 +878,7 @@
#define PCI_DEVICE_ID_SII_680 0x0680
#define PCI_DEVICE_ID_SII_680 0x0680
#define PCI_DEVICE_ID_SII_3112 0x3112
#define PCI_DEVICE_ID_SII_3112 0x3112
#define PCI_DEVICE_ID_SII_1210SA 0x0240
#define PCI_VENDOR_ID_VISION 0x1098
#define PCI_VENDOR_ID_VISION 0x1098
#define PCI_DEVICE_ID_VISION_QD8500 0x0001
#define PCI_DEVICE_ID_VISION_QD8500 0x0001
...
...
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