diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-12-22 18:11:18 +0000 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-12-22 22:53:06 -0500 |
commit | 78ce8d3d1c75c22ae593ad4ccaffa19ee0e2576d (patch) | |
tree | 32cdc1cbe9389ddd5addfccfac5bc9d00197b2f9 /drivers/net/dl2k.h | |
parent | e5a314210087558f21617255754e7687e9a7f81d (diff) | |
download | lwn-78ce8d3d1c75c22ae593ad4ccaffa19ee0e2576d.tar.gz lwn-78ce8d3d1c75c22ae593ad4ccaffa19ee0e2576d.zip |
dl2k endianness fixes (.24 fodder?)
* shift before cpu_to_le64(), not after it
* writel() converts to l-e itself
* misc missing conversions
* in set_multicast() hash_table[] is host-endian; we feed it to card
via writel() and populate it as host-endian, so we'd better put the
first element into it also in host-endian
* pci_unmap_single() et.al. expect host-endian, not little-endian
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/dl2k.h')
-rw-r--r-- | drivers/net/dl2k.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/dl2k.h b/drivers/net/dl2k.h index 5b801775f42d..014b77ce96df 100644 --- a/drivers/net/dl2k.h +++ b/drivers/net/dl2k.h @@ -633,9 +633,9 @@ struct mii_data { /* The Rx and Tx buffer descriptors. */ struct netdev_desc { - u64 next_desc; - u64 status; - u64 fraginfo; + __le64 next_desc; + __le64 status; + __le64 fraginfo; }; #define PRIV_ALIGN 15 /* Required alignment mask */ |