diff options
author | Christoph Hellwig <hch@lst.de> | 2005-05-16 12:52:39 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-05-20 16:54:38 -0400 |
commit | 013791ee01754f83dbb4ccfd266381db74e120b5 (patch) | |
tree | ee111c4f8d5e6e2664a34ab8d730e2ecb25d894e /drivers/scsi/aic7xxx/aic7xxx_osm.c | |
parent | 7dfa0f2673c17334c5de75a449f7bc161c9bd2c0 (diff) |
[SCSI] aic7xxx: remove usage of obsolete typedefs
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aic7xxx/aic7xxx_osm.c')
-rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx_osm.c | 52 |
1 files changed, 18 insertions, 34 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c index 717401b26b6f..ff2a212c6e9c 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_osm.c +++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c | |||
@@ -426,12 +426,12 @@ static void ahc_linux_handle_scsi_status(struct ahc_softc *, | |||
426 | struct ahc_linux_device *, | 426 | struct ahc_linux_device *, |
427 | struct scb *); | 427 | struct scb *); |
428 | static void ahc_linux_queue_cmd_complete(struct ahc_softc *ahc, | 428 | static void ahc_linux_queue_cmd_complete(struct ahc_softc *ahc, |
429 | Scsi_Cmnd *cmd); | 429 | struct scsi_cmnd *cmd); |
430 | static void ahc_linux_sem_timeout(u_long arg); | 430 | static void ahc_linux_sem_timeout(u_long arg); |
431 | static void ahc_linux_freeze_simq(struct ahc_softc *ahc); | 431 | static void ahc_linux_freeze_simq(struct ahc_softc *ahc); |
432 | static void ahc_linux_release_simq(u_long arg); | 432 | static void ahc_linux_release_simq(u_long arg); |
433 | static void ahc_linux_dev_timed_unfreeze(u_long arg); | 433 | static void ahc_linux_dev_timed_unfreeze(u_long arg); |
434 | static int ahc_linux_queue_recovery_cmd(Scsi_Cmnd *cmd, scb_flag flag); | 434 | static int ahc_linux_queue_recovery_cmd(struct scsi_cmnd *cmd, scb_flag flag); |
435 | static void ahc_linux_initialize_scsi_bus(struct ahc_softc *ahc); | 435 | static void ahc_linux_initialize_scsi_bus(struct ahc_softc *ahc); |
436 | static void ahc_linux_thread_run_complete_queue(struct ahc_softc *ahc); | 436 | static void ahc_linux_thread_run_complete_queue(struct ahc_softc *ahc); |
437 | static u_int ahc_linux_user_tagdepth(struct ahc_softc *ahc, | 437 | static u_int ahc_linux_user_tagdepth(struct ahc_softc *ahc, |
@@ -512,7 +512,7 @@ ahc_linux_run_complete_queue(struct ahc_softc *ahc) | |||
512 | 512 | ||
513 | with_errors = 0; | 513 | with_errors = 0; |
514 | while ((acmd = TAILQ_FIRST(&ahc->platform_data->completeq)) != NULL) { | 514 | while ((acmd = TAILQ_FIRST(&ahc->platform_data->completeq)) != NULL) { |
515 | Scsi_Cmnd *cmd; | 515 | struct scsi_cmnd *cmd; |
516 | 516 | ||
517 | if (with_errors > AHC_LINUX_MAX_RETURNED_ERRORS) { | 517 | if (with_errors > AHC_LINUX_MAX_RETURNED_ERRORS) { |
518 | /* | 518 | /* |
@@ -542,7 +542,7 @@ ahc_linux_run_complete_queue(struct ahc_softc *ahc) | |||
542 | static __inline void | 542 | static __inline void |
543 | ahc_linux_unmap_scb(struct ahc_softc *ahc, struct scb *scb) | 543 | ahc_linux_unmap_scb(struct ahc_softc *ahc, struct scb *scb) |
544 | { | 544 | { |
545 | Scsi_Cmnd *cmd; | 545 | struct scsi_cmnd *cmd; |
546 | 546 | ||
547 | cmd = scb->io_ctx; | 547 | cmd = scb->io_ctx; |
548 | ahc_sync_sglist(ahc, scb, BUS_DMASYNC_POSTWRITE); | 548 | ahc_sync_sglist(ahc, scb, BUS_DMASYNC_POSTWRITE); |
@@ -582,27 +582,11 @@ ahc_linux_map_seg(struct ahc_softc *ahc, struct scb *scb, | |||
582 | return (consumed); | 582 | return (consumed); |
583 | } | 583 | } |
584 | 584 | ||
585 | /************************ Host template entry points *************************/ | ||
586 | static int ahc_linux_detect(Scsi_Host_Template *); | ||
587 | static int ahc_linux_queue(Scsi_Cmnd *, void (*)(Scsi_Cmnd *)); | ||
588 | static const char *ahc_linux_info(struct Scsi_Host *); | ||
589 | static int ahc_linux_slave_alloc(Scsi_Device *); | ||
590 | static int ahc_linux_slave_configure(Scsi_Device *); | ||
591 | static void ahc_linux_slave_destroy(Scsi_Device *); | ||
592 | #if defined(__i386__) | ||
593 | static int ahc_linux_biosparam(struct scsi_device*, | ||
594 | struct block_device*, | ||
595 | sector_t, int[]); | ||
596 | #endif | ||
597 | static int ahc_linux_bus_reset(Scsi_Cmnd *); | ||
598 | static int ahc_linux_dev_reset(Scsi_Cmnd *); | ||
599 | static int ahc_linux_abort(Scsi_Cmnd *); | ||
600 | |||
601 | /* | 585 | /* |
602 | * Try to detect an Adaptec 7XXX controller. | 586 | * Try to detect an Adaptec 7XXX controller. |
603 | */ | 587 | */ |
604 | static int | 588 | static int |
605 | ahc_linux_detect(Scsi_Host_Template *template) | 589 | ahc_linux_detect(struct scsi_host_template *template) |
606 | { | 590 | { |
607 | struct ahc_softc *ahc; | 591 | struct ahc_softc *ahc; |
608 | int found = 0; | 592 | int found = 0; |
@@ -683,7 +667,7 @@ ahc_linux_info(struct Scsi_Host *host) | |||
683 | * Queue an SCB to the controller. | 667 | * Queue an SCB to the controller. |
684 | */ | 668 | */ |
685 | static int | 669 | static int |
686 | ahc_linux_queue(Scsi_Cmnd * cmd, void (*scsi_done) (Scsi_Cmnd *)) | 670 | ahc_linux_queue(struct scsi_cmnd * cmd, void (*scsi_done) (struct scsi_cmnd *)) |
687 | { | 671 | { |
688 | struct ahc_softc *ahc; | 672 | struct ahc_softc *ahc; |
689 | struct ahc_linux_device *dev; | 673 | struct ahc_linux_device *dev; |
@@ -714,7 +698,7 @@ ahc_linux_queue(Scsi_Cmnd * cmd, void (*scsi_done) (Scsi_Cmnd *)) | |||
714 | } | 698 | } |
715 | 699 | ||
716 | static int | 700 | static int |
717 | ahc_linux_slave_alloc(Scsi_Device *device) | 701 | ahc_linux_slave_alloc(struct scsi_device *device) |
718 | { | 702 | { |
719 | struct ahc_softc *ahc; | 703 | struct ahc_softc *ahc; |
720 | 704 | ||
@@ -725,7 +709,7 @@ ahc_linux_slave_alloc(Scsi_Device *device) | |||
725 | } | 709 | } |
726 | 710 | ||
727 | static int | 711 | static int |
728 | ahc_linux_slave_configure(Scsi_Device *device) | 712 | ahc_linux_slave_configure(struct scsi_device *device) |
729 | { | 713 | { |
730 | struct ahc_softc *ahc; | 714 | struct ahc_softc *ahc; |
731 | struct ahc_linux_device *dev; | 715 | struct ahc_linux_device *dev; |
@@ -755,7 +739,7 @@ ahc_linux_slave_configure(Scsi_Device *device) | |||
755 | } | 739 | } |
756 | 740 | ||
757 | static void | 741 | static void |
758 | ahc_linux_slave_destroy(Scsi_Device *device) | 742 | ahc_linux_slave_destroy(struct scsi_device *device) |
759 | { | 743 | { |
760 | struct ahc_softc *ahc; | 744 | struct ahc_softc *ahc; |
761 | struct ahc_linux_device *dev; | 745 | struct ahc_linux_device *dev; |
@@ -836,7 +820,7 @@ ahc_linux_biosparam(struct scsi_device *sdev, struct block_device *bdev, | |||
836 | * Abort the current SCSI command(s). | 820 | * Abort the current SCSI command(s). |
837 | */ | 821 | */ |
838 | static int | 822 | static int |
839 | ahc_linux_abort(Scsi_Cmnd *cmd) | 823 | ahc_linux_abort(struct scsi_cmnd *cmd) |
840 | { | 824 | { |
841 | int error; | 825 | int error; |
842 | 826 | ||
@@ -850,7 +834,7 @@ ahc_linux_abort(Scsi_Cmnd *cmd) | |||
850 | * Attempt to send a target reset message to the device that timed out. | 834 | * Attempt to send a target reset message to the device that timed out. |
851 | */ | 835 | */ |
852 | static int | 836 | static int |
853 | ahc_linux_dev_reset(Scsi_Cmnd *cmd) | 837 | ahc_linux_dev_reset(struct scsi_cmnd *cmd) |
854 | { | 838 | { |
855 | int error; | 839 | int error; |
856 | 840 | ||
@@ -864,7 +848,7 @@ ahc_linux_dev_reset(Scsi_Cmnd *cmd) | |||
864 | * Reset the SCSI bus. | 848 | * Reset the SCSI bus. |
865 | */ | 849 | */ |
866 | static int | 850 | static int |
867 | ahc_linux_bus_reset(Scsi_Cmnd *cmd) | 851 | ahc_linux_bus_reset(struct scsi_cmnd *cmd) |
868 | { | 852 | { |
869 | struct ahc_softc *ahc; | 853 | struct ahc_softc *ahc; |
870 | int found; | 854 | int found; |
@@ -881,7 +865,7 @@ ahc_linux_bus_reset(Scsi_Cmnd *cmd) | |||
881 | return SUCCESS; | 865 | return SUCCESS; |
882 | } | 866 | } |
883 | 867 | ||
884 | Scsi_Host_Template aic7xxx_driver_template = { | 868 | struct scsi_host_template aic7xxx_driver_template = { |
885 | .module = THIS_MODULE, | 869 | .module = THIS_MODULE, |
886 | .name = "aic7xxx", | 870 | .name = "aic7xxx", |
887 | .proc_info = ahc_linux_proc_info, | 871 | .proc_info = ahc_linux_proc_info, |
@@ -1189,7 +1173,7 @@ __setup("aic7xxx=", aic7xxx_setup); | |||
1189 | uint32_t aic7xxx_verbose; | 1173 | uint32_t aic7xxx_verbose; |
1190 | 1174 | ||
1191 | int | 1175 | int |
1192 | ahc_linux_register_host(struct ahc_softc *ahc, Scsi_Host_Template *template) | 1176 | ahc_linux_register_host(struct ahc_softc *ahc, struct scsi_host_template *template) |
1193 | { | 1177 | { |
1194 | char buf[80]; | 1178 | char buf[80]; |
1195 | struct Scsi_Host *host; | 1179 | struct Scsi_Host *host; |
@@ -2017,7 +2001,7 @@ ahc_send_async(struct ahc_softc *ahc, char channel, | |||
2017 | void | 2001 | void |
2018 | ahc_done(struct ahc_softc *ahc, struct scb *scb) | 2002 | ahc_done(struct ahc_softc *ahc, struct scb *scb) |
2019 | { | 2003 | { |
2020 | Scsi_Cmnd *cmd; | 2004 | struct scsi_cmnd *cmd; |
2021 | struct ahc_linux_device *dev; | 2005 | struct ahc_linux_device *dev; |
2022 | 2006 | ||
2023 | LIST_REMOVE(scb, pending_links); | 2007 | LIST_REMOVE(scb, pending_links); |
@@ -2171,7 +2155,7 @@ ahc_linux_handle_scsi_status(struct ahc_softc *ahc, | |||
2171 | case SCSI_STATUS_CHECK_COND: | 2155 | case SCSI_STATUS_CHECK_COND: |
2172 | case SCSI_STATUS_CMD_TERMINATED: | 2156 | case SCSI_STATUS_CMD_TERMINATED: |
2173 | { | 2157 | { |
2174 | Scsi_Cmnd *cmd; | 2158 | struct scsi_cmnd *cmd; |
2175 | 2159 | ||
2176 | /* | 2160 | /* |
2177 | * Copy sense information to the OS's cmd | 2161 | * Copy sense information to the OS's cmd |
@@ -2293,7 +2277,7 @@ ahc_linux_handle_scsi_status(struct ahc_softc *ahc, | |||
2293 | } | 2277 | } |
2294 | 2278 | ||
2295 | static void | 2279 | static void |
2296 | ahc_linux_queue_cmd_complete(struct ahc_softc *ahc, Scsi_Cmnd *cmd) | 2280 | ahc_linux_queue_cmd_complete(struct ahc_softc *ahc, struct scsi_cmnd *cmd) |
2297 | { | 2281 | { |
2298 | /* | 2282 | /* |
2299 | * Typically, the complete queue has very few entries | 2283 | * Typically, the complete queue has very few entries |
@@ -2482,7 +2466,7 @@ ahc_linux_dev_timed_unfreeze(u_long arg) | |||
2482 | } | 2466 | } |
2483 | 2467 | ||
2484 | static int | 2468 | static int |
2485 | ahc_linux_queue_recovery_cmd(Scsi_Cmnd *cmd, scb_flag flag) | 2469 | ahc_linux_queue_recovery_cmd(struct scsi_cmnd *cmd, scb_flag flag) |
2486 | { | 2470 | { |
2487 | struct ahc_softc *ahc; | 2471 | struct ahc_softc *ahc; |
2488 | struct ahc_linux_device *dev; | 2472 | struct ahc_linux_device *dev; |