diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2006-07-27 21:50:09 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-07-29 01:29:30 -0400 |
commit | a8bed49ecfb47a40cc401f5ec7c9a8a38098e728 (patch) | |
tree | 178f2c08d38b46960d28f80029ec51567bd5cffc /drivers/net/forcedeth.c | |
parent | f82a9352f6b955d1dd9adc1124d6796be2c147df (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.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c index 4c5fe5ae405c..6fc6d1b05f1e 100644 --- a/drivers/net/forcedeth.c +++ b/drivers/net/forcedeth.c | |||
@@ -381,15 +381,15 @@ enum { | |||
381 | 381 | ||
382 | /* Big endian: should work, but is untested */ | 382 | /* Big endian: should work, but is untested */ |
383 | struct ring_desc { | 383 | struct ring_desc { |
384 | u32 buf; | 384 | __le32 buf; |
385 | u32 flaglen; | 385 | __le32 flaglen; |
386 | }; | 386 | }; |
387 | 387 | ||
388 | struct ring_desc_ex { | 388 | struct ring_desc_ex { |
389 | u32 bufhigh; | 389 | __le32 bufhigh; |
390 | u32 buflow; | 390 | __le32 buflow; |
391 | u32 txvlan; | 391 | __le32 txvlan; |
392 | u32 flaglen; | 392 | __le32 flaglen; |
393 | }; | 393 | }; |
394 | 394 | ||
395 | union ring_type { | 395 | union ring_type { |
@@ -653,8 +653,8 @@ static const struct nv_ethtool_str nv_etests_str[] = { | |||
653 | }; | 653 | }; |
654 | 654 | ||
655 | struct register_test { | 655 | struct register_test { |
656 | u32 reg; | 656 | __le32 reg; |
657 | u32 mask; | 657 | __le32 mask; |
658 | }; | 658 | }; |
659 | 659 | ||
660 | static const struct register_test nv_registers_test[] = { | 660 | static const struct register_test nv_registers_test[] = { |