Commit 3cac0e31 authored by Stephen Hemminger's avatar Stephen Hemminger

[PATCH] (3/4) acenic - __iomem warnings cleanup

This cleans all the compile warnings and most of the sparse warnings
for the acenic driver relating to io memory space.
Remaining warnings are because tx_ring can be either in i/o or not
depending on the version of the card.
Not tested on old TIGON card.
Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
parent cd08e4da
This diff is collapsed.
...@@ -633,7 +633,7 @@ struct ace_skb ...@@ -633,7 +633,7 @@ struct ace_skb
struct ace_private struct ace_private
{ {
struct ace_info *info; struct ace_info *info;
struct ace_regs *regs; /* register base */ struct ace_regs __iomem *regs; /* register base */
struct ace_skb *skb; struct ace_skb *skb;
dma_addr_t info_dma; /* 32/64 bit */ dma_addr_t info_dma; /* 32/64 bit */
...@@ -718,7 +718,7 @@ static inline void set_aceaddr(aceaddr *aa, dma_addr_t addr) ...@@ -718,7 +718,7 @@ static inline void set_aceaddr(aceaddr *aa, dma_addr_t addr)
} }
static inline void ace_set_txprd(struct ace_regs *regs, static inline void ace_set_txprd(struct ace_regs __iomem *regs,
struct ace_private *ap, u32 value) struct ace_private *ap, u32 value)
{ {
#ifdef INDEX_DEBUG #ifdef INDEX_DEBUG
...@@ -740,7 +740,7 @@ static inline void ace_set_txprd(struct ace_regs *regs, ...@@ -740,7 +740,7 @@ static inline void ace_set_txprd(struct ace_regs *regs,
static inline void ace_mask_irq(struct net_device *dev) static inline void ace_mask_irq(struct net_device *dev)
{ {
struct ace_private *ap = netdev_priv(dev); struct ace_private *ap = netdev_priv(dev);
struct ace_regs *regs = ap->regs; struct ace_regs __iomem *regs = ap->regs;
if (ACE_IS_TIGON_I(ap)) if (ACE_IS_TIGON_I(ap))
writel(1, &regs->MaskInt); writel(1, &regs->MaskInt);
...@@ -754,7 +754,7 @@ static inline void ace_mask_irq(struct net_device *dev) ...@@ -754,7 +754,7 @@ static inline void ace_mask_irq(struct net_device *dev)
static inline void ace_unmask_irq(struct net_device *dev) static inline void ace_unmask_irq(struct net_device *dev)
{ {
struct ace_private *ap = netdev_priv(dev); struct ace_private *ap = netdev_priv(dev);
struct ace_regs *regs = ap->regs; struct ace_regs __iomem *regs = ap->regs;
if (ACE_IS_TIGON_I(ap)) if (ACE_IS_TIGON_I(ap))
writel(0, &regs->MaskInt); writel(0, &regs->MaskInt);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment