tag | line | file | source code |
e8390_base | 128 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
e8390_base | 135 | drivers/net/8390.c | int txsr = inb(e8390_base+EN0_TSR), isr; |
e8390_base | 140 | drivers/net/8390.c | isr = inb(e8390_base+EN0_ISR); |
e8390_base | 185 | drivers/net/8390.c | outb(0x00, e8390_base + EN0_IMR); |
e8390_base | 217 | drivers/net/8390.c | outb_p(ENISR_ALL, e8390_base + EN0_IMR); |
e8390_base | 247 | drivers/net/8390.c | outb_p(ENISR_ALL, e8390_base + EN0_IMR); |
e8390_base | 260 | drivers/net/8390.c | int e8390_base; |
e8390_base | 268 | drivers/net/8390.c | e8390_base = dev->base_addr; |
e8390_base | 276 | drivers/net/8390.c | dev->name, inb_p(e8390_base + EN0_ISR), |
e8390_base | 277 | drivers/net/8390.c | inb_p(e8390_base + EN0_IMR)); |
e8390_base | 285 | drivers/net/8390.c | outb_p(E8390_NODMA+E8390_PAGE0, e8390_base + E8390_CMD); |
e8390_base | 288 | drivers/net/8390.c | inb_p(e8390_base + EN0_ISR)); |
e8390_base | 291 | drivers/net/8390.c | while ((interrupts = inb_p(e8390_base + EN0_ISR)) != 0 |
e8390_base | 295 | drivers/net/8390.c | outb_p(ENISR_RDC, e8390_base + EN0_ISR); |
e8390_base | 308 | drivers/net/8390.c | ei_local->stat.rx_frame_errors += inb_p(e8390_base + EN0_COUNTER0); |
e8390_base | 309 | drivers/net/8390.c | ei_local->stat.rx_crc_errors += inb_p(e8390_base + EN0_COUNTER1); |
e8390_base | 310 | drivers/net/8390.c | ei_local->stat.rx_missed_errors+= inb_p(e8390_base + EN0_COUNTER2); |
e8390_base | 311 | drivers/net/8390.c | outb_p(ENISR_COUNTERS, e8390_base + EN0_ISR); /* Ack intr. */ |
e8390_base | 316 | drivers/net/8390.c | outb_p(ENISR_TX_ERR, e8390_base + EN0_ISR); /* Ack intr. */ |
e8390_base | 318 | drivers/net/8390.c | outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, e8390_base + E8390_CMD); |
e8390_base | 323 | drivers/net/8390.c | outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, e8390_base + E8390_CMD); |
e8390_base | 324 | drivers/net/8390.c | outb_p(0xff, e8390_base + EN0_ISR); /* Ack. all intrs. */ |
e8390_base | 334 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
e8390_base | 335 | drivers/net/8390.c | int status = inb(e8390_base + EN0_TSR); |
e8390_base | 338 | drivers/net/8390.c | outb_p(ENISR_TX, e8390_base + EN0_ISR); /* Ack intr. */ |
e8390_base | 403 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
e8390_base | 414 | drivers/net/8390.c | outb_p(E8390_NODMA+E8390_PAGE1, e8390_base + E8390_CMD); |
e8390_base | 415 | drivers/net/8390.c | rxing_page = inb_p(e8390_base + EN1_CURPAG); |
e8390_base | 416 | drivers/net/8390.c | outb_p(E8390_NODMA+E8390_PAGE0, e8390_base + E8390_CMD); |
e8390_base | 419 | drivers/net/8390.c | this_frame = inb_p(e8390_base + EN0_BOUNDARY) + 1; |
e8390_base | 448 | drivers/net/8390.c | outb(ei_local->current_page-1, e8390_base+EN0_BOUNDARY); |
e8390_base | 463 | drivers/net/8390.c | outb(ei_local->current_page-1, e8390_base+EN0_BOUNDARY); |
e8390_base | 530 | drivers/net/8390.c | outb(next_frame-1, e8390_base+EN0_BOUNDARY); |
e8390_base | 537 | drivers/net/8390.c | outb_p(ENISR_RX+ENISR_RX_ERR+ENISR_OVER, e8390_base+EN0_ISR); |
e8390_base | 545 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
e8390_base | 550 | drivers/net/8390.c | outb_p(E8390_NODMA+E8390_PAGE0+E8390_STOP, e8390_base+E8390_CMD); |
e8390_base | 562 | drivers/net/8390.c | while ((inb_p(e8390_base+EN0_ISR) & ENISR_RESET) == 0) |
e8390_base | 573 | drivers/net/8390.c | outb_p(0xff, e8390_base+EN0_ISR); |
e8390_base | 575 | drivers/net/8390.c | outb_p(E8390_NODMA + E8390_PAGE0 + E8390_START, e8390_base + E8390_CMD); |
e8390_base | 576 | drivers/net/8390.c | outb_p(E8390_TXCONFIG, e8390_base + EN0_TXCR); /* xmit on. */ |
e8390_base | 676 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
e8390_base | 682 | drivers/net/8390.c | outb_p(E8390_NODMA+E8390_PAGE0+E8390_STOP, e8390_base); /* 0x21 */ |
e8390_base | 683 | drivers/net/8390.c | outb_p(endcfg, e8390_base + EN0_DCFG); /* 0x48 or 0x49 */ |
e8390_base | 685 | drivers/net/8390.c | outb_p(0x00, e8390_base + EN0_RCNTLO); |
e8390_base | 686 | drivers/net/8390.c | outb_p(0x00, e8390_base + EN0_RCNTHI); |
e8390_base | 688 | drivers/net/8390.c | outb_p(E8390_RXOFF, e8390_base + EN0_RXCR); /* 0x20 */ |
e8390_base | 689 | drivers/net/8390.c | outb_p(E8390_TXOFF, e8390_base + EN0_TXCR); /* 0x02 */ |
e8390_base | 691 | drivers/net/8390.c | outb_p(ei_local->tx_start_page, e8390_base + EN0_TPSR); |
e8390_base | 693 | drivers/net/8390.c | outb_p(ei_local->rx_start_page, e8390_base + EN0_STARTPG); |
e8390_base | 694 | drivers/net/8390.c | outb_p(ei_local->stop_page-1, e8390_base + EN0_BOUNDARY); /* 3c503 says 0x3f,NS0x26*/ |
e8390_base | 696 | drivers/net/8390.c | outb_p(ei_local->stop_page, e8390_base + EN0_STOPPG); |
e8390_base | 698 | drivers/net/8390.c | outb_p(0xFF, e8390_base + EN0_ISR); |
e8390_base | 699 | drivers/net/8390.c | outb_p(0x00, e8390_base + EN0_IMR); |
e8390_base | 704 | drivers/net/8390.c | outb_p(E8390_NODMA + E8390_PAGE1 + E8390_STOP, e8390_base); /* 0x61 */ |
e8390_base | 706 | drivers/net/8390.c | outb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i); |
e8390_base | 711 | drivers/net/8390.c | outb_p(0xff, e8390_base + EN1_MULT + i); |
e8390_base | 713 | drivers/net/8390.c | outb_p(ei_local->rx_start_page, e8390_base + EN1_CURPAG); |
e8390_base | 714 | drivers/net/8390.c | outb_p(E8390_NODMA+E8390_PAGE0+E8390_STOP, e8390_base); |
e8390_base | 717 | drivers/net/8390.c | outb_p(0xff, e8390_base + EN0_ISR); |
e8390_base | 718 | drivers/net/8390.c | outb_p(ENISR_ALL, e8390_base + EN0_IMR); |
e8390_base | 719 | drivers/net/8390.c | outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, e8390_base); |
e8390_base | 720 | drivers/net/8390.c | outb_p(E8390_TXCONFIG, e8390_base + EN0_TXCR); /* xmit on. */ |
e8390_base | 722 | drivers/net/8390.c | outb_p(E8390_RXCONFIG, e8390_base + EN0_RXCR); /* rx on, */ |
e8390_base | 731 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
e8390_base | 734 | drivers/net/8390.c | outb_p(E8390_NODMA+E8390_PAGE0, e8390_base); |
e8390_base | 736 | drivers/net/8390.c | if (inb_p(e8390_base) & E8390_TRANS) { |
e8390_base | 741 | drivers/net/8390.c | outb_p(length & 0xff, e8390_base + EN0_TCNTLO); |
e8390_base | 742 | drivers/net/8390.c | outb_p(length >> 8, e8390_base + EN0_TCNTHI); |
e8390_base | 743 | drivers/net/8390.c | outb_p(start_page, e8390_base + EN0_TPSR); |
e8390_base | 744 | drivers/net/8390.c | outb_p(E8390_NODMA+E8390_TRANS+E8390_START, e8390_base); |