diff options
Diffstat (limited to 'drivers/net/pcmcia/pcnet_cs.c')
-rw-r--r-- | drivers/net/pcmcia/pcnet_cs.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/net/pcmcia/pcnet_cs.c b/drivers/net/pcmcia/pcnet_cs.c index 9ba56aa26a1b..6bc48a0673ca 100644 --- a/drivers/net/pcmcia/pcnet_cs.c +++ b/drivers/net/pcmcia/pcnet_cs.c | |||
@@ -349,7 +349,7 @@ static hw_info_t *get_hwinfo(struct pcmcia_device *link) | |||
349 | static hw_info_t *get_prom(struct pcmcia_device *link) | 349 | static hw_info_t *get_prom(struct pcmcia_device *link) |
350 | { | 350 | { |
351 | struct net_device *dev = link->priv; | 351 | struct net_device *dev = link->priv; |
352 | kio_addr_t ioaddr = dev->base_addr; | 352 | unsigned int ioaddr = dev->base_addr; |
353 | u_char prom[32]; | 353 | u_char prom[32]; |
354 | int i, j; | 354 | int i, j; |
355 | 355 | ||
@@ -425,7 +425,7 @@ static hw_info_t *get_dl10019(struct pcmcia_device *link) | |||
425 | static hw_info_t *get_ax88190(struct pcmcia_device *link) | 425 | static hw_info_t *get_ax88190(struct pcmcia_device *link) |
426 | { | 426 | { |
427 | struct net_device *dev = link->priv; | 427 | struct net_device *dev = link->priv; |
428 | kio_addr_t ioaddr = dev->base_addr; | 428 | unsigned int ioaddr = dev->base_addr; |
429 | int i, j; | 429 | int i, j; |
430 | 430 | ||
431 | /* Not much of a test, but the alternatives are messy */ | 431 | /* Not much of a test, but the alternatives are messy */ |
@@ -756,7 +756,7 @@ static int pcnet_resume(struct pcmcia_device *link) | |||
756 | #define MDIO_DATA_READ 0x10 | 756 | #define MDIO_DATA_READ 0x10 |
757 | #define MDIO_MASK 0x0f | 757 | #define MDIO_MASK 0x0f |
758 | 758 | ||
759 | static void mdio_sync(kio_addr_t addr) | 759 | static void mdio_sync(unsigned int addr) |
760 | { | 760 | { |
761 | int bits, mask = inb(addr) & MDIO_MASK; | 761 | int bits, mask = inb(addr) & MDIO_MASK; |
762 | for (bits = 0; bits < 32; bits++) { | 762 | for (bits = 0; bits < 32; bits++) { |
@@ -765,7 +765,7 @@ static void mdio_sync(kio_addr_t addr) | |||
765 | } | 765 | } |
766 | } | 766 | } |
767 | 767 | ||
768 | static int mdio_read(kio_addr_t addr, int phy_id, int loc) | 768 | static int mdio_read(unsigned int addr, int phy_id, int loc) |
769 | { | 769 | { |
770 | u_int cmd = (0x06<<10)|(phy_id<<5)|loc; | 770 | u_int cmd = (0x06<<10)|(phy_id<<5)|loc; |
771 | int i, retval = 0, mask = inb(addr) & MDIO_MASK; | 771 | int i, retval = 0, mask = inb(addr) & MDIO_MASK; |
@@ -784,7 +784,7 @@ static int mdio_read(kio_addr_t addr, int phy_id, int loc) | |||
784 | return (retval>>1) & 0xffff; | 784 | return (retval>>1) & 0xffff; |
785 | } | 785 | } |
786 | 786 | ||
787 | static void mdio_write(kio_addr_t addr, int phy_id, int loc, int value) | 787 | static void mdio_write(unsigned int addr, int phy_id, int loc, int value) |
788 | { | 788 | { |
789 | u_int cmd = (0x05<<28)|(phy_id<<23)|(loc<<18)|(1<<17)|value; | 789 | u_int cmd = (0x05<<28)|(phy_id<<23)|(loc<<18)|(1<<17)|value; |
790 | int i, mask = inb(addr) & MDIO_MASK; | 790 | int i, mask = inb(addr) & MDIO_MASK; |
@@ -818,10 +818,10 @@ static void mdio_write(kio_addr_t addr, int phy_id, int loc, int value) | |||
818 | 818 | ||
819 | #define DL19FDUPLX 0x0400 /* DL10019 Full duplex mode */ | 819 | #define DL19FDUPLX 0x0400 /* DL10019 Full duplex mode */ |
820 | 820 | ||
821 | static int read_eeprom(kio_addr_t ioaddr, int location) | 821 | static int read_eeprom(unsigned int ioaddr, int location) |
822 | { | 822 | { |
823 | int i, retval = 0; | 823 | int i, retval = 0; |
824 | kio_addr_t ee_addr = ioaddr + DLINK_EEPROM; | 824 | unsigned int ee_addr = ioaddr + DLINK_EEPROM; |
825 | int read_cmd = location | (EE_READ_CMD << 8); | 825 | int read_cmd = location | (EE_READ_CMD << 8); |
826 | 826 | ||
827 | outb(0, ee_addr); | 827 | outb(0, ee_addr); |
@@ -852,10 +852,10 @@ static int read_eeprom(kio_addr_t ioaddr, int location) | |||
852 | In ASIC mode, EE_ADOT is used to output the data to the ASIC. | 852 | In ASIC mode, EE_ADOT is used to output the data to the ASIC. |
853 | */ | 853 | */ |
854 | 854 | ||
855 | static void write_asic(kio_addr_t ioaddr, int location, short asic_data) | 855 | static void write_asic(unsigned int ioaddr, int location, short asic_data) |
856 | { | 856 | { |
857 | int i; | 857 | int i; |
858 | kio_addr_t ee_addr = ioaddr + DLINK_EEPROM; | 858 | unsigned int ee_addr = ioaddr + DLINK_EEPROM; |
859 | short dataval; | 859 | short dataval; |
860 | int read_cmd = location | (EE_READ_CMD << 8); | 860 | int read_cmd = location | (EE_READ_CMD << 8); |
861 | 861 | ||
@@ -897,7 +897,7 @@ static void write_asic(kio_addr_t ioaddr, int location, short asic_data) | |||
897 | 897 | ||
898 | static void set_misc_reg(struct net_device *dev) | 898 | static void set_misc_reg(struct net_device *dev) |
899 | { | 899 | { |
900 | kio_addr_t nic_base = dev->base_addr; | 900 | unsigned int nic_base = dev->base_addr; |
901 | pcnet_dev_t *info = PRIV(dev); | 901 | pcnet_dev_t *info = PRIV(dev); |
902 | u_char tmp; | 902 | u_char tmp; |
903 | 903 | ||
@@ -936,7 +936,7 @@ static void set_misc_reg(struct net_device *dev) | |||
936 | static void mii_phy_probe(struct net_device *dev) | 936 | static void mii_phy_probe(struct net_device *dev) |
937 | { | 937 | { |
938 | pcnet_dev_t *info = PRIV(dev); | 938 | pcnet_dev_t *info = PRIV(dev); |
939 | kio_addr_t mii_addr = dev->base_addr + DLINK_GPIO; | 939 | unsigned int mii_addr = dev->base_addr + DLINK_GPIO; |
940 | int i; | 940 | int i; |
941 | u_int tmp, phyid; | 941 | u_int tmp, phyid; |
942 | 942 | ||
@@ -1014,7 +1014,7 @@ static int pcnet_close(struct net_device *dev) | |||
1014 | 1014 | ||
1015 | static void pcnet_reset_8390(struct net_device *dev) | 1015 | static void pcnet_reset_8390(struct net_device *dev) |
1016 | { | 1016 | { |
1017 | kio_addr_t nic_base = dev->base_addr; | 1017 | unsigned int nic_base = dev->base_addr; |
1018 | int i; | 1018 | int i; |
1019 | 1019 | ||
1020 | ei_status.txing = ei_status.dmaing = 0; | 1020 | ei_status.txing = ei_status.dmaing = 0; |
@@ -1074,8 +1074,8 @@ static void ei_watchdog(u_long arg) | |||
1074 | { | 1074 | { |
1075 | struct net_device *dev = (struct net_device *)arg; | 1075 | struct net_device *dev = (struct net_device *)arg; |
1076 | pcnet_dev_t *info = PRIV(dev); | 1076 | pcnet_dev_t *info = PRIV(dev); |
1077 | kio_addr_t nic_base = dev->base_addr; | 1077 | unsigned int nic_base = dev->base_addr; |
1078 | kio_addr_t mii_addr = nic_base + DLINK_GPIO; | 1078 | unsigned int mii_addr = nic_base + DLINK_GPIO; |
1079 | u_short link; | 1079 | u_short link; |
1080 | 1080 | ||
1081 | if (!netif_device_present(dev)) goto reschedule; | 1081 | if (!netif_device_present(dev)) goto reschedule; |
@@ -1177,7 +1177,7 @@ static int ei_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) | |||
1177 | { | 1177 | { |
1178 | pcnet_dev_t *info = PRIV(dev); | 1178 | pcnet_dev_t *info = PRIV(dev); |
1179 | u16 *data = (u16 *)&rq->ifr_ifru; | 1179 | u16 *data = (u16 *)&rq->ifr_ifru; |
1180 | kio_addr_t mii_addr = dev->base_addr + DLINK_GPIO; | 1180 | unsigned int mii_addr = dev->base_addr + DLINK_GPIO; |
1181 | switch (cmd) { | 1181 | switch (cmd) { |
1182 | case SIOCGMIIPHY: | 1182 | case SIOCGMIIPHY: |
1183 | data[0] = info->phy_id; | 1183 | data[0] = info->phy_id; |
@@ -1199,7 +1199,7 @@ static void dma_get_8390_hdr(struct net_device *dev, | |||
1199 | struct e8390_pkt_hdr *hdr, | 1199 | struct e8390_pkt_hdr *hdr, |
1200 | int ring_page) | 1200 | int ring_page) |
1201 | { | 1201 | { |
1202 | kio_addr_t nic_base = dev->base_addr; | 1202 | unsigned int nic_base = dev->base_addr; |
1203 | 1203 | ||
1204 | if (ei_status.dmaing) { | 1204 | if (ei_status.dmaing) { |
1205 | printk(KERN_NOTICE "%s: DMAing conflict in dma_block_input." | 1205 | printk(KERN_NOTICE "%s: DMAing conflict in dma_block_input." |
@@ -1230,7 +1230,7 @@ static void dma_get_8390_hdr(struct net_device *dev, | |||
1230 | static void dma_block_input(struct net_device *dev, int count, | 1230 | static void dma_block_input(struct net_device *dev, int count, |
1231 | struct sk_buff *skb, int ring_offset) | 1231 | struct sk_buff *skb, int ring_offset) |
1232 | { | 1232 | { |
1233 | kio_addr_t nic_base = dev->base_addr; | 1233 | unsigned int nic_base = dev->base_addr; |
1234 | int xfer_count = count; | 1234 | int xfer_count = count; |
1235 | char *buf = skb->data; | 1235 | char *buf = skb->data; |
1236 | 1236 | ||
@@ -1285,7 +1285,7 @@ static void dma_block_input(struct net_device *dev, int count, | |||
1285 | static void dma_block_output(struct net_device *dev, int count, | 1285 | static void dma_block_output(struct net_device *dev, int count, |
1286 | const u_char *buf, const int start_page) | 1286 | const u_char *buf, const int start_page) |
1287 | { | 1287 | { |
1288 | kio_addr_t nic_base = dev->base_addr; | 1288 | unsigned int nic_base = dev->base_addr; |
1289 | pcnet_dev_t *info = PRIV(dev); | 1289 | pcnet_dev_t *info = PRIV(dev); |
1290 | #ifdef PCMCIA_DEBUG | 1290 | #ifdef PCMCIA_DEBUG |
1291 | int retries = 0; | 1291 | int retries = 0; |