Skip to content

Commit

Permalink
[PATCH] forcedeth: le32 annotation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed Jul 29, 2006
1 parent f82a935 commit a8bed49
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions drivers/net/forcedeth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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[] = {
Expand Down

0 comments on commit a8bed49

Please sign in to comment.