Lines Matching refs:ioaddr

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