Lines Matching refs:NE_BASE

62 #define NE_BASE	 (dev->base_addr)  macro
380 outb(inb(NE_BASE + NE_RESET), NE_BASE + NE_RESET); in ne_reset_8390()
386 while ((inb_p(NE_BASE+EN0_ISR) & ENISR_RESET) == 0) in ne_reset_8390()
391 outb_p(ENISR_RESET, NE_BASE + EN0_ISR); /* Ack intr. */ in ne_reset_8390()
412 outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, NE_BASE + NE_CMD); in ne_get_8390_hdr()
413 outb_p(sizeof(struct e8390_pkt_hdr), NE_BASE + EN0_RCNTLO); in ne_get_8390_hdr()
414 outb_p(0, NE_BASE + EN0_RCNTHI); in ne_get_8390_hdr()
415 outb_p(0, NE_BASE + EN0_RSARLO); /* On page boundary */ in ne_get_8390_hdr()
416 outb_p(ring_page, NE_BASE + EN0_RSARHI); in ne_get_8390_hdr()
417 outb_p(E8390_RREAD+E8390_START, NE_BASE + NE_CMD); in ne_get_8390_hdr()
423 *p++ = inw(NE_BASE + NE_DATAPORT); in ne_get_8390_hdr()
425 insb(NE_BASE + NE_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr)); in ne_get_8390_hdr()
427 outb_p(ENISR_RDC, NE_BASE + EN0_ISR); /* Ack intr. */ in ne_get_8390_hdr()
455 outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, NE_BASE + NE_CMD); in ne_block_input()
456 outb_p(count & 0xff, NE_BASE + EN0_RCNTLO); in ne_block_input()
457 outb_p(count >> 8, NE_BASE + EN0_RCNTHI); in ne_block_input()
458 outb_p(ring_offset & 0xff, NE_BASE + EN0_RSARLO); in ne_block_input()
459 outb_p(ring_offset >> 8, NE_BASE + EN0_RSARHI); in ne_block_input()
460 outb_p(E8390_RREAD+E8390_START, NE_BASE + NE_CMD); in ne_block_input()
466 *p++ = inw(NE_BASE + NE_DATAPORT); in ne_block_input()
469 buf[count-1] = inb(NE_BASE + NE_DATAPORT); in ne_block_input()
475 insb(NE_BASE + NE_DATAPORT, buf, count); in ne_block_input()
491 int high = inb_p(NE_BASE + EN0_RSARHI); in ne_block_input()
492 int low = inb_p(NE_BASE + EN0_RSARLO); in ne_block_input()
503 outb_p(ENISR_RDC, NE_BASE + EN0_ISR); /* Ack intr. */ in ne_block_input()
533 outb_p(E8390_PAGE0+E8390_START+E8390_NODMA, NE_BASE + NE_CMD); in ne_block_output()
545 outb_p(0x42, NE_BASE + EN0_RCNTLO); in ne_block_output()
546 outb_p(0x00, NE_BASE + EN0_RCNTHI); in ne_block_output()
547 outb_p(0x42, NE_BASE + EN0_RSARLO); in ne_block_output()
548 outb_p(0x00, NE_BASE + EN0_RSARHI); in ne_block_output()
549 outb_p(E8390_RREAD+E8390_START, NE_BASE + NE_CMD); in ne_block_output()
554 outb_p(ENISR_RDC, NE_BASE + EN0_ISR); in ne_block_output()
557 outb_p(count & 0xff, NE_BASE + EN0_RCNTLO); in ne_block_output()
558 outb_p(count >> 8, NE_BASE + EN0_RCNTHI); in ne_block_output()
559 outb_p(0x00, NE_BASE + EN0_RSARLO); in ne_block_output()
560 outb_p(start_page, NE_BASE + EN0_RSARHI); in ne_block_output()
562 outb_p(E8390_RWRITE+E8390_START, NE_BASE + NE_CMD); in ne_block_output()
567 outw(*p++, NE_BASE + NE_DATAPORT); in ne_block_output()
569 outsb(NE_BASE + NE_DATAPORT, buf, count); in ne_block_output()
583 int high = inb_p(NE_BASE + EN0_RSARHI); in ne_block_output()
584 int low = inb_p(NE_BASE + EN0_RSARLO); in ne_block_output()
601 while ((inb_p(NE_BASE + EN0_ISR) & ENISR_RDC) == 0) in ne_block_output()
609 outb_p(ENISR_RDC, NE_BASE + EN0_ISR); /* Ack intr. */ in ne_block_output()