diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-12-22 13:11:18 -0500 |
---|---|---|
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) |
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 { | |||
633 | 633 | ||
634 | /* The Rx and Tx buffer descriptors. */ | 634 | /* The Rx and Tx buffer descriptors. */ |
635 | struct netdev_desc { | 635 | struct netdev_desc { |
636 | u64 next_desc; | 636 | __le64 next_desc; |
637 | u64 status; | 637 | __le64 status; |
638 | u64 fraginfo; | 638 | __le64 fraginfo; |
639 | }; | 639 | }; |
640 | 640 | ||
641 | #define PRIV_ALIGN 15 /* Required alignment mask */ | 641 | #define PRIV_ALIGN 15 /* Required alignment mask */ |