diff options
author | shemminger@osdl.org <shemminger@osdl.org> | 2005-11-30 14:45:20 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-12-01 02:20:20 -0500 |
commit | 65497dacd8104004f5115dcb2dfe1bf697154ce9 (patch) | |
tree | 71d0654c88d08a27815ed239b03cd4f2f9b919a2 /drivers/net/sky2.h | |
parent | 2224795d7e4c7f7e44fe21f0fa067d62539308fb (diff) |
[PATCH] sky2: byteorder annotation
Use byteorder annotation for hardware structures
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/sky2.h')
-rw-r--r-- | drivers/net/sky2.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/sky2.h b/drivers/net/sky2.h index f836b0322b19..420454a44724 100644 --- a/drivers/net/sky2.h +++ b/drivers/net/sky2.h | |||
@@ -1746,31 +1746,31 @@ enum { | |||
1746 | */ | 1746 | */ |
1747 | struct sky2_tx_le { | 1747 | struct sky2_tx_le { |
1748 | union { | 1748 | union { |
1749 | u32 addr; | 1749 | __le32 addr; |
1750 | struct { | 1750 | struct { |
1751 | u16 offset; | 1751 | __le16 offset; |
1752 | u16 start; | 1752 | __le16 start; |
1753 | } csum __attribute((packed)); | 1753 | } csum __attribute((packed)); |
1754 | struct { | 1754 | struct { |
1755 | u16 size; | 1755 | __le16 size; |
1756 | u16 rsvd; | 1756 | __le16 rsvd; |
1757 | } tso __attribute((packed)); | 1757 | } tso __attribute((packed)); |
1758 | } tx; | 1758 | } tx; |
1759 | u16 length; /* also vlan tag or checksum start */ | 1759 | __le16 length; /* also vlan tag or checksum start */ |
1760 | u8 ctrl; | 1760 | u8 ctrl; |
1761 | u8 opcode; | 1761 | u8 opcode; |
1762 | } __attribute((packed)); | 1762 | } __attribute((packed)); |
1763 | 1763 | ||
1764 | struct sky2_rx_le { | 1764 | struct sky2_rx_le { |
1765 | u32 addr; | 1765 | __le32 addr; |
1766 | u16 length; | 1766 | __le16 length; |
1767 | u8 ctrl; | 1767 | u8 ctrl; |
1768 | u8 opcode; | 1768 | u8 opcode; |
1769 | } __attribute((packed));; | 1769 | } __attribute((packed));; |
1770 | 1770 | ||
1771 | struct sky2_status_le { | 1771 | struct sky2_status_le { |
1772 | u32 status; /* also checksum */ | 1772 | __le32 status; /* also checksum */ |
1773 | u16 length; /* also vlan tag */ | 1773 | __le16 length; /* also vlan tag */ |
1774 | u8 link; | 1774 | u8 link; |
1775 | u8 opcode; | 1775 | u8 opcode; |
1776 | } __attribute((packed)); | 1776 | } __attribute((packed)); |