提交 3cec93c7 编写于 作者: F Francois Romieu 提交者: Jeff Garzik

[PATCH] sis190: add endian annotations.

Add endian annotations.
Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: NFrancois Romieu <romieu@fr.zoreil.com>
Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
上级 bcad5e53
...@@ -191,17 +191,17 @@ enum sis190_register_content { ...@@ -191,17 +191,17 @@ enum sis190_register_content {
}; };
struct TxDesc { struct TxDesc {
u32 PSize; __le32 PSize;
u32 status; __le32 status;
u32 addr; __le32 addr;
u32 size; __le32 size;
}; };
struct RxDesc { struct RxDesc {
u32 PSize; __le32 PSize;
u32 status; __le32 status;
u32 addr; __le32 addr;
u32 size; __le32 size;
}; };
enum _DescStatusBit { enum _DescStatusBit {
...@@ -1322,7 +1322,7 @@ static int __devinit sis190_get_mac_addr_from_eeprom(struct pci_dev *pdev, ...@@ -1322,7 +1322,7 @@ static int __devinit sis190_get_mac_addr_from_eeprom(struct pci_dev *pdev,
/* Get MAC address from EEPROM */ /* Get MAC address from EEPROM */
for (i = 0; i < MAC_ADDR_LEN / 2; i++) { 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); ((u16 *)dev->dev_addr)[0] = le16_to_cpu(w);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册