Lines Matching refs:nic_base

543 	int nic_base = dev->base_addr;  in ne_get_8390_hdr()  local
555 outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base+ NE_CMD); in ne_get_8390_hdr()
556 outb_p(sizeof(struct e8390_pkt_hdr), nic_base + EN0_RCNTLO); in ne_get_8390_hdr()
557 outb_p(0, nic_base + EN0_RCNTHI); in ne_get_8390_hdr()
558 outb_p(0, nic_base + EN0_RSARLO); /* On page boundary */ in ne_get_8390_hdr()
559 outb_p(ring_page, nic_base + EN0_RSARHI); in ne_get_8390_hdr()
560 outb_p(E8390_RREAD+E8390_START, nic_base + NE_CMD); in ne_get_8390_hdr()
569 outb_p(ENISR_RDC, nic_base + EN0_ISR); /* Ack intr. */ in ne_get_8390_hdr()
584 int nic_base = dev->base_addr; in ne_block_input() local
596 outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base+ NE_CMD); in ne_block_input()
597 outb_p(count & 0xff, nic_base + EN0_RCNTLO); in ne_block_input()
598 outb_p(count >> 8, nic_base + EN0_RCNTHI); in ne_block_input()
599 outb_p(ring_offset & 0xff, nic_base + EN0_RSARLO); in ne_block_input()
600 outb_p(ring_offset >> 8, nic_base + EN0_RSARHI); in ne_block_input()
601 outb_p(E8390_RREAD+E8390_START, nic_base + NE_CMD); in ne_block_input()
624 int high = inb_p(nic_base + EN0_RSARHI); in ne_block_input()
625 int low = inb_p(nic_base + EN0_RSARLO); in ne_block_input()
636 outb_p(ENISR_RDC, nic_base + EN0_ISR); /* Ack intr. */ in ne_block_input()
643 int nic_base = NE_BASE; in ne_block_output() local
665 outb_p(E8390_PAGE0+E8390_START+E8390_NODMA, nic_base + NE_CMD); in ne_block_output()
676 outb_p(0x42, nic_base + EN0_RCNTLO); in ne_block_output()
677 outb_p(0x00, nic_base + EN0_RCNTHI); in ne_block_output()
678 outb_p(0x42, nic_base + EN0_RSARLO); in ne_block_output()
679 outb_p(0x00, nic_base + EN0_RSARHI); in ne_block_output()
680 outb_p(E8390_RREAD+E8390_START, nic_base + NE_CMD); in ne_block_output()
687 outb_p(ENISR_RDC, nic_base + EN0_ISR); in ne_block_output()
690 outb_p(count & 0xff, nic_base + EN0_RCNTLO); in ne_block_output()
691 outb_p(count >> 8, nic_base + EN0_RCNTHI); in ne_block_output()
692 outb_p(0x00, nic_base + EN0_RSARLO); in ne_block_output()
693 outb_p(start_page, nic_base + EN0_RSARHI); in ne_block_output()
695 outb_p(E8390_RWRITE+E8390_START, nic_base + NE_CMD); in ne_block_output()
711 int high = inb_p(nic_base + EN0_RSARHI); in ne_block_output()
712 int low = inb_p(nic_base + EN0_RSARLO); in ne_block_output()
727 while ((inb_p(nic_base + EN0_ISR) & ENISR_RDC) == 0) in ne_block_output()
735 outb_p(ENISR_RDC, nic_base + EN0_ISR); /* Ack intr. */ in ne_block_output()