Home
last modified time | relevance | path

Searched refs:nic_base (Results 1 – 10 of 10) sorted by relevance

/drivers/net/ethernet/8390/
Dhp.c248 int nic_base = dev->base_addr; in hp_get_8390_hdr() local
249 int saved_config = inb_p(nic_base - NIC_OFFSET + HP_CONFIGURE); in hp_get_8390_hdr()
251 outb_p(saved_config | HP_DATAON, nic_base - NIC_OFFSET + HP_CONFIGURE); in hp_get_8390_hdr()
252 outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base); in hp_get_8390_hdr()
253 outb_p(sizeof(struct e8390_pkt_hdr), nic_base + EN0_RCNTLO); in hp_get_8390_hdr()
254 outb_p(0, nic_base + EN0_RCNTHI); in hp_get_8390_hdr()
255 outb_p(0, nic_base + EN0_RSARLO); /* On page boundary */ in hp_get_8390_hdr()
256 outb_p(ring_page, nic_base + EN0_RSARHI); in hp_get_8390_hdr()
257 outb_p(E8390_RREAD+E8390_START, nic_base); in hp_get_8390_hdr()
260 insw(nic_base - NIC_OFFSET + HP_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr)>>1); in hp_get_8390_hdr()
[all …]
Dzorro8390.c114 int nic_base = dev->base_addr; in zorro8390_get_8390_hdr() local
128 z_writeb(E8390_NODMA + E8390_PAGE0 + E8390_START, nic_base + NE_CMD); in zorro8390_get_8390_hdr()
129 z_writeb(ENISR_RDC, nic_base + NE_EN0_ISR); in zorro8390_get_8390_hdr()
130 z_writeb(sizeof(struct e8390_pkt_hdr), nic_base + NE_EN0_RCNTLO); in zorro8390_get_8390_hdr()
131 z_writeb(0, nic_base + NE_EN0_RCNTHI); in zorro8390_get_8390_hdr()
132 z_writeb(0, nic_base + NE_EN0_RSARLO); /* On page boundary */ in zorro8390_get_8390_hdr()
133 z_writeb(ring_page, nic_base + NE_EN0_RSARHI); in zorro8390_get_8390_hdr()
134 z_writeb(E8390_RREAD+E8390_START, nic_base + NE_CMD); in zorro8390_get_8390_hdr()
140 z_writeb(ENISR_RDC, nic_base + NE_EN0_ISR); /* Ack intr */ in zorro8390_get_8390_hdr()
156 int nic_base = dev->base_addr; in zorro8390_block_input() local
[all …]
Dne2.c538 int nic_base = dev->base_addr; in ne_get_8390_hdr() local
550 outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base+ NE_CMD); in ne_get_8390_hdr()
551 outb_p(sizeof(struct e8390_pkt_hdr), nic_base + EN0_RCNTLO); in ne_get_8390_hdr()
552 outb_p(0, nic_base + EN0_RCNTHI); in ne_get_8390_hdr()
553 outb_p(0, nic_base + EN0_RSARLO); /* On page boundary */ in ne_get_8390_hdr()
554 outb_p(ring_page, nic_base + EN0_RSARHI); in ne_get_8390_hdr()
555 outb_p(E8390_RREAD+E8390_START, nic_base + NE_CMD); in ne_get_8390_hdr()
564 outb_p(ENISR_RDC, nic_base + EN0_ISR); /* Ack intr. */ in ne_get_8390_hdr()
579 int nic_base = dev->base_addr; in ne_block_input() local
591 outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base+ NE_CMD); in ne_block_input()
[all …]
Dapne.c382 int nic_base = dev->base_addr; in apne_get_8390_hdr() local
396 outb(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base+ NE_CMD); in apne_get_8390_hdr()
397 outb(ENISR_RDC, nic_base + NE_EN0_ISR); in apne_get_8390_hdr()
398 outb(sizeof(struct e8390_pkt_hdr), nic_base + NE_EN0_RCNTLO); in apne_get_8390_hdr()
399 outb(0, nic_base + NE_EN0_RCNTHI); in apne_get_8390_hdr()
400 outb(0, nic_base + NE_EN0_RSARLO); /* On page boundary */ in apne_get_8390_hdr()
401 outb(ring_page, nic_base + NE_EN0_RSARHI); in apne_get_8390_hdr()
402 outb(E8390_RREAD+E8390_START, nic_base + NE_CMD); in apne_get_8390_hdr()
414 outb(ENISR_RDC, nic_base + NE_EN0_ISR); /* Ack intr. */ in apne_get_8390_hdr()
428 int nic_base = dev->base_addr; in apne_block_input() local
[all …]
Dne2k-pci.c481 long nic_base = dev->base_addr; in ne2k_pci_get_8390_hdr() local
492 outb(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base+ NE_CMD); in ne2k_pci_get_8390_hdr()
493 outb(sizeof(struct e8390_pkt_hdr), nic_base + EN0_RCNTLO); in ne2k_pci_get_8390_hdr()
494 outb(0, nic_base + EN0_RCNTHI); in ne2k_pci_get_8390_hdr()
495 outb(0, nic_base + EN0_RSARLO); /* On page boundary */ in ne2k_pci_get_8390_hdr()
496 outb(ring_page, nic_base + EN0_RSARHI); in ne2k_pci_get_8390_hdr()
497 outb(E8390_RREAD+E8390_START, nic_base + NE_CMD); in ne2k_pci_get_8390_hdr()
506 outb(ENISR_RDC, nic_base + EN0_ISR); /* Ack intr. */ in ne2k_pci_get_8390_hdr()
518 long nic_base = dev->base_addr; in ne2k_pci_block_input() local
531 outb(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base+ NE_CMD); in ne2k_pci_block_input()
[all …]
Dne.c584 int nic_base = dev->base_addr; in ne_get_8390_hdr() local
597 outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base+ NE_CMD); in ne_get_8390_hdr()
598 outb_p(sizeof(struct e8390_pkt_hdr), nic_base + EN0_RCNTLO); in ne_get_8390_hdr()
599 outb_p(0, nic_base + EN0_RCNTHI); in ne_get_8390_hdr()
600 outb_p(0, nic_base + EN0_RSARLO); /* On page boundary */ in ne_get_8390_hdr()
601 outb_p(ring_page, nic_base + EN0_RSARHI); in ne_get_8390_hdr()
602 outb_p(E8390_RREAD+E8390_START, nic_base + NE_CMD); in ne_get_8390_hdr()
609 outb_p(ENISR_RDC, nic_base + EN0_ISR); /* Ack intr. */ in ne_get_8390_hdr()
625 int nic_base = dev->base_addr; in ne_block_input() local
637 outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base+ NE_CMD); in ne_block_input()
[all …]
Dpcnet_cs.c836 unsigned int nic_base = dev->base_addr; in set_misc_reg() local
841 tmp = inb_p(nic_base + PCNET_MISC) & ~3; in set_misc_reg()
848 outb_p(tmp, nic_base + PCNET_MISC); in set_misc_reg()
853 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 4, 0x01e1); in set_misc_reg()
855 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x0000); in set_misc_reg()
856 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x1200); in set_misc_reg()
859 outb(full_duplex ? 4 : 0, nic_base + DLINK_DIAG); in set_misc_reg()
863 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 4, 0x01e1); in set_misc_reg()
865 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x0000); in set_misc_reg()
866 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x1200); in set_misc_reg()
[all …]
Dax88796.c174 void __iomem *nic_base = ei_local->mem; in ax_get_8390_hdr() local
186 ei_outb(E8390_NODMA + E8390_PAGE0 + E8390_START, nic_base + NE_CMD); in ax_get_8390_hdr()
187 ei_outb(sizeof(struct e8390_pkt_hdr), nic_base + EN0_RCNTLO); in ax_get_8390_hdr()
188 ei_outb(0, nic_base + EN0_RCNTHI); in ax_get_8390_hdr()
189 ei_outb(0, nic_base + EN0_RSARLO); /* On page boundary */ in ax_get_8390_hdr()
190 ei_outb(ring_page, nic_base + EN0_RSARHI); in ax_get_8390_hdr()
191 ei_outb(E8390_RREAD+E8390_START, nic_base + NE_CMD); in ax_get_8390_hdr()
194 readsw(nic_base + NE_DATAPORT, hdr, in ax_get_8390_hdr()
197 readsb(nic_base + NE_DATAPORT, hdr, in ax_get_8390_hdr()
200 ei_outb(ENISR_RDC, nic_base + EN0_ISR); /* Ack intr. */ in ax_get_8390_hdr()
[all …]
Daxnet_cs.c471 unsigned int nic_base = dev->base_addr; in axnet_open() local
478 outb_p(0xFF, nic_base + EN0_ISR); /* Clear bogus intr. */ in axnet_open()
523 unsigned int nic_base = dev->base_addr; in axnet_reset_8390() local
528 outb_p(E8390_NODMA+E8390_PAGE0+E8390_STOP, nic_base + E8390_CMD); in axnet_reset_8390()
530 outb(inb(nic_base + AXNET_RESET), nic_base + AXNET_RESET); in axnet_reset_8390()
533 if ((inb_p(nic_base+EN0_ISR) & ENISR_RESET) != 0) in axnet_reset_8390()
537 outb_p(ENISR_RESET, nic_base + EN0_ISR); /* Ack intr. */ in axnet_reset_8390()
557 unsigned int nic_base = dev->base_addr; in ei_watchdog() local
558 unsigned int mii_addr = nic_base + AXNET_MII_EEP; in ei_watchdog()
565 if (info->stale++ && (inb_p(nic_base + EN0_ISR) & ENISR_ALL)) { in ei_watchdog()
[all …]
Dhydra.c204 int nic_base = dev->base_addr; in hydra_get_8390_hdr() local
206 unsigned long hdr_start= (nic_base-HYDRA_NIC_BASE) + in hydra_get_8390_hdr()
220 unsigned long nic_base = dev->base_addr; in hydra_block_input() local
221 unsigned long mem_base = nic_base - HYDRA_NIC_BASE; in hydra_block_input()
241 unsigned long nic_base = dev->base_addr; in hydra_block_output() local
242 unsigned long mem_base = nic_base - HYDRA_NIC_BASE; in hydra_block_output()