summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/p54pci.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2007-12-22 04:02:23 +0100
committerDavid S. Miller <davem@davemloft.net>2008-01-29 00:09:07 +0100
commit8160c031491015299afacb95a1c1113ccbfefe54 (patch)
treebdcf60ff2542dbafc8a0b9bb6d267d556772ba11 /drivers/net/wireless/p54pci.h
parenthostap: don't mess with mixed-endian even for internal skb queues (diff)
downloadlinux-8160c031491015299afacb95a1c1113ccbfefe54.tar.xz
linux-8160c031491015299afacb95a1c1113ccbfefe54.zip
p54pci: endianness annotations and fixes
->ring_control_dma is dma_addr_t, needs conversion to little-endian before __raw_writel()... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54pci.h')
-rw-r--r--drivers/net/wireless/p54pci.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/p54pci.h b/drivers/net/wireless/p54pci.h
index 52feb597dc4a..5bedd7af385d 100644
--- a/drivers/net/wireless/p54pci.h
+++ b/drivers/net/wireless/p54pci.h
@@ -85,8 +85,8 @@ struct p54p_ring_control {
struct p54p_desc tx_mgmt[4];
} __attribute__ ((packed));
-#define P54P_READ(r) __raw_readl(&priv->map->r)
-#define P54P_WRITE(r, val) __raw_writel((__force u32)(val), &priv->map->r)
+#define P54P_READ(r) (__force __le32)__raw_readl(&priv->map->r)
+#define P54P_WRITE(r, val) __raw_writel((__force u32)(__le32)(val), &priv->map->r)
struct p54p_priv {
struct p54_common common;