]> err.no Git - linux-2.6/commitdiff
[PATCH] sky2: byteorder annotation
authorshemminger@osdl.org <shemminger@osdl.org>
Wed, 30 Nov 2005 19:45:20 +0000 (11:45 -0800)
committerJeff Garzik <jgarzik@pobox.com>
Thu, 1 Dec 2005 07:20:20 +0000 (02:20 -0500)
Use byteorder annotation for hardware structures

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/sky2.h

index f836b0322b1977b9fa853b4e7690b59fcc25d907..420454a4472410e93a098af90639803da3b1e874 100644 (file)
@@ -1746,31 +1746,31 @@ enum {
  */
 struct sky2_tx_le {
        union {
-               u32     addr;
+               __le32  addr;
                struct {
-                       u16     offset;
-                       u16     start;
+                       __le16  offset;
+                       __le16  start;
                } csum  __attribute((packed));
                struct {
-                       u16     size;
-                       u16     rsvd;
+                       __le16  size;
+                       __le16  rsvd;
                } tso  __attribute((packed));
        } tx;
-       u16     length; /* also vlan tag or checksum start */
+       __le16  length; /* also vlan tag or checksum start */
        u8      ctrl;
        u8      opcode;
 } __attribute((packed));
 
 struct sky2_rx_le {
-       u32     addr;
-       u16     length;
+       __le32  addr;
+       __le16  length;
        u8      ctrl;
        u8      opcode;
 } __attribute((packed));;
 
 struct sky2_status_le {
-       u32     status; /* also checksum */
-       u16     length; /* also vlan tag */
+       __le32  status; /* also checksum */
+       __le16  length; /* also vlan tag */
        u8      link;
        u8      opcode;
 } __attribute((packed));