diff options
author | Khalid Aziz <khalid.aziz@oracle.com> | 2013-05-16 21:44:14 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-06-26 21:32:47 -0400 |
commit | 391e2f25601e34a7d7e5dc155e487bc58dffd8c6 (patch) | |
tree | 11960063d6d30dfb69344a9aa955842542f59b8b /drivers/scsi/BusLogic.h | |
parent | 839cb99e8f748391059d10388c8aea48a88c142c (diff) |
[SCSI] BusLogic: Port driver to 64-bit.
[jejb: fix up pointer to int cast warning]
Signed-off-by: Khalid Aziz <khalid.aziz@oracle.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/BusLogic.h')
-rw-r--r-- | drivers/scsi/BusLogic.h | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/drivers/scsi/BusLogic.h b/drivers/scsi/BusLogic.h index 8349c0f1438a..b53ec2f1e8cd 100644 --- a/drivers/scsi/BusLogic.h +++ b/drivers/scsi/BusLogic.h | |||
@@ -821,7 +821,7 @@ struct blogic_ccb { | |||
821 | unsigned char cdblen; /* Byte 2 */ | 821 | unsigned char cdblen; /* Byte 2 */ |
822 | unsigned char sense_datalen; /* Byte 3 */ | 822 | unsigned char sense_datalen; /* Byte 3 */ |
823 | u32 datalen; /* Bytes 4-7 */ | 823 | u32 datalen; /* Bytes 4-7 */ |
824 | u32 data; /* Bytes 8-11 */ | 824 | void *data; /* Bytes 8-11 */ |
825 | unsigned char:8; /* Byte 12 */ | 825 | unsigned char:8; /* Byte 12 */ |
826 | unsigned char:8; /* Byte 13 */ | 826 | unsigned char:8; /* Byte 13 */ |
827 | enum blogic_adapter_status adapter_status; /* Byte 14 */ | 827 | enum blogic_adapter_status adapter_status; /* Byte 14 */ |
@@ -833,7 +833,7 @@ struct blogic_ccb { | |||
833 | unsigned char cdb[BLOGIC_CDB_MAXLEN]; /* Bytes 18-29 */ | 833 | unsigned char cdb[BLOGIC_CDB_MAXLEN]; /* Bytes 18-29 */ |
834 | unsigned char:8; /* Byte 30 */ | 834 | unsigned char:8; /* Byte 30 */ |
835 | unsigned char:8; /* Byte 31 */ | 835 | unsigned char:8; /* Byte 31 */ |
836 | unsigned int:32; /* Bytes 32-35 */ | 836 | u32 rsvd_int; /* Bytes 32-35 */ |
837 | u32 sensedata; /* Bytes 36-39 */ | 837 | u32 sensedata; /* Bytes 36-39 */ |
838 | /* | 838 | /* |
839 | FlashPoint SCCB Manager Defined Portion. | 839 | FlashPoint SCCB Manager Defined Portion. |
@@ -843,8 +843,11 @@ struct blogic_ccb { | |||
843 | enum blogic_cmplt_code comp_code; /* Byte 48 */ | 843 | enum blogic_cmplt_code comp_code; /* Byte 48 */ |
844 | #ifdef CONFIG_SCSI_FLASHPOINT | 844 | #ifdef CONFIG_SCSI_FLASHPOINT |
845 | unsigned char:8; /* Byte 49 */ | 845 | unsigned char:8; /* Byte 49 */ |
846 | unsigned short os_flags; /* Bytes 50-51 */ | 846 | u16 os_flags; /* Bytes 50-51 */ |
847 | unsigned char private[48]; /* Bytes 52-99 */ | 847 | unsigned char private[24]; /* Bytes 52-99 */ |
848 | void *rsvd1; | ||
849 | void *rsvd2; | ||
850 | unsigned char private2[16]; | ||
848 | #endif | 851 | #endif |
849 | /* | 852 | /* |
850 | BusLogic Linux Driver Defined Portion. | 853 | BusLogic Linux Driver Defined Portion. |
@@ -867,7 +870,7 @@ struct blogic_ccb { | |||
867 | 870 | ||
868 | struct blogic_outbox { | 871 | struct blogic_outbox { |
869 | u32 ccb; /* Bytes 0-3 */ | 872 | u32 ccb; /* Bytes 0-3 */ |
870 | unsigned int:24; /* Bytes 4-6 */ | 873 | u32:24; /* Bytes 4-6 */ |
871 | enum blogic_action action; /* Byte 7 */ | 874 | enum blogic_action action; /* Byte 7 */ |
872 | }; | 875 | }; |
873 | 876 | ||
@@ -876,11 +879,11 @@ struct blogic_outbox { | |||
876 | */ | 879 | */ |
877 | 880 | ||
878 | struct blogic_inbox { | 881 | struct blogic_inbox { |
879 | u32 ccb; /* Bytes 0-3 */ | 882 | u32 ccb; /* Bytes 0-3 */ |
880 | enum blogic_adapter_status adapter_status; /* Byte 4 */ | 883 | enum blogic_adapter_status adapter_status; /* Byte 4 */ |
881 | enum blogic_tgt_status tgt_status; /* Byte 5 */ | 884 | enum blogic_tgt_status tgt_status; /* Byte 5 */ |
882 | unsigned char:8; /* Byte 6 */ | 885 | unsigned char:8; /* Byte 6 */ |
883 | enum blogic_cmplt_code comp_code; /* Byte 7 */ | 886 | enum blogic_cmplt_code comp_code; /* Byte 7 */ |
884 | }; | 887 | }; |
885 | 888 | ||
886 | 889 | ||
@@ -941,7 +944,7 @@ struct blogic_tgt_stats { | |||
941 | Define the FlashPoint Card Handle data type. | 944 | Define the FlashPoint Card Handle data type. |
942 | */ | 945 | */ |
943 | 946 | ||
944 | #define FPOINT_BADCARD_HANDLE 0xFFFFFFFF | 947 | #define FPOINT_BADCARD_HANDLE 0xFFFFFFFFL |
945 | 948 | ||
946 | 949 | ||
947 | /* | 950 | /* |
@@ -955,12 +958,12 @@ struct fpoint_info { | |||
955 | unsigned char irq_ch; /* Byte 5 */ | 958 | unsigned char irq_ch; /* Byte 5 */ |
956 | unsigned char scsi_id; /* Byte 6 */ | 959 | unsigned char scsi_id; /* Byte 6 */ |
957 | unsigned char scsi_lun; /* Byte 7 */ | 960 | unsigned char scsi_lun; /* Byte 7 */ |
958 | unsigned short fw_rev; /* Bytes 8-9 */ | 961 | u16 fw_rev; /* Bytes 8-9 */ |
959 | unsigned short sync_ok; /* Bytes 10-11 */ | 962 | u16 sync_ok; /* Bytes 10-11 */ |
960 | unsigned short fast_ok; /* Bytes 12-13 */ | 963 | u16 fast_ok; /* Bytes 12-13 */ |
961 | unsigned short ultra_ok; /* Bytes 14-15 */ | 964 | u16 ultra_ok; /* Bytes 14-15 */ |
962 | unsigned short discon_ok; /* Bytes 16-17 */ | 965 | u16 discon_ok; /* Bytes 16-17 */ |
963 | unsigned short wide_ok; /* Bytes 18-19 */ | 966 | u16 wide_ok; /* Bytes 18-19 */ |
964 | bool parity:1; /* Byte 20 Bit 0 */ | 967 | bool parity:1; /* Byte 20 Bit 0 */ |
965 | bool wide:1; /* Byte 20 Bit 1 */ | 968 | bool wide:1; /* Byte 20 Bit 1 */ |
966 | bool softreset:1; /* Byte 20 Bit 2 */ | 969 | bool softreset:1; /* Byte 20 Bit 2 */ |
@@ -976,10 +979,10 @@ struct fpoint_info { | |||
976 | unsigned char model[3]; /* Bytes 24-26 */ | 979 | unsigned char model[3]; /* Bytes 24-26 */ |
977 | unsigned char relative_cardnum; /* Byte 27 */ | 980 | unsigned char relative_cardnum; /* Byte 27 */ |
978 | unsigned char rsvd[4]; /* Bytes 28-31 */ | 981 | unsigned char rsvd[4]; /* Bytes 28-31 */ |
979 | unsigned int os_rsvd; /* Bytes 32-35 */ | 982 | u32 os_rsvd; /* Bytes 32-35 */ |
980 | unsigned char translation_info[4]; /* Bytes 36-39 */ | 983 | unsigned char translation_info[4]; /* Bytes 36-39 */ |
981 | unsigned int rsvd2[5]; /* Bytes 40-59 */ | 984 | u32 rsvd2[5]; /* Bytes 40-59 */ |
982 | unsigned int sec_range; /* Bytes 60-63 */ | 985 | u32 sec_range; /* Bytes 60-63 */ |
983 | }; | 986 | }; |
984 | 987 | ||
985 | /* | 988 | /* |
@@ -1052,7 +1055,7 @@ struct blogic_adapter { | |||
1052 | u32 bios_addr; | 1055 | u32 bios_addr; |
1053 | struct blogic_drvr_options *drvr_opts; | 1056 | struct blogic_drvr_options *drvr_opts; |
1054 | struct fpoint_info fpinfo; | 1057 | struct fpoint_info fpinfo; |
1055 | unsigned int cardhandle; | 1058 | void *cardhandle; |
1056 | struct list_head host_list; | 1059 | struct list_head host_list; |
1057 | struct blogic_ccb *all_ccbs; | 1060 | struct blogic_ccb *all_ccbs; |
1058 | struct blogic_ccb *free_ccbs; | 1061 | struct blogic_ccb *free_ccbs; |