Lines Matching refs:ioaddr
100 outw(SelectWindow + (win_num), nic->ioaddr + EL3_CMD)
278 static int corkscrew_found_device(int ioaddr, int irq, int product_index,
280 static int corkscrew_probe1(int ioaddr, int irq, int product_index,
300 outb(0x20, nic->ioaddr + Wn3_MAC_Ctrl); /* Set the full-duplex bit. */ in t515_reset()
301 config.i = inl(nic->ioaddr + Wn3_Config); in t515_reset()
320 outl(config.i, nic->ioaddr + Wn3_Config); in t515_reset()
325 outw(TxReset, nic->ioaddr + EL3_CMD); in t515_reset()
327 if (!(inw(nic->ioaddr + EL3_STATUS) & CmdInProgress)) in t515_reset()
330 outw(RxReset, nic->ioaddr + EL3_CMD); in t515_reset()
333 if (!(inw(nic->ioaddr + EL3_STATUS) & CmdInProgress)) in t515_reset()
336 outw(SetStatusEnb | 0x00, nic->ioaddr + EL3_CMD); in t515_reset()
342 9, inw(nic->ioaddr + Wn4_Media) ); in t515_reset()
348 outb(nic->node_addr[i], nic->ioaddr + i); in t515_reset()
350 outw(0, nic->ioaddr + i); in t515_reset()
354 outw(StartCoax, nic->ioaddr + EL3_CMD); in t515_reset()
356 outw((inw(nic->ioaddr + Wn4_Media) & ~(Media_10TP | Media_SQE)) | in t515_reset()
357 media_tbl[if_port].media_bits, nic->ioaddr + Wn4_Media); in t515_reset()
363 inb(nic->ioaddr + i); in t515_reset()
364 inw(nic->ioaddr + 10); in t515_reset()
365 inw(nic->ioaddr + 12); in t515_reset()
368 inb(nic->ioaddr + 12); in t515_reset()
370 outw(0x0040, nic->ioaddr + Wn4_NetDiag); in t515_reset()
388 outb(PKT_BUF_SZ >> 8, nic->ioaddr + TxFreeThreshold); /* Room for a packet. */ in t515_reset()
392 outl(0, nic->ioaddr + DownListPtr); in t515_reset()
396 nic->ioaddr + EL3_CMD); in t515_reset()
398 outw(RxEnable, nic->ioaddr + EL3_CMD); /* Enable the receiver. */ in t515_reset()
399 outw(TxEnable, nic->ioaddr + EL3_CMD); /* Enable transmitter. */ in t515_reset()
404 (vp->bus_master ? DMADone : 0), nic->ioaddr + EL3_CMD); in t515_reset()
407 nic->ioaddr + EL3_CMD); in t515_reset()
410 nic->ioaddr + EL3_CMD); in t515_reset()
422 cst = inw(nic->ioaddr + EL3_STATUS); in t515_poll()
427 nic->ioaddr + EL3_CMD); in t515_poll()
431 DownComplete, nic->ioaddr + EL3_CMD); in t515_poll()
434 status = inw(nic->ioaddr + RxStatus); in t515_poll()
438 outw(RxDiscard, nic->ioaddr + EL3_CMD); in t515_poll()
449 insw(nic->ioaddr + RX_FIFO, nic->packet, rx_fifo / 2); in t515_poll()
451 nic->packet[rx_fifo - 1] = inb(nic->ioaddr + RX_FIFO); in t515_poll()
455 status = inw(nic->ioaddr + RxStatus); in t515_poll()
460 insw(nic->ioaddr + RX_FIFO, nic->packet + nic->packetlen, in t515_poll()
464 inb(nic->ioaddr + RX_FIFO); in t515_poll()
476 outw(RxDiscard, nic->ioaddr + EL3_CMD); in t515_poll()
477 while (inw(nic->ioaddr + EL3_STATUS) & CmdInProgress); in t515_poll()
530 while ((status = inb(nic->ioaddr + TxStatus)) & TxComplete) { in t515_transmit()
532 outw(TxReset, nic->ioaddr + EL3_CMD); in t515_transmit()
533 outw(TxEnable, nic->ioaddr + EL3_CMD); in t515_transmit()
536 outb(0x0, nic->ioaddr + TxStatus); in t515_transmit()
539 while (inw(nic->ioaddr + TxFree) < len + pad + 4) { in t515_transmit()
543 outw(len, nic->ioaddr + TX_FIFO); in t515_transmit()
544 outw(0x0, nic->ioaddr + TX_FIFO); /* Second dword meaningless */ in t515_transmit()
547 outsw(nic->ioaddr + TX_FIFO, d, ETH_ALEN / 2); in t515_transmit()
548 outsw(nic->ioaddr + TX_FIFO, nic->node_addr, ETH_ALEN / 2); in t515_transmit()
549 outw(t, nic->ioaddr + TX_FIFO); in t515_transmit()
550 outsw(nic->ioaddr + TX_FIFO, p, s / 2); in t515_transmit()
553 outb(*(p + s - 1), nic->ioaddr + TX_FIFO); in t515_transmit()
556 outb(0, nic->ioaddr + TX_FIFO); /* Padding */ in t515_transmit()
559 while ((inw(nic->ioaddr + EL3_STATUS) & CmdInProgress) != 0); in t515_transmit()
575 outw(RxDisable, nic->ioaddr + EL3_CMD); in t515_disable()
576 outw(TxDisable, nic->ioaddr + EL3_CMD); in t515_disable()
580 outw(StopCoax, nic->ioaddr + EL3_CMD); in t515_disable()
583 outw(SetIntrEnb | 0x0000, nic->ioaddr + EL3_CMD); in t515_disable()
617 nic->ioaddr = isapnp->ioaddr; in t515_probe()
622 if ((unsigned)(inw(nic->ioaddr + 0x2002) & 0x1f0) in t515_probe()
623 != (nic->ioaddr & 0x1f0)) { in t515_probe()
631 outw(EEPROM_Read + 7, nic->ioaddr + Wn0EepromCmd); in t515_probe()
635 if ((inw(nic->ioaddr + Wn0EepromCmd) & 0x0200) == 0) in t515_probe()
638 if (inw(nic->ioaddr + Wn0EepromData) != 0x6d50) { in t515_probe()
645 inl(nic->ioaddr + 0x2002), inw(nic->ioaddr + 0x2000) ); in t515_probe()
646 corkscrew_found_device(nic->ioaddr, nic->irqno, CORKSCREW_ID, in t515_probe()
655 corkscrew_found_device(int ioaddr, int irq, in corkscrew_found_device() argument
672 corkscrew_probe1(ioaddr, irq, product_index, nic); in corkscrew_found_device()
677 corkscrew_probe1(int ioaddr, int irq, int product_index __unused, in corkscrew_probe1() argument
683 printf("3Com %s at 0x%hX, ", vp->product_name, ioaddr); in corkscrew_probe1()
690 outw(EEPROM_Read + i, ioaddr + Wn0EepromCmd); in corkscrew_probe1()
694 if ((inw(ioaddr + Wn0EepromCmd) & 0x0200) == 0) in corkscrew_probe1()
697 eeprom[i] = inw(ioaddr + Wn0EepromData); in corkscrew_probe1()
722 vp->available_media = inw(ioaddr + Wn3_Options); in corkscrew_probe1()
723 config.i = inl(ioaddr + Wn3_Config); in corkscrew_probe1()
726 config.i, inw(ioaddr + Wn3_Options) ); in corkscrew_probe1()