aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfi_ms.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/bfi_ms.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/bfi_ms.h')
-rw-r--r--drivers/scsi/bfa/bfi_ms.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/drivers/scsi/bfa/bfi_ms.h b/drivers/scsi/bfa/bfi_ms.h
index fa9f6fb9d45b..10288764439d 100644
--- a/drivers/scsi/bfa/bfi_ms.h
+++ b/drivers/scsi/bfa/bfi_ms.h
@@ -47,10 +47,10 @@ struct bfi_iocfc_cfg_s {
47 */ 47 */
48 union bfi_addr_u req_cq_ba[BFI_IOC_MAX_CQS]; 48 union bfi_addr_u req_cq_ba[BFI_IOC_MAX_CQS];
49 union bfi_addr_u req_shadow_ci[BFI_IOC_MAX_CQS]; 49 union bfi_addr_u req_shadow_ci[BFI_IOC_MAX_CQS];
50 u16 req_cq_elems[BFI_IOC_MAX_CQS]; 50 __be16 req_cq_elems[BFI_IOC_MAX_CQS];
51 union bfi_addr_u rsp_cq_ba[BFI_IOC_MAX_CQS]; 51 union bfi_addr_u rsp_cq_ba[BFI_IOC_MAX_CQS];
52 union bfi_addr_u rsp_shadow_pi[BFI_IOC_MAX_CQS]; 52 union bfi_addr_u rsp_shadow_pi[BFI_IOC_MAX_CQS];
53 u16 rsp_cq_elems[BFI_IOC_MAX_CQS]; 53 __be16 rsp_cq_elems[BFI_IOC_MAX_CQS];
54 54
55 union bfi_addr_u stats_addr; /* DMA-able address for stats */ 55 union bfi_addr_u stats_addr; /* DMA-able address for stats */
56 union bfi_addr_u cfgrsp_addr; /* config response dma address */ 56 union bfi_addr_u cfgrsp_addr; /* config response dma address */
@@ -102,8 +102,8 @@ struct bfi_iocfc_set_intr_req_s {
102 struct bfi_mhdr_s mh; /* common msg header */ 102 struct bfi_mhdr_s mh; /* common msg header */
103 u8 coalesce; /* enable intr coalescing */ 103 u8 coalesce; /* enable intr coalescing */
104 u8 rsvd[3]; 104 u8 rsvd[3];
105 u16 delay; /* delay timer 0..1125us */ 105 __be16 delay; /* delay timer 0..1125us */
106 u16 latency; /* latency timer 0..225us */ 106 __be16 latency; /* latency timer 0..225us */
107}; 107};
108 108
109 109
@@ -210,7 +210,7 @@ struct bfi_fcport_enable_req_s {
210 */ 210 */
211struct bfi_fcport_set_svc_params_req_s { 211struct bfi_fcport_set_svc_params_req_s {
212 struct bfi_mhdr_s mh; /* msg header */ 212 struct bfi_mhdr_s mh; /* msg header */
213 u16 tx_bbcredit; /* Tx credits */ 213 __be16 tx_bbcredit; /* Tx credits */
214 u16 rsvd; 214 u16 rsvd;
215}; 215};
216 216
@@ -231,7 +231,7 @@ struct bfi_fcport_trunk_link_s {
231 u8 state; /* bfa_trunk_link_state_t */ 231 u8 state; /* bfa_trunk_link_state_t */
232 u8 speed; /* bfa_port_speed_t */ 232 u8 speed; /* bfa_port_speed_t */
233 u8 rsvd; 233 u8 rsvd;
234 u32 deskew; 234 __be32 deskew;
235}; 235};
236 236
237#define BFI_FCPORT_MAX_LINKS 2 237#define BFI_FCPORT_MAX_LINKS 2
@@ -284,17 +284,17 @@ enum bfi_fcxp_i2h {
284 */ 284 */
285struct bfi_fcxp_send_req_s { 285struct bfi_fcxp_send_req_s {
286 struct bfi_mhdr_s mh; /* Common msg header */ 286 struct bfi_mhdr_s mh; /* Common msg header */
287 u16 fcxp_tag; /* driver request tag */ 287 __be16 fcxp_tag; /* driver request tag */
288 u16 max_frmsz; /* max send frame size */ 288 __be16 max_frmsz; /* max send frame size */
289 u16 vf_id; /* vsan tag if applicable */ 289 __be16 vf_id; /* vsan tag if applicable */
290 u16 rport_fw_hndl; /* FW Handle for the remote port */ 290 u16 rport_fw_hndl; /* FW Handle for the remote port */
291 u8 class; /* FC class used for req/rsp */ 291 u8 class; /* FC class used for req/rsp */
292 u8 rsp_timeout; /* timeout in secs, 0-no response */ 292 u8 rsp_timeout; /* timeout in secs, 0-no response */
293 u8 cts; /* continue sequence */ 293 u8 cts; /* continue sequence */
294 u8 lp_tag; /* lport tag */ 294 u8 lp_tag; /* lport tag */
295 struct fchs_s fchs; /* request FC header structure */ 295 struct fchs_s fchs; /* request FC header structure */
296 u32 req_len; /* request payload length */ 296 __be32 req_len; /* request payload length */
297 u32 rsp_maxlen; /* max response length expected */ 297 __be32 rsp_maxlen; /* max response length expected */
298 struct bfi_sge_s req_sge[BFA_FCXP_MAX_SGES]; /* request buf */ 298 struct bfi_sge_s req_sge[BFA_FCXP_MAX_SGES]; /* request buf */
299 struct bfi_sge_s rsp_sge[BFA_FCXP_MAX_SGES]; /* response buf */ 299 struct bfi_sge_s rsp_sge[BFA_FCXP_MAX_SGES]; /* response buf */
300}; 300};
@@ -304,11 +304,11 @@ struct bfi_fcxp_send_req_s {
304 */ 304 */
305struct bfi_fcxp_send_rsp_s { 305struct bfi_fcxp_send_rsp_s {
306 struct bfi_mhdr_s mh; /* Common msg header */ 306 struct bfi_mhdr_s mh; /* Common msg header */
307 u16 fcxp_tag; /* send request tag */ 307 __be16 fcxp_tag; /* send request tag */
308 u8 req_status; /* request status */ 308 u8 req_status; /* request status */
309 u8 rsvd; 309 u8 rsvd;
310 u32 rsp_len; /* actual response length */ 310 __be32 rsp_len; /* actual response length */
311 u32 residue_len; /* residual response length */ 311 __be32 residue_len; /* residual response length */
312 struct fchs_s fchs; /* response FC header structure */ 312 struct fchs_s fchs; /* response FC header structure */
313}; 313};
314 314
@@ -325,7 +325,7 @@ enum bfi_uf_i2h {
325struct bfi_uf_buf_post_s { 325struct bfi_uf_buf_post_s {
326 struct bfi_mhdr_s mh; /* Common msg header */ 326 struct bfi_mhdr_s mh; /* Common msg header */
327 u16 buf_tag; /* buffer tag */ 327 u16 buf_tag; /* buffer tag */
328 u16 buf_len; /* total buffer length */ 328 __be16 buf_len; /* total buffer length */
329 struct bfi_sge_s sge[BFA_UF_MAX_SGES]; /* buffer DMA SGEs */ 329 struct bfi_sge_s sge[BFA_UF_MAX_SGES]; /* buffer DMA SGEs */
330}; 330};
331 331
@@ -352,7 +352,7 @@ struct bfi_lps_login_req_s {
352 struct bfi_mhdr_s mh; /* common msg header */ 352 struct bfi_mhdr_s mh; /* common msg header */
353 u8 lp_tag; 353 u8 lp_tag;
354 u8 alpa; 354 u8 alpa;
355 u16 pdu_size; 355 __be16 pdu_size;
356 wwn_t pwwn; 356 wwn_t pwwn;
357 wwn_t nwwn; 357 wwn_t nwwn;
358 u8 fdisc; 358 u8 fdisc;
@@ -368,7 +368,7 @@ struct bfi_lps_login_rsp_s {
368 u8 lsrjt_expl; 368 u8 lsrjt_expl;
369 wwn_t port_name; 369 wwn_t port_name;
370 wwn_t node_name; 370 wwn_t node_name;
371 u16 bb_credit; 371 __be16 bb_credit;
372 u8 f_port; 372 u8 f_port;
373 u8 npiv_en; 373 u8 npiv_en;
374 u32 lp_pid:24; 374 u32 lp_pid:24;
@@ -427,7 +427,7 @@ enum bfi_rport_i2h_msgs {
427struct bfi_rport_create_req_s { 427struct bfi_rport_create_req_s {
428 struct bfi_mhdr_s mh; /* common msg header */ 428 struct bfi_mhdr_s mh; /* common msg header */
429 u16 bfa_handle; /* host rport handle */ 429 u16 bfa_handle; /* host rport handle */
430 u16 max_frmsz; /* max rcv pdu size */ 430 __be16 max_frmsz; /* max rcv pdu size */
431 u32 pid:24, /* remote port ID */ 431 u32 pid:24, /* remote port ID */
432 lp_tag:8; /* local port tag */ 432 lp_tag:8; /* local port tag */
433 u32 local_pid:24, /* local port ID */ 433 u32 local_pid:24, /* local port ID */
@@ -583,7 +583,7 @@ struct bfi_ioim_dif_s {
583 */ 583 */
584struct bfi_ioim_req_s { 584struct bfi_ioim_req_s {
585 struct bfi_mhdr_s mh; /* Common msg header */ 585 struct bfi_mhdr_s mh; /* Common msg header */
586 u16 io_tag; /* I/O tag */ 586 __be16 io_tag; /* I/O tag */
587 u16 rport_hdl; /* itnim/rport firmware handle */ 587 u16 rport_hdl; /* itnim/rport firmware handle */
588 struct fcp_cmnd_s cmnd; /* IO request info */ 588 struct fcp_cmnd_s cmnd; /* IO request info */
589 589
@@ -689,7 +689,7 @@ enum bfi_ioim_status {
689 */ 689 */
690struct bfi_ioim_rsp_s { 690struct bfi_ioim_rsp_s {
691 struct bfi_mhdr_s mh; /* common msg header */ 691 struct bfi_mhdr_s mh; /* common msg header */
692 u16 io_tag; /* completed IO tag */ 692 __be16 io_tag; /* completed IO tag */
693 u16 bfa_rport_hndl; /* releated rport handle */ 693 u16 bfa_rport_hndl; /* releated rport handle */
694 u8 io_status; /* IO completion status */ 694 u8 io_status; /* IO completion status */
695 u8 reuse_io_tag; /* IO tag can be reused */ 695 u8 reuse_io_tag; /* IO tag can be reused */
@@ -698,13 +698,13 @@ struct bfi_ioim_rsp_s {
698 u8 sns_len; /* scsi sense length */ 698 u8 sns_len; /* scsi sense length */
699 u8 resid_flags; /* IO residue flags */ 699 u8 resid_flags; /* IO residue flags */
700 u8 rsvd_a; 700 u8 rsvd_a;
701 u32 residue; /* IO residual length in bytes */ 701 __be32 residue; /* IO residual length in bytes */
702 u32 rsvd_b[3]; 702 u32 rsvd_b[3];
703}; 703};
704 704
705struct bfi_ioim_abort_req_s { 705struct bfi_ioim_abort_req_s {
706 struct bfi_mhdr_s mh; /* Common msg header */ 706 struct bfi_mhdr_s mh; /* Common msg header */
707 u16 io_tag; /* I/O tag */ 707 __be16 io_tag; /* I/O tag */
708 u16 abort_tag; /* unique request tag */ 708 u16 abort_tag; /* unique request tag */
709}; 709};
710 710
@@ -723,7 +723,7 @@ enum bfi_tskim_i2h {
723 723
724struct bfi_tskim_req_s { 724struct bfi_tskim_req_s {
725 struct bfi_mhdr_s mh; /* Common msg header */ 725 struct bfi_mhdr_s mh; /* Common msg header */
726 u16 tsk_tag; /* task management tag */ 726 __be16 tsk_tag; /* task management tag */
727 u16 itn_fhdl; /* itn firmware handle */ 727 u16 itn_fhdl; /* itn firmware handle */
728 lun_t lun; /* LU number */ 728 lun_t lun; /* LU number */
729 u8 tm_flags; /* see enum fcp_tm_cmnd */ 729 u8 tm_flags; /* see enum fcp_tm_cmnd */
@@ -733,7 +733,7 @@ struct bfi_tskim_req_s {
733 733
734struct bfi_tskim_abortreq_s { 734struct bfi_tskim_abortreq_s {
735 struct bfi_mhdr_s mh; /* Common msg header */ 735 struct bfi_mhdr_s mh; /* Common msg header */
736 u16 tsk_tag; /* task management tag */ 736 __be16 tsk_tag; /* task management tag */
737 u16 rsvd; 737 u16 rsvd;
738}; 738};
739 739
@@ -755,7 +755,7 @@ enum bfi_tskim_status {
755 755
756struct bfi_tskim_rsp_s { 756struct bfi_tskim_rsp_s {
757 struct bfi_mhdr_s mh; /* Common msg header */ 757 struct bfi_mhdr_s mh; /* Common msg header */
758 u16 tsk_tag; /* task mgmt cmnd tag */ 758 __be16 tsk_tag; /* task mgmt cmnd tag */
759 u8 tsk_status; /* @ref bfi_tskim_status */ 759 u8 tsk_status; /* @ref bfi_tskim_status */
760 u8 rsvd; 760 u8 rsvd;
761}; 761};