Lines Matching refs:ioaddr

198 	nic->ioaddr = pci->ioaddr & ~3;  in rtl8139_probe()
206 outb(0x00, nic->ioaddr + Config1); in rtl8139_probe()
212 speed10 = inb(nic->ioaddr + MediaStatus) & MSRSpeed10; in rtl8139_probe()
213 fullduplex = inw(nic->ioaddr + MII_BMCR) & BMCRDuplex; in rtl8139_probe()
214 printf("ioaddr %#hX, irq %d, addr %! %sMbps %s-duplex\n", nic->ioaddr, in rtl8139_probe()
220 if (inb(nic->ioaddr + MediaStatus) & MSRLinkFail) { in rtl8139_probe()
260 long ee_addr = nic->ioaddr + Cfg9346; in read_eeprom()
304 outl(rtl8139_rx_config | rx_mode, nic->ioaddr + RxConfig); in set_rx_mode()
306 outl(mc_filter[0], nic->ioaddr + MAR0 + 0); in set_rx_mode()
307 outl(mc_filter[1], nic->ioaddr + MAR0 + 4); in set_rx_mode()
314 outb(CmdReset, nic->ioaddr + ChipCmd); in rtl_reset()
321 while ((inb(nic->ioaddr + ChipCmd) & CmdReset) != 0 && in rtl_reset()
326 outb(nic->node_addr[i], nic->ioaddr + MAC0 + i); in rtl_reset()
329 outb(CmdRxEnb | CmdTxEnb, nic->ioaddr + ChipCmd); in rtl_reset()
331 nic->ioaddr + RxConfig); /* accept no frames yet! */ in rtl_reset()
332 outl((TX_DMA_BURST<<8)|0x03000000, nic->ioaddr + TxConfig); in rtl_reset()
345 outl((unsigned long)virt_to_bus(rx_ring), nic->ioaddr + RxBuf); in rtl_reset()
353 outb(CmdRxEnb | CmdTxEnb, nic->ioaddr + ChipCmd); in rtl_reset()
355 outl(rtl8139_rx_config, nic->ioaddr + RxConfig); in rtl_reset()
358 outl(0, nic->ioaddr + RxMissed); in rtl_reset()
364 outw(0, nic->ioaddr + IntrMask); in rtl_reset()
391 outl((unsigned long)virt_to_bus(tx_buffer), nic->ioaddr + TxAddr0 + cur_tx*4); in rtl_transmit()
393 nic->ioaddr + TxStatus0 + cur_tx*4); in rtl_transmit()
398 status = inw(nic->ioaddr + IntrStatus); in rtl_transmit()
402 outw(status & (TxOK | TxErr | PCIErr), nic->ioaddr + IntrStatus); in rtl_transmit()
406 txstatus = inl(nic->ioaddr+ TxStatus0 + cur_tx*4); in rtl_transmit()
429 if (inb(nic->ioaddr + ChipCmd) & RxBufEmpty) { in rtl_poll()
436 status = inw(nic->ioaddr + IntrStatus); in rtl_poll()
438 outw(status & ~(RxFIFOOver | RxOverflow | RxOK), nic->ioaddr + IntrStatus); in rtl_poll()
478 outw(cur_rx - 16, nic->ioaddr + RxBufPtr); in rtl_poll()
482 outw(status & (RxFIFOOver | RxOverflow | RxOK), nic->ioaddr + IntrStatus); in rtl_poll()
495 mask = inw(nic->ioaddr + IntrMask); in rtl_irq()
498 outw(mask, nic->ioaddr + IntrMask); in rtl_irq()
507 outb(EROK, nic->ioaddr + RxEarlyStatus); in rtl_irq()
519 outb(CmdReset, nic->ioaddr + ChipCmd); in rtl_disable()
523 while ((inb(nic->ioaddr + ChipCmd) & CmdReset) != 0 && timer2_running()) in rtl_disable()