Home | History | Annotate | Download | only in netboot

Lines Matching defs:ioaddr

158 static int ioaddr;
195 ioaddr = probeaddrs[0] & ~3;
200 outb(0x00, ioaddr + Config1);
209 *ap++ = inb(ioaddr + MAC0 + i);
212 speed10 = inb(ioaddr + MediaStatus) & MSRSpeed10;
213 fullduplex = inw(ioaddr + MII_BMCR) & BMCRDuplex;
214 printf("ioaddr %#hX, addr %! %sMbps %s-duplex\n", ioaddr,
255 long ee_addr = ioaddr + Cfg9346;
289 outb(CmdReset, ioaddr + ChipCmd);
296 while ((inb(ioaddr + ChipCmd) & CmdReset) != 0 && timer2_running())
300 outb(nic->node_addr[i], ioaddr + MAC0 + i);
303 outb(CmdRxEnb | CmdTxEnb, ioaddr + ChipCmd);
305 ioaddr + RxConfig); /* accept no frames yet! */
306 outl((TX_DMA_BURST<<8)|0x03000000, ioaddr + TxConfig);
319 outl((unsigned long)rx_ring, ioaddr + RxBuf);
322 outl(0, ioaddr + RxMissed);
324 outb(AcceptBroadcast|AcceptMyPhys, ioaddr + RxConfig);
328 outb(CmdRxEnb | CmdTxEnb, ioaddr + ChipCmd);
331 outw(0, ioaddr + IntrMask);
357 outl((unsigned long)tx_buffer, ioaddr + TxAddr0 + cur_tx*4);
359 ioaddr + TxStatus0 + cur_tx*4);
364 status = inw(ioaddr + IntrStatus);
368 outw(status & (TxOK | TxErr | PCIErr), ioaddr + IntrStatus);
372 txstatus = inl(ioaddr+ TxStatus0 + cur_tx*4);
395 if (inb(ioaddr + ChipCmd) & RxBufEmpty) {
399 status = inw(ioaddr + IntrStatus);
401 outw(status & ~(RxFIFOOver | RxOverflow | RxOK), ioaddr + IntrStatus);
441 outw(cur_rx - 16, ioaddr + RxBufPtr);
445 outw(status & (RxFIFOOver | RxOverflow | RxOK), ioaddr + IntrStatus);
452 outb(CmdReset, ioaddr + ChipCmd);
456 while ((inb(ioaddr + ChipCmd) & CmdReset) != 0 && timer2_running())