aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wavelan_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/wavelan_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/wavelan_cs.c')
-rw-r--r--drivers/net/wireless/wavelan_cs.c56
1 files changed, 28 insertions, 28 deletions
diff --git a/drivers/net/wireless/wavelan_cs.c b/drivers/net/wireless/wavelan_cs.c
index c2037b2a05bf..06eea6ab7bf0 100644
--- a/drivers/net/wireless/wavelan_cs.c
+++ b/drivers/net/wireless/wavelan_cs.c
@@ -149,7 +149,7 @@ psa_write(struct net_device * dev,
149 net_local *lp = netdev_priv(dev); 149 net_local *lp = netdev_priv(dev);
150 u_char __iomem *ptr = lp->mem + PSA_ADDR + (o << 1); 150 u_char __iomem *ptr = lp->mem + PSA_ADDR + (o << 1);
151 int count = 0; 151 int count = 0;
152 kio_addr_t base = dev->base_addr; 152 unsigned int base = dev->base_addr;
153 /* As there seem to have no flag PSA_BUSY as in the ISA model, we are 153 /* As there seem to have no flag PSA_BUSY as in the ISA model, we are
154 * oblige to verify this address to know when the PSA is ready... */ 154 * oblige to verify this address to know when the PSA is ready... */
155 volatile u_char __iomem *verify = lp->mem + PSA_ADDR + 155 volatile u_char __iomem *verify = lp->mem + PSA_ADDR +
@@ -708,7 +708,7 @@ static void wl_update_history(wavepoint_history *wavepoint, unsigned char sigqua
708/* Perform a handover to a new WavePoint */ 708/* Perform a handover to a new WavePoint */
709static void wv_roam_handover(wavepoint_history *wavepoint, net_local *lp) 709static void wv_roam_handover(wavepoint_history *wavepoint, net_local *lp)
710{ 710{
711 kio_addr_t base = lp->dev->base_addr; 711 unsigned int base = lp->dev->base_addr;
712 mm_t m; 712 mm_t m;
713 unsigned long flags; 713 unsigned long flags;
714 714
@@ -821,7 +821,7 @@ wv_82593_cmd(struct net_device * dev,
821 int cmd, 821 int cmd,
822 int result) 822 int result)
823{ 823{
824 kio_addr_t base = dev->base_addr; 824 unsigned int base = dev->base_addr;
825 int status; 825 int status;
826 int wait_completed; 826 int wait_completed;
827 long spin; 827 long spin;
@@ -945,7 +945,7 @@ read_ringbuf(struct net_device * dev,
945 char * buf, 945 char * buf,
946 int len) 946 int len)
947{ 947{
948 kio_addr_t base = dev->base_addr; 948 unsigned int base = dev->base_addr;
949 int ring_ptr = addr; 949 int ring_ptr = addr;
950 int chunk_len; 950 int chunk_len;
951 char * buf_ptr = buf; 951 char * buf_ptr = buf;
@@ -1096,7 +1096,7 @@ wv_psa_show(psa_t * p)
1096static void 1096static void
1097wv_mmc_show(struct net_device * dev) 1097wv_mmc_show(struct net_device * dev)
1098{ 1098{
1099 kio_addr_t base = dev->base_addr; 1099 unsigned int base = dev->base_addr;
1100 net_local * lp = netdev_priv(dev); 1100 net_local * lp = netdev_priv(dev);
1101 mmr_t m; 1101 mmr_t m;
1102 1102
@@ -1275,7 +1275,7 @@ wv_packet_info(u_char * p, /* Packet to dump */
1275static inline void 1275static inline void
1276wv_init_info(struct net_device * dev) 1276wv_init_info(struct net_device * dev)
1277{ 1277{
1278 kio_addr_t base = dev->base_addr; 1278 unsigned int base = dev->base_addr;
1279 psa_t psa; 1279 psa_t psa;
1280 DECLARE_MAC_BUF(mac); 1280 DECLARE_MAC_BUF(mac);
1281 1281
@@ -1294,7 +1294,7 @@ wv_init_info(struct net_device * dev)
1294 1294
1295#ifdef DEBUG_BASIC_SHOW 1295#ifdef DEBUG_BASIC_SHOW
1296 /* Now, let's go for the basic stuff */ 1296 /* Now, let's go for the basic stuff */
1297 printk(KERN_NOTICE "%s: WaveLAN: port %#lx, irq %d, " 1297 printk(KERN_NOTICE "%s: WaveLAN: port %#x, irq %d, "
1298 "hw_addr %s", 1298 "hw_addr %s",
1299 dev->name, base, dev->irq, 1299 dev->name, base, dev->irq,
1300 print_mac(mac, dev->dev_addr)); 1300 print_mac(mac, dev->dev_addr));
@@ -1828,7 +1828,7 @@ static int wavelan_set_nwid(struct net_device *dev,
1828 union iwreq_data *wrqu, 1828 union iwreq_data *wrqu,
1829 char *extra) 1829 char *extra)
1830{ 1830{
1831 kio_addr_t base = dev->base_addr; 1831 unsigned int base = dev->base_addr;
1832 net_local *lp = netdev_priv(dev); 1832 net_local *lp = netdev_priv(dev);
1833 psa_t psa; 1833 psa_t psa;
1834 mm_t m; 1834 mm_t m;
@@ -1918,7 +1918,7 @@ static int wavelan_set_freq(struct net_device *dev,
1918 union iwreq_data *wrqu, 1918 union iwreq_data *wrqu,
1919 char *extra) 1919 char *extra)
1920{ 1920{
1921 kio_addr_t base = dev->base_addr; 1921 unsigned int base = dev->base_addr;
1922 net_local *lp = netdev_priv(dev); 1922 net_local *lp = netdev_priv(dev);
1923 unsigned long flags; 1923 unsigned long flags;
1924 int ret; 1924 int ret;
@@ -1948,7 +1948,7 @@ static int wavelan_get_freq(struct net_device *dev,
1948 union iwreq_data *wrqu, 1948 union iwreq_data *wrqu,
1949 char *extra) 1949 char *extra)
1950{ 1950{
1951 kio_addr_t base = dev->base_addr; 1951 unsigned int base = dev->base_addr;
1952 net_local *lp = netdev_priv(dev); 1952 net_local *lp = netdev_priv(dev);
1953 psa_t psa; 1953 psa_t psa;
1954 unsigned long flags; 1954 unsigned long flags;
@@ -1994,7 +1994,7 @@ static int wavelan_set_sens(struct net_device *dev,
1994 union iwreq_data *wrqu, 1994 union iwreq_data *wrqu,
1995 char *extra) 1995 char *extra)
1996{ 1996{
1997 kio_addr_t base = dev->base_addr; 1997 unsigned int base = dev->base_addr;
1998 net_local *lp = netdev_priv(dev); 1998 net_local *lp = netdev_priv(dev);
1999 psa_t psa; 1999 psa_t psa;
2000 unsigned long flags; 2000 unsigned long flags;
@@ -2060,7 +2060,7 @@ static int wavelan_set_encode(struct net_device *dev,
2060 union iwreq_data *wrqu, 2060 union iwreq_data *wrqu,
2061 char *extra) 2061 char *extra)
2062{ 2062{
2063 kio_addr_t base = dev->base_addr; 2063 unsigned int base = dev->base_addr;
2064 net_local *lp = netdev_priv(dev); 2064 net_local *lp = netdev_priv(dev);
2065 unsigned long flags; 2065 unsigned long flags;
2066 psa_t psa; 2066 psa_t psa;
@@ -2130,7 +2130,7 @@ static int wavelan_get_encode(struct net_device *dev,
2130 union iwreq_data *wrqu, 2130 union iwreq_data *wrqu,
2131 char *extra) 2131 char *extra)
2132{ 2132{
2133 kio_addr_t base = dev->base_addr; 2133 unsigned int base = dev->base_addr;
2134 net_local *lp = netdev_priv(dev); 2134 net_local *lp = netdev_priv(dev);
2135 psa_t psa; 2135 psa_t psa;
2136 unsigned long flags; 2136 unsigned long flags;
@@ -2349,7 +2349,7 @@ static int wavelan_get_range(struct net_device *dev,
2349 union iwreq_data *wrqu, 2349 union iwreq_data *wrqu,
2350 char *extra) 2350 char *extra)
2351{ 2351{
2352 kio_addr_t base = dev->base_addr; 2352 unsigned int base = dev->base_addr;
2353 net_local *lp = netdev_priv(dev); 2353 net_local *lp = netdev_priv(dev);
2354 struct iw_range *range = (struct iw_range *) extra; 2354 struct iw_range *range = (struct iw_range *) extra;
2355 unsigned long flags; 2355 unsigned long flags;
@@ -2425,7 +2425,7 @@ static int wavelan_set_qthr(struct net_device *dev,
2425 union iwreq_data *wrqu, 2425 union iwreq_data *wrqu,
2426 char *extra) 2426 char *extra)
2427{ 2427{
2428 kio_addr_t base = dev->base_addr; 2428 unsigned int base = dev->base_addr;
2429 net_local *lp = netdev_priv(dev); 2429 net_local *lp = netdev_priv(dev);
2430 psa_t psa; 2430 psa_t psa;
2431 unsigned long flags; 2431 unsigned long flags;
@@ -2701,7 +2701,7 @@ static const struct iw_handler_def wavelan_handler_def =
2701static iw_stats * 2701static iw_stats *
2702wavelan_get_wireless_stats(struct net_device * dev) 2702wavelan_get_wireless_stats(struct net_device * dev)
2703{ 2703{
2704 kio_addr_t base = dev->base_addr; 2704 unsigned int base = dev->base_addr;
2705 net_local * lp = netdev_priv(dev); 2705 net_local * lp = netdev_priv(dev);
2706 mmr_t m; 2706 mmr_t m;
2707 iw_stats * wstats; 2707 iw_stats * wstats;
@@ -2764,7 +2764,7 @@ wv_start_of_frame(struct net_device * dev,
2764 int rfp, /* end of frame */ 2764 int rfp, /* end of frame */
2765 int wrap) /* start of buffer */ 2765 int wrap) /* start of buffer */
2766{ 2766{
2767 kio_addr_t base = dev->base_addr; 2767 unsigned int base = dev->base_addr;
2768 int rp; 2768 int rp;
2769 int len; 2769 int len;
2770 2770
@@ -2925,7 +2925,7 @@ wv_packet_read(struct net_device * dev,
2925static inline void 2925static inline void
2926wv_packet_rcv(struct net_device * dev) 2926wv_packet_rcv(struct net_device * dev)
2927{ 2927{
2928 kio_addr_t base = dev->base_addr; 2928 unsigned int base = dev->base_addr;
2929 net_local * lp = netdev_priv(dev); 2929 net_local * lp = netdev_priv(dev);
2930 int newrfp; 2930 int newrfp;
2931 int rp; 2931 int rp;
@@ -3062,7 +3062,7 @@ wv_packet_write(struct net_device * dev,
3062 short length) 3062 short length)
3063{ 3063{
3064 net_local * lp = netdev_priv(dev); 3064 net_local * lp = netdev_priv(dev);
3065 kio_addr_t base = dev->base_addr; 3065 unsigned int base = dev->base_addr;
3066 unsigned long flags; 3066 unsigned long flags;
3067 int clen = length; 3067 int clen = length;
3068 register u_short xmtdata_base = TX_BASE; 3068 register u_short xmtdata_base = TX_BASE;
@@ -3183,7 +3183,7 @@ wavelan_packet_xmit(struct sk_buff * skb,
3183static inline int 3183static inline int
3184wv_mmc_init(struct net_device * dev) 3184wv_mmc_init(struct net_device * dev)
3185{ 3185{
3186 kio_addr_t base = dev->base_addr; 3186 unsigned int base = dev->base_addr;
3187 psa_t psa; 3187 psa_t psa;
3188 mmw_t m; 3188 mmw_t m;
3189 int configured; 3189 int configured;
@@ -3377,7 +3377,7 @@ wv_mmc_init(struct net_device * dev)
3377static int 3377static int
3378wv_ru_stop(struct net_device * dev) 3378wv_ru_stop(struct net_device * dev)
3379{ 3379{
3380 kio_addr_t base = dev->base_addr; 3380 unsigned int base = dev->base_addr;
3381 net_local * lp = netdev_priv(dev); 3381 net_local * lp = netdev_priv(dev);
3382 unsigned long flags; 3382 unsigned long flags;
3383 int status; 3383 int status;
@@ -3440,7 +3440,7 @@ wv_ru_stop(struct net_device * dev)
3440static int 3440static int
3441wv_ru_start(struct net_device * dev) 3441wv_ru_start(struct net_device * dev)
3442{ 3442{
3443 kio_addr_t base = dev->base_addr; 3443 unsigned int base = dev->base_addr;
3444 net_local * lp = netdev_priv(dev); 3444 net_local * lp = netdev_priv(dev);
3445 unsigned long flags; 3445 unsigned long flags;
3446 3446
@@ -3528,7 +3528,7 @@ wv_ru_start(struct net_device * dev)
3528static int 3528static int
3529wv_82593_config(struct net_device * dev) 3529wv_82593_config(struct net_device * dev)
3530{ 3530{
3531 kio_addr_t base = dev->base_addr; 3531 unsigned int base = dev->base_addr;
3532 net_local * lp = netdev_priv(dev); 3532 net_local * lp = netdev_priv(dev);
3533 struct i82593_conf_block cfblk; 3533 struct i82593_conf_block cfblk;
3534 int ret = TRUE; 3534 int ret = TRUE;
@@ -3765,7 +3765,7 @@ static int
3765wv_hw_config(struct net_device * dev) 3765wv_hw_config(struct net_device * dev)
3766{ 3766{
3767 net_local * lp = netdev_priv(dev); 3767 net_local * lp = netdev_priv(dev);
3768 kio_addr_t base = dev->base_addr; 3768 unsigned int base = dev->base_addr;
3769 unsigned long flags; 3769 unsigned long flags;
3770 int ret = FALSE; 3770 int ret = FALSE;
3771 3771
@@ -4047,7 +4047,7 @@ wavelan_interrupt(int irq,
4047{ 4047{
4048 struct net_device * dev = dev_id; 4048 struct net_device * dev = dev_id;
4049 net_local * lp; 4049 net_local * lp;
4050 kio_addr_t base; 4050 unsigned int base;
4051 int status0; 4051 int status0;
4052 u_int tx_status; 4052 u_int tx_status;
4053 4053
@@ -4306,7 +4306,7 @@ static void
4306wavelan_watchdog(struct net_device * dev) 4306wavelan_watchdog(struct net_device * dev)
4307{ 4307{
4308 net_local * lp = netdev_priv(dev); 4308 net_local * lp = netdev_priv(dev);
4309 kio_addr_t base = dev->base_addr; 4309 unsigned int base = dev->base_addr;
4310 unsigned long flags; 4310 unsigned long flags;
4311 int aborted = FALSE; 4311 int aborted = FALSE;
4312 4312
@@ -4382,7 +4382,7 @@ wavelan_open(struct net_device * dev)
4382{ 4382{
4383 net_local * lp = netdev_priv(dev); 4383 net_local * lp = netdev_priv(dev);
4384 struct pcmcia_device * link = lp->link; 4384 struct pcmcia_device * link = lp->link;
4385 kio_addr_t base = dev->base_addr; 4385 unsigned int base = dev->base_addr;
4386 4386
4387#ifdef DEBUG_CALLBACK_TRACE 4387#ifdef DEBUG_CALLBACK_TRACE
4388 printk(KERN_DEBUG "%s: ->wavelan_open(dev=0x%x)\n", dev->name, 4388 printk(KERN_DEBUG "%s: ->wavelan_open(dev=0x%x)\n", dev->name,
@@ -4436,7 +4436,7 @@ static int
4436wavelan_close(struct net_device * dev) 4436wavelan_close(struct net_device * dev)
4437{ 4437{
4438 struct pcmcia_device * link = ((net_local *)netdev_priv(dev))->link; 4438 struct pcmcia_device * link = ((net_local *)netdev_priv(dev))->link;
4439 kio_addr_t base = dev->base_addr; 4439 unsigned int base = dev->base_addr;
4440 4440
4441#ifdef DEBUG_CALLBACK_TRACE 4441#ifdef DEBUG_CALLBACK_TRACE
4442 printk(KERN_DEBUG "%s: ->wavelan_close(dev=0x%x)\n", dev->name, 4442 printk(KERN_DEBUG "%s: ->wavelan_close(dev=0x%x)\n", dev->name,