aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ps3_gelic_net.h
diff options
context:
space:
mode:
authorMasakazu Mokuno <mokuno@sm.sony.co.jp>2008-02-07 05:57:54 -0500
committerJeff Garzik <jeff@garzik.org>2008-02-11 10:29:41 -0500
commit100e1d891902e432951e88bffba0dc49005a216c (patch)
tree909d20fac03d21a5692e31896b5b11eb629dda8b /drivers/net/ps3_gelic_net.h
parentb94e1d47684b0bee6088d848e29154697ea4c4bd (diff)
PS3: gelic: Add endianness macros
Mark the members of the structure for DMA descriptors with proper endian annotations and use the appropriate accessor macros. As the gelic driver works only on PS3, all these macros will be expanded to null. Signed-off-by: Masakazu Mokuno <mokuno@sm.sony.co.jp> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/ps3_gelic_net.h')
-rw-r--r--drivers/net/ps3_gelic_net.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/ps3_gelic_net.h b/drivers/net/ps3_gelic_net.h
index 968560269a3..80b0a3db747 100644
--- a/drivers/net/ps3_gelic_net.h
+++ b/drivers/net/ps3_gelic_net.h
@@ -169,14 +169,14 @@ enum gelic_net_descr_status {
169#define GELIC_NET_DESCR_SIZE (32) 169#define GELIC_NET_DESCR_SIZE (32)
170struct gelic_net_descr { 170struct gelic_net_descr {
171 /* as defined by the hardware */ 171 /* as defined by the hardware */
172 u32 buf_addr; 172 __be32 buf_addr;
173 u32 buf_size; 173 __be32 buf_size;
174 u32 next_descr_addr; 174 __be32 next_descr_addr;
175 u32 dmac_cmd_status; 175 __be32 dmac_cmd_status;
176 u32 result_size; 176 __be32 result_size;
177 u32 valid_size; /* all zeroes for tx */ 177 __be32 valid_size; /* all zeroes for tx */
178 u32 data_status; 178 __be32 data_status;
179 u32 data_error; /* all zeroes for tx */ 179 __be32 data_error; /* all zeroes for tx */
180 180
181 /* used in the driver */ 181 /* used in the driver */
182 struct sk_buff *skb; 182 struct sk_buff *skb;