[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>
This commit is contained in:
Stephen Hemminger 2006-07-27 18:50:09 -07:00 committed by Jeff Garzik
parent f82a9352f6
commit a8bed49ecf
1 changed files with 8 additions and 8 deletions

View File

@ -381,15 +381,15 @@ enum {
/* Big endian: should work, but is untested */ /* Big endian: should work, but is untested */
struct ring_desc { struct ring_desc {
u32 buf; __le32 buf;
u32 flaglen; __le32 flaglen;
}; };
struct ring_desc_ex { struct ring_desc_ex {
u32 bufhigh; __le32 bufhigh;
u32 buflow; __le32 buflow;
u32 txvlan; __le32 txvlan;
u32 flaglen; __le32 flaglen;
}; };
union ring_type { union ring_type {
@ -653,8 +653,8 @@ static const struct nv_ethtool_str nv_etests_str[] = {
}; };
struct register_test { struct register_test {
u32 reg; __le32 reg;
u32 mask; __le32 mask;
}; };
static const struct register_test nv_registers_test[] = { static const struct register_test nv_registers_test[] = {