aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/forcedeth.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2006-07-27 18:50:09 -0700
committerJeff Garzik <jeff@garzik.org>2006-07-29 01:29:30 -0400
commita8bed49ecfb47a40cc401f5ec7c9a8a38098e728 (patch)
tree178f2c08d38b46960d28f80029ec51567bd5cffc /drivers/net/forcedeth.c
parentf82a9352f6b955d1dd9adc1124d6796be2c147df (diff)
[PATCH] forcedeth: le32 annotation
Use __le32 to indicate byte order of hardware ring elements Signed-off-by: Stephen Hemminger <shemminger@osdl.org> drivers/net/forcedeth.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/forcedeth.c')
-rw-r--r--drivers/net/forcedeth.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c
index 4c5fe5ae405..6fc6d1b05f1 100644
--- a/drivers/net/forcedeth.c
+++ b/drivers/net/forcedeth.c
@@ -381,15 +381,15 @@ enum {
/* Big endian: should work, but is untested */
struct ring_desc {
- u32 buf;
- u32 flaglen;
+ __le32 buf;
+ __le32 flaglen;
};
struct ring_desc_ex {
- u32 bufhigh;
- u32 buflow;
- u32 txvlan;
- u32 flaglen;
+ __le32 bufhigh;
+ __le32 buflow;
+ __le32 txvlan;
+ __le32 flaglen;
};
union ring_type {
@@ -653,8 +653,8 @@ static const struct nv_ethtool_str nv_etests_str[] = {
};
struct register_test {
- u32 reg;
- u32 mask;
+ __le32 reg;
+ __le32 mask;
};
static const struct register_test nv_registers_test[] = {