summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorFrancois Romieu <romieu@fr.zoreil.com>2005-07-30 13:14:18 +0200
committerJeff Garzik <jgarzik@pobox.com>2005-07-31 00:21:00 +0200
commit3cec93c7124c3037dbff826d6c08e9758a301cd7 (patch)
tree895aa5c42daf9c5bdb7f25b5fc87d663c4b871bd /drivers/net
parent[PATCH] sis190: extract bits definition from SiS driver. (diff)
downloadlinux-3cec93c7124c3037dbff826d6c08e9758a301cd7.tar.xz
linux-3cec93c7124c3037dbff826d6c08e9758a301cd7.zip
[PATCH] sis190: add endian annotations.
Add endian annotations. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/sis190.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/sis190.c b/drivers/net/sis190.c
index 3c33b2d14852..2387d4844037 100644
--- a/drivers/net/sis190.c
+++ b/drivers/net/sis190.c
@@ -191,17 +191,17 @@ enum sis190_register_content {
};
struct TxDesc {
- u32 PSize;
- u32 status;
- u32 addr;
- u32 size;
+ __le32 PSize;
+ __le32 status;
+ __le32 addr;
+ __le32 size;
};
struct RxDesc {
- u32 PSize;
- u32 status;
- u32 addr;
- u32 size;
+ __le32 PSize;
+ __le32 status;
+ __le32 addr;
+ __le32 size;
};
enum _DescStatusBit {
@@ -1322,7 +1322,7 @@ static int __devinit sis190_get_mac_addr_from_eeprom(struct pci_dev *pdev,
/* Get MAC address from EEPROM */
for (i = 0; i < MAC_ADDR_LEN / 2; i++) {
- u16 w = sis190_read_eeprom(ioaddr, EEPROMMACAddr + i);
+ __le16 w = sis190_read_eeprom(ioaddr, EEPROMMACAddr + i);
((u16 *)dev->dev_addr)[0] = le16_to_cpu(w);
}