taglinefilesource code
e8390_base128drivers/net/8390.cint e8390_base = dev->base_addr;
e8390_base135drivers/net/8390.cint txsr = inb(e8390_base+EN0_TSR), isr;
e8390_base140drivers/net/8390.cisr = inb(e8390_base+EN0_ISR);
e8390_base185drivers/net/8390.coutb(0x00,  e8390_base + EN0_IMR);
e8390_base217drivers/net/8390.coutb_p(ENISR_ALL,  e8390_base + EN0_IMR);
e8390_base247drivers/net/8390.coutb_p(ENISR_ALL,  e8390_base + EN0_IMR);
e8390_base260drivers/net/8390.cint e8390_base;
e8390_base268drivers/net/8390.ce8390_base = dev->base_addr;
e8390_base276drivers/net/8390.cdev->name, inb_p(e8390_base + EN0_ISR),
e8390_base277drivers/net/8390.cinb_p(e8390_base + EN0_IMR));
e8390_base285drivers/net/8390.coutb_p(E8390_NODMA+E8390_PAGE0, e8390_base + E8390_CMD);
e8390_base288drivers/net/8390.cinb_p(e8390_base + EN0_ISR));
e8390_base291drivers/net/8390.cwhile ((interrupts = inb_p(e8390_base + EN0_ISR)) != 0
e8390_base295drivers/net/8390.coutb_p(ENISR_RDC, e8390_base + EN0_ISR);
e8390_base308drivers/net/8390.cei_local->stat.rx_frame_errors += inb_p(e8390_base + EN0_COUNTER0);
e8390_base309drivers/net/8390.cei_local->stat.rx_crc_errors   += inb_p(e8390_base + EN0_COUNTER1);
e8390_base310drivers/net/8390.cei_local->stat.rx_missed_errors+= inb_p(e8390_base + EN0_COUNTER2);
e8390_base311drivers/net/8390.coutb_p(ENISR_COUNTERS, e8390_base + EN0_ISR); /* Ack intr. */
e8390_base316drivers/net/8390.coutb_p(ENISR_TX_ERR, e8390_base + EN0_ISR); /* Ack intr. */
e8390_base318drivers/net/8390.coutb_p(E8390_NODMA+E8390_PAGE0+E8390_START, e8390_base + E8390_CMD);
e8390_base323drivers/net/8390.coutb_p(E8390_NODMA+E8390_PAGE0+E8390_START, e8390_base + E8390_CMD);
e8390_base324drivers/net/8390.coutb_p(0xff, e8390_base + EN0_ISR); /* Ack. all intrs. */
e8390_base334drivers/net/8390.cint e8390_base = dev->base_addr;
e8390_base335drivers/net/8390.cint status = inb(e8390_base + EN0_TSR);
e8390_base338drivers/net/8390.coutb_p(ENISR_TX, e8390_base + EN0_ISR); /* Ack intr. */
e8390_base403drivers/net/8390.cint e8390_base = dev->base_addr;
e8390_base414drivers/net/8390.coutb_p(E8390_NODMA+E8390_PAGE1, e8390_base + E8390_CMD);
e8390_base415drivers/net/8390.crxing_page = inb_p(e8390_base + EN1_CURPAG);
e8390_base416drivers/net/8390.coutb_p(E8390_NODMA+E8390_PAGE0, e8390_base + E8390_CMD);
e8390_base419drivers/net/8390.cthis_frame = inb_p(e8390_base + EN0_BOUNDARY) + 1;
e8390_base448drivers/net/8390.coutb(ei_local->current_page-1, e8390_base+EN0_BOUNDARY);
e8390_base463drivers/net/8390.coutb(ei_local->current_page-1, e8390_base+EN0_BOUNDARY);
e8390_base530drivers/net/8390.coutb(next_frame-1, e8390_base+EN0_BOUNDARY);
e8390_base537drivers/net/8390.coutb_p(ENISR_RX+ENISR_RX_ERR+ENISR_OVER, e8390_base+EN0_ISR);
e8390_base545drivers/net/8390.cint e8390_base = dev->base_addr;
e8390_base550drivers/net/8390.coutb_p(E8390_NODMA+E8390_PAGE0+E8390_STOP, e8390_base+E8390_CMD);
e8390_base562drivers/net/8390.cwhile ((inb_p(e8390_base+EN0_ISR) & ENISR_RESET) == 0)
e8390_base573drivers/net/8390.coutb_p(0xff, e8390_base+EN0_ISR);
e8390_base575drivers/net/8390.coutb_p(E8390_NODMA + E8390_PAGE0 + E8390_START, e8390_base + E8390_CMD);
e8390_base576drivers/net/8390.coutb_p(E8390_TXCONFIG, e8390_base + EN0_TXCR); /* xmit on. */
e8390_base676drivers/net/8390.cint e8390_base = dev->base_addr;
e8390_base682drivers/net/8390.coutb_p(E8390_NODMA+E8390_PAGE0+E8390_STOP, e8390_base); /* 0x21 */
e8390_base683drivers/net/8390.coutb_p(endcfg, e8390_base + EN0_DCFG);  /* 0x48 or 0x49 */
e8390_base685drivers/net/8390.coutb_p(0x00,  e8390_base + EN0_RCNTLO);
e8390_base686drivers/net/8390.coutb_p(0x00,  e8390_base + EN0_RCNTHI);
e8390_base688drivers/net/8390.coutb_p(E8390_RXOFF, e8390_base + EN0_RXCR); /* 0x20 */
e8390_base689drivers/net/8390.coutb_p(E8390_TXOFF, e8390_base + EN0_TXCR); /* 0x02 */
e8390_base691drivers/net/8390.coutb_p(ei_local->tx_start_page,   e8390_base + EN0_TPSR);
e8390_base693drivers/net/8390.coutb_p(ei_local->rx_start_page,   e8390_base + EN0_STARTPG);
e8390_base694drivers/net/8390.coutb_p(ei_local->stop_page-1, e8390_base + EN0_BOUNDARY); /* 3c503 says 0x3f,NS0x26*/
e8390_base696drivers/net/8390.coutb_p(ei_local->stop_page,    e8390_base + EN0_STOPPG);
e8390_base698drivers/net/8390.coutb_p(0xFF, e8390_base + EN0_ISR);
e8390_base699drivers/net/8390.coutb_p(0x00,  e8390_base + EN0_IMR);
e8390_base704drivers/net/8390.coutb_p(E8390_NODMA + E8390_PAGE1 + E8390_STOP, e8390_base); /* 0x61 */
e8390_base706drivers/net/8390.coutb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i);
e8390_base711drivers/net/8390.coutb_p(0xff, e8390_base + EN1_MULT + i);
e8390_base713drivers/net/8390.coutb_p(ei_local->rx_start_page,   e8390_base + EN1_CURPAG);
e8390_base714drivers/net/8390.coutb_p(E8390_NODMA+E8390_PAGE0+E8390_STOP, e8390_base);
e8390_base717drivers/net/8390.coutb_p(0xff,  e8390_base + EN0_ISR);
e8390_base718drivers/net/8390.coutb_p(ENISR_ALL,  e8390_base + EN0_IMR);
e8390_base719drivers/net/8390.coutb_p(E8390_NODMA+E8390_PAGE0+E8390_START, e8390_base);
e8390_base720drivers/net/8390.coutb_p(E8390_TXCONFIG, e8390_base + EN0_TXCR); /* xmit on. */
e8390_base722drivers/net/8390.coutb_p(E8390_RXCONFIG,  e8390_base + EN0_RXCR); /* rx on,  */
e8390_base731drivers/net/8390.cint e8390_base = dev->base_addr;
e8390_base734drivers/net/8390.coutb_p(E8390_NODMA+E8390_PAGE0, e8390_base);
e8390_base736drivers/net/8390.cif (inb_p(e8390_base) & E8390_TRANS) {
e8390_base741drivers/net/8390.coutb_p(length & 0xff, e8390_base + EN0_TCNTLO);
e8390_base742drivers/net/8390.coutb_p(length >> 8, e8390_base + EN0_TCNTHI);
e8390_base743drivers/net/8390.coutb_p(start_page, e8390_base + EN0_TPSR);
e8390_base744drivers/net/8390.coutb_p(E8390_NODMA+E8390_TRANS+E8390_START, e8390_base);