diff options
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/b43/b43.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/b43/leds.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/b43/main.c | 26 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2100.c | 12 | ||||
-rw-r--r-- | drivers/net/wireless/netwave_cs.c | 24 | ||||
-rw-r--r-- | drivers/net/wireless/wavelan_cs.c | 56 |
6 files changed, 69 insertions, 55 deletions
diff --git a/drivers/net/wireless/b43/b43.h b/drivers/net/wireless/b43/b43.h index 32a24f5c4fa6..08a011f0834a 100644 --- a/drivers/net/wireless/b43/b43.h +++ b/drivers/net/wireless/b43/b43.h | |||
@@ -724,6 +724,7 @@ struct b43_wldev { | |||
724 | bool short_preamble; /* TRUE, if short preamble is enabled. */ | 724 | bool short_preamble; /* TRUE, if short preamble is enabled. */ |
725 | bool short_slot; /* TRUE, if short slot timing is enabled. */ | 725 | bool short_slot; /* TRUE, if short slot timing is enabled. */ |
726 | bool radio_hw_enable; /* saved state of radio hardware enabled state */ | 726 | bool radio_hw_enable; /* saved state of radio hardware enabled state */ |
727 | bool suspend_in_progress; /* TRUE, if we are in a suspend/resume cycle */ | ||
727 | 728 | ||
728 | /* PHY/Radio device. */ | 729 | /* PHY/Radio device. */ |
729 | struct b43_phy phy; | 730 | struct b43_phy phy; |
diff --git a/drivers/net/wireless/b43/leds.c b/drivers/net/wireless/b43/leds.c index 4b590d8c65ff..0908335892db 100644 --- a/drivers/net/wireless/b43/leds.c +++ b/drivers/net/wireless/b43/leds.c | |||
@@ -116,7 +116,10 @@ static void b43_unregister_led(struct b43_led *led) | |||
116 | { | 116 | { |
117 | if (!led->dev) | 117 | if (!led->dev) |
118 | return; | 118 | return; |
119 | led_classdev_unregister(&led->led_dev); | 119 | if (led->dev->suspend_in_progress) |
120 | led_classdev_unregister_suspended(&led->led_dev); | ||
121 | else | ||
122 | led_classdev_unregister(&led->led_dev); | ||
120 | b43_led_turn_off(led->dev, led->index, led->activelow); | 123 | b43_led_turn_off(led->dev, led->index, led->activelow); |
121 | led->dev = NULL; | 124 | led->dev = NULL; |
122 | } | 125 | } |
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index 64c154d080d8..ef65c41af00f 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include <linux/wireless.h> | 38 | #include <linux/wireless.h> |
39 | #include <linux/workqueue.h> | 39 | #include <linux/workqueue.h> |
40 | #include <linux/skbuff.h> | 40 | #include <linux/skbuff.h> |
41 | #include <linux/io.h> | ||
41 | #include <linux/dma-mapping.h> | 42 | #include <linux/dma-mapping.h> |
42 | #include <asm/unaligned.h> | 43 | #include <asm/unaligned.h> |
43 | 44 | ||
@@ -2554,10 +2555,10 @@ static int b43_rng_read(struct hwrng *rng, u32 * data) | |||
2554 | return (sizeof(u16)); | 2555 | return (sizeof(u16)); |
2555 | } | 2556 | } |
2556 | 2557 | ||
2557 | static void b43_rng_exit(struct b43_wl *wl) | 2558 | static void b43_rng_exit(struct b43_wl *wl, bool suspended) |
2558 | { | 2559 | { |
2559 | if (wl->rng_initialized) | 2560 | if (wl->rng_initialized) |
2560 | hwrng_unregister(&wl->rng); | 2561 | __hwrng_unregister(&wl->rng, suspended); |
2561 | } | 2562 | } |
2562 | 2563 | ||
2563 | static int b43_rng_init(struct b43_wl *wl) | 2564 | static int b43_rng_init(struct b43_wl *wl) |
@@ -3417,8 +3418,10 @@ static void b43_wireless_core_exit(struct b43_wldev *dev) | |||
3417 | macctl |= B43_MACCTL_PSM_JMP0; | 3418 | macctl |= B43_MACCTL_PSM_JMP0; |
3418 | b43_write32(dev, B43_MMIO_MACCTL, macctl); | 3419 | b43_write32(dev, B43_MMIO_MACCTL, macctl); |
3419 | 3420 | ||
3420 | b43_leds_exit(dev); | 3421 | if (!dev->suspend_in_progress) { |
3421 | b43_rng_exit(dev->wl); | 3422 | b43_leds_exit(dev); |
3423 | b43_rng_exit(dev->wl, false); | ||
3424 | } | ||
3422 | b43_dma_free(dev); | 3425 | b43_dma_free(dev); |
3423 | b43_chip_exit(dev); | 3426 | b43_chip_exit(dev); |
3424 | b43_radio_turn_off(dev, 1); | 3427 | b43_radio_turn_off(dev, 1); |
@@ -3534,11 +3537,13 @@ static int b43_wireless_core_init(struct b43_wldev *dev) | |||
3534 | ssb_bus_powerup(bus, 1); /* Enable dynamic PCTL */ | 3537 | ssb_bus_powerup(bus, 1); /* Enable dynamic PCTL */ |
3535 | b43_upload_card_macaddress(dev); | 3538 | b43_upload_card_macaddress(dev); |
3536 | b43_security_init(dev); | 3539 | b43_security_init(dev); |
3537 | b43_rng_init(wl); | 3540 | if (!dev->suspend_in_progress) |
3541 | b43_rng_init(wl); | ||
3538 | 3542 | ||
3539 | b43_set_status(dev, B43_STAT_INITIALIZED); | 3543 | b43_set_status(dev, B43_STAT_INITIALIZED); |
3540 | 3544 | ||
3541 | b43_leds_init(dev); | 3545 | if (!dev->suspend_in_progress) |
3546 | b43_leds_init(dev); | ||
3542 | out: | 3547 | out: |
3543 | return err; | 3548 | return err; |
3544 | 3549 | ||
@@ -4135,6 +4140,7 @@ static int b43_suspend(struct ssb_device *dev, pm_message_t state) | |||
4135 | b43dbg(wl, "Suspending...\n"); | 4140 | b43dbg(wl, "Suspending...\n"); |
4136 | 4141 | ||
4137 | mutex_lock(&wl->mutex); | 4142 | mutex_lock(&wl->mutex); |
4143 | wldev->suspend_in_progress = true; | ||
4138 | wldev->suspend_init_status = b43_status(wldev); | 4144 | wldev->suspend_init_status = b43_status(wldev); |
4139 | if (wldev->suspend_init_status >= B43_STAT_STARTED) | 4145 | if (wldev->suspend_init_status >= B43_STAT_STARTED) |
4140 | b43_wireless_core_stop(wldev); | 4146 | b43_wireless_core_stop(wldev); |
@@ -4166,15 +4172,17 @@ static int b43_resume(struct ssb_device *dev) | |||
4166 | if (wldev->suspend_init_status >= B43_STAT_STARTED) { | 4172 | if (wldev->suspend_init_status >= B43_STAT_STARTED) { |
4167 | err = b43_wireless_core_start(wldev); | 4173 | err = b43_wireless_core_start(wldev); |
4168 | if (err) { | 4174 | if (err) { |
4175 | b43_leds_exit(wldev); | ||
4176 | b43_rng_exit(wldev->wl, true); | ||
4169 | b43_wireless_core_exit(wldev); | 4177 | b43_wireless_core_exit(wldev); |
4170 | b43err(wl, "Resume failed at core start\n"); | 4178 | b43err(wl, "Resume failed at core start\n"); |
4171 | goto out; | 4179 | goto out; |
4172 | } | 4180 | } |
4173 | } | 4181 | } |
4174 | mutex_unlock(&wl->mutex); | ||
4175 | |||
4176 | b43dbg(wl, "Device resumed.\n"); | 4182 | b43dbg(wl, "Device resumed.\n"); |
4177 | out: | 4183 | out: |
4184 | wldev->suspend_in_progress = false; | ||
4185 | mutex_unlock(&wl->mutex); | ||
4178 | return err; | 4186 | return err; |
4179 | } | 4187 | } |
4180 | 4188 | ||
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c index 2ab107f45793..5bf9e00b070c 100644 --- a/drivers/net/wireless/ipw2100.c +++ b/drivers/net/wireless/ipw2100.c | |||
@@ -162,7 +162,7 @@ that only one external action is invoked at a time. | |||
162 | #include <linux/firmware.h> | 162 | #include <linux/firmware.h> |
163 | #include <linux/acpi.h> | 163 | #include <linux/acpi.h> |
164 | #include <linux/ctype.h> | 164 | #include <linux/ctype.h> |
165 | #include <linux/latency.h> | 165 | #include <linux/pm_qos_params.h> |
166 | 166 | ||
167 | #include "ipw2100.h" | 167 | #include "ipw2100.h" |
168 | 168 | ||
@@ -1701,7 +1701,7 @@ static int ipw2100_up(struct ipw2100_priv *priv, int deferred) | |||
1701 | /* the ipw2100 hardware really doesn't want power management delays | 1701 | /* the ipw2100 hardware really doesn't want power management delays |
1702 | * longer than 175usec | 1702 | * longer than 175usec |
1703 | */ | 1703 | */ |
1704 | modify_acceptable_latency("ipw2100", 175); | 1704 | pm_qos_update_requirement(PM_QOS_CPU_DMA_LATENCY, "ipw2100", 175); |
1705 | 1705 | ||
1706 | /* If the interrupt is enabled, turn it off... */ | 1706 | /* If the interrupt is enabled, turn it off... */ |
1707 | spin_lock_irqsave(&priv->low_lock, flags); | 1707 | spin_lock_irqsave(&priv->low_lock, flags); |
@@ -1856,7 +1856,8 @@ static void ipw2100_down(struct ipw2100_priv *priv) | |||
1856 | ipw2100_disable_interrupts(priv); | 1856 | ipw2100_disable_interrupts(priv); |
1857 | spin_unlock_irqrestore(&priv->low_lock, flags); | 1857 | spin_unlock_irqrestore(&priv->low_lock, flags); |
1858 | 1858 | ||
1859 | modify_acceptable_latency("ipw2100", INFINITE_LATENCY); | 1859 | pm_qos_update_requirement(PM_QOS_CPU_DMA_LATENCY, "ipw2100", |
1860 | PM_QOS_DEFAULT_VALUE); | ||
1860 | 1861 | ||
1861 | /* We have to signal any supplicant if we are disassociating */ | 1862 | /* We have to signal any supplicant if we are disassociating */ |
1862 | if (associated) | 1863 | if (associated) |
@@ -6554,7 +6555,8 @@ static int __init ipw2100_init(void) | |||
6554 | if (ret) | 6555 | if (ret) |
6555 | goto out; | 6556 | goto out; |
6556 | 6557 | ||
6557 | set_acceptable_latency("ipw2100", INFINITE_LATENCY); | 6558 | pm_qos_add_requirement(PM_QOS_CPU_DMA_LATENCY, "ipw2100", |
6559 | PM_QOS_DEFAULT_VALUE); | ||
6558 | #ifdef CONFIG_IPW2100_DEBUG | 6560 | #ifdef CONFIG_IPW2100_DEBUG |
6559 | ipw2100_debug_level = debug; | 6561 | ipw2100_debug_level = debug; |
6560 | ret = driver_create_file(&ipw2100_pci_driver.driver, | 6562 | ret = driver_create_file(&ipw2100_pci_driver.driver, |
@@ -6576,7 +6578,7 @@ static void __exit ipw2100_exit(void) | |||
6576 | &driver_attr_debug_level); | 6578 | &driver_attr_debug_level); |
6577 | #endif | 6579 | #endif |
6578 | pci_unregister_driver(&ipw2100_pci_driver); | 6580 | pci_unregister_driver(&ipw2100_pci_driver); |
6579 | remove_acceptable_latency("ipw2100"); | 6581 | pm_qos_remove_requirement(PM_QOS_CPU_DMA_LATENCY, "ipw2100"); |
6580 | } | 6582 | } |
6581 | 6583 | ||
6582 | module_init(ipw2100_init); | 6584 | module_init(ipw2100_init); |
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 | |||
195 | static void netwave_detach(struct pcmcia_device *p_dev); /* Destroy instance */ | 195 | static void netwave_detach(struct pcmcia_device *p_dev); /* Destroy instance */ |
196 | 196 | ||
197 | /* Hardware configuration */ | 197 | /* Hardware configuration */ |
198 | static void netwave_doreset(kio_addr_t iobase, u_char __iomem *ramBase); | 198 | static void netwave_doreset(unsigned int iobase, u_char __iomem *ramBase); |
199 | static void netwave_reset(struct net_device *dev); | 199 | static 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 | ||
311 | static void netwave_snapshot(netwave_private *priv, u_char __iomem *ramBase, | 311 | static 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, | |||
340 | static struct iw_statistics *netwave_get_wireless_stats(struct net_device *dev) | 340 | static 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 | */ |
877 | static void netwave_doreset(kio_addr_t ioBase, u_char __iomem *ramBase) | 877 | static 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 | */ |
1066 | static irqreturn_t netwave_interrupt(int irq, void* dev_id) | 1066 | static 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 | */ |
1389 | static void set_multicast_list(struct net_device *dev) | 1389 | static 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; |
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 */ |
709 | static void wv_roam_handover(wavepoint_history *wavepoint, net_local *lp) | 709 | static 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) | |||
1096 | static void | 1096 | static void |
1097 | wv_mmc_show(struct net_device * dev) | 1097 | wv_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 */ | |||
1275 | static inline void | 1275 | static inline void |
1276 | wv_init_info(struct net_device * dev) | 1276 | wv_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 = | |||
2701 | static iw_stats * | 2701 | static iw_stats * |
2702 | wavelan_get_wireless_stats(struct net_device * dev) | 2702 | wavelan_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, | |||
2925 | static inline void | 2925 | static inline void |
2926 | wv_packet_rcv(struct net_device * dev) | 2926 | wv_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, | |||
3183 | static inline int | 3183 | static inline int |
3184 | wv_mmc_init(struct net_device * dev) | 3184 | wv_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) | |||
3377 | static int | 3377 | static int |
3378 | wv_ru_stop(struct net_device * dev) | 3378 | wv_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) | |||
3440 | static int | 3440 | static int |
3441 | wv_ru_start(struct net_device * dev) | 3441 | wv_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) | |||
3528 | static int | 3528 | static int |
3529 | wv_82593_config(struct net_device * dev) | 3529 | wv_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 | |||
3765 | wv_hw_config(struct net_device * dev) | 3765 | wv_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 | |||
4306 | wavelan_watchdog(struct net_device * dev) | 4306 | wavelan_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 | |||
4436 | wavelan_close(struct net_device * dev) | 4436 | wavelan_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, |