Lines Matching refs:ioaddr
101 unsigned int ioaddr; member
112 static int eeprom_read(long ioaddr, int location);
139 dev->ioaddr = pci->membase; in fa311_probe()
142 prev_eedata = eeprom_read(dev->ioaddr, 6); in fa311_probe()
144 int eedata = eeprom_read(dev->ioaddr, i + 7); in fa311_probe()
169 writel(virt_to_bus(dev->rx_ring), dev->ioaddr + RxRingPtr); in fa311_probe()
170 writel(virt_to_bus(dev->tx_ring), dev->ioaddr + TxRingPtr); in fa311_probe()
174 writel(i, dev->ioaddr + RxFilterAddr); in fa311_probe()
176 dev->ioaddr + RxFilterData); in fa311_probe()
181 if (readl(dev->ioaddr + ChipConfig) & 0x20000000) in fa311_probe()
191 writel(tx_config, dev->ioaddr + TxConfig); in fa311_probe()
192 writel(rx_config, dev->ioaddr + RxConfig); in fa311_probe()
194 duplex = readl(dev->ioaddr + ChipConfig) & 0x20000000 ? 1 : 0; in fa311_probe()
202 writew(tx_config, dev->ioaddr + TxConfig); in fa311_probe()
203 writew(rx_config, dev->ioaddr + RxConfig); in fa311_probe()
206 dev->ioaddr + RxFilterAddr); in fa311_probe()
208 writel(RxOn | TxOn, dev->ioaddr + ChipCmd); in fa311_probe()
209 writel(4, dev->ioaddr + StatsCtrl); /* Clear Stats */ in fa311_probe()
220 outl(ChipReset, dev->ioaddr + ChipCmd); in fa311_reset()
222 if ((readl(dev->ioaddr + ChipConfig) & 0xe000) != 0xe000) in fa311_reset()
224 chip_config = readl(dev->ioaddr + ChipConfig); in fa311_reset()
249 readl(dev->ioaddr + IntrStatus); /* clear interrrupt bits */ in fa311_poll()
265 writel(RxOn, dev->ioaddr + ChipCmd); in fa311_poll()
303 writel(TxOn, dev->ioaddr + ChipCmd); in fa311_transmit()
316 readl(dev->ioaddr + IntrStatus); /* clear interrrupt bits */ in fa311_transmit()
325 writel(RxOff | TxOff, dev->ioaddr + ChipCmd); in fa311_disable()