diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2007-10-02 17:05:53 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-10-12 14:55:46 -0400 |
commit | 45f1a41b2b2e02e91d29bde66a8da4d050959f65 (patch) | |
tree | 6515b852df3f5cdb090c5604af9bd38fee4a2816 /drivers/scsi/gdth.h | |
parent | 52759e6abc88fe007a080772ee01ef1154f96f30 (diff) |
[SCSI] gdth: clean up host private data
- Based on same patch from Christoph Hellwig <hch@lst.de>
- Get rid of all the indirection in the Scsi_Host private data and always
put the gdth_ha_str directly into it.
- Change all internal functions prototype to recieve an "gdth_ha_str *ha"
pointer directlly and kill all that redundent access to the "gdth_ctr_tab[]"
controller-table.
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/gdth.h')
-rw-r--r-- | drivers/scsi/gdth.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/drivers/scsi/gdth.h b/drivers/scsi/gdth.h index 68845873cf9d..e8b9eb771d36 100644 --- a/drivers/scsi/gdth.h +++ b/drivers/scsi/gdth.h | |||
@@ -853,6 +853,8 @@ typedef struct { | |||
853 | 853 | ||
854 | /* controller information structure */ | 854 | /* controller information structure */ |
855 | typedef struct { | 855 | typedef struct { |
856 | struct Scsi_Host *shost; | ||
857 | ushort hanum; | ||
856 | ushort oem_id; /* OEM */ | 858 | ushort oem_id; /* OEM */ |
857 | ushort type; /* controller class */ | 859 | ushort type; /* controller class */ |
858 | ulong32 stype; /* subtype (PCI: device ID) */ | 860 | ulong32 stype; /* subtype (PCI: device ID) */ |
@@ -864,6 +866,7 @@ typedef struct { | |||
864 | void __iomem *brd; /* DPRAM address */ | 866 | void __iomem *brd; /* DPRAM address */ |
865 | ulong32 brd_phys; /* slot number/BIOS address */ | 867 | ulong32 brd_phys; /* slot number/BIOS address */ |
866 | gdt6c_plx_regs *plx; /* PLX regs (new PCI contr.) */ | 868 | gdt6c_plx_regs *plx; /* PLX regs (new PCI contr.) */ |
869 | gdth_cmd_str cmdext; | ||
867 | gdth_cmd_str *pccb; /* address command structure */ | 870 | gdth_cmd_str *pccb; /* address command structure */ |
868 | ulong32 ccb_phys; /* phys. address */ | 871 | ulong32 ccb_phys; /* phys. address */ |
869 | #ifdef INT_COAL | 872 | #ifdef INT_COAL |
@@ -937,20 +940,6 @@ typedef struct { | |||
937 | struct scsi_device *sdev; | 940 | struct scsi_device *sdev; |
938 | } gdth_ha_str; | 941 | } gdth_ha_str; |
939 | 942 | ||
940 | /* structure for scsi_register(), SCSI bus != 0 */ | ||
941 | typedef struct { | ||
942 | ushort hanum; | ||
943 | ushort busnum; | ||
944 | } gdth_num_str; | ||
945 | |||
946 | /* structure for scsi_register() */ | ||
947 | typedef struct { | ||
948 | gdth_num_str numext; /* must be the first element */ | ||
949 | gdth_ha_str haext; | ||
950 | gdth_cmd_str cmdext; | ||
951 | } gdth_ext_str; | ||
952 | |||
953 | |||
954 | /* INQUIRY data format */ | 943 | /* INQUIRY data format */ |
955 | typedef struct { | 944 | typedef struct { |
956 | unchar type_qual; | 945 | unchar type_qual; |