aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x.h
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-02-12 03:38:17 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-16 02:31:53 -0500
commit4781bfad732af717784ee6b5bcdd97f4c3e8f597 (patch)
treee1d0bca4fe681fa59b9d03e23453a47372308d7f /drivers/net/bnx2x.h
parent0626b89971d75b35698f208fd7abe4303e1588b9 (diff)
bnx2x: Sparse endianity annotation
Resolving the majority of the issues, but there are still some left for future patches. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x.h')
-rw-r--r--drivers/net/bnx2x.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/bnx2x.h b/drivers/net/bnx2x.h
index e07d91582cf2..bec5aff649a7 100644
--- a/drivers/net/bnx2x.h
+++ b/drivers/net/bnx2x.h
@@ -270,10 +270,10 @@ struct bnx2x_fastpath {
270 u16 tx_pkt_cons; 270 u16 tx_pkt_cons;
271 u16 tx_bd_prod; 271 u16 tx_bd_prod;
272 u16 tx_bd_cons; 272 u16 tx_bd_cons;
273 u16 *tx_cons_sb; 273 __le16 *tx_cons_sb;
274 274
275 u16 fp_c_idx; 275 __le16 fp_c_idx;
276 u16 fp_u_idx; 276 __le16 fp_u_idx;
277 277
278 u16 rx_bd_prod; 278 u16 rx_bd_prod;
279 u16 rx_bd_cons; 279 u16 rx_bd_cons;
@@ -282,8 +282,8 @@ struct bnx2x_fastpath {
282 u16 rx_sge_prod; 282 u16 rx_sge_prod;
283 /* The last maximal completed SGE */ 283 /* The last maximal completed SGE */
284 u16 last_max_sge; 284 u16 last_max_sge;
285 u16 *rx_cons_sb; 285 __le16 *rx_cons_sb;
286 u16 *rx_bd_cons_sb; 286 __le16 *rx_bd_cons_sb;
287 287
288 unsigned long tx_pkt, 288 unsigned long tx_pkt,
289 rx_pkt, 289 rx_pkt,
@@ -806,11 +806,11 @@ struct bnx2x {
806 806
807 struct host_def_status_block *def_status_blk; 807 struct host_def_status_block *def_status_blk;
808#define DEF_SB_ID 16 808#define DEF_SB_ID 16
809 u16 def_c_idx; 809 __le16 def_c_idx;
810 u16 def_u_idx; 810 __le16 def_u_idx;
811 u16 def_x_idx; 811 __le16 def_x_idx;
812 u16 def_t_idx; 812 __le16 def_t_idx;
813 u16 def_att_idx; 813 __le16 def_att_idx;
814 u32 attn_state; 814 u32 attn_state;
815 struct attn_route attn_group[MAX_DYNAMIC_ATTN_GRPS]; 815 struct attn_route attn_group[MAX_DYNAMIC_ATTN_GRPS];
816 816
@@ -820,7 +820,7 @@ struct bnx2x {
820 u16 spq_prod_idx; 820 u16 spq_prod_idx;
821 struct eth_spe *spq_prod_bd; 821 struct eth_spe *spq_prod_bd;
822 struct eth_spe *spq_last_bd; 822 struct eth_spe *spq_last_bd;
823 u16 *dsb_sp_prod; 823 __le16 *dsb_sp_prod;
824 u16 spq_left; /* serialize spq */ 824 u16 spq_left; /* serialize spq */
825 /* used to synchronize spq accesses */ 825 /* used to synchronize spq accesses */
826 spinlock_t spq_lock; 826 spinlock_t spq_lock;