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.h | |
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.h')
-rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx_osm.h | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.h b/drivers/scsi/aic7xxx/aic7xxx_osm.h index 9cfb46b4b15f..2afd0521c4ad 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_osm.h +++ b/drivers/scsi/aic7xxx/aic7xxx_osm.h | |||
@@ -59,6 +59,7 @@ | |||
59 | #ifndef _AIC7XXX_LINUX_H_ | 59 | #ifndef _AIC7XXX_LINUX_H_ |
60 | #define _AIC7XXX_LINUX_H_ | 60 | #define _AIC7XXX_LINUX_H_ |
61 | 61 | ||
62 | #include <linux/config.h> | ||
62 | #include <linux/types.h> | 63 | #include <linux/types.h> |
63 | #include <linux/blkdev.h> | 64 | #include <linux/blkdev.h> |
64 | #include <linux/delay.h> | 65 | #include <linux/delay.h> |
@@ -68,16 +69,19 @@ | |||
68 | #include <linux/version.h> | 69 | #include <linux/version.h> |
69 | #include <linux/interrupt.h> | 70 | #include <linux/interrupt.h> |
70 | #include <linux/module.h> | 71 | #include <linux/module.h> |
72 | #include <linux/slab.h> | ||
71 | #include <asm/byteorder.h> | 73 | #include <asm/byteorder.h> |
72 | #include <asm/io.h> | 74 | #include <asm/io.h> |
73 | 75 | ||
74 | #include <linux/config.h> | 76 | #include <scsi/scsi.h> |
75 | #include <linux/slab.h> | 77 | #include <scsi/scsi_cmnd.h> |
78 | #include <scsi/scsi_eh.h> | ||
79 | #include <scsi/scsi_device.h> | ||
80 | #include <scsi/scsi_host.h> | ||
81 | #include <scsi/scsi_tcq.h> | ||
76 | 82 | ||
77 | /* Core SCSI definitions */ | 83 | /* Core SCSI definitions */ |
78 | #define AIC_LIB_PREFIX ahc | 84 | #define AIC_LIB_PREFIX ahc |
79 | #include "scsi.h" | ||
80 | #include <scsi/scsi_host.h> | ||
81 | 85 | ||
82 | /* Name space conflict with BSD queue macros */ | 86 | /* Name space conflict with BSD queue macros */ |
83 | #ifdef LIST_HEAD | 87 | #ifdef LIST_HEAD |
@@ -106,7 +110,7 @@ | |||
106 | /************************* Forward Declarations *******************************/ | 110 | /************************* Forward Declarations *******************************/ |
107 | struct ahc_softc; | 111 | struct ahc_softc; |
108 | typedef struct pci_dev *ahc_dev_softc_t; | 112 | typedef struct pci_dev *ahc_dev_softc_t; |
109 | typedef Scsi_Cmnd *ahc_io_ctx_t; | 113 | typedef struct scsi_cmnd *ahc_io_ctx_t; |
110 | 114 | ||
111 | /******************************* Byte Order ***********************************/ | 115 | /******************************* Byte Order ***********************************/ |
112 | #define ahc_htobe16(x) cpu_to_be16(x) | 116 | #define ahc_htobe16(x) cpu_to_be16(x) |
@@ -144,7 +148,7 @@ typedef Scsi_Cmnd *ahc_io_ctx_t; | |||
144 | extern u_int aic7xxx_no_probe; | 148 | extern u_int aic7xxx_no_probe; |
145 | extern u_int aic7xxx_allow_memio; | 149 | extern u_int aic7xxx_allow_memio; |
146 | extern int aic7xxx_detect_complete; | 150 | extern int aic7xxx_detect_complete; |
147 | extern Scsi_Host_Template aic7xxx_driver_template; | 151 | extern struct scsi_host_template aic7xxx_driver_template; |
148 | 152 | ||
149 | /***************************** Bus Space/DMA **********************************/ | 153 | /***************************** Bus Space/DMA **********************************/ |
150 | 154 | ||
@@ -408,7 +412,7 @@ struct ahc_linux_device { | |||
408 | #define AHC_OTAG_THRESH 500 | 412 | #define AHC_OTAG_THRESH 500 |
409 | 413 | ||
410 | int lun; | 414 | int lun; |
411 | Scsi_Device *scsi_device; | 415 | struct scsi_device *scsi_device; |
412 | struct ahc_linux_target *target; | 416 | struct ahc_linux_target *target; |
413 | }; | 417 | }; |
414 | 418 | ||
@@ -564,7 +568,7 @@ ahc_insb(struct ahc_softc * ahc, long port, uint8_t *array, int count) | |||
564 | 568 | ||
565 | /**************************** Initialization **********************************/ | 569 | /**************************** Initialization **********************************/ |
566 | int ahc_linux_register_host(struct ahc_softc *, | 570 | int ahc_linux_register_host(struct ahc_softc *, |
567 | Scsi_Host_Template *); | 571 | struct scsi_host_template *); |
568 | 572 | ||
569 | uint64_t ahc_linux_get_memsize(void); | 573 | uint64_t ahc_linux_get_memsize(void); |
570 | 574 | ||
@@ -795,13 +799,13 @@ int ahc_linux_proc_info(struct Scsi_Host *, char *, char **, | |||
795 | 799 | ||
796 | /*************************** Domain Validation ********************************/ | 800 | /*************************** Domain Validation ********************************/ |
797 | /*********************** Transaction Access Wrappers *************************/ | 801 | /*********************** Transaction Access Wrappers *************************/ |
798 | static __inline void ahc_cmd_set_transaction_status(Scsi_Cmnd *, uint32_t); | 802 | static __inline void ahc_cmd_set_transaction_status(struct scsi_cmnd *, uint32_t); |
799 | static __inline void ahc_set_transaction_status(struct scb *, uint32_t); | 803 | static __inline void ahc_set_transaction_status(struct scb *, uint32_t); |
800 | static __inline void ahc_cmd_set_scsi_status(Scsi_Cmnd *, uint32_t); | 804 | static __inline void ahc_cmd_set_scsi_status(struct scsi_cmnd *, uint32_t); |
801 | static __inline void ahc_set_scsi_status(struct scb *, uint32_t); | 805 | static __inline void ahc_set_scsi_status(struct scb *, uint32_t); |
802 | static __inline uint32_t ahc_cmd_get_transaction_status(Scsi_Cmnd *cmd); | 806 | static __inline uint32_t ahc_cmd_get_transaction_status(struct scsi_cmnd *cmd); |
803 | static __inline uint32_t ahc_get_transaction_status(struct scb *); | 807 | static __inline uint32_t ahc_get_transaction_status(struct scb *); |
804 | static __inline uint32_t ahc_cmd_get_scsi_status(Scsi_Cmnd *cmd); | 808 | static __inline uint32_t ahc_cmd_get_scsi_status(struct scsi_cmnd *cmd); |
805 | static __inline uint32_t ahc_get_scsi_status(struct scb *); | 809 | static __inline uint32_t ahc_get_scsi_status(struct scb *); |
806 | static __inline void ahc_set_transaction_tag(struct scb *, int, u_int); | 810 | static __inline void ahc_set_transaction_tag(struct scb *, int, u_int); |
807 | static __inline u_long ahc_get_transfer_length(struct scb *); | 811 | static __inline u_long ahc_get_transfer_length(struct scb *); |
@@ -820,7 +824,7 @@ static __inline void ahc_platform_scb_free(struct ahc_softc *ahc, | |||
820 | static __inline void ahc_freeze_scb(struct scb *scb); | 824 | static __inline void ahc_freeze_scb(struct scb *scb); |
821 | 825 | ||
822 | static __inline | 826 | static __inline |
823 | void ahc_cmd_set_transaction_status(Scsi_Cmnd *cmd, uint32_t status) | 827 | void ahc_cmd_set_transaction_status(struct scsi_cmnd *cmd, uint32_t status) |
824 | { | 828 | { |
825 | cmd->result &= ~(CAM_STATUS_MASK << 16); | 829 | cmd->result &= ~(CAM_STATUS_MASK << 16); |
826 | cmd->result |= status << 16; | 830 | cmd->result |= status << 16; |
@@ -833,7 +837,7 @@ void ahc_set_transaction_status(struct scb *scb, uint32_t status) | |||
833 | } | 837 | } |
834 | 838 | ||
835 | static __inline | 839 | static __inline |
836 | void ahc_cmd_set_scsi_status(Scsi_Cmnd *cmd, uint32_t status) | 840 | void ahc_cmd_set_scsi_status(struct scsi_cmnd *cmd, uint32_t status) |
837 | { | 841 | { |
838 | cmd->result &= ~0xFFFF; | 842 | cmd->result &= ~0xFFFF; |
839 | cmd->result |= status; | 843 | cmd->result |= status; |
@@ -846,7 +850,7 @@ void ahc_set_scsi_status(struct scb *scb, uint32_t status) | |||
846 | } | 850 | } |
847 | 851 | ||
848 | static __inline | 852 | static __inline |
849 | uint32_t ahc_cmd_get_transaction_status(Scsi_Cmnd *cmd) | 853 | uint32_t ahc_cmd_get_transaction_status(struct scsi_cmnd *cmd) |
850 | { | 854 | { |
851 | return ((cmd->result >> 16) & CAM_STATUS_MASK); | 855 | return ((cmd->result >> 16) & CAM_STATUS_MASK); |
852 | } | 856 | } |
@@ -858,7 +862,7 @@ uint32_t ahc_get_transaction_status(struct scb *scb) | |||
858 | } | 862 | } |
859 | 863 | ||
860 | static __inline | 864 | static __inline |
861 | uint32_t ahc_cmd_get_scsi_status(Scsi_Cmnd *cmd) | 865 | uint32_t ahc_cmd_get_scsi_status(struct scsi_cmnd *cmd) |
862 | { | 866 | { |
863 | return (cmd->result & 0xFFFF); | 867 | return (cmd->result & 0xFFFF); |
864 | } | 868 | } |