diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-08-23 03:04:12 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:52:06 -0400 |
commit | fb8e4444cc8c7719d9947e21a93e2e84bb1b36eb (patch) | |
tree | c6312526e71ca9d234985a6f4d6336848e353550 | |
parent | bd7eb1c549188e4f7993e324b1bbe267fc13675c (diff) |
cxgb3: trivial endianness annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r-- | drivers/net/cxgb3/common.h | 4 | ||||
-rw-r--r-- | drivers/net/cxgb3/sge.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/cxgb3/common.h b/drivers/net/cxgb3/common.h index 3e5b0db7784e..99c75d30f67a 100644 --- a/drivers/net/cxgb3/common.h +++ b/drivers/net/cxgb3/common.h | |||
@@ -168,8 +168,8 @@ enum { | |||
168 | }; | 168 | }; |
169 | 169 | ||
170 | struct sg_ent { /* SGE scatter/gather entry */ | 170 | struct sg_ent { /* SGE scatter/gather entry */ |
171 | u32 len[2]; | 171 | __be32 len[2]; |
172 | u64 addr[2]; | 172 | __be64 addr[2]; |
173 | }; | 173 | }; |
174 | 174 | ||
175 | #ifndef SGE_NUM_GENBITS | 175 | #ifndef SGE_NUM_GENBITS |
diff --git a/drivers/net/cxgb3/sge.c b/drivers/net/cxgb3/sge.c index 540ce5fa1d32..77f3ec5ff8a7 100644 --- a/drivers/net/cxgb3/sge.c +++ b/drivers/net/cxgb3/sge.c | |||
@@ -79,7 +79,7 @@ enum { | |||
79 | }; | 79 | }; |
80 | 80 | ||
81 | struct tx_desc { | 81 | struct tx_desc { |
82 | u64 flit[TX_DESC_FLITS]; | 82 | __be64 flit[TX_DESC_FLITS]; |
83 | }; | 83 | }; |
84 | 84 | ||
85 | struct rx_desc { | 85 | struct rx_desc { |
@@ -904,8 +904,8 @@ static void write_wr_hdr_sgl(unsigned int ndesc, struct sk_buff *skb, | |||
904 | const struct sge_txq *q, | 904 | const struct sge_txq *q, |
905 | const struct sg_ent *sgl, | 905 | const struct sg_ent *sgl, |
906 | unsigned int flits, unsigned int sgl_flits, | 906 | unsigned int flits, unsigned int sgl_flits, |
907 | unsigned int gen, unsigned int wr_hi, | 907 | unsigned int gen, __be32 wr_hi, |
908 | unsigned int wr_lo) | 908 | __be32 wr_lo) |
909 | { | 909 | { |
910 | struct work_request_hdr *wrp = (struct work_request_hdr *)d; | 910 | struct work_request_hdr *wrp = (struct work_request_hdr *)d; |
911 | struct tx_sw_desc *sd = &q->sdesc[pidx]; | 911 | struct tx_sw_desc *sd = &q->sdesc[pidx]; |