@@ -230,10 +230,11 @@ static char mii_preamble_required = 0;
230230static int tc574_config (struct pcmcia_device * link );
231231static void tc574_release (struct pcmcia_device * link );
232232
233- static void mdio_sync (kio_addr_t ioaddr , int bits );
234- static int mdio_read (kio_addr_t ioaddr , int phy_id , int location );
235- static void mdio_write (kio_addr_t ioaddr , int phy_id , int location , int value );
236- static unsigned short read_eeprom (kio_addr_t ioaddr , int index );
233+ static void mdio_sync (unsigned int ioaddr , int bits );
234+ static int mdio_read (unsigned int ioaddr , int phy_id , int location );
235+ static void mdio_write (unsigned int ioaddr , int phy_id , int location ,
236+ int value );
237+ static unsigned short read_eeprom (unsigned int ioaddr , int index );
237238static void tc574_wait_for_completion (struct net_device * dev , int cmd );
238239
239240static void tc574_reset (struct net_device * dev );
@@ -341,7 +342,7 @@ static int tc574_config(struct pcmcia_device *link)
341342 tuple_t tuple ;
342343 __le16 buf [32 ];
343344 int last_fn , last_ret , i , j ;
344- kio_addr_t ioaddr ;
345+ unsigned int ioaddr ;
345346 __be16 * phys_addr ;
346347 char * cardname ;
347348 __u32 config ;
@@ -515,7 +516,7 @@ static int tc574_resume(struct pcmcia_device *link)
515516
516517static void dump_status (struct net_device * dev )
517518{
518- kio_addr_t ioaddr = dev -> base_addr ;
519+ unsigned int ioaddr = dev -> base_addr ;
519520 EL3WINDOW (1 );
520521 printk (KERN_INFO " irq status %04x, rx status %04x, tx status "
521522 "%02x, tx free %04x\n" , inw (ioaddr + EL3_STATUS ),
@@ -544,7 +545,7 @@ static void tc574_wait_for_completion(struct net_device *dev, int cmd)
544545/* Read a word from the EEPROM using the regular EEPROM access register.
545546 Assume that we are in register window zero.
546547 */
547- static unsigned short read_eeprom (kio_addr_t ioaddr , int index )
548+ static unsigned short read_eeprom (unsigned int ioaddr , int index )
548549{
549550 int timer ;
550551 outw (EEPROM_Read + index , ioaddr + Wn0EepromCmd );
@@ -572,9 +573,9 @@ static unsigned short read_eeprom(kio_addr_t ioaddr, int index)
572573
573574/* Generate the preamble required for initial synchronization and
574575 a few older transceivers. */
575- static void mdio_sync (kio_addr_t ioaddr , int bits )
576+ static void mdio_sync (unsigned int ioaddr , int bits )
576577{
577- kio_addr_t mdio_addr = ioaddr + Wn4_PhysicalMgmt ;
578+ unsigned int mdio_addr = ioaddr + Wn4_PhysicalMgmt ;
578579
579580 /* Establish sync by sending at least 32 logic ones. */
580581 while (-- bits >= 0 ) {
@@ -583,12 +584,12 @@ static void mdio_sync(kio_addr_t ioaddr, int bits)
583584 }
584585}
585586
586- static int mdio_read (kio_addr_t ioaddr , int phy_id , int location )
587+ static int mdio_read (unsigned int ioaddr , int phy_id , int location )
587588{
588589 int i ;
589590 int read_cmd = (0xf6 << 10 ) | (phy_id << 5 ) | location ;
590591 unsigned int retval = 0 ;
591- kio_addr_t mdio_addr = ioaddr + Wn4_PhysicalMgmt ;
592+ unsigned int mdio_addr = ioaddr + Wn4_PhysicalMgmt ;
592593
593594 if (mii_preamble_required )
594595 mdio_sync (ioaddr , 32 );
@@ -608,10 +609,10 @@ static int mdio_read(kio_addr_t ioaddr, int phy_id, int location)
608609 return (retval >>1 ) & 0xffff ;
609610}
610611
611- static void mdio_write (kio_addr_t ioaddr , int phy_id , int location , int value )
612+ static void mdio_write (unsigned int ioaddr , int phy_id , int location , int value )
612613{
613614 int write_cmd = 0x50020000 | (phy_id << 23 ) | (location << 18 ) | value ;
614- kio_addr_t mdio_addr = ioaddr + Wn4_PhysicalMgmt ;
615+ unsigned int mdio_addr = ioaddr + Wn4_PhysicalMgmt ;
615616 int i ;
616617
617618 if (mii_preamble_required )
@@ -637,7 +638,7 @@ static void tc574_reset(struct net_device *dev)
637638{
638639 struct el3_private * lp = netdev_priv (dev );
639640 int i ;
640- kio_addr_t ioaddr = dev -> base_addr ;
641+ unsigned int ioaddr = dev -> base_addr ;
641642 unsigned long flags ;
642643
643644 tc574_wait_for_completion (dev , TotalReset |0x10 );
@@ -741,7 +742,7 @@ static int el3_open(struct net_device *dev)
741742static void el3_tx_timeout (struct net_device * dev )
742743{
743744 struct el3_private * lp = netdev_priv (dev );
744- kio_addr_t ioaddr = dev -> base_addr ;
745+ unsigned int ioaddr = dev -> base_addr ;
745746
746747 printk (KERN_NOTICE "%s: Transmit timed out!\n" , dev -> name );
747748 dump_status (dev );
@@ -756,7 +757,7 @@ static void el3_tx_timeout(struct net_device *dev)
756757static void pop_tx_status (struct net_device * dev )
757758{
758759 struct el3_private * lp = netdev_priv (dev );
759- kio_addr_t ioaddr = dev -> base_addr ;
760+ unsigned int ioaddr = dev -> base_addr ;
760761 int i ;
761762
762763 /* Clear the Tx status stack. */
@@ -779,7 +780,7 @@ static void pop_tx_status(struct net_device *dev)
779780
780781static int el3_start_xmit (struct sk_buff * skb , struct net_device * dev )
781782{
782- kio_addr_t ioaddr = dev -> base_addr ;
783+ unsigned int ioaddr = dev -> base_addr ;
783784 struct el3_private * lp = netdev_priv (dev );
784785 unsigned long flags ;
785786
@@ -813,7 +814,7 @@ static irqreturn_t el3_interrupt(int irq, void *dev_id)
813814{
814815 struct net_device * dev = (struct net_device * ) dev_id ;
815816 struct el3_private * lp = netdev_priv (dev );
816- kio_addr_t ioaddr ;
817+ unsigned int ioaddr ;
817818 unsigned status ;
818819 int work_budget = max_interrupt_work ;
819820 int handled = 0 ;
@@ -907,7 +908,7 @@ static void media_check(unsigned long arg)
907908{
908909 struct net_device * dev = (struct net_device * ) arg ;
909910 struct el3_private * lp = netdev_priv (dev );
910- kio_addr_t ioaddr = dev -> base_addr ;
911+ unsigned int ioaddr = dev -> base_addr ;
911912 unsigned long flags ;
912913 unsigned short /* cable, */ media , partner ;
913914
@@ -996,7 +997,7 @@ static struct net_device_stats *el3_get_stats(struct net_device *dev)
996997static void update_stats (struct net_device * dev )
997998{
998999 struct el3_private * lp = netdev_priv (dev );
999- kio_addr_t ioaddr = dev -> base_addr ;
1000+ unsigned int ioaddr = dev -> base_addr ;
10001001 u8 rx , tx , up ;
10011002
10021003 DEBUG (2 , "%s: updating the statistics.\n" , dev -> name );
@@ -1033,7 +1034,7 @@ static void update_stats(struct net_device *dev)
10331034static int el3_rx (struct net_device * dev , int worklimit )
10341035{
10351036 struct el3_private * lp = netdev_priv (dev );
1036- kio_addr_t ioaddr = dev -> base_addr ;
1037+ unsigned int ioaddr = dev -> base_addr ;
10371038 short rx_status ;
10381039
10391040 DEBUG (3 , "%s: in rx_packet(), status %4.4x, rx_status %4.4x.\n" ,
@@ -1094,7 +1095,7 @@ static const struct ethtool_ops netdev_ethtool_ops = {
10941095static int el3_ioctl (struct net_device * dev , struct ifreq * rq , int cmd )
10951096{
10961097 struct el3_private * lp = netdev_priv (dev );
1097- kio_addr_t ioaddr = dev -> base_addr ;
1098+ unsigned int ioaddr = dev -> base_addr ;
10981099 u16 * data = (u16 * )& rq -> ifr_ifru ;
10991100 int phy = lp -> phys & 0x1f ;
11001101
@@ -1148,7 +1149,7 @@ static int el3_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
11481149
11491150static void set_rx_mode (struct net_device * dev )
11501151{
1151- kio_addr_t ioaddr = dev -> base_addr ;
1152+ unsigned int ioaddr = dev -> base_addr ;
11521153
11531154 if (dev -> flags & IFF_PROMISC )
11541155 outw (SetRxFilter | RxStation | RxMulticast | RxBroadcast | RxProm ,
@@ -1161,7 +1162,7 @@ static void set_rx_mode(struct net_device *dev)
11611162
11621163static int el3_close (struct net_device * dev )
11631164{
1164- kio_addr_t ioaddr = dev -> base_addr ;
1165+ unsigned int ioaddr = dev -> base_addr ;
11651166 struct el3_private * lp = netdev_priv (dev );
11661167 struct pcmcia_device * link = lp -> p_dev ;
11671168
0 commit comments