Lines Matching refs:eth_asic_base
33 static unsigned short eth_nic_base, eth_asic_base; variable
121 outb(src & 0xff, eth_asic_base + _3COM_DALSB);
122 outb(src >> 8, eth_asic_base + _3COM_DAMSB);
123 outb(t503_output | _3COM_CR_START, eth_asic_base + _3COM_CR);
131 while((inb(eth_asic_base + _3COM_STREG) & _3COM_STREG_DPRDY) == 0)
136 *((unsigned short *)dst) = inw(eth_asic_base + ASIC_PIO);
140 *(dst++) = inb(eth_asic_base + ASIC_PIO);
144 outb(t503_output, eth_asic_base + _3COM_CR);
168 outb(dst & 0xff, eth_asic_base + _3COM_DALSB); in eth_pio_write()
169 outb(dst >> 8, eth_asic_base + _3COM_DAMSB); in eth_pio_write()
171 outb(t503_output | _3COM_CR_DDIR | _3COM_CR_START, eth_asic_base + _3COM_CR); in eth_pio_write()
180 while((inb(eth_asic_base + _3COM_STREG) & _3COM_STREG_DPRDY) == 0) in eth_pio_write()
185 outw(*((unsigned short *)src), eth_asic_base + ASIC_PIO); in eth_pio_write()
189 outb(*(src++), eth_asic_base + ASIC_PIO); in eth_pio_write()
193 outb(t503_output, eth_asic_base + _3COM_CR); in eth_pio_write()
280 outb(t503_output, eth_asic_base + _3COM_CR); in ns8390_reset()
362 outb(eth_laar | WD_LAAR_M16EN, eth_asic_base + WD_LAAR); in ns8390_transmit()
366 outb(WD_MSR_MENB, eth_asic_base + WD_MSR); in ns8390_transmit()
378 outb(0, eth_asic_base + WD_MSR); in ns8390_transmit()
382 outb(eth_laar & ~WD_LAAR_M16EN, eth_asic_base + WD_LAAR); in ns8390_transmit()
458 outb(eth_laar | WD_LAAR_M16EN, eth_asic_base + WD_LAAR); in ns8390_poll()
462 outb(WD_MSR_MENB, eth_asic_base + WD_MSR); in ns8390_poll()
503 outb(0, eth_asic_base + WD_MSR); in ns8390_poll()
507 outb(eth_laar & ~WD_LAAR_M16EN, eth_asic_base + WD_LAAR); in ns8390_poll()
547 for (eth_asic_base = WD_LOW_BASE; eth_asic_base <= WD_HIGH_BASE; in eth_probe()
548 eth_asic_base += 0x20) { in eth_probe()
551 chksum += inb(eth_asic_base+i); in eth_probe()
554 inb(eth_asic_base+8) != 0xFF && in eth_probe()
555 inb(eth_asic_base+9) != 0xFF) in eth_probe()
558 if (eth_asic_base > WD_HIGH_BASE) in eth_probe()
562 eth_nic_base = eth_asic_base + WD_NIC_ADDR; in eth_probe()
563 c = inb(eth_asic_base+WD_BID); /* Get board id */ in eth_probe()
575 (inb(eth_asic_base + WD_ICR) & WD_ICR_16BIT)) { in eth_probe()
581 ((inb(eth_asic_base + WD_MSR) & 0x3F) << 13)); in eth_probe()
591 outb(0x80, eth_asic_base + WD_MSR); /* Reset */ in eth_probe()
593 nic->node_addr[i] = inb(i+eth_asic_base+WD_LAR); in eth_probe()
596 brd->name, eth_asic_base, eth_bmem, nic->node_addr); in eth_probe()
598 outb(WD_MSR_MENB, eth_asic_base+WD_MSR); in eth_probe()
599 outb((inb(eth_asic_base+0x04) | in eth_probe()
600 0x80), eth_asic_base+0x04); in eth_probe()
603 (inb(eth_asic_base+0x0B) & 0xB0), eth_asic_base+0x0B); in eth_probe()
604 outb((inb(eth_asic_base+0x04) & in eth_probe()
605 ~0x80), eth_asic_base+0x04); in eth_probe()
607 outb((((unsigned)eth_bmem >> 13) & 0x3F) | 0x40, eth_asic_base+WD_MSR); in eth_probe()
611 eth_laar = inb(eth_asic_base + WD_LAAR); in eth_probe()
612 outb(WD_LAAR_M16EN, eth_asic_base + WD_LAAR); in eth_probe()
615 WD_LAAR_L16EN | 1), eth_asic_base + WD_LAAR); in eth_probe()
643 eth_asic_base = eth_nic_base + _3COM_ASIC_OFFSET; in eth_probe()
656 iobase_reg = inb(eth_asic_base + _3COM_BCFR); in eth_probe()
657 membase_reg = inb(eth_asic_base + _3COM_PCFR); in eth_probe()
705 outb(_3COM_CR_RST | _3COM_CR_XSEL, eth_asic_base + _3COM_CR ); in eth_probe()
706 outb(_3COM_CR_XSEL, eth_asic_base + _3COM_CR ); in eth_probe()
710 outb(_3COM_CR_EALO | _3COM_CR_XSEL, eth_asic_base + _3COM_CR); in eth_probe()
721 outb(_3COM_CR_XSEL, eth_asic_base + _3COM_CR); in eth_probe()
727 _3COM_GACFR_MBS0 | _3COM_GACFR_TCM | _3COM_GACFR_NIM, eth_asic_base + _3COM_GACFR); in eth_probe()
729 outb(0xff, eth_asic_base + _3COM_VPTR2); in eth_probe()
730 outb(0xff, eth_asic_base + _3COM_VPTR1); in eth_probe()
731 outb(0x00, eth_asic_base + _3COM_VPTR0); in eth_probe()
747 outb(eth_tx_start, eth_asic_base + _3COM_PSTR); in eth_probe()
748 outb(eth_memsize, eth_asic_base + _3COM_PSPR); in eth_probe()
770 eth_asic_base = eth_nic_base + NE_ASIC_OFFSET; in eth_probe()
774 c = inb(eth_asic_base + NE_RESET); in eth_probe()
775 outb(c, eth_asic_base + NE_RESET); in eth_probe()