Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] remove Scsi_Host_Template typedef

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

authored by

Christoph Hellwig and committed by
James Bottomley
d0be4a7d c0ed79a3

+185 -186
+1 -1
Documentation/scsi/scsi_mid_low_api.txt
··· 346 346 struct tags. Both can be still found in the SCSI subsystem, but 347 347 the typedefs have been moved to a single file, scsi_typedefs.h to 348 348 make their future removal easier, for example: 349 - "typedef struct scsi_host_template Scsi_Host_Template;" 349 + "typedef struct scsi_cmnd Scsi_Cmnd;" 350 350 351 351 Also, most C99 enhancements are encouraged to the extent they are supported 352 352 by the relevant gcc compilers. So C99 style structure and array
+3 -3
drivers/scsi/53c7xx.c
··· 343 343 /* Size of event list (per host adapter) */ 344 344 static int track_events = 0; 345 345 static struct Scsi_Host *first_host = NULL; /* Head of list of NCR boards */ 346 - static Scsi_Host_Template *the_template = NULL; 346 + static struct scsi_host_template *the_template = NULL; 347 347 348 348 /* NCR53c710 script handling code */ 349 349 ··· 1103 1103 } 1104 1104 1105 1105 /* 1106 - * Function : int ncr53c7xx_init(Scsi_Host_Template *tpnt, int board, int chip, 1106 + * Function : int ncr53c7xx_init(struct scsi_host_template *tpnt, int board, int chip, 1107 1107 * unsigned long base, int io_port, int irq, int dma, long long options, 1108 1108 * int clock); 1109 1109 * ··· 1118 1118 */ 1119 1119 1120 1120 int 1121 - ncr53c7xx_init (Scsi_Host_Template *tpnt, int board, int chip, 1121 + ncr53c7xx_init (struct scsi_host_template *tpnt, int board, int chip, 1122 1122 unsigned long base, int io_port, int irq, int dma, 1123 1123 long long options, int clock) 1124 1124 {
+1 -1
drivers/scsi/53c7xx.h
··· 1600 1600 /* Paranoid people could use panic() here. */ 1601 1601 #define FATAL(host) shutdown((host)); 1602 1602 1603 - extern int ncr53c7xx_init(Scsi_Host_Template *tpnt, int board, int chip, 1603 + extern int ncr53c7xx_init(struct scsi_host_template *tpnt, int board, int chip, 1604 1604 unsigned long base, int io_port, int irq, int dma, 1605 1605 long long options, int clock); 1606 1606
+1 -1
drivers/scsi/NCR53C9x.c
··· 529 529 /* Allocate structure and insert basic data such as SCSI chip frequency 530 530 * data and a pointer to the device 531 531 */ 532 - struct NCR_ESP* esp_allocate(Scsi_Host_Template *tpnt, void *esp_dev) 532 + struct NCR_ESP* esp_allocate(struct scsi_host_template *tpnt, void *esp_dev) 533 533 { 534 534 struct NCR_ESP *esp, *elink; 535 535 struct Scsi_Host *esp_host;
+1 -1
drivers/scsi/NCR53C9x.h
··· 653 653 654 654 /* External functions */ 655 655 extern void esp_bootup_reset(struct NCR_ESP *esp, struct ESP_regs *eregs); 656 - extern struct NCR_ESP *esp_allocate(Scsi_Host_Template *, void *); 656 + extern struct NCR_ESP *esp_allocate(struct scsi_host_template *, void *); 657 657 extern void esp_deallocate(struct NCR_ESP *); 658 658 extern void esp_release(void); 659 659 extern void esp_initialize(struct NCR_ESP *);
+2 -2
drivers/scsi/NCR53c406a.c
··· 447 447 } 448 448 #endif /* USE_PIO */ 449 449 450 - static int __init NCR53c406a_detect(Scsi_Host_Template * tpnt) 450 + static int __init NCR53c406a_detect(struct scsi_host_template * tpnt) 451 451 { 452 452 int present = 0; 453 453 struct Scsi_Host *shpnt = NULL; ··· 1057 1057 * Use SG_NONE if DMA mode is enabled! 1058 1058 */ 1059 1059 1060 - static Scsi_Host_Template driver_template = 1060 + static struct scsi_host_template driver_template = 1061 1061 { 1062 1062 .proc_name = "NCR53c406a" /* proc_name */, 1063 1063 .name = "NCR53c406a" /* name */,
+2 -2
drivers/scsi/a2091.c
··· 173 173 } 174 174 } 175 175 176 - int __init a2091_detect(Scsi_Host_Template *tpnt) 176 + int __init a2091_detect(struct scsi_host_template *tpnt) 177 177 { 178 178 static unsigned char called = 0; 179 179 struct Scsi_Host *instance; ··· 234 234 235 235 #define HOSTS_C 236 236 237 - static Scsi_Host_Template driver_template = { 237 + static struct scsi_host_template driver_template = { 238 238 .proc_name = "A2901", 239 239 .name = "Commodore A2091/A590 SCSI", 240 240 .detect = a2091_detect,
+1 -1
drivers/scsi/a2091.h
··· 11 11 12 12 #include <linux/types.h> 13 13 14 - int a2091_detect(Scsi_Host_Template *); 14 + int a2091_detect(struct scsi_host_template *); 15 15 int a2091_release(struct Scsi_Host *); 16 16 const char *wd33c93_info(void); 17 17 int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
+2 -2
drivers/scsi/a3000.c
··· 168 168 } 169 169 } 170 170 171 - int __init a3000_detect(Scsi_Host_Template *tpnt) 171 + int __init a3000_detect(struct scsi_host_template *tpnt) 172 172 { 173 173 wd33c93_regs regs; 174 174 ··· 221 221 222 222 #define HOSTS_C 223 223 224 - static Scsi_Host_Template driver_template = { 224 + static struct scsi_host_template driver_template = { 225 225 .proc_name = "A3000", 226 226 .name = "Amiga 3000 built-in SCSI", 227 227 .detect = a3000_detect,
+1 -1
drivers/scsi/a3000.h
··· 11 11 12 12 #include <linux/types.h> 13 13 14 - int a3000_detect(Scsi_Host_Template *); 14 + int a3000_detect(struct scsi_host_template *); 15 15 int a3000_release(struct Scsi_Host *); 16 16 const char *wd33c93_info(void); 17 17 int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
+3 -3
drivers/scsi/advansys.c
··· 114 114 #include "advansys.h" 115 115 #endif 116 116 117 - and after "static Scsi_Host_Template builtin_scsi_hosts[] =": 117 + and after "static struct scsi_host_template builtin_scsi_hosts[] =": 118 118 119 119 #ifdef CONFIG_SCSI_ADVANSYS 120 120 ADVANSYS, ··· 160 160 --- Driver Structures 161 161 --- Driver Data 162 162 --- Driver Function Prototypes 163 - --- Linux 'Scsi_Host_Template' and advansys_setup() Functions 163 + --- Linux 'struct scsi_host_template' and advansys_setup() Functions 164 164 --- Loadable Driver Support 165 165 --- Miscellaneous Driver Functions 166 166 --- Functions Required by the Asc Library ··· 4068 4068 4069 4069 4070 4070 /* 4071 - * --- Linux 'Scsi_Host_Template' and advansys_setup() Functions 4071 + * --- Linux 'struct scsi_host_template' and advansys_setup() Functions 4072 4072 */ 4073 4073 4074 4074 #ifdef CONFIG_PROC_FS
+1 -1
drivers/scsi/advansys.h
··· 19 19 #define _ADVANSYS_H 20 20 21 21 /* 22 - * Scsi_Host_Template function prototypes. 22 + * struct scsi_host_template function prototypes. 23 23 */ 24 24 int advansys_detect(struct scsi_host_template *); 25 25 int advansys_release(struct Scsi_Host *);
+2 -2
drivers/scsi/aha152x.c
··· 424 424 425 425 static int registered_count=0; 426 426 static struct Scsi_Host *aha152x_host[2]; 427 - static Scsi_Host_Template aha152x_driver_template; 427 + static struct scsi_host_template aha152x_driver_template; 428 428 429 429 /* 430 430 * internal states of the host ··· 3464 3464 return thislength < length ? thislength : length; 3465 3465 } 3466 3466 3467 - static Scsi_Host_Template aha152x_driver_template = { 3467 + static struct scsi_host_template aha152x_driver_template = { 3468 3468 .module = THIS_MODULE, 3469 3469 .name = AHA152X_REVID, 3470 3470 .proc_name = "aha152x",
+2 -2
drivers/scsi/aha1542.c
··· 1021 1021 #endif 1022 1022 1023 1023 /* return non-zero on detection */ 1024 - static int __init aha1542_detect(Scsi_Host_Template * tpnt) 1024 + static int __init aha1542_detect(struct scsi_host_template * tpnt) 1025 1025 { 1026 1026 unsigned char dma_chan; 1027 1027 unsigned char irq_level; ··· 1789 1789 MODULE_LICENSE("GPL"); 1790 1790 1791 1791 1792 - static Scsi_Host_Template driver_template = { 1792 + static struct scsi_host_template driver_template = { 1793 1793 .proc_name = "aha1542", 1794 1794 .name = "Adaptec 1542", 1795 1795 .detect = aha1542_detect,
+1 -1
drivers/scsi/aha1542.h
··· 131 131 /* REQUEST SENSE */ 132 132 }; 133 133 134 - static int aha1542_detect(Scsi_Host_Template *); 134 + static int aha1542_detect(struct scsi_host_template *); 135 135 static int aha1542_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); 136 136 static int aha1542_bus_reset(Scsi_Cmnd * SCpnt); 137 137 static int aha1542_dev_reset(Scsi_Cmnd * SCpnt);
+1 -1
drivers/scsi/aha1740.c
··· 570 570 return 0; 571 571 } 572 572 573 - static Scsi_Host_Template aha1740_template = { 573 + static struct scsi_host_template aha1740_template = { 574 574 .module = THIS_MODULE, 575 575 .proc_name = "aha1740", 576 576 .proc_info = aha1740_proc_info,
+1 -1
drivers/scsi/ahci.c
··· 196 196 static inline int ahci_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc); 197 197 static void ahci_remove_one (struct pci_dev *pdev); 198 198 199 - static Scsi_Host_Template ahci_sht = { 199 + static struct scsi_host_template ahci_sht = { 200 200 .module = THIS_MODULE, 201 201 .name = DRV_NAME, 202 202 .ioctl = ata_scsi_ioctl,
+4 -4
drivers/scsi/aic7xxx_old.c
··· 7865 7865 * Register a Adaptec aic7xxx chip SCSI controller with the kernel. 7866 7866 *-F*************************************************************************/ 7867 7867 static int 7868 - aic7xxx_register(Scsi_Host_Template *template, struct aic7xxx_host *p, 7868 + aic7xxx_register(struct scsi_host_template *template, struct aic7xxx_host *p, 7869 7869 int reset_delay) 7870 7870 { 7871 7871 int i, result; ··· 8412 8412 * and a pointer to a aic7xxx_host struct upon success. 8413 8413 *-F*************************************************************************/ 8414 8414 static struct aic7xxx_host * 8415 - aic7xxx_alloc(Scsi_Host_Template *sht, struct aic7xxx_host *temp) 8415 + aic7xxx_alloc(struct scsi_host_template *sht, struct aic7xxx_host *temp) 8416 8416 { 8417 8417 struct aic7xxx_host *p = NULL; 8418 8418 struct Scsi_Host *host; ··· 8991 8991 * mid-level SCSI code is overhauled. 8992 8992 *-F*************************************************************************/ 8993 8993 static int 8994 - aic7xxx_detect(Scsi_Host_Template *template) 8994 + aic7xxx_detect(struct scsi_host_template *template) 8995 8995 { 8996 8996 struct aic7xxx_host *temp_p = NULL; 8997 8997 struct aic7xxx_host *current_p = NULL; ··· 11161 11161 MODULE_VERSION(AIC7XXX_H_VERSION); 11162 11162 11163 11163 11164 - static Scsi_Host_Template driver_template = { 11164 + static struct scsi_host_template driver_template = { 11165 11165 .proc_info = aic7xxx_proc_info, 11166 11166 .detect = aic7xxx_detect, 11167 11167 .release = aic7xxx_release,
+4 -4
drivers/scsi/amiga7xx.c
··· 30 30 #include "amiga7xx.h" 31 31 32 32 33 - static int amiga7xx_register_one(Scsi_Host_Template *tpnt, 33 + static int amiga7xx_register_one(struct scsi_host_template *tpnt, 34 34 unsigned long address) 35 35 { 36 36 long long options; ··· 66 66 { 0 } 67 67 }; 68 68 69 - static int __init amiga7xx_zorro_detect(Scsi_Host_Template *tpnt) 69 + static int __init amiga7xx_zorro_detect(struct scsi_host_template *tpnt) 70 70 { 71 71 int num = 0, i; 72 72 struct zorro_dev *z = NULL; ··· 90 90 #endif /* CONFIG_ZORRO */ 91 91 92 92 93 - int __init amiga7xx_detect(Scsi_Host_Template *tpnt) 93 + int __init amiga7xx_detect(struct scsi_host_template *tpnt) 94 94 { 95 95 static unsigned char called = 0; 96 96 int num = 0; ··· 123 123 return 0; 124 124 } 125 125 126 - static Scsi_Host_Template driver_template = { 126 + static struct scsi_host_template driver_template = { 127 127 .name = "Amiga NCR53c710 SCSI", 128 128 .detect = amiga7xx_detect, 129 129 .release = amiga7xx_release,
+1 -1
drivers/scsi/amiga7xx.h
··· 2 2 3 3 #include <linux/types.h> 4 4 5 - int amiga7xx_detect(Scsi_Host_Template *); 5 + int amiga7xx_detect(struct scsi_host_template *); 6 6 const char *NCR53c7x0_info(void); 7 7 int NCR53c7xx_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); 8 8 int NCR53c7xx_abort(Scsi_Cmnd *);
+1 -1
drivers/scsi/arm/acornscsi.c
··· 2971 2971 return pos; 2972 2972 } 2973 2973 2974 - static Scsi_Host_Template acornscsi_template = { 2974 + static struct scsi_host_template acornscsi_template = { 2975 2975 .module = THIS_MODULE, 2976 2976 .proc_info = acornscsi_proc_info, 2977 2977 .name = "AcornSCSI",
+1 -1
drivers/scsi/arm/arxescsi.c
··· 261 261 return pos; 262 262 } 263 263 264 - static Scsi_Host_Template arxescsi_template = { 264 + static struct scsi_host_template arxescsi_template = { 265 265 .proc_info = arxescsi_proc_info, 266 266 .name = "ARXE SCSI card", 267 267 .info = arxescsi_info,
+1 -1
drivers/scsi/arm/cumana_1.c
··· 238 238 239 239 #include "../NCR5380.c" 240 240 241 - static Scsi_Host_Template cumanascsi_template = { 241 + static struct scsi_host_template cumanascsi_template = { 242 242 .module = THIS_MODULE, 243 243 .name = "Cumana 16-bit SCSI", 244 244 .info = cumanascsi_info,
+1 -1
drivers/scsi/arm/cumana_2.c
··· 381 381 return pos; 382 382 } 383 383 384 - static Scsi_Host_Template cumanascsi2_template = { 384 + static struct scsi_host_template cumanascsi2_template = { 385 385 .module = THIS_MODULE, 386 386 .proc_info = cumanascsi_2_proc_info, 387 387 .name = "Cumana SCSI II",
+1 -1
drivers/scsi/arm/ecoscsi.c
··· 155 155 156 156 #include "../NCR5380.c" 157 157 158 - static Scsi_Host_Template ecoscsi_template = { 158 + static struct scsi_host_template ecoscsi_template = { 159 159 .module = THIS_MODULE, 160 160 .name = "Serial Port EcoSCSI NCR5380", 161 161 .proc_name = "ecoscsi",
+1 -1
drivers/scsi/arm/eesox.c
··· 499 499 static DEVICE_ATTR(bus_term, S_IRUGO | S_IWUSR, 500 500 eesoxscsi_show_term, eesoxscsi_store_term); 501 501 502 - static Scsi_Host_Template eesox_template = { 502 + static struct scsi_host_template eesox_template = { 503 503 .module = THIS_MODULE, 504 504 .proc_info = eesoxscsi_proc_info, 505 505 .name = "EESOX SCSI",
+1 -1
drivers/scsi/arm/oak.c
··· 111 111 112 112 #include "../NCR5380.c" 113 113 114 - static Scsi_Host_Template oakscsi_template = { 114 + static struct scsi_host_template oakscsi_template = { 115 115 .module = THIS_MODULE, 116 116 .proc_info = oakscsi_proc_info, 117 117 .name = "Oak 16-bit SCSI",
+1 -1
drivers/scsi/arm/powertec.c
··· 293 293 static DEVICE_ATTR(bus_term, S_IRUGO | S_IWUSR, 294 294 powertecscsi_show_term, powertecscsi_store_term); 295 295 296 - static Scsi_Host_Template powertecscsi_template = { 296 + static struct scsi_host_template powertecscsi_template = { 297 297 .module = THIS_MODULE, 298 298 .proc_info = powertecscsi_proc_info, 299 299 .name = "PowerTec SCSI",
+1 -1
drivers/scsi/ata_piix.c
··· 128 128 .remove = ata_pci_remove_one, 129 129 }; 130 130 131 - static Scsi_Host_Template piix_sht = { 131 + static struct scsi_host_template piix_sht = { 132 132 .module = THIS_MODULE, 133 133 .name = DRV_NAME, 134 134 .ioctl = ata_scsi_ioctl,
+1 -1
drivers/scsi/atari_NCR5380.c
··· 255 255 */ 256 256 257 257 static struct Scsi_Host *first_instance = NULL; 258 - static Scsi_Host_Template *the_template = NULL; 258 + static struct scsi_host_template *the_template = NULL; 259 259 260 260 /* Macros ease life... :-) */ 261 261 #define SETUP_HOSTDATA(in) \
+2 -2
drivers/scsi/atari_scsi.c
··· 600 600 #endif 601 601 602 602 603 - int atari_scsi_detect (Scsi_Host_Template *host) 603 + int atari_scsi_detect (struct scsi_host_template *host) 604 604 { 605 605 static int called = 0; 606 606 struct Scsi_Host *instance; ··· 1141 1141 1142 1142 #include "atari_NCR5380.c" 1143 1143 1144 - static Scsi_Host_Template driver_template = { 1144 + static struct scsi_host_template driver_template = { 1145 1145 .proc_info = atari_scsi_proc_info, 1146 1146 .name = "Atari native SCSI", 1147 1147 .detect = atari_scsi_detect,
+1 -1
drivers/scsi/atari_scsi.h
··· 18 18 /* (I_HAVE_OVERRUNS stuff removed) */ 19 19 20 20 #ifndef ASM 21 - int atari_scsi_detect (Scsi_Host_Template *); 21 + int atari_scsi_detect (struct scsi_host_template *); 22 22 const char *atari_scsi_info (struct Scsi_Host *); 23 23 int atari_scsi_reset (Scsi_Cmnd *, unsigned int); 24 24 #ifdef MODULE
+2 -2
drivers/scsi/blz1230.c
··· 94 94 */ 95 95 96 96 /***************************************************************** Detection */ 97 - int __init blz1230_esp_detect(Scsi_Host_Template *tpnt) 97 + int __init blz1230_esp_detect(struct scsi_host_template *tpnt) 98 98 { 99 99 struct NCR_ESP *esp; 100 100 struct zorro_dev *z = NULL; ··· 328 328 } 329 329 330 330 331 - static Scsi_Host_Template driver_template = { 331 + static struct scsi_host_template driver_template = { 332 332 .proc_name = "esp-blz1230", 333 333 .proc_info = esp_proc_info, 334 334 .name = "Blizzard1230 SCSI IV",
+2 -2
drivers/scsi/blz2060.c
··· 90 90 */ 91 91 92 92 /***************************************************************** Detection */ 93 - int __init blz2060_esp_detect(Scsi_Host_Template *tpnt) 93 + int __init blz2060_esp_detect(struct scsi_host_template *tpnt) 94 94 { 95 95 struct NCR_ESP *esp; 96 96 struct zorro_dev *z = NULL; ··· 282 282 } 283 283 284 284 285 - static Scsi_Host_Template driver_template = { 285 + static struct scsi_host_template driver_template = { 286 286 .proc_name = "esp-blz2060", 287 287 .proc_info = esp_proc_info, 288 288 .name = "Blizzard2060 SCSI",
+2 -2
drivers/scsi/bvme6000.c
··· 24 24 #include<linux/stat.h> 25 25 26 26 27 - int bvme6000_scsi_detect(Scsi_Host_Template *tpnt) 27 + int bvme6000_scsi_detect(struct scsi_host_template *tpnt) 28 28 { 29 29 static unsigned char called = 0; 30 30 int clock; ··· 60 60 return 0; 61 61 } 62 62 63 - static Scsi_Host_Template driver_template = { 63 + static struct scsi_host_template driver_template = { 64 64 .name = "BVME6000 NCR53c710 SCSI", 65 65 .detect = bvme6000_scsi_detect, 66 66 .release = bvme6000_scsi_release,
+1 -1
drivers/scsi/bvme6000.h
··· 3 3 4 4 #include <linux/types.h> 5 5 6 - int bvme6000_scsi_detect(Scsi_Host_Template *); 6 + int bvme6000_scsi_detect(struct scsi_host_template *); 7 7 const char *NCR53c7x0_info(void); 8 8 int NCR53c7xx_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); 9 9 int NCR53c7xx_abort(Scsi_Cmnd *);
+2 -2
drivers/scsi/cyberstorm.c
··· 104 104 */ 105 105 106 106 /***************************************************************** Detection */ 107 - int __init cyber_esp_detect(Scsi_Host_Template *tpnt) 107 + int __init cyber_esp_detect(struct scsi_host_template *tpnt) 108 108 { 109 109 struct NCR_ESP *esp; 110 110 struct zorro_dev *z = NULL; ··· 353 353 } 354 354 355 355 356 - static Scsi_Host_Template driver_template = { 356 + static struct scsi_host_template driver_template = { 357 357 .proc_name = "esp-cyberstorm", 358 358 .proc_info = esp_proc_info, 359 359 .name = "CyberStorm SCSI",
+2 -2
drivers/scsi/cyberstormII.c
··· 81 81 */ 82 82 83 83 /***************************************************************** Detection */ 84 - int __init cyberII_esp_detect(Scsi_Host_Template *tpnt) 84 + int __init cyberII_esp_detect(struct scsi_host_template *tpnt) 85 85 { 86 86 struct NCR_ESP *esp; 87 87 struct zorro_dev *z = NULL; ··· 290 290 } 291 291 292 292 293 - static Scsi_Host_Template driver_template = { 293 + static struct scsi_host_template driver_template = { 294 294 .proc_name = "esp-cyberstormII", 295 295 .proc_info = esp_proc_info, 296 296 .name = "CyberStorm Mk II SCSI",
+1 -1
drivers/scsi/dec_esp.c
··· 133 133 #include "scsi_module.c" 134 134 135 135 /***************************************************************** Detection */ 136 - static int dec_esp_detect(Scsi_Host_Template * tpnt) 136 + static int dec_esp_detect(struct scsi_host_template * tpnt) 137 137 { 138 138 struct NCR_ESP *esp; 139 139 struct ConfigDev *esp_dev;
+1 -1
drivers/scsi/dpti.h
··· 44 44 45 45 46 46 /* 47 - * Scsi_Host_Template (see hosts.h) 47 + * struct scsi_host_template (see hosts.h) 48 48 */ 49 49 50 50 #define DPT_DRIVER_NAME "Adaptec I2O RAID"
+3 -3
drivers/scsi/dtc.c
··· 199 199 #endif 200 200 201 201 /* 202 - * Function : int dtc_detect(Scsi_Host_Template * tpnt) 202 + * Function : int dtc_detect(struct scsi_host_template * tpnt) 203 203 * 204 204 * Purpose : detects and initializes DTC 3180/3280 controllers 205 205 * that were autoprobed, overridden on the LILO command line, ··· 211 211 * 212 212 */ 213 213 214 - static int __init dtc_detect(Scsi_Host_Template * tpnt) 214 + static int __init dtc_detect(struct scsi_host_template * tpnt) 215 215 { 216 216 static int current_override = 0, current_base = 0; 217 217 struct Scsi_Host *instance; ··· 471 471 return 0; 472 472 } 473 473 474 - static Scsi_Host_Template driver_template = { 474 + static struct scsi_host_template driver_template = { 475 475 .name = "DTC 3180/3280 ", 476 476 .detect = dtc_detect, 477 477 .release = dtc_release,
+1 -1
drivers/scsi/dtc.h
··· 35 35 static int dtc_abort(Scsi_Cmnd *); 36 36 static int dtc_biosparam(struct scsi_device *, struct block_device *, 37 37 sector_t, int*); 38 - static int dtc_detect(Scsi_Host_Template *); 38 + static int dtc_detect(struct scsi_host_template *); 39 39 static int dtc_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); 40 40 static int dtc_bus_reset(Scsi_Cmnd *); 41 41
+2 -2
drivers/scsi/fastlane.c
··· 125 125 } 126 126 127 127 /***************************************************************** Detection */ 128 - int __init fastlane_esp_detect(Scsi_Host_Template *tpnt) 128 + int __init fastlane_esp_detect(struct scsi_host_template *tpnt) 129 129 { 130 130 struct NCR_ESP *esp; 131 131 struct zorro_dev *z = NULL; ··· 398 398 } 399 399 400 400 401 - static Scsi_Host_Template driver_template = { 401 + static struct scsi_host_template driver_template = { 402 402 .proc_name = "esp-fastlane", 403 403 .proc_info = esp_proc_info, 404 404 .name = "Fastlane SCSI",
+2 -2
drivers/scsi/fcal.c
··· 89 89 90 90 /* Detect all FC Arbitrated Loops attached to the machine. 91 91 fc4 module has done all the work for us... */ 92 - int __init fcal_detect(Scsi_Host_Template *tpnt) 92 + int __init fcal_detect(struct scsi_host_template *tpnt) 93 93 { 94 94 int nfcals = 0; 95 95 fc_channel *fc; ··· 297 297 return 0; 298 298 } 299 299 300 - static Scsi_Host_Template driver_template = { 300 + static struct scsi_host_template driver_template = { 301 301 .name = "Fibre Channel Arbitrated Loop", 302 302 .detect = fcal_detect, 303 303 .release = fcal_release,
+1 -1
drivers/scsi/fcal.h
··· 20 20 for a particular channel */ 21 21 #define FCAL_CAN_QUEUE 512 22 22 23 - int fcal_detect(Scsi_Host_Template *); 23 + int fcal_detect(struct scsi_host_template *); 24 24 int fcal_release(struct Scsi_Host *); 25 25 int fcal_slave_configure(Scsi_Device *); 26 26
+2 -2
drivers/scsi/fd_mcs.c
··· 343 343 outb(0x01 | PARITY_MASK, TMC_Cntl_port); 344 344 } 345 345 346 - static int fd_mcs_detect(Scsi_Host_Template * tpnt) 346 + static int fd_mcs_detect(struct scsi_host_template * tpnt) 347 347 { 348 348 int loop; 349 349 struct Scsi_Host *shpnt; ··· 1343 1343 return 0; 1344 1344 } 1345 1345 1346 - static Scsi_Host_Template driver_template = { 1346 + static struct scsi_host_template driver_template = { 1347 1347 .proc_name = "fd_mcs", 1348 1348 .proc_info = fd_mcs_proc_info, 1349 1349 .detect = fd_mcs_detect,
+2 -2
drivers/scsi/g_NCR5380.c
··· 285 285 * Locks: none 286 286 */ 287 287 288 - int __init generic_NCR5380_detect(Scsi_Host_Template * tpnt) 288 + int __init generic_NCR5380_detect(struct scsi_host_template * tpnt) 289 289 { 290 290 static int current_override = 0; 291 291 int count, i; ··· 899 899 #undef PRINTP 900 900 #undef ANDP 901 901 902 - static Scsi_Host_Template driver_template = { 902 + static struct scsi_host_template driver_template = { 903 903 .proc_info = generic_NCR5380_proc_info, 904 904 .name = "Generic NCR5380/NCR53C400 Scsi Driver", 905 905 .detect = generic_NCR5380_detect,
+1 -1
drivers/scsi/g_NCR5380.h
··· 45 45 46 46 #ifndef ASM 47 47 static int generic_NCR5380_abort(Scsi_Cmnd *); 48 - static int generic_NCR5380_detect(Scsi_Host_Template *); 48 + static int generic_NCR5380_detect(struct scsi_host_template *); 49 49 static int generic_NCR5380_release_resources(struct Scsi_Host *); 50 50 static int generic_NCR5380_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); 51 51 static int generic_NCR5380_bus_reset(Scsi_Cmnd *);
+3 -3
drivers/scsi/gdth.c
··· 94 94 * Bugfix free_irq() 95 95 * 96 96 * Revision 1.56 2001/08/09 11:19:39 achim 97 - * Scsi_Host_Template changes 97 + * struct scsi_host_template changes 98 98 * 99 99 * Revision 1.55 2001/08/09 10:11:28 achim 100 100 * Command HOST_UNFREEZE_IO before cache service init. ··· 4153 4153 return 1; 4154 4154 } 4155 4155 4156 - static int __init gdth_detect(Scsi_Host_Template *shtp) 4156 + static int __init gdth_detect(struct scsi_host_template *shtp) 4157 4157 { 4158 4158 struct Scsi_Host *shp; 4159 4159 gdth_pci_str pcistr[MAXHA]; ··· 5683 5683 return NOTIFY_OK; 5684 5684 } 5685 5685 5686 - static Scsi_Host_Template driver_template = { 5686 + static struct scsi_host_template driver_template = { 5687 5687 .proc_name = "gdth", 5688 5688 .proc_info = gdth_proc_info, 5689 5689 .name = "GDT SCSI Disk Array Controller",
+2 -2
drivers/scsi/gvp11.c
··· 170 170 171 171 #define CHECK_WD33C93 172 172 173 - int __init gvp11_detect(Scsi_Host_Template *tpnt) 173 + int __init gvp11_detect(struct scsi_host_template *tpnt) 174 174 { 175 175 static unsigned char called = 0; 176 176 struct Scsi_Host *instance; ··· 362 362 363 363 #include "gvp11.h" 364 364 365 - static Scsi_Host_Template driver_template = { 365 + static struct scsi_host_template driver_template = { 366 366 .proc_name = "GVP11", 367 367 .name = "GVP Series II SCSI", 368 368 .detect = gvp11_detect,
+1 -1
drivers/scsi/gvp11.h
··· 11 11 12 12 #include <linux/types.h> 13 13 14 - int gvp11_detect(Scsi_Host_Template *); 14 + int gvp11_detect(struct scsi_host_template *); 15 15 int gvp11_release(struct Scsi_Host *); 16 16 const char *wd33c93_info(void); 17 17 int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
+4 -4
drivers/scsi/ibmmca.c
··· 498 498 static int probe_display(int); 499 499 static int probe_bus_mode(int); 500 500 static int device_exists(int, int, int *, int *); 501 - static struct Scsi_Host *ibmmca_register(Scsi_Host_Template *, int, int, int, char *); 501 + static struct Scsi_Host *ibmmca_register(struct scsi_host_template *, int, int, int, char *); 502 502 static int option_setup(char *); 503 503 /* local functions needed for proc_info */ 504 504 static int ldn_access_load(int, int); ··· 1489 1489 return len; 1490 1490 } 1491 1491 1492 - int ibmmca_detect(Scsi_Host_Template * scsi_template) 1492 + int ibmmca_detect(struct scsi_host_template * scsi_template) 1493 1493 { 1494 1494 struct Scsi_Host *shpnt; 1495 1495 int port, id, i, j, k, list_size, slot; ··· 1742 1742 return found; /* return the number of found SCSI hosts. Should be 1 or 0. */ 1743 1743 } 1744 1744 1745 - static struct Scsi_Host *ibmmca_register(Scsi_Host_Template * scsi_template, int port, int id, int adaptertype, char *hostname) 1745 + static struct Scsi_Host *ibmmca_register(struct scsi_host_template * scsi_template, int port, int id, int adaptertype, char *hostname) 1746 1746 { 1747 1747 struct Scsi_Host *shpnt; 1748 1748 int i, j; ··· 2500 2500 2501 2501 __setup("ibmmcascsi=", option_setup); 2502 2502 2503 - static Scsi_Host_Template driver_template = { 2503 + static struct scsi_host_template driver_template = { 2504 2504 .proc_name = "ibmmca", 2505 2505 .proc_info = ibmmca_proc_info, 2506 2506 .name = "IBM SCSI-Subsystem",
+1 -1
drivers/scsi/ibmmca.h
··· 11 11 /* Common forward declarations for all Linux-versions: */ 12 12 13 13 /* Interfaces to the midlevel Linux SCSI driver */ 14 - static int ibmmca_detect (Scsi_Host_Template *); 14 + static int ibmmca_detect (struct scsi_host_template *); 15 15 static int ibmmca_release (struct Scsi_Host *); 16 16 static int ibmmca_queuecommand (Scsi_Cmnd *, void (*done) (Scsi_Cmnd *)); 17 17 static int ibmmca_abort (Scsi_Cmnd *);
+2 -2
drivers/scsi/in2000.c
··· 1899 1899 }; 1900 1900 1901 1901 1902 - static int __init in2000_detect(Scsi_Host_Template * tpnt) 1902 + static int __init in2000_detect(struct scsi_host_template * tpnt) 1903 1903 { 1904 1904 struct Scsi_Host *instance; 1905 1905 struct IN2000_hostdata *hostdata; ··· 2305 2305 MODULE_LICENSE("GPL"); 2306 2306 2307 2307 2308 - static Scsi_Host_Template driver_template = { 2308 + static struct scsi_host_template driver_template = { 2309 2309 .proc_name = "in2000", 2310 2310 .proc_info = in2000_proc_info, 2311 2311 .name = "Always IN2000",
+1 -1
drivers/scsi/in2000.h
··· 395 395 # define CLISPIN_UNLOCK(host,flags) spin_unlock_irqrestore(host->host_lock, \ 396 396 flags) 397 397 398 - static int in2000_detect(Scsi_Host_Template *) in2000__INIT; 398 + static int in2000_detect(struct scsi_host_template *) in2000__INIT; 399 399 static int in2000_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); 400 400 static int in2000_abort(Scsi_Cmnd *); 401 401 static void in2000_setup(char *, int *) in2000__INIT;
+3 -3
drivers/scsi/ips.c
··· 248 248 /* 249 249 * Function prototypes 250 250 */ 251 - static int ips_detect(Scsi_Host_Template *); 251 + static int ips_detect(struct scsi_host_template *); 252 252 static int ips_release(struct Scsi_Host *); 253 253 static int ips_eh_abort(Scsi_Cmnd *); 254 254 static int ips_eh_reset(Scsi_Cmnd *); ··· 377 377 static dma_addr_t ips_flashbusaddr; 378 378 static long ips_FlashDataInUse; /* CD Boot - Flash Data In Use Flag */ 379 379 static uint32_t MaxLiteCmds = 32; /* Max Active Cmds for a Lite Adapter */ 380 - static Scsi_Host_Template ips_driver_template = { 380 + static struct scsi_host_template ips_driver_template = { 381 381 .detect = ips_detect, 382 382 .release = ips_release, 383 383 .info = ips_info, ··· 587 587 /* */ 588 588 /****************************************************************************/ 589 589 static int 590 - ips_detect(Scsi_Host_Template * SHT) 590 + ips_detect(struct scsi_host_template * SHT) 591 591 { 592 592 int i; 593 593
+2 -2
drivers/scsi/jazz_esp.c
··· 52 52 * via PIO. 53 53 */ 54 54 55 - int jazz_esp_detect(Scsi_Host_Template *tpnt); 55 + int jazz_esp_detect(struct scsi_host_template *tpnt); 56 56 static int jazz_esp_release(struct Scsi_Host *shost) 57 57 { 58 58 if (shost->irq) ··· 65 65 return 0; 66 66 } 67 67 68 - static Scsi_Host_Template driver_template = { 68 + static struct scsi_host_template driver_template = { 69 69 .proc_name = "jazz_esp", 70 70 .proc_info = &esp_proc_info, 71 71 .name = "ESP 100/100a/200",
+2 -2
drivers/scsi/mac_esp.c
··· 300 300 * Model dependent ESP setup 301 301 */ 302 302 303 - int mac_esp_detect(Scsi_Host_Template * tpnt) 303 + int mac_esp_detect(struct scsi_host_template * tpnt) 304 304 { 305 305 int quick = 0; 306 306 int chipnum, chipspresent = 0; ··· 730 730 #endif 731 731 } 732 732 733 - static Scsi_Host_Template driver_template = { 733 + static struct scsi_host_template driver_template = { 734 734 .proc_name = "mac_esp", 735 735 .name = "Mac 53C9x SCSI", 736 736 .detect = mac_esp_detect,
+3 -3
drivers/scsi/mac_scsi.c
··· 222 222 #endif 223 223 224 224 /* 225 - * Function : int macscsi_detect(Scsi_Host_Template * tpnt) 225 + * Function : int macscsi_detect(struct scsi_host_template * tpnt) 226 226 * 227 227 * Purpose : initializes mac NCR5380 driver based on the 228 228 * command line / compile time port and irq definitions. ··· 233 233 * 234 234 */ 235 235 236 - int macscsi_detect(Scsi_Host_Template * tpnt) 236 + int macscsi_detect(struct scsi_host_template * tpnt) 237 237 { 238 238 static int called = 0; 239 239 int flags = 0; ··· 581 581 582 582 #include "NCR5380.c" 583 583 584 - static Scsi_Host_Template driver_template = { 584 + static struct scsi_host_template driver_template = { 585 585 .proc_name = "Mac5380", 586 586 .proc_info = macscsi_proc_info, 587 587 .name = "Macintosh NCR5380 SCSI",
+2 -2
drivers/scsi/mca_53c9x.c
··· 103 103 static struct ESP_regs eregs; 104 104 105 105 /***************************************************************** Detection */ 106 - static int mca_esp_detect(Scsi_Host_Template *tpnt) 106 + static int mca_esp_detect(struct scsi_host_template *tpnt) 107 107 { 108 108 struct NCR_ESP *esp; 109 109 static int io_port_by_pos[] = MCA_53C9X_IO_PORTS; ··· 444 444 outb(inb(PS2_SYS_CTR) & 0x3f, PS2_SYS_CTR); 445 445 } 446 446 447 - static Scsi_Host_Template driver_template = { 447 + static struct scsi_host_template driver_template = { 448 448 .proc_name = "mca_53c9x", 449 449 .name = "NCR 53c9x SCSI", 450 450 .detect = mca_esp_detect,
+2 -2
drivers/scsi/mvme147.c
··· 64 64 m147_pcc->dma_cntrl = 0; 65 65 } 66 66 67 - int mvme147_detect(Scsi_Host_Template *tpnt) 67 + int mvme147_detect(struct scsi_host_template *tpnt) 68 68 { 69 69 static unsigned char called = 0; 70 70 wd33c93_regs regs; ··· 131 131 132 132 #include "mvme147.h" 133 133 134 - static Scsi_Host_Template driver_template = { 134 + static struct scsi_host_template driver_template = { 135 135 .proc_name = "MVME147", 136 136 .name = "MVME147 built-in SCSI", 137 137 .detect = mvme147_detect,
+1 -1
drivers/scsi/mvme147.h
··· 10 10 11 11 #include <linux/types.h> 12 12 13 - int mvme147_detect(Scsi_Host_Template *); 13 + int mvme147_detect(struct scsi_host_template *); 14 14 int mvme147_release(struct Scsi_Host *); 15 15 const char *wd33c93_info(void); 16 16 int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
+2 -2
drivers/scsi/mvme16x.c
··· 22 22 #include<linux/stat.h> 23 23 24 24 25 - int mvme16x_scsi_detect(Scsi_Host_Template *tpnt) 25 + int mvme16x_scsi_detect(struct scsi_host_template *tpnt) 26 26 { 27 27 static unsigned char called = 0; 28 28 int clock; ··· 62 62 return 0; 63 63 } 64 64 65 - static Scsi_Host_Template driver_template = { 65 + static struct scsi_host_template driver_template = { 66 66 .name = "MVME16x NCR53c710 SCSI", 67 67 .detect = mvme16x_scsi_detect, 68 68 .release = mvme16x_scsi_release,
+1 -1
drivers/scsi/mvme16x.h
··· 3 3 4 4 #include <linux/types.h> 5 5 6 - int mvme16x_scsi_detect(Scsi_Host_Template *); 6 + int mvme16x_scsi_detect(struct scsi_host_template *); 7 7 const char *NCR53c7x0_info(void); 8 8 int NCR53c7xx_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); 9 9 int NCR53c7xx_abort(Scsi_Cmnd *);
+3 -3
drivers/scsi/nsp32.c
··· 198 198 static int __init init_nsp32 (void); 199 199 static void __exit exit_nsp32 (void); 200 200 201 - /* struct Scsi_Host_Template */ 201 + /* struct struct scsi_host_template */ 202 202 #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,73)) 203 203 static int nsp32_proc_info (struct Scsi_Host *, char *, char **, off_t, int, int); 204 204 #else ··· 208 208 #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,73)) 209 209 static int nsp32_detect (struct pci_dev *pdev); 210 210 #else 211 - static int nsp32_detect (Scsi_Host_Template *); 211 + static int nsp32_detect (struct scsi_host_template *); 212 212 #endif 213 213 static int nsp32_queuecommand(struct scsi_cmnd *, 214 214 void (*done)(struct scsi_cmnd *)); ··· 2683 2683 #define DETECT_OK 1 2684 2684 #define DETECT_NG 0 2685 2685 #define PCIDEV (data->Pci) 2686 - static int nsp32_detect(Scsi_Host_Template *sht) 2686 + static int nsp32_detect(struct scsi_host_template *sht) 2687 2687 #endif 2688 2688 { 2689 2689 struct Scsi_Host *host; /* registered host structure */
+2 -2
drivers/scsi/oktagon_esp.c
··· 114 114 */ 115 115 116 116 /***************************************************************** Detection */ 117 - int oktagon_esp_detect(Scsi_Host_Template *tpnt) 117 + int oktagon_esp_detect(struct scsi_host_template *tpnt) 118 118 { 119 119 struct NCR_ESP *esp; 120 120 struct zorro_dev *z = NULL; ··· 585 585 } 586 586 587 587 588 - static Scsi_Host_Template driver_template = { 588 + static struct scsi_host_template driver_template = { 589 589 .proc_name = "esp-oktagon", 590 590 .proc_info = &esp_proc_info, 591 591 .name = "BSC Oktagon SCSI",
+3 -3
drivers/scsi/pas16.c
··· 369 369 } 370 370 371 371 /* 372 - * Function : int pas16_detect(Scsi_Host_Template * tpnt) 372 + * Function : int pas16_detect(struct scsi_host_template * tpnt) 373 373 * 374 374 * Purpose : detects and initializes PAS16 controllers 375 375 * that were autoprobed, overridden on the LILO command line, ··· 381 381 * 382 382 */ 383 383 384 - int __init pas16_detect(Scsi_Host_Template * tpnt) 384 + int __init pas16_detect(struct scsi_host_template * tpnt) 385 385 { 386 386 static int current_override = 0; 387 387 static unsigned short current_base = 0; ··· 615 615 return 0; 616 616 } 617 617 618 - static Scsi_Host_Template driver_template = { 618 + static struct scsi_host_template driver_template = { 619 619 .name = "Pro Audio Spectrum-16 SCSI", 620 620 .detect = pas16_detect, 621 621 .release = pas16_release,
+1 -1
drivers/scsi/pas16.h
··· 117 117 static int pas16_abort(Scsi_Cmnd *); 118 118 static int pas16_biosparam(struct scsi_device *, struct block_device *, 119 119 sector_t, int*); 120 - static int pas16_detect(Scsi_Host_Template *); 120 + static int pas16_detect(struct scsi_host_template *); 121 121 static int pas16_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); 122 122 static int pas16_bus_reset(Scsi_Cmnd *); 123 123
+1 -1
drivers/scsi/pci2000.h
··· 187 187 #endif 188 188 189 189 // function prototypes 190 - int Pci2000_Detect (Scsi_Host_Template *tpnt); 190 + int Pci2000_Detect (struct scsi_host_template *tpnt); 191 191 int Pci2000_Command (Scsi_Cmnd *SCpnt); 192 192 int Pci2000_QueueCommand (Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *)); 193 193 int Pci2000_Abort (Scsi_Cmnd *SCpnt);
+3 -3
drivers/scsi/pcmcia/nsp_cs.c
··· 81 81 MODULE_PARM_DESC(free_ports, "Release IO ports after configuration? (default: 0 (=no))"); 82 82 83 83 /* /usr/src/linux/drivers/scsi/hosts.h */ 84 - static Scsi_Host_Template nsp_driver_template = { 84 + static struct scsi_host_template nsp_driver_template = { 85 85 .proc_name = "nsp_cs", 86 86 .proc_info = nsp_proc_info, 87 87 .name = "WorkBit NinjaSCSI-3/32Bi(16bit)", ··· 1310 1310 /*----------------------------------------------------------------*/ 1311 1311 /* look for ninja3 card and init if found */ 1312 1312 /*----------------------------------------------------------------*/ 1313 - static struct Scsi_Host *nsp_detect(Scsi_Host_Template *sht) 1313 + static struct Scsi_Host *nsp_detect(struct scsi_host_template *sht) 1314 1314 { 1315 1315 struct Scsi_Host *host; /* registered host structure */ 1316 1316 nsp_hw_data *data_b = &nsp_data_base, *data; ··· 1358 1358 } 1359 1359 1360 1360 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) 1361 - static int nsp_detect_old(Scsi_Host_Template *sht) 1361 + static int nsp_detect_old(struct scsi_host_template *sht) 1362 1362 { 1363 1363 if (nsp_detect(sht) == NULL) { 1364 1364 return 0;
+3 -3
drivers/scsi/pcmcia/nsp_cs.h
··· 303 303 static int nsp_cs_event (event_t event, int priority, event_callback_args_t *args); 304 304 305 305 /* Linux SCSI subsystem specific functions */ 306 - static struct Scsi_Host *nsp_detect (Scsi_Host_Template *sht); 306 + static struct Scsi_Host *nsp_detect (struct scsi_host_template *sht); 307 307 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) 308 - static int nsp_detect_old (Scsi_Host_Template *sht); 308 + static int nsp_detect_old (struct scsi_host_template *sht); 309 309 static int nsp_release_old(struct Scsi_Host *shpnt); 310 310 #endif 311 311 static const char *nsp_info (struct Scsi_Host *shpnt); ··· 345 345 static int nsp_xfer (Scsi_Cmnd *SCpnt, int phase); 346 346 static int nsp_dataphase_bypass (Scsi_Cmnd *SCpnt); 347 347 static int nsp_reselected (Scsi_Cmnd *SCpnt); 348 - static struct Scsi_Host *nsp_detect(Scsi_Host_Template *sht); 348 + static struct Scsi_Host *nsp_detect(struct scsi_host_template *sht); 349 349 350 350 /* Interrupt handler */ 351 351 //static irqreturn_t nspintr(int irq, void *dev_id, struct pt_regs *regs);
+2 -2
drivers/scsi/pcmcia/qlogic_stub.c
··· 72 72 #define DEBUG(n, args...) 73 73 #endif 74 74 75 - static Scsi_Host_Template qlogicfas_driver_template = { 75 + static struct scsi_host_template qlogicfas_driver_template = { 76 76 .module = THIS_MODULE, 77 77 .name = qlogic_name, 78 78 .proc_name = qlogic_name, ··· 108 108 109 109 static dev_info_t dev_info = "qlogic_cs"; 110 110 111 - static struct Scsi_Host *qlogic_detect(Scsi_Host_Template *host, 111 + static struct Scsi_Host *qlogic_detect(struct scsi_host_template *host, 112 112 dev_link_t *link, int qbase, int qlirq) 113 113 { 114 114 int qltyp; /* type of chip */
+1 -1
drivers/scsi/pdc_adma.c
··· 139 139 static void adma_irq_clear(struct ata_port *ap); 140 140 static void adma_eng_timeout(struct ata_port *ap); 141 141 142 - static Scsi_Host_Template adma_ata_sht = { 142 + static struct scsi_host_template adma_ata_sht = { 143 143 .module = THIS_MODULE, 144 144 .name = DRV_NAME, 145 145 .ioctl = ata_scsi_ioctl,
+2 -2
drivers/scsi/pluto.c
··· 90 90 91 91 /* Detect all SSAs attached to the machine. 92 92 To be fast, do it on all online FC channels at the same time. */ 93 - int __init pluto_detect(Scsi_Host_Template *tpnt) 93 + int __init pluto_detect(struct scsi_host_template *tpnt) 94 94 { 95 95 int i, retry, nplutos; 96 96 fc_channel *fc; ··· 339 339 return 0; 340 340 } 341 341 342 - static Scsi_Host_Template driver_template = { 342 + static struct scsi_host_template driver_template = { 343 343 .name = "Sparc Storage Array 100/200", 344 344 .detect = pluto_detect, 345 345 .release = pluto_release,
+1 -1
drivers/scsi/pluto.h
··· 38 38 /* This is the max number of outstanding SCSI commands per pluto */ 39 39 #define PLUTO_CAN_QUEUE 254 40 40 41 - int pluto_detect(Scsi_Host_Template *); 41 + int pluto_detect(struct scsi_host_template *); 42 42 int pluto_release(struct Scsi_Host *); 43 43 const char * pluto_info(struct Scsi_Host *); 44 44 int pluto_slave_configure(Scsi_Device *);
+2 -2
drivers/scsi/psi240i.c
··· 538 538 * Returns: Number of adapters found. 539 539 * 540 540 ****************************************************************/ 541 - static int Psi240i_Detect (Scsi_Host_Template *tpnt) 541 + static int Psi240i_Detect (struct scsi_host_template *tpnt) 542 542 { 543 543 int board; 544 544 int count = 0; ··· 669 669 670 670 MODULE_LICENSE("GPL"); 671 671 672 - static Scsi_Host_Template driver_template = { 672 + static struct scsi_host_template driver_template = { 673 673 .proc_name = "psi240i", 674 674 .name = "PSI-240I EIDE Disk Controller", 675 675 .detect = Psi240i_Detect,
+3 -3
drivers/scsi/qla1280.c
··· 465 465 } 466 466 device->queue_depth = depth; 467 467 } 468 - static inline struct Scsi_Host *scsi_host_alloc(Scsi_Host_Template *t, size_t s) 468 + static inline struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *t, size_t s) 469 469 { 470 470 return scsi_register(t, s); 471 471 } ··· 1175 1175 1176 1176 #if LINUX_VERSION_CODE < 0x020600 1177 1177 static int 1178 - qla1280_detect(Scsi_Host_Template *template) 1178 + qla1280_detect(struct scsi_host_template *template) 1179 1179 { 1180 1180 struct pci_device_id *id = &qla1280_pci_tbl[0]; 1181 1181 struct pci_dev *pdev = NULL; ··· 4505 4505 .use_clustering = ENABLE_CLUSTERING, 4506 4506 }; 4507 4507 #else 4508 - static Scsi_Host_Template qla1280_driver_template = { 4508 + static struct scsi_host_template qla1280_driver_template = { 4509 4509 .proc_name = "qla1280", 4510 4510 .name = "Qlogic ISP 1280/12160", 4511 4511 .detect = qla1280_detect,
+3 -3
drivers/scsi/qlogicfas.c
··· 47 47 * Look for qlogic card and init if found 48 48 */ 49 49 50 - static struct Scsi_Host *__qlogicfas_detect(Scsi_Host_Template *host, 50 + static struct Scsi_Host *__qlogicfas_detect(struct scsi_host_template *host, 51 51 int qbase, 52 52 int qlirq) 53 53 { ··· 142 142 MODULE_PARM_DESC(iobase, "I/O address"); 143 143 MODULE_PARM_DESC(irq, "IRQ"); 144 144 145 - static int __devinit qlogicfas_detect(Scsi_Host_Template *sht) 145 + static int __devinit qlogicfas_detect(struct scsi_host_template *sht) 146 146 { 147 147 struct Scsi_Host *shost; 148 148 struct qlogicfas408_priv *priv; ··· 183 183 /* 184 184 * The driver template is also needed for PCMCIA 185 185 */ 186 - static Scsi_Host_Template qlogicfas_driver_template = { 186 + static struct scsi_host_template qlogicfas_driver_template = { 187 187 .module = THIS_MODULE, 188 188 .name = qlogicfas_name, 189 189 .proc_name = qlogicfas_name,
+2 -2
drivers/scsi/qlogicfc.c
··· 711 711 } 712 712 713 713 714 - static int isp2x00_detect(Scsi_Host_Template * tmpt) 714 + static int isp2x00_detect(struct scsi_host_template * tmpt) 715 715 { 716 716 int hosts = 0; 717 717 unsigned long wait_time; ··· 2210 2210 2211 2211 MODULE_LICENSE("GPL"); 2212 2212 2213 - static Scsi_Host_Template driver_template = { 2213 + static struct scsi_host_template driver_template = { 2214 2214 .detect = isp2x00_detect, 2215 2215 .release = isp2x00_release, 2216 2216 .info = isp2x00_info,
+1 -1
drivers/scsi/sata_mv.c
··· 270 270 static void mv_eng_timeout(struct ata_port *ap); 271 271 static int mv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent); 272 272 273 - static Scsi_Host_Template mv_sht = { 273 + static struct scsi_host_template mv_sht = { 274 274 .module = THIS_MODULE, 275 275 .name = DRV_NAME, 276 276 .ioctl = ata_scsi_ioctl,
+1 -1
drivers/scsi/sata_nv.c
··· 219 219 .remove = ata_pci_remove_one, 220 220 }; 221 221 222 - static Scsi_Host_Template nv_sht = { 222 + static struct scsi_host_template nv_sht = { 223 223 .module = THIS_MODULE, 224 224 .name = DRV_NAME, 225 225 .ioctl = ata_scsi_ioctl,
+1 -1
drivers/scsi/sata_promise.c
··· 94 94 static int pdc_qc_issue_prot(struct ata_queued_cmd *qc); 95 95 96 96 97 - static Scsi_Host_Template pdc_ata_sht = { 97 + static struct scsi_host_template pdc_ata_sht = { 98 98 .module = THIS_MODULE, 99 99 .name = DRV_NAME, 100 100 .ioctl = ata_scsi_ioctl,
+1 -1
drivers/scsi/sata_qstor.c
··· 128 128 static void qs_irq_clear(struct ata_port *ap); 129 129 static void qs_eng_timeout(struct ata_port *ap); 130 130 131 - static Scsi_Host_Template qs_ata_sht = { 131 + static struct scsi_host_template qs_ata_sht = { 132 132 .module = THIS_MODULE, 133 133 .name = DRV_NAME, 134 134 .ioctl = ata_scsi_ioctl,
+1 -1
drivers/scsi/sata_sil.c
··· 131 131 .remove = ata_pci_remove_one, 132 132 }; 133 133 134 - static Scsi_Host_Template sil_sht = { 134 + static struct scsi_host_template sil_sht = { 135 135 .module = THIS_MODULE, 136 136 .name = DRV_NAME, 137 137 .ioctl = ata_scsi_ioctl,
+1 -1
drivers/scsi/sata_sil24.c
··· 255 255 .remove = ata_pci_remove_one, /* safe? */ 256 256 }; 257 257 258 - static Scsi_Host_Template sil24_sht = { 258 + static struct scsi_host_template sil24_sht = { 259 259 .module = THIS_MODULE, 260 260 .name = DRV_NAME, 261 261 .ioctl = ata_scsi_ioctl,
+1 -1
drivers/scsi/sata_sis.c
··· 83 83 .remove = ata_pci_remove_one, 84 84 }; 85 85 86 - static Scsi_Host_Template sis_sht = { 86 + static struct scsi_host_template sis_sht = { 87 87 .module = THIS_MODULE, 88 88 .name = DRV_NAME, 89 89 .ioctl = ata_scsi_ioctl,
+1 -1
drivers/scsi/sata_svw.c
··· 284 284 #endif /* CONFIG_PPC_OF */ 285 285 286 286 287 - static Scsi_Host_Template k2_sata_sht = { 287 + static struct scsi_host_template k2_sata_sht = { 288 288 .module = THIS_MODULE, 289 289 .name = DRV_NAME, 290 290 .ioctl = ata_scsi_ioctl,
+1 -1
drivers/scsi/sata_sx4.c
··· 177 177 static int pdc20621_qc_issue_prot(struct ata_queued_cmd *qc); 178 178 179 179 180 - static Scsi_Host_Template pdc_sata_sht = { 180 + static struct scsi_host_template pdc_sata_sht = { 181 181 .module = THIS_MODULE, 182 182 .name = DRV_NAME, 183 183 .ioctl = ata_scsi_ioctl,
+1 -1
drivers/scsi/sata_uli.c
··· 71 71 .remove = ata_pci_remove_one, 72 72 }; 73 73 74 - static Scsi_Host_Template uli_sht = { 74 + static struct scsi_host_template uli_sht = { 75 75 .module = THIS_MODULE, 76 76 .name = DRV_NAME, 77 77 .ioctl = ata_scsi_ioctl,
+1 -1
drivers/scsi/sata_via.c
··· 90 90 .remove = ata_pci_remove_one, 91 91 }; 92 92 93 - static Scsi_Host_Template svia_sht = { 93 + static struct scsi_host_template svia_sht = { 94 94 .module = THIS_MODULE, 95 95 .name = DRV_NAME, 96 96 .ioctl = ata_scsi_ioctl,
+1 -1
drivers/scsi/sata_vsc.c
··· 219 219 } 220 220 221 221 222 - static Scsi_Host_Template vsc_sata_sht = { 222 + static struct scsi_host_template vsc_sata_sht = { 223 223 .module = THIS_MODULE, 224 224 .name = DRV_NAME, 225 225 .ioctl = ata_scsi_ioctl,
+1 -1
drivers/scsi/scsi_debug.c
··· 182 182 }; 183 183 static struct sdebug_queued_cmd queued_arr[SCSI_DEBUG_CANQUEUE]; 184 184 185 - static Scsi_Host_Template sdebug_driver_template = { 185 + static struct scsi_host_template sdebug_driver_template = { 186 186 .proc_info = scsi_debug_proc_info, 187 187 .name = "SCSI DEBUG", 188 188 .info = scsi_debug_info,
-1
drivers/scsi/scsi_typedefs.h
··· 1 1 2 - typedef struct scsi_host_template Scsi_Host_Template; 3 2 typedef struct scsi_device Scsi_Device; 4 3 typedef struct scsi_cmnd Scsi_Cmnd; 5 4 typedef struct scsi_request Scsi_Request;
+2 -2
drivers/scsi/seagate.c
··· 418 418 #define ULOOP( i ) for (clock = i*8;;) 419 419 #define TIMEOUT (!(clock--)) 420 420 421 - int __init seagate_st0x_detect (Scsi_Host_Template * tpnt) 421 + int __init seagate_st0x_detect (struct scsi_host_template * tpnt) 422 422 { 423 423 struct Scsi_Host *instance; 424 424 int i, j; ··· 1649 1649 return 0; 1650 1650 } 1651 1651 1652 - static Scsi_Host_Template driver_template = { 1652 + static struct scsi_host_template driver_template = { 1653 1653 .detect = seagate_st0x_detect, 1654 1654 .release = seagate_st0x_release, 1655 1655 .info = seagate_st0x_info,
+1 -1
drivers/scsi/seagate.h
··· 9 9 #ifndef _SEAGATE_H 10 10 #define SEAGATE_H 11 11 12 - static int seagate_st0x_detect(Scsi_Host_Template *); 12 + static int seagate_st0x_detect(struct scsi_host_template *); 13 13 static int seagate_st0x_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); 14 14 15 15 static int seagate_st0x_abort(Scsi_Cmnd *);
+3 -3
drivers/scsi/sgiwd93.c
··· 218 218 } 219 219 220 220 static struct Scsi_Host * __init sgiwd93_setup_scsi( 221 - Scsi_Host_Template *SGIblows, int unit, int irq, 221 + struct scsi_host_template *SGIblows, int unit, int irq, 222 222 struct hpc3_scsiregs *hregs, unsigned char *wdregs) 223 223 { 224 224 struct ip22_hostdata *hdata; ··· 266 266 return NULL; 267 267 } 268 268 269 - int __init sgiwd93_detect(Scsi_Host_Template *SGIblows) 269 + int __init sgiwd93_detect(struct scsi_host_template *SGIblows) 270 270 { 271 271 int found = 0; 272 272 ··· 325 325 * arguments not with pointers. So this is going to blow up beautyfully 326 326 * on 64-bit systems with memory outside the compat address spaces. 327 327 */ 328 - static Scsi_Host_Template driver_template = { 328 + static struct scsi_host_template driver_template = { 329 329 .proc_name = "SGIWD93", 330 330 .name = "SGI WD93", 331 331 .detect = sgiwd93_detect,
+1 -1
drivers/scsi/sun3_NCR5380.c
··· 257 257 */ 258 258 259 259 static struct Scsi_Host *first_instance = NULL; 260 - static Scsi_Host_Template *the_template = NULL; 260 + static struct scsi_host_template *the_template = NULL; 261 261 262 262 /* Macros ease life... :-) */ 263 263 #define SETUP_HOSTDATA(in) \
+3 -3
drivers/scsi/sun3_scsi.c
··· 185 185 static struct Scsi_Host *default_instance; 186 186 187 187 /* 188 - * Function : int sun3scsi_detect(Scsi_Host_Template * tpnt) 188 + * Function : int sun3scsi_detect(struct scsi_host_template * tpnt) 189 189 * 190 190 * Purpose : initializes mac NCR5380 driver based on the 191 191 * command line / compile time port and irq definitions. ··· 196 196 * 197 197 */ 198 198 199 - int sun3scsi_detect(Scsi_Host_Template * tpnt) 199 + int sun3scsi_detect(struct scsi_host_template * tpnt) 200 200 { 201 201 unsigned long ioaddr; 202 202 static int called = 0; ··· 621 621 622 622 #include "sun3_NCR5380.c" 623 623 624 - static Scsi_Host_Template driver_template = { 624 + static struct scsi_host_template driver_template = { 625 625 .name = SUN3_SCSI_NAME, 626 626 .detect = sun3scsi_detect, 627 627 .release = sun3scsi_release,
+1 -1
drivers/scsi/sun3_scsi.h
··· 48 48 #define IOBASE_SUN3_VMESCSI 0xff200000 49 49 50 50 static int sun3scsi_abort (Scsi_Cmnd *); 51 - static int sun3scsi_detect (Scsi_Host_Template *); 51 + static int sun3scsi_detect (struct scsi_host_template *); 52 52 static const char *sun3scsi_info (struct Scsi_Host *); 53 53 static int sun3scsi_bus_reset(Scsi_Cmnd *); 54 54 static int sun3scsi_queue_command (Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
+3 -3
drivers/scsi/sun3_scsi_vme.c
··· 127 127 static struct Scsi_Host *default_instance; 128 128 129 129 /* 130 - * Function : int sun3scsi_detect(Scsi_Host_Template * tpnt) 130 + * Function : int sun3scsi_detect(struct scsi_host_template * tpnt) 131 131 * 132 132 * Purpose : initializes mac NCR5380 driver based on the 133 133 * command line / compile time port and irq definitions. ··· 138 138 * 139 139 */ 140 140 141 - static int sun3scsi_detect(Scsi_Host_Template * tpnt) 141 + static int sun3scsi_detect(struct scsi_host_template * tpnt) 142 142 { 143 143 unsigned long ioaddr, irq = 0; 144 144 static int called = 0; ··· 564 564 565 565 #include "sun3_NCR5380.c" 566 566 567 - static Scsi_Host_Template driver_template = { 567 + static struct scsi_host_template driver_template = { 568 568 .name = SUN3_SCSI_NAME, 569 569 .detect = sun3scsi_detect, 570 570 .release = sun3scsi_release,
+2 -2
drivers/scsi/sun3x_esp.c
··· 47 47 /* Detecting ESP chips on the machine. This is the simple and easy 48 48 * version. 49 49 */ 50 - int sun3x_esp_detect(Scsi_Host_Template *tpnt) 50 + int sun3x_esp_detect(struct scsi_host_template *tpnt) 51 51 { 52 52 struct NCR_ESP *esp; 53 53 struct ConfigDev *esp_dev; ··· 367 367 368 368 } 369 369 370 - static Scsi_Host_Template driver_template = { 370 + static struct scsi_host_template driver_template = { 371 371 .proc_name = "sun3x_esp", 372 372 .proc_info = &esp_proc_info, 373 373 .name = "Sun ESP 100/100a/200",
+2 -2
drivers/scsi/sym53c416.c
··· 633 633 } 634 634 } 635 635 636 - int __init sym53c416_detect(Scsi_Host_Template *tpnt) 636 + int __init sym53c416_detect(struct scsi_host_template *tpnt) 637 637 { 638 638 unsigned long flags; 639 639 struct Scsi_Host * shpnt = NULL; ··· 849 849 850 850 #endif 851 851 852 - static Scsi_Host_Template driver_template = { 852 + static struct scsi_host_template driver_template = { 853 853 .proc_name = "sym53c416", 854 854 .name = "Symbios Logic 53c416", 855 855 .detect = sym53c416_detect,
+1 -1
drivers/scsi/sym53c416.h
··· 22 22 23 23 #define SYM53C416_SCSI_ID 7 24 24 25 - static int sym53c416_detect(Scsi_Host_Template *); 25 + static int sym53c416_detect(struct scsi_host_template *); 26 26 static const char *sym53c416_info(struct Scsi_Host *); 27 27 static int sym53c416_release(struct Scsi_Host *); 28 28 static int sym53c416_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
+3 -3
drivers/scsi/t128.c
··· 183 183 } 184 184 185 185 /* 186 - * Function : int t128_detect(Scsi_Host_Template * tpnt) 186 + * Function : int t128_detect(struct scsi_host_template * tpnt) 187 187 * 188 188 * Purpose : detects and initializes T128,T128F, or T228 controllers 189 189 * that were autoprobed, overridden on the LILO command line, ··· 195 195 * 196 196 */ 197 197 198 - int __init t128_detect(Scsi_Host_Template * tpnt){ 198 + int __init t128_detect(struct scsi_host_template * tpnt){ 199 199 static int current_override = 0, current_base = 0; 200 200 struct Scsi_Host *instance; 201 201 unsigned long base; ··· 430 430 431 431 #include "NCR5380.c" 432 432 433 - static Scsi_Host_Template driver_template = { 433 + static struct scsi_host_template driver_template = { 434 434 .name = "Trantor T128/T128F/T228", 435 435 .detect = t128_detect, 436 436 .release = t128_release,
+1 -1
drivers/scsi/t128.h
··· 95 95 static int t128_abort(Scsi_Cmnd *); 96 96 static int t128_biosparam(struct scsi_device *, struct block_device *, 97 97 sector_t, int*); 98 - static int t128_detect(Scsi_Host_Template *); 98 + static int t128_detect(struct scsi_host_template *); 99 99 static int t128_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); 100 100 static int t128_bus_reset(Scsi_Cmnd *); 101 101
+1 -1
drivers/scsi/u14-34f.c
··· 282 282 * clustering is enabled. ENABLE_CLUSTERING provides a performance increase 283 283 * up to 50% on sequential access. 284 284 * 285 - * Since the Scsi_Host_Template structure is shared among all 14F and 34F, 285 + * Since the struct scsi_host_template structure is shared among all 14F and 34F, 286 286 * the last setting of use_clustering is in effect for all of these boards. 287 287 * 288 288 * Here a sample configuration using two U14F boards:
+4 -4
drivers/scsi/ultrastor.c
··· 343 343 } 344 344 #endif 345 345 346 - static int ultrastor_14f_detect(Scsi_Host_Template * tpnt) 346 + static int ultrastor_14f_detect(struct scsi_host_template * tpnt) 347 347 { 348 348 size_t i; 349 349 unsigned char in_byte, version_byte = 0; ··· 525 525 return FALSE; 526 526 } 527 527 528 - static int ultrastor_24f_detect(Scsi_Host_Template * tpnt) 528 + static int ultrastor_24f_detect(struct scsi_host_template * tpnt) 529 529 { 530 530 int i; 531 531 struct Scsi_Host * shpnt = NULL; ··· 637 637 return FALSE; 638 638 } 639 639 640 - static int ultrastor_detect(Scsi_Host_Template * tpnt) 640 + static int ultrastor_detect(struct scsi_host_template * tpnt) 641 641 { 642 642 tpnt->proc_name = "ultrastor"; 643 643 return ultrastor_14f_detect(tpnt) || ultrastor_24f_detect(tpnt); ··· 1184 1184 1185 1185 MODULE_LICENSE("GPL"); 1186 1186 1187 - static Scsi_Host_Template driver_template = { 1187 + static struct scsi_host_template driver_template = { 1188 1188 .name = "UltraStor 14F/24F/34F", 1189 1189 .detect = ultrastor_detect, 1190 1190 .release = ultrastor_release,
+1 -1
drivers/scsi/ultrastor.h
··· 13 13 #ifndef _ULTRASTOR_H 14 14 #define _ULTRASTOR_H 15 15 16 - static int ultrastor_detect(Scsi_Host_Template *); 16 + static int ultrastor_detect(struct scsi_host_template *); 17 17 static const char *ultrastor_info(struct Scsi_Host * shpnt); 18 18 static int ultrastor_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); 19 19 static int ultrastor_abort(Scsi_Cmnd *);
+1 -1
drivers/usb/image/microtek.c
··· 632 632 return err; 633 633 } 634 634 635 - static Scsi_Host_Template mts_scsi_host_template = { 635 + static struct scsi_host_template mts_scsi_host_template = { 636 636 .module = THIS_MODULE, 637 637 .name = "microtekX6", 638 638 .proc_name = "microtekX6",
+3 -3
include/linux/libata.h
··· 214 214 struct list_head node; 215 215 struct device *dev; 216 216 const struct ata_port_operations *port_ops; 217 - Scsi_Host_Template *sht; 217 + struct scsi_host_template *sht; 218 218 struct ata_ioports port[ATA_MAX_PORTS]; 219 219 unsigned int n_ports; 220 220 unsigned int hard_port_no; ··· 398 398 }; 399 399 400 400 struct ata_port_info { 401 - Scsi_Host_Template *sht; 401 + struct scsi_host_template *sht; 402 402 unsigned long host_flags; 403 403 unsigned long pio_mask; 404 404 unsigned long mwdma_mask; ··· 433 433 #endif /* CONFIG_PCI */ 434 434 extern int ata_device_add(const struct ata_probe_ent *ent); 435 435 extern void ata_host_set_remove(struct ata_host_set *host_set); 436 - extern int ata_scsi_detect(Scsi_Host_Template *sht); 436 + extern int ata_scsi_detect(struct scsi_host_template *sht); 437 437 extern int ata_scsi_ioctl(struct scsi_device *dev, int cmd, void __user *arg); 438 438 extern int ata_scsi_queuecmd(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *)); 439 439 extern int ata_scsi_error(struct Scsi_Host *host);