aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/netwave_cs.c
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2008-02-05 01:27:35 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-05 12:44:08 -0500
commit906da809c5be30b4c7f32bb6a489fb25ad794878 (patch)
tree9516df9eb1a64ee94d185d2711bde3d1defaabb5 /drivers/net/wireless/netwave_cs.c
parentecb8a8472f6d314096f20885722f2033d2071719 (diff)
pcmcia: replace kio_addr_t with unsigned int everywhere
Remove kio_addr_t, and replace it with unsigned int. No known architecture needs more than 32 bits for IO addresses and ports and having a separate type for it is just messy. Signed-off-by: Olof Johansson <olof@lixom.net> Cc: Christoph Hellwig <hch@lst.de> Cc: Matthew Wilcox <matthew@wil.cx> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: Dominik Brodowski <linux@dominikbrodowski.net> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/net/wireless/netwave_cs.c')
-rw-r--r--drivers/net/wireless/netwave_cs.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/wireless/netwave_cs.c b/drivers/net/wireless/netwave_cs.c
index d2fa079fbc4c..f479c1af6782 100644
--- a/drivers/net/wireless/netwave_cs.c
+++ b/drivers/net/wireless/netwave_cs.c
@@ -195,7 +195,7 @@ static int netwave_pcmcia_config(struct pcmcia_device *arg); /* Runs after card
195static void netwave_detach(struct pcmcia_device *p_dev); /* Destroy instance */ 195static void netwave_detach(struct pcmcia_device *p_dev); /* Destroy instance */
196 196
197/* Hardware configuration */ 197/* Hardware configuration */
198static void netwave_doreset(kio_addr_t iobase, u_char __iomem *ramBase); 198static void netwave_doreset(unsigned int iobase, u_char __iomem *ramBase);
199static void netwave_reset(struct net_device *dev); 199static void netwave_reset(struct net_device *dev);
200 200
201/* Misc device stuff */ 201/* Misc device stuff */
@@ -309,7 +309,7 @@ static inline void wait_WOC(unsigned int iobase)
309} 309}
310 310
311static void netwave_snapshot(netwave_private *priv, u_char __iomem *ramBase, 311static void netwave_snapshot(netwave_private *priv, u_char __iomem *ramBase,
312 kio_addr_t iobase) { 312 unsigned int iobase) {
313 u_short resultBuffer; 313 u_short resultBuffer;
314 314
315 /* if time since last snapshot is > 1 sec. (100 jiffies?) then take 315 /* if time since last snapshot is > 1 sec. (100 jiffies?) then take
@@ -340,7 +340,7 @@ static void netwave_snapshot(netwave_private *priv, u_char __iomem *ramBase,
340static struct iw_statistics *netwave_get_wireless_stats(struct net_device *dev) 340static struct iw_statistics *netwave_get_wireless_stats(struct net_device *dev)
341{ 341{
342 unsigned long flags; 342 unsigned long flags;
343 kio_addr_t iobase = dev->base_addr; 343 unsigned int iobase = dev->base_addr;
344 netwave_private *priv = netdev_priv(dev); 344 netwave_private *priv = netdev_priv(dev);
345 u_char __iomem *ramBase = priv->ramBase; 345 u_char __iomem *ramBase = priv->ramBase;
346 struct iw_statistics* wstats; 346 struct iw_statistics* wstats;
@@ -471,7 +471,7 @@ static int netwave_set_nwid(struct net_device *dev,
471 char *extra) 471 char *extra)
472{ 472{
473 unsigned long flags; 473 unsigned long flags;
474 kio_addr_t iobase = dev->base_addr; 474 unsigned int iobase = dev->base_addr;
475 netwave_private *priv = netdev_priv(dev); 475 netwave_private *priv = netdev_priv(dev);
476 u_char __iomem *ramBase = priv->ramBase; 476 u_char __iomem *ramBase = priv->ramBase;
477 477
@@ -518,7 +518,7 @@ static int netwave_set_scramble(struct net_device *dev,
518 char *key) 518 char *key)
519{ 519{
520 unsigned long flags; 520 unsigned long flags;
521 kio_addr_t iobase = dev->base_addr; 521 unsigned int iobase = dev->base_addr;
522 netwave_private *priv = netdev_priv(dev); 522 netwave_private *priv = netdev_priv(dev);
523 u_char __iomem *ramBase = priv->ramBase; 523 u_char __iomem *ramBase = priv->ramBase;
524 524
@@ -621,7 +621,7 @@ static int netwave_get_snap(struct net_device *dev,
621 char *extra) 621 char *extra)
622{ 622{
623 unsigned long flags; 623 unsigned long flags;
624 kio_addr_t iobase = dev->base_addr; 624 unsigned int iobase = dev->base_addr;
625 netwave_private *priv = netdev_priv(dev); 625 netwave_private *priv = netdev_priv(dev);
626 u_char __iomem *ramBase = priv->ramBase; 626 u_char __iomem *ramBase = priv->ramBase;
627 627
@@ -874,7 +874,7 @@ static int netwave_resume(struct pcmcia_device *link)
874 * 874 *
875 * Proper hardware reset of the card. 875 * Proper hardware reset of the card.
876 */ 876 */
877static void netwave_doreset(kio_addr_t ioBase, u_char __iomem *ramBase) 877static void netwave_doreset(unsigned int ioBase, u_char __iomem *ramBase)
878{ 878{
879 /* Reset card */ 879 /* Reset card */
880 wait_WOC(ioBase); 880 wait_WOC(ioBase);
@@ -892,7 +892,7 @@ static void netwave_reset(struct net_device *dev) {
892 /* u_char state; */ 892 /* u_char state; */
893 netwave_private *priv = netdev_priv(dev); 893 netwave_private *priv = netdev_priv(dev);
894 u_char __iomem *ramBase = priv->ramBase; 894 u_char __iomem *ramBase = priv->ramBase;
895 kio_addr_t iobase = dev->base_addr; 895 unsigned int iobase = dev->base_addr;
896 896
897 DEBUG(0, "netwave_reset: Done with hardware reset\n"); 897 DEBUG(0, "netwave_reset: Done with hardware reset\n");
898 898
@@ -973,7 +973,7 @@ static int netwave_hw_xmit(unsigned char* data, int len,
973 973
974 netwave_private *priv = netdev_priv(dev); 974 netwave_private *priv = netdev_priv(dev);
975 u_char __iomem * ramBase = priv->ramBase; 975 u_char __iomem * ramBase = priv->ramBase;
976 kio_addr_t iobase = dev->base_addr; 976 unsigned int iobase = dev->base_addr;
977 977
978 /* Disable interrupts & save flags */ 978 /* Disable interrupts & save flags */
979 spin_lock_irqsave(&priv->spinlock, flags); 979 spin_lock_irqsave(&priv->spinlock, flags);
@@ -1065,7 +1065,7 @@ static int netwave_start_xmit(struct sk_buff *skb, struct net_device *dev) {
1065 */ 1065 */
1066static irqreturn_t netwave_interrupt(int irq, void* dev_id) 1066static irqreturn_t netwave_interrupt(int irq, void* dev_id)
1067{ 1067{
1068 kio_addr_t iobase; 1068 unsigned int iobase;
1069 u_char __iomem *ramBase; 1069 u_char __iomem *ramBase;
1070 struct net_device *dev = (struct net_device *)dev_id; 1070 struct net_device *dev = (struct net_device *)dev_id;
1071 struct netwave_private *priv = netdev_priv(dev); 1071 struct netwave_private *priv = netdev_priv(dev);
@@ -1235,7 +1235,7 @@ static int netwave_rx(struct net_device *dev)
1235{ 1235{
1236 netwave_private *priv = netdev_priv(dev); 1236 netwave_private *priv = netdev_priv(dev);
1237 u_char __iomem *ramBase = priv->ramBase; 1237 u_char __iomem *ramBase = priv->ramBase;
1238 kio_addr_t iobase = dev->base_addr; 1238 unsigned int iobase = dev->base_addr;
1239 u_char rxStatus; 1239 u_char rxStatus;
1240 struct sk_buff *skb = NULL; 1240 struct sk_buff *skb = NULL;
1241 unsigned int curBuffer, 1241 unsigned int curBuffer,
@@ -1388,7 +1388,7 @@ module_exit(exit_netwave_cs);
1388 */ 1388 */
1389static void set_multicast_list(struct net_device *dev) 1389static void set_multicast_list(struct net_device *dev)
1390{ 1390{
1391 kio_addr_t iobase = dev->base_addr; 1391 unsigned int iobase = dev->base_addr;
1392 netwave_private *priv = netdev_priv(dev); 1392 netwave_private *priv = netdev_priv(dev);
1393 u_char __iomem * ramBase = priv->ramBase; 1393 u_char __iomem * ramBase = priv->ramBase;
1394 u_char rcvMode = 0; 1394 u_char rcvMode = 0;