aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfa_fc.h
diff options
context:
space:
mode:
authorMaggie <xmzhang@brocade.com>2010-11-29 21:26:32 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-12-21 13:24:17 -0500
commit50444a340028119ce5ba45d60b4cf44e3e6e1b32 (patch)
treea1030723aaa84cc07f37f8c3d76766f8a9f1f19a /drivers/scsi/bfa/bfa_fc.h
parent52f94b6fd0d1ff9d935c52f8a6360834ed871d92 (diff)
[SCSI] bfa: fix endianess sparse check warnings
First round of fix for the endianess check warnings from make C=2 CF="-D__CHECK_ENDIAN__". Signed-off-by: Maggie <xmzhang@brocade.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfa_fc.h')
-rw-r--r--drivers/scsi/bfa/bfa_fc.h56
1 files changed, 28 insertions, 28 deletions
diff --git a/drivers/scsi/bfa/bfa_fc.h b/drivers/scsi/bfa/bfa_fc.h
index e929d25b09e3..ce5274a017fa 100644
--- a/drivers/scsi/bfa/bfa_fc.h
+++ b/drivers/scsi/bfa/bfa_fc.h
@@ -82,7 +82,7 @@ struct fchs_s {
82 u8 df_ctl; /* data field control */ 82 u8 df_ctl; /* data field control */
83 u16 seq_cnt; /* sequence count */ 83 u16 seq_cnt; /* sequence count */
84 84
85 u16 ox_id; /* originator exchange ID */ 85 __be16 ox_id; /* originator exchange ID */
86 u16 rx_id; /* responder exchange ID */ 86 u16 rx_id; /* responder exchange ID */
87 87
88 u32 ro; /* relative offset */ 88 u32 ro; /* relative offset */
@@ -316,7 +316,7 @@ enum {
316struct fc_plogi_csp_s { 316struct fc_plogi_csp_s {
317 u8 verhi; /* FC-PH high version */ 317 u8 verhi; /* FC-PH high version */
318 u8 verlo; /* FC-PH low version */ 318 u8 verlo; /* FC-PH low version */
319 u16 bbcred; /* BB_Credit */ 319 __be16 bbcred; /* BB_Credit */
320 320
321#ifdef __BIGENDIAN 321#ifdef __BIGENDIAN
322 u8 ciro:1, /* continuously increasing RO */ 322 u8 ciro:1, /* continuously increasing RO */
@@ -355,12 +355,12 @@ struct fc_plogi_csp_s {
355 hg_supp:1; 355 hg_supp:1;
356#endif 356#endif
357 357
358 u16 rxsz; /* recieve data_field size */ 358 __be16 rxsz; /* recieve data_field size */
359 359
360 u16 conseq; 360 __be16 conseq;
361 u16 ro_bitmap; 361 __be16 ro_bitmap;
362 362
363 u32 e_d_tov; 363 __be32 e_d_tov;
364}; 364};
365 365
366/* 366/*
@@ -873,7 +873,7 @@ struct fc_rscn_event_s {
873struct fc_rscn_pl_s { 873struct fc_rscn_pl_s {
874 u8 command; 874 u8 command;
875 u8 pagelen; 875 u8 pagelen;
876 u16 payldlen; 876 __be16 payldlen;
877 struct fc_rscn_event_s event[1]; 877 struct fc_rscn_event_s event[1];
878}; 878};
879 879
@@ -926,9 +926,9 @@ struct fc_rnid_common_id_data_s {
926 926
927struct fc_rnid_general_topology_data_s { 927struct fc_rnid_general_topology_data_s {
928 u32 vendor_unique[4]; 928 u32 vendor_unique[4];
929 u32 asso_type; 929 __be32 asso_type;
930 u32 phy_port_num; 930 u32 phy_port_num;
931 u32 num_attached_nodes; 931 __be32 num_attached_nodes;
932 u32 node_mgmt:8; 932 u32 node_mgmt:8;
933 u32 ip_version:8; 933 u32 ip_version:8;
934 u32 udp_tcp_port_num:16; 934 u32 udp_tcp_port_num:16;
@@ -984,8 +984,8 @@ enum fc_rpsc_op_speed {
984}; 984};
985 985
986struct fc_rpsc_speed_info_s { 986struct fc_rpsc_speed_info_s {
987 u16 port_speed_cap; /*! see enum fc_rpsc_speed_cap */ 987 __be16 port_speed_cap; /*! see enum fc_rpsc_speed_cap */
988 u16 port_op_speed; /*! see enum fc_rpsc_op_speed */ 988 __be16 port_op_speed; /*! see enum fc_rpsc_op_speed */
989}; 989};
990 990
991enum link_e2e_beacon_subcmd { 991enum link_e2e_beacon_subcmd {
@@ -1056,9 +1056,9 @@ struct fc_rpsc_acc_s {
1056 1056
1057struct fc_rpsc2_cmd_s { 1057struct fc_rpsc2_cmd_s {
1058 struct fc_els_cmd_s els_cmd; 1058 struct fc_els_cmd_s els_cmd;
1059 u32 token; 1059 __be32 token;
1060 u16 resvd; 1060 u16 resvd;
1061 u16 num_pids; /* Number of pids in the request */ 1061 __be16 num_pids; /* Number of pids in the request */
1062 struct { 1062 struct {
1063 u32 rsvd1:8; 1063 u32 rsvd1:8;
1064 u32 pid:24; /* port identifier */ 1064 u32 pid:24; /* port identifier */
@@ -1076,12 +1076,12 @@ enum fc_rpsc2_port_type {
1076 * RPSC2 portInfo entry structure 1076 * RPSC2 portInfo entry structure
1077 */ 1077 */
1078struct fc_rpsc2_port_info_s { 1078struct fc_rpsc2_port_info_s {
1079 u32 pid; /* PID */ 1079 __be32 pid; /* PID */
1080 u16 resvd1; 1080 u16 resvd1;
1081 u16 index; /* port number / index */ 1081 __be16 index; /* port number / index */
1082 u8 resvd2; 1082 u8 resvd2;
1083 u8 type; /* port type N/NL/... */ 1083 u8 type; /* port type N/NL/... */
1084 u16 speed; /* port Operating Speed */ 1084 __be16 speed; /* port Operating Speed */
1085}; 1085};
1086 1086
1087/* 1087/*
@@ -1090,7 +1090,7 @@ struct fc_rpsc2_port_info_s {
1090struct fc_rpsc2_acc_s { 1090struct fc_rpsc2_acc_s {
1091 u8 els_cmd; 1091 u8 els_cmd;
1092 u8 resvd; 1092 u8 resvd;
1093 u16 num_pids; /* Number of pids in the request */ 1093 __be16 num_pids; /* Number of pids in the request */
1094 struct fc_rpsc2_port_info_s port_info[1]; /* port information */ 1094 struct fc_rpsc2_port_info_s port_info[1]; /* port information */
1095}; 1095};
1096 1096
@@ -1200,7 +1200,7 @@ struct fcp_cmnd_s {
1200 /* 1200 /*
1201 * !!! additional cdb bytes follows here!!! 1201 * !!! additional cdb bytes follows here!!!
1202 */ 1202 */
1203 u32 fcp_dl; /* bytes to be transferred */ 1203 __be32 fcp_dl; /* bytes to be transferred */
1204}; 1204};
1205 1205
1206#define fcp_cmnd_cdb_len(_cmnd) ((_cmnd)->addl_cdb_len * 4 + FCP_CMND_CDB_LEN) 1206#define fcp_cmnd_cdb_len(_cmnd) ((_cmnd)->addl_cdb_len * 4 + FCP_CMND_CDB_LEN)
@@ -1469,7 +1469,7 @@ struct fcgs_gidpn_resp_s {
1469struct fcgs_rftid_req_s { 1469struct fcgs_rftid_req_s {
1470 u32 rsvd:8; 1470 u32 rsvd:8;
1471 u32 dap:24; /* port identifier */ 1471 u32 dap:24; /* port identifier */
1472 u32 fc4_type[8]; /* fc4 types */ 1472 __be32 fc4_type[8]; /* fc4 types */
1473}; 1473};
1474 1474
1475/* 1475/*
@@ -1764,7 +1764,7 @@ struct fcgs_req_s {
1764 1764
1765/* Accept Response to GMAL */ 1765/* Accept Response to GMAL */
1766struct fcgs_gmal_resp_s { 1766struct fcgs_gmal_resp_s {
1767 u32 ms_len; /* Num of entries */ 1767 __be32 ms_len; /* Num of entries */
1768 u8 ms_ma[256]; 1768 u8 ms_ma[256];
1769}; 1769};
1770 1770
@@ -1856,8 +1856,8 @@ enum fdmi_port_attribute_type {
1856 * FDMI attribute 1856 * FDMI attribute
1857 */ 1857 */
1858struct fdmi_attr_s { 1858struct fdmi_attr_s {
1859 u16 type; 1859 __be16 type;
1860 u16 len; 1860 __be16 len;
1861 u8 value[1]; 1861 u8 value[1];
1862}; 1862};
1863 1863
@@ -1865,7 +1865,7 @@ struct fdmi_attr_s {
1865 * HBA Attribute Block 1865 * HBA Attribute Block
1866 */ 1866 */
1867struct fdmi_hba_attr_s { 1867struct fdmi_hba_attr_s {
1868 u32 attr_count; /* # of attributes */ 1868 __be32 attr_count; /* # of attributes */
1869 struct fdmi_attr_s hba_attr; /* n attributes */ 1869 struct fdmi_attr_s hba_attr; /* n attributes */
1870}; 1870};
1871 1871
@@ -1873,7 +1873,7 @@ struct fdmi_hba_attr_s {
1873 * Registered Port List 1873 * Registered Port List
1874 */ 1874 */
1875struct fdmi_port_list_s { 1875struct fdmi_port_list_s {
1876 u32 num_ports; /* number Of Port Entries */ 1876 __be32 num_ports; /* number Of Port Entries */
1877 wwn_t port_entry; /* one or more */ 1877 wwn_t port_entry; /* one or more */
1878}; 1878};
1879 1879
@@ -1881,7 +1881,7 @@ struct fdmi_port_list_s {
1881 * Port Attribute Block 1881 * Port Attribute Block
1882 */ 1882 */
1883struct fdmi_port_attr_s { 1883struct fdmi_port_attr_s {
1884 u32 attr_count; /* # of attributes */ 1884 __be32 attr_count; /* # of attributes */
1885 struct fdmi_attr_s port_attr; /* n attributes */ 1885 struct fdmi_attr_s port_attr; /* n attributes */
1886}; 1886};
1887 1887