diff options
Diffstat (limited to 'drivers/net/pcmcia/3c589_cs.c')
-rw-r--r-- | drivers/net/pcmcia/3c589_cs.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/net/pcmcia/3c589_cs.c b/drivers/net/pcmcia/3c589_cs.c index e862d14ece79..1b1abb19c911 100644 --- a/drivers/net/pcmcia/3c589_cs.c +++ b/drivers/net/pcmcia/3c589_cs.c | |||
@@ -145,7 +145,7 @@ DRV_NAME ".c " DRV_VERSION " 2001/10/13 00:08:50 (David Hinds)"; | |||
145 | static int tc589_config(struct pcmcia_device *link); | 145 | static int tc589_config(struct pcmcia_device *link); |
146 | static void tc589_release(struct pcmcia_device *link); | 146 | static void tc589_release(struct pcmcia_device *link); |
147 | 147 | ||
148 | static u16 read_eeprom(kio_addr_t ioaddr, int index); | 148 | static u16 read_eeprom(unsigned int ioaddr, int index); |
149 | static void tc589_reset(struct net_device *dev); | 149 | static void tc589_reset(struct net_device *dev); |
150 | static void media_check(unsigned long arg); | 150 | static void media_check(unsigned long arg); |
151 | static int el3_config(struct net_device *dev, struct ifmap *map); | 151 | static int el3_config(struct net_device *dev, struct ifmap *map); |
@@ -254,7 +254,7 @@ static int tc589_config(struct pcmcia_device *link) | |||
254 | __le16 buf[32]; | 254 | __le16 buf[32]; |
255 | __be16 *phys_addr; | 255 | __be16 *phys_addr; |
256 | int last_fn, last_ret, i, j, multi = 0, fifo; | 256 | int last_fn, last_ret, i, j, multi = 0, fifo; |
257 | kio_addr_t ioaddr; | 257 | unsigned int ioaddr; |
258 | char *ram_split[] = {"5:3", "3:1", "1:1", "3:5"}; | 258 | char *ram_split[] = {"5:3", "3:1", "1:1", "3:5"}; |
259 | DECLARE_MAC_BUF(mac); | 259 | DECLARE_MAC_BUF(mac); |
260 | 260 | ||
@@ -403,7 +403,7 @@ static void tc589_wait_for_completion(struct net_device *dev, int cmd) | |||
403 | Read a word from the EEPROM using the regular EEPROM access register. | 403 | Read a word from the EEPROM using the regular EEPROM access register. |
404 | Assume that we are in register window zero. | 404 | Assume that we are in register window zero. |
405 | */ | 405 | */ |
406 | static u16 read_eeprom(kio_addr_t ioaddr, int index) | 406 | static u16 read_eeprom(unsigned int ioaddr, int index) |
407 | { | 407 | { |
408 | int i; | 408 | int i; |
409 | outw(EEPROM_READ + index, ioaddr + 10); | 409 | outw(EEPROM_READ + index, ioaddr + 10); |
@@ -421,7 +421,7 @@ static u16 read_eeprom(kio_addr_t ioaddr, int index) | |||
421 | static void tc589_set_xcvr(struct net_device *dev, int if_port) | 421 | static void tc589_set_xcvr(struct net_device *dev, int if_port) |
422 | { | 422 | { |
423 | struct el3_private *lp = netdev_priv(dev); | 423 | struct el3_private *lp = netdev_priv(dev); |
424 | kio_addr_t ioaddr = dev->base_addr; | 424 | unsigned int ioaddr = dev->base_addr; |
425 | 425 | ||
426 | EL3WINDOW(0); | 426 | EL3WINDOW(0); |
427 | switch (if_port) { | 427 | switch (if_port) { |
@@ -443,7 +443,7 @@ static void tc589_set_xcvr(struct net_device *dev, int if_port) | |||
443 | 443 | ||
444 | static void dump_status(struct net_device *dev) | 444 | static void dump_status(struct net_device *dev) |
445 | { | 445 | { |
446 | kio_addr_t ioaddr = dev->base_addr; | 446 | unsigned int ioaddr = dev->base_addr; |
447 | EL3WINDOW(1); | 447 | EL3WINDOW(1); |
448 | printk(KERN_INFO " irq status %04x, rx status %04x, tx status " | 448 | printk(KERN_INFO " irq status %04x, rx status %04x, tx status " |
449 | "%02x tx free %04x\n", inw(ioaddr+EL3_STATUS), | 449 | "%02x tx free %04x\n", inw(ioaddr+EL3_STATUS), |
@@ -459,7 +459,7 @@ static void dump_status(struct net_device *dev) | |||
459 | /* Reset and restore all of the 3c589 registers. */ | 459 | /* Reset and restore all of the 3c589 registers. */ |
460 | static void tc589_reset(struct net_device *dev) | 460 | static void tc589_reset(struct net_device *dev) |
461 | { | 461 | { |
462 | kio_addr_t ioaddr = dev->base_addr; | 462 | unsigned int ioaddr = dev->base_addr; |
463 | int i; | 463 | int i; |
464 | 464 | ||
465 | EL3WINDOW(0); | 465 | EL3WINDOW(0); |
@@ -567,7 +567,7 @@ static int el3_open(struct net_device *dev) | |||
567 | static void el3_tx_timeout(struct net_device *dev) | 567 | static void el3_tx_timeout(struct net_device *dev) |
568 | { | 568 | { |
569 | struct el3_private *lp = netdev_priv(dev); | 569 | struct el3_private *lp = netdev_priv(dev); |
570 | kio_addr_t ioaddr = dev->base_addr; | 570 | unsigned int ioaddr = dev->base_addr; |
571 | 571 | ||
572 | printk(KERN_WARNING "%s: Transmit timed out!\n", dev->name); | 572 | printk(KERN_WARNING "%s: Transmit timed out!\n", dev->name); |
573 | dump_status(dev); | 573 | dump_status(dev); |
@@ -582,7 +582,7 @@ static void el3_tx_timeout(struct net_device *dev) | |||
582 | static void pop_tx_status(struct net_device *dev) | 582 | static void pop_tx_status(struct net_device *dev) |
583 | { | 583 | { |
584 | struct el3_private *lp = netdev_priv(dev); | 584 | struct el3_private *lp = netdev_priv(dev); |
585 | kio_addr_t ioaddr = dev->base_addr; | 585 | unsigned int ioaddr = dev->base_addr; |
586 | int i; | 586 | int i; |
587 | 587 | ||
588 | /* Clear the Tx status stack. */ | 588 | /* Clear the Tx status stack. */ |
@@ -604,7 +604,7 @@ static void pop_tx_status(struct net_device *dev) | |||
604 | 604 | ||
605 | static int el3_start_xmit(struct sk_buff *skb, struct net_device *dev) | 605 | static int el3_start_xmit(struct sk_buff *skb, struct net_device *dev) |
606 | { | 606 | { |
607 | kio_addr_t ioaddr = dev->base_addr; | 607 | unsigned int ioaddr = dev->base_addr; |
608 | struct el3_private *priv = netdev_priv(dev); | 608 | struct el3_private *priv = netdev_priv(dev); |
609 | unsigned long flags; | 609 | unsigned long flags; |
610 | 610 | ||
@@ -641,7 +641,7 @@ static irqreturn_t el3_interrupt(int irq, void *dev_id) | |||
641 | { | 641 | { |
642 | struct net_device *dev = (struct net_device *) dev_id; | 642 | struct net_device *dev = (struct net_device *) dev_id; |
643 | struct el3_private *lp = netdev_priv(dev); | 643 | struct el3_private *lp = netdev_priv(dev); |
644 | kio_addr_t ioaddr; | 644 | unsigned int ioaddr; |
645 | __u16 status; | 645 | __u16 status; |
646 | int i = 0, handled = 1; | 646 | int i = 0, handled = 1; |
647 | 647 | ||
@@ -727,7 +727,7 @@ static void media_check(unsigned long arg) | |||
727 | { | 727 | { |
728 | struct net_device *dev = (struct net_device *)(arg); | 728 | struct net_device *dev = (struct net_device *)(arg); |
729 | struct el3_private *lp = netdev_priv(dev); | 729 | struct el3_private *lp = netdev_priv(dev); |
730 | kio_addr_t ioaddr = dev->base_addr; | 730 | unsigned int ioaddr = dev->base_addr; |
731 | u16 media, errs; | 731 | u16 media, errs; |
732 | unsigned long flags; | 732 | unsigned long flags; |
733 | 733 | ||
@@ -828,7 +828,7 @@ static struct net_device_stats *el3_get_stats(struct net_device *dev) | |||
828 | static void update_stats(struct net_device *dev) | 828 | static void update_stats(struct net_device *dev) |
829 | { | 829 | { |
830 | struct el3_private *lp = netdev_priv(dev); | 830 | struct el3_private *lp = netdev_priv(dev); |
831 | kio_addr_t ioaddr = dev->base_addr; | 831 | unsigned int ioaddr = dev->base_addr; |
832 | 832 | ||
833 | DEBUG(2, "%s: updating the statistics.\n", dev->name); | 833 | DEBUG(2, "%s: updating the statistics.\n", dev->name); |
834 | /* Turn off statistics updates while reading. */ | 834 | /* Turn off statistics updates while reading. */ |
@@ -855,7 +855,7 @@ static void update_stats(struct net_device *dev) | |||
855 | static int el3_rx(struct net_device *dev) | 855 | static int el3_rx(struct net_device *dev) |
856 | { | 856 | { |
857 | struct el3_private *lp = netdev_priv(dev); | 857 | struct el3_private *lp = netdev_priv(dev); |
858 | kio_addr_t ioaddr = dev->base_addr; | 858 | unsigned int ioaddr = dev->base_addr; |
859 | int worklimit = 32; | 859 | int worklimit = 32; |
860 | short rx_status; | 860 | short rx_status; |
861 | 861 | ||
@@ -909,7 +909,7 @@ static void set_multicast_list(struct net_device *dev) | |||
909 | { | 909 | { |
910 | struct el3_private *lp = netdev_priv(dev); | 910 | struct el3_private *lp = netdev_priv(dev); |
911 | struct pcmcia_device *link = lp->p_dev; | 911 | struct pcmcia_device *link = lp->p_dev; |
912 | kio_addr_t ioaddr = dev->base_addr; | 912 | unsigned int ioaddr = dev->base_addr; |
913 | u16 opts = SetRxFilter | RxStation | RxBroadcast; | 913 | u16 opts = SetRxFilter | RxStation | RxBroadcast; |
914 | 914 | ||
915 | if (!pcmcia_dev_present(link)) return; | 915 | if (!pcmcia_dev_present(link)) return; |
@@ -924,7 +924,7 @@ static int el3_close(struct net_device *dev) | |||
924 | { | 924 | { |
925 | struct el3_private *lp = netdev_priv(dev); | 925 | struct el3_private *lp = netdev_priv(dev); |
926 | struct pcmcia_device *link = lp->p_dev; | 926 | struct pcmcia_device *link = lp->p_dev; |
927 | kio_addr_t ioaddr = dev->base_addr; | 927 | unsigned int ioaddr = dev->base_addr; |
928 | 928 | ||
929 | DEBUG(1, "%s: shutting down ethercard.\n", dev->name); | 929 | DEBUG(1, "%s: shutting down ethercard.\n", dev->name); |
930 | 930 | ||