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
Kirill Smelkov
linux
Commits
245d1d15
Commit
245d1d15
authored
Dec 15, 2002
by
Art Haas
Committed by
Linus Torvalds
Dec 15, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] C99 initializers for drivers/scsi (4 of 4)
parent
0e790473
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
184 additions
and
184 deletions
+184
-184
drivers/scsi/qla1280.h
drivers/scsi/qla1280.h
+18
-18
drivers/scsi/qlogicfas.h
drivers/scsi/qlogicfas.h
+14
-14
drivers/scsi/qlogicfc.h
drivers/scsi/qlogicfc.h
+14
-14
drivers/scsi/qlogicisp.h
drivers/scsi/qlogicisp.h
+12
-12
drivers/scsi/scsi_debug.c
drivers/scsi/scsi_debug.c
+2
-2
drivers/scsi/seagate.h
drivers/scsi/seagate.h
+14
-14
drivers/scsi/sgiwd93.h
drivers/scsi/sgiwd93.h
+12
-12
drivers/scsi/sim710.h
drivers/scsi/sim710.h
+14
-14
drivers/scsi/sun3x_esp.h
drivers/scsi/sun3x_esp.h
+14
-14
drivers/scsi/sym53c8xx.h
drivers/scsi/sym53c8xx.h
+15
-15
drivers/scsi/t128.h
drivers/scsi/t128.h
+13
-13
drivers/scsi/u14-34f.h
drivers/scsi/u14-34f.h
+13
-13
drivers/scsi/ultrastor.h
drivers/scsi/ultrastor.h
+13
-13
drivers/scsi/wd7000.h
drivers/scsi/wd7000.h
+16
-16
No files found.
drivers/scsi/qla1280.h
View file @
245d1d15
...
...
@@ -1325,25 +1325,25 @@ void qla1280_setup(char *s, int *dummy);
*/
#define QLA1280_LINUX_TEMPLATE { \
proc_info:
qla1280_proc_info, \
name:
"Qlogic ISP 1280/12160", \
detect:
qla1280_detect, \
release:
qla1280_release, \
info:
qla1280_info, \
queuecommand:
qla1280_queuecommand, \
.proc_info =
qla1280_proc_info, \
.name =
"Qlogic ISP 1280/12160", \
.detect =
qla1280_detect, \
.release =
qla1280_release, \
.info =
qla1280_info, \
.queuecommand =
qla1280_queuecommand, \
/* use_new_eh_code: 0, */
\
abort:
qla1280_abort, \
reset:
qla1280_reset, \
slave_configure:
qla1280_slave_configure, \
bios_param:
qla1280_biosparam, \
can_queue:
255,
/* max simultaneous cmds */
\
this_id:
-1,
/* scsi id of host adapter */
\
sg_tablesize:
SG_ALL,
/* max scatter-gather cmds */
\
cmd_per_lun:
3,
/* cmds per lun (linked cmds) */
\
present:
0,
/* number of 1280's present */
\
unchecked_isa_dma:
0,
/* no memory DMA restrictions */
\
use_clustering:
ENABLE_CLUSTERING, \
emulated:
0 \
.abort =
qla1280_abort, \
.reset =
qla1280_reset, \
.slave_configure =
qla1280_slave_configure, \
.bios_param =
qla1280_biosparam, \
.can_queue =
255,
/* max simultaneous cmds */
\
.this_id =
-1,
/* scsi id of host adapter */
\
.sg_tablesize =
SG_ALL,
/* max scatter-gather cmds */
\
.cmd_per_lun =
3,
/* cmds per lun (linked cmds) */
\
.present =
0,
/* number of 1280's present */
\
.unchecked_isa_dma =
0,
/* no memory DMA restrictions */
\
.use_clustering =
ENABLE_CLUSTERING, \
.emulated =
0 \
}
#endif
/* _IO_HBA_QLA1280_H */
drivers/scsi/qlogicfas.h
View file @
245d1d15
...
...
@@ -13,20 +13,20 @@ static int qlogicfas_biosparam(struct scsi_device *, struct block_device *,
sector_t
,
int
[]);
#define QLOGICFAS { \
detect:
qlogicfas_detect, \
info:
qlogicfas_info, \
command:
qlogicfas_command, \
queuecommand:
qlogicfas_queuecommand, \
eh_abort_handler:
qlogicfas_abort, \
eh_bus_reset_handler:
qlogicfas_bus_reset, \
eh_device_reset_handler:
qlogicfas_device_reset, \
eh_host_reset_handler:
qlogicfas_host_reset, \
bios_param:
qlogicfas_biosparam, \
can_queue:
0, \
this_id:
-1, \
sg_tablesize:
SG_ALL, \
cmd_per_lun:
1, \
use_clustering:
DISABLE_CLUSTERING \
.detect =
qlogicfas_detect, \
.info =
qlogicfas_info, \
.command =
qlogicfas_command, \
.queuecommand =
qlogicfas_queuecommand, \
.eh_abort_handler =
qlogicfas_abort, \
.eh_bus_reset_handler =
qlogicfas_bus_reset, \
.eh_device_reset_handler =
qlogicfas_device_reset, \
.eh_host_reset_handler =
qlogicfas_host_reset, \
.bios_param =
qlogicfas_biosparam, \
.can_queue =
0, \
.this_id =
-1, \
.sg_tablesize =
SG_ALL, \
.cmd_per_lun =
1, \
.use_clustering =
DISABLE_CLUSTERING \
}
#endif
/* _QLOGICFAS_H */
...
...
drivers/scsi/qlogicfc.h
View file @
245d1d15
...
...
@@ -83,20 +83,20 @@ int isp2x00_biosparam(struct scsi_device *, struct block_device *,
#endif
#define QLOGICFC { \
detect:
isp2x00_detect, \
release:
isp2x00_release, \
info:
isp2x00_info, \
queuecommand:
isp2x00_queuecommand, \
eh_abort_handler:
isp2x00_abort, \
bios_param:
isp2x00_biosparam, \
can_queue:
QLOGICFC_REQ_QUEUE_LEN, \
this_id:
-1, \
sg_tablesize:
QLOGICFC_MAX_SG(QLOGICFC_REQ_QUEUE_LEN), \
cmd_per_lun:
QLOGICFC_CMD_PER_LUN, \
present:
0, \
unchecked_isa_dma:
0, \
use_clustering:
ENABLE_CLUSTERING, \
highmem_io:
1 \
.detect =
isp2x00_detect, \
.release =
isp2x00_release, \
.info =
isp2x00_info, \
.queuecommand =
isp2x00_queuecommand, \
.eh_abort_handler =
isp2x00_abort, \
.bios_param =
isp2x00_biosparam, \
.can_queue =
QLOGICFC_REQ_QUEUE_LEN, \
.this_id =
-1, \
.sg_tablesize =
QLOGICFC_MAX_SG(QLOGICFC_REQ_QUEUE_LEN), \
.cmd_per_lun =
QLOGICFC_CMD_PER_LUN, \
.present =
0, \
.unchecked_isa_dma =
0, \
.use_clustering =
ENABLE_CLUSTERING, \
.highmem_io =
1 \
}
#endif
/* _QLOGICFC_H */
...
...
drivers/scsi/qlogicisp.h
View file @
245d1d15
...
...
@@ -72,18 +72,18 @@ int isp1020_biosparam(struct scsi_device *, struct block_device *,
#endif
#define QLOGICISP { \
detect:
isp1020_detect, \
release:
isp1020_release, \
info:
isp1020_info, \
queuecommand:
isp1020_queuecommand, \
bios_param:
isp1020_biosparam, \
can_queue:
QLOGICISP_REQ_QUEUE_LEN, \
this_id:
-1, \
sg_tablesize:
QLOGICISP_MAX_SG(QLOGICISP_REQ_QUEUE_LEN), \
cmd_per_lun:
1, \
present:
0, \
unchecked_isa_dma:
0, \
use_clustering:
DISABLE_CLUSTERING \
.detect =
isp1020_detect, \
.release =
isp1020_release, \
.info =
isp1020_info, \
.queuecommand =
isp1020_queuecommand, \
.bios_param =
isp1020_biosparam, \
.can_queue =
QLOGICISP_REQ_QUEUE_LEN, \
.this_id =
-1, \
.sg_tablesize =
QLOGICISP_MAX_SG(QLOGICISP_REQ_QUEUE_LEN), \
.cmd_per_lun =
1, \
.present =
0, \
.unchecked_isa_dma =
0, \
.use_clustering =
DISABLE_CLUSTERING \
}
#endif
/* _QLOGICISP_H */
drivers/scsi/scsi_debug.c
View file @
245d1d15
...
...
@@ -1636,8 +1636,8 @@ static int pseudo_lld_bus_match(struct device *dev,
}
static
struct
bus_type
pseudo_lld_bus
=
{
name:
"pseudo"
,
match:
pseudo_lld_bus_match
,
.
name
=
"pseudo"
,
.
match
=
pseudo_lld_bus_match
,
};
int
scsi_debug_register_driver
(
struct
device_driver
*
dev_driver
)
...
...
drivers/scsi/seagate.h
View file @
245d1d15
...
...
@@ -19,19 +19,19 @@ static int seagate_st0x_bus_reset(Scsi_Cmnd *);
static
int
seagate_st0x_device_reset
(
Scsi_Cmnd
*
);
static
int
seagate_st0x_host_reset
(
Scsi_Cmnd
*
);
#define SEAGATE_ST0X {
detect:
seagate_st0x_detect, \
release:
seagate_st0x_release, \
info:
seagate_st0x_info, \
command:
seagate_st0x_command, \
queuecommand:
seagate_st0x_queue_command, \
eh_abort_handler:
seagate_st0x_abort, \
eh_bus_reset_handler:
seagate_st0x_bus_reset, \
eh_host_reset_handler:
seagate_st0x_host_reset, \
eh_device_reset_handler:
seagate_st0x_device_reset, \
can_queue:
1, \
this_id:
7, \
sg_tablesize:
SG_ALL, \
cmd_per_lun:
1, \
use_clustering:
DISABLE_CLUSTERING}
#define SEAGATE_ST0X {
.detect =
seagate_st0x_detect, \
.release =
seagate_st0x_release, \
.info =
seagate_st0x_info, \
.command =
seagate_st0x_command, \
.queuecommand =
seagate_st0x_queue_command, \
.eh_abort_handler =
seagate_st0x_abort, \
.eh_bus_reset_handler =
seagate_st0x_bus_reset, \
.eh_host_reset_handler =
seagate_st0x_host_reset, \
.eh_device_reset_handler =
seagate_st0x_device_reset, \
.can_queue =
1, \
.this_id =
7, \
.sg_tablesize =
SG_ALL, \
.cmd_per_lun =
1, \
.use_clustering =
DISABLE_CLUSTERING}
#endif
/* _SEAGATE_H */
drivers/scsi/sgiwd93.h
View file @
245d1d15
...
...
@@ -25,17 +25,17 @@ int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
int
wd33c93_abort
(
Scsi_Cmnd
*
);
int
wd33c93_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
#define SGIWD93_SCSI {
proc_name:
"SGIWD93", \
name:
"SGI WD93", \
detect:
sgiwd93_detect, \
release:
sgiwd93_release, \
queuecommand:
wd33c93_queuecommand, \
abort:
wd33c93_abort, \
reset:
wd33c93_reset, \
can_queue:
CAN_QUEUE, \
this_id:
7, \
sg_tablesize:
SG_ALL, \
cmd_per_lun:
CMD_PER_LUN, \
use_clustering:
DISABLE_CLUSTERING }
#define SGIWD93_SCSI {
.proc_name =
"SGIWD93", \
.name =
"SGI WD93", \
.detect =
sgiwd93_detect, \
.release =
sgiwd93_release, \
.queuecommand =
wd33c93_queuecommand, \
.abort =
wd33c93_abort, \
.reset =
wd33c93_reset, \
.can_queue =
CAN_QUEUE, \
.this_id =
7, \
.sg_tablesize =
SG_ALL, \
.cmd_per_lun =
CMD_PER_LUN, \
.use_clustering =
DISABLE_CLUSTERING }
#endif
/* !(_SGIWD93_H) */
drivers/scsi/sim710.h
View file @
245d1d15
...
...
@@ -22,20 +22,20 @@ int sim710_release(struct Scsi_Host *);
#include <scsi/scsicam.h>
#define SIM710_SCSI {
proc_name:
"sim710", \
name:
"53c710", \
detect:
sim710_detect, \
release:
sim710_release, \
queuecommand:
sim710_queuecommand, \
eh_abort_handler:
sim710_abort, \
eh_device_reset_handler:
sim710_dev_reset, \
eh_bus_reset_handler:
sim710_bus_reset, \
eh_host_reset_handler:
sim710_host_reset, \
can_queue:
8, \
this_id:
7, \
sg_tablesize:
128, \
cmd_per_lun:
1, \
use_clustering:
DISABLE_CLUSTERING }
#define SIM710_SCSI {
.proc_name =
"sim710", \
.name =
"53c710", \
.detect =
sim710_detect, \
.release =
sim710_release, \
.queuecommand =
sim710_queuecommand, \
.eh_abort_handler =
sim710_abort, \
.eh_device_reset_handler =
sim710_dev_reset, \
.eh_bus_reset_handler =
sim710_bus_reset, \
.eh_host_reset_handler =
sim710_host_reset, \
.can_queue =
8, \
.this_id =
7, \
.sg_tablesize =
128, \
.cmd_per_lun =
1, \
.use_clustering =
DISABLE_CLUSTERING }
#ifndef HOSTS_C
...
...
drivers/scsi/sun3x_esp.h
View file @
245d1d15
...
...
@@ -21,19 +21,19 @@ extern int esp_proc_info(char *buffer, char **start, off_t offset, int length,
#define DMA_PORTS_P (dregs->cond_reg & DMA_INT_ENAB)
#define SCSI_SUN3X_ESP { \
proc_name:
"esp", \
proc_info:
&esp_proc_info, \
name:
"Sun ESP 100/100a/200", \
detect:
sun3x_esp_detect, \
info:
esp_info, \
command:
esp_command, \
queuecommand:
esp_queue, \
abort:
esp_abort, \
reset:
esp_reset, \
can_queue:
7, \
this_id:
7, \
sg_tablesize:
SG_ALL, \
cmd_per_lun:
1, \
use_clustering:
DISABLE_CLUSTERING, }
.proc_name =
"esp", \
.proc_info =
&esp_proc_info, \
.name =
"Sun ESP 100/100a/200", \
.detect =
sun3x_esp_detect, \
.info =
esp_info, \
.command =
esp_command, \
.queuecommand =
esp_queue, \
.abort =
esp_abort, \
.reset =
esp_reset, \
.can_queue =
7, \
.this_id =
7, \
.sg_tablesize =
SG_ALL, \
.cmd_per_lun =
1, \
.use_clustering =
DISABLE_CLUSTERING, }
#endif
/* !(_SUN3X_ESP_H) */
drivers/scsi/sym53c8xx.h
View file @
245d1d15
...
...
@@ -85,21 +85,21 @@ int sym53c8xx_release(struct Scsi_Host *);
#if LINUX_VERSION_CODE >= LinuxVersionCode(2,1,75)
#define SYM53C8XX {
name:
"", \
detect:
sym53c8xx_detect, \
release:
sym53c8xx_release, \
info:
sym53c8xx_info, \
queuecommand:
sym53c8xx_queue_command,\
slave_configure:
sym53c8xx_slave_configure,\
abort:
sym53c8xx_abort, \
reset:
sym53c8xx_reset, \
can_queue:
SCSI_NCR_CAN_QUEUE, \
this_id:
7, \
sg_tablesize:
SCSI_NCR_SG_TABLESIZE, \
cmd_per_lun:
SCSI_NCR_CMD_PER_LUN, \
max_sectors:
MAX_HW_SEGMENTS*8, \
use_clustering:
DISABLE_CLUSTERING, \
highmem_io:
1}
#define SYM53C8XX {
.name =
"", \
.detect =
sym53c8xx_detect, \
.release =
sym53c8xx_release, \
.info =
sym53c8xx_info, \
.queuecommand =
sym53c8xx_queue_command,\
.slave_configure =
sym53c8xx_slave_configure,\
.abort =
sym53c8xx_abort, \
.reset =
sym53c8xx_reset, \
.can_queue =
SCSI_NCR_CAN_QUEUE, \
.this_id =
7, \
.sg_tablesize =
SCSI_NCR_SG_TABLESIZE, \
.cmd_per_lun =
SCSI_NCR_CMD_PER_LUN, \
.max_sectors =
MAX_HW_SEGMENTS*8, \
.use_clustering =
DISABLE_CLUSTERING, \
.highmem_io =
1}
#else
...
...
drivers/scsi/t128.h
View file @
245d1d15
...
...
@@ -121,19 +121,19 @@ static int t128_proc_info (char *buffer, char **start, off_t offset,
*/
#define TRANTOR_T128 { \
name:
"Trantor T128/T128F/T228", \
detect:
t128_detect, \
queuecommand:
t128_queue_command, \
eh_abort_handler:
t128_abort, \
eh_bus_reset_handler:
t128_bus_reset, \
eh_host_reset_handler:
t128_host_reset, \
eh_device_reset_handler:
t128_device_reset, \
bios_param:
t128_biosparam, \
can_queue:
CAN_QUEUE, \
this_id:
7, \
sg_tablesize:
SG_ALL, \
cmd_per_lun:
CMD_PER_LUN, \
use_clustering:
DISABLE_CLUSTERING}
.name =
"Trantor T128/T128F/T228", \
.detect =
t128_detect, \
.queuecommand =
t128_queue_command, \
.eh_abort_handler =
t128_abort, \
.eh_bus_reset_handler =
t128_bus_reset, \
.eh_host_reset_handler =
t128_host_reset, \
.eh_device_reset_handler =
t128_device_reset, \
.bios_param =
t128_biosparam, \
.can_queue =
CAN_QUEUE, \
.this_id =
7, \
.sg_tablesize =
SG_ALL, \
.cmd_per_lun =
CMD_PER_LUN, \
.use_clustering =
DISABLE_CLUSTERING}
#ifndef HOSTS_C
...
...
drivers/scsi/u14-34f.h
View file @
245d1d15
...
...
@@ -13,17 +13,17 @@ static int u14_34f_slave_configure(Scsi_Device *);
#define U14_34F_VERSION "8.00.00"
#define ULTRASTOR_14_34F { \
name:
"UltraStor 14F/34F rev. " U14_34F_VERSION " ", \
detect:
u14_34f_detect, \
release:
u14_34f_release, \
queuecommand:
u14_34f_queuecommand, \
eh_abort_handler:
u14_34f_eh_abort, \
eh_device_reset_handler:
NULL, \
eh_bus_reset_handler:
NULL, \
eh_host_reset_handler:
u14_34f_eh_host_reset, \
bios_param:
u14_34f_bios_param, \
slave_configure:
u14_34f_slave_configure, \
this_id:
7, \
unchecked_isa_dma:
1, \
use_clustering:
ENABLE_CLUSTERING \
.name =
"UltraStor 14F/34F rev. " U14_34F_VERSION " ", \
.detect =
u14_34f_detect, \
.release =
u14_34f_release, \
.queuecommand =
u14_34f_queuecommand, \
.eh_abort_handler =
u14_34f_eh_abort, \
.eh_device_reset_handler =
NULL, \
.eh_bus_reset_handler =
NULL, \
.eh_host_reset_handler =
u14_34f_eh_host_reset, \
.bios_param =
u14_34f_bios_param, \
.slave_configure =
u14_34f_slave_configure, \
.this_id =
7, \
.unchecked_isa_dma =
1, \
.use_clustering =
ENABLE_CLUSTERING \
}
drivers/scsi/ultrastor.h
View file @
245d1d15
...
...
@@ -30,19 +30,19 @@ static int ultrastor_biosparam(struct scsi_device *, struct block_device *, sect
#define ULTRASTOR_24F_PORT 0xC80
#define ULTRASTOR_14F {
name:
"UltraStor 14F/24F/34F", \
detect:
ultrastor_detect, \
info:
ultrastor_info, \
queuecommand:
ultrastor_queuecommand, \
eh_abort_handler:
ultrastor_abort, \
eh_host_reset_handler:
ultrastor_host_reset, \
bios_param:
ultrastor_biosparam, \
can_queue:
ULTRASTOR_MAX_CMDS, \
this_id:
0, \
sg_tablesize:
ULTRASTOR_14F_MAX_SG, \
cmd_per_lun:
ULTRASTOR_MAX_CMDS_PER_LUN,\
unchecked_isa_dma:
1, \
use_clustering:
ENABLE_CLUSTERING }
#define ULTRASTOR_14F {
.name =
"UltraStor 14F/24F/34F", \
.detect =
ultrastor_detect, \
.info =
ultrastor_info, \
.queuecommand =
ultrastor_queuecommand, \
.eh_abort_handler =
ultrastor_abort, \
.eh_host_reset_handler =
ultrastor_host_reset, \
.bios_param =
ultrastor_biosparam, \
.can_queue =
ULTRASTOR_MAX_CMDS, \
.this_id =
0, \
.sg_tablesize =
ULTRASTOR_14F_MAX_SG, \
.cmd_per_lun =
ULTRASTOR_MAX_CMDS_PER_LUN,\
.unchecked_isa_dma =
1, \
.use_clustering =
ENABLE_CLUSTERING }
#ifdef ULTRASTOR_PRIVATE
...
...
drivers/scsi/wd7000.h
View file @
245d1d15
...
...
@@ -44,21 +44,21 @@ static int wd7000_biosparam(struct scsi_device *, struct block_device *,
#define WD7000_SG 16
#define WD7000 { \
proc_name:
"wd7000", \
proc_info:
wd7000_proc_info, \
name:
"Western Digital WD-7000", \
detect:
wd7000_detect, \
command:
wd7000_command, \
queuecommand:
wd7000_queuecommand, \
eh_bus_reset_handler:
wd7000_bus_reset, \
eh_device_reset_handler:
wd7000_device_reset, \
eh_host_reset_handler:
wd7000_host_reset, \
bios_param:
wd7000_biosparam, \
can_queue:
WD7000_Q, \
this_id:
7, \
sg_tablesize:
WD7000_SG, \
cmd_per_lun:
1, \
unchecked_isa_dma:
1, \
use_clustering:
ENABLE_CLUSTERING, \
.proc_name =
"wd7000", \
.proc_info =
wd7000_proc_info, \
.name =
"Western Digital WD-7000", \
.detect =
wd7000_detect, \
.command =
wd7000_command, \
.queuecommand =
wd7000_queuecommand, \
.eh_bus_reset_handler =
wd7000_bus_reset, \
.eh_device_reset_handler =
wd7000_device_reset, \
.eh_host_reset_handler =
wd7000_host_reset, \
.bios_param =
wd7000_biosparam, \
.can_queue =
WD7000_Q, \
.this_id =
7, \
.sg_tablesize =
WD7000_SG, \
.cmd_per_lun =
1, \
.unchecked_isa_dma =
1, \
.use_clustering =
ENABLE_CLUSTERING, \
}
#endif
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