Lines Matching refs:NE_BASE

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