aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sis190.c
diff options
context:
space:
mode:
authorFrancois Romieu <romieu@fr.zoreil.com>2005-07-30 07:14:18 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-07-30 18:21:00 -0400
commit3cec93c7124c3037dbff826d6c08e9758a301cd7 (patch)
tree895aa5c42daf9c5bdb7f25b5fc87d663c4b871bd /drivers/net/sis190.c
parentbcad5e537840ef6fa28b2f1e126fefb4c39a7248 (diff)
[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/sis190.c')
-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 {
191}; 191};
192 192
193struct TxDesc { 193struct TxDesc {
194 u32 PSize; 194 __le32 PSize;
195 u32 status; 195 __le32 status;
196 u32 addr; 196 __le32 addr;
197 u32 size; 197 __le32 size;
198}; 198};
199 199
200struct RxDesc { 200struct RxDesc {
201 u32 PSize; 201 __le32 PSize;
202 u32 status; 202 __le32 status;
203 u32 addr; 203 __le32 addr;
204 u32 size; 204 __le32 size;
205}; 205};
206 206
207enum _DescStatusBit { 207enum _DescStatusBit {
@@ -1322,7 +1322,7 @@ static int __devinit sis190_get_mac_addr_from_eeprom(struct pci_dev *pdev,
1322 1322
1323 /* Get MAC address from EEPROM */ 1323 /* Get MAC address from EEPROM */
1324 for (i = 0; i < MAC_ADDR_LEN / 2; i++) { 1324 for (i = 0; i < MAC_ADDR_LEN / 2; i++) {
1325 u16 w = sis190_read_eeprom(ioaddr, EEPROMMACAddr + i); 1325 __le16 w = sis190_read_eeprom(ioaddr, EEPROMMACAddr + i);
1326 1326
1327 ((u16 *)dev->dev_addr)[0] = le16_to_cpu(w); 1327 ((u16 *)dev->dev_addr)[0] = le16_to_cpu(w);
1328 } 1328 }