/linux-2.4.37.9/drivers/net/ |
D | hp.c | 247 int nic_base = dev->base_addr; in hp_get_8390_hdr() local 248 int saved_config = inb_p(nic_base - NIC_OFFSET + HP_CONFIGURE); in hp_get_8390_hdr() 250 outb_p(saved_config | HP_DATAON, nic_base - NIC_OFFSET + HP_CONFIGURE); in hp_get_8390_hdr() 251 outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base); in hp_get_8390_hdr() 252 outb_p(sizeof(struct e8390_pkt_hdr), nic_base + EN0_RCNTLO); in hp_get_8390_hdr() 253 outb_p(0, nic_base + EN0_RCNTHI); in hp_get_8390_hdr() 254 outb_p(0, nic_base + EN0_RSARLO); /* On page boundary */ in hp_get_8390_hdr() 255 outb_p(ring_page, nic_base + EN0_RSARHI); in hp_get_8390_hdr() 256 outb_p(E8390_RREAD+E8390_START, nic_base); in hp_get_8390_hdr() 259 insw(nic_base - NIC_OFFSET + HP_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr)>>1); in hp_get_8390_hdr() [all …]
|
D | zorro8390.c | 284 int nic_base = dev->base_addr; in zorro8390_get_8390_hdr() local 297 z_writeb(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base+ NE_CMD); in zorro8390_get_8390_hdr() 298 z_writeb(ENISR_RDC, nic_base + NE_EN0_ISR); in zorro8390_get_8390_hdr() 299 z_writeb(sizeof(struct e8390_pkt_hdr), nic_base + NE_EN0_RCNTLO); in zorro8390_get_8390_hdr() 300 z_writeb(0, nic_base + NE_EN0_RCNTHI); in zorro8390_get_8390_hdr() 301 z_writeb(0, nic_base + NE_EN0_RSARLO); /* On page boundary */ in zorro8390_get_8390_hdr() 302 z_writeb(ring_page, nic_base + NE_EN0_RSARHI); in zorro8390_get_8390_hdr() 303 z_writeb(E8390_RREAD+E8390_START, nic_base + NE_CMD); in zorro8390_get_8390_hdr() 309 z_writeb(ENISR_RDC, nic_base + NE_EN0_ISR); /* Ack intr. */ in zorro8390_get_8390_hdr() 324 int nic_base = dev->base_addr; in zorro8390_block_input() local [all …]
|
D | ne2.c | 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() [all …]
|
D | ne.c | 537 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() 562 outb_p(ENISR_RDC, nic_base + EN0_ISR); /* Ack intr. */ in ne_get_8390_hdr() 578 int nic_base = dev->base_addr; in ne_block_input() local 590 outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base+ NE_CMD); in ne_block_input() [all …]
|
D | apne.c | 371 int nic_base = dev->base_addr; in apne_get_8390_hdr() local 385 outb(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base+ NE_CMD); in apne_get_8390_hdr() 386 outb(ENISR_RDC, nic_base + NE_EN0_ISR); in apne_get_8390_hdr() 387 outb(sizeof(struct e8390_pkt_hdr), nic_base + NE_EN0_RCNTLO); in apne_get_8390_hdr() 388 outb(0, nic_base + NE_EN0_RCNTHI); in apne_get_8390_hdr() 389 outb(0, nic_base + NE_EN0_RSARLO); /* On page boundary */ in apne_get_8390_hdr() 390 outb(ring_page, nic_base + NE_EN0_RSARHI); in apne_get_8390_hdr() 391 outb(E8390_RREAD+E8390_START, nic_base + NE_CMD); in apne_get_8390_hdr() 403 outb(ENISR_RDC, nic_base + NE_EN0_ISR); /* Ack intr. */ in apne_get_8390_hdr() 417 int nic_base = dev->base_addr; in apne_block_input() local [all …]
|
D | ne2k-pci.c | 442 long nic_base = dev->base_addr; in ne2k_pci_get_8390_hdr() local 453 outb(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base+ NE_CMD); in ne2k_pci_get_8390_hdr() 454 outb(sizeof(struct e8390_pkt_hdr), nic_base + EN0_RCNTLO); in ne2k_pci_get_8390_hdr() 455 outb(0, nic_base + EN0_RCNTHI); in ne2k_pci_get_8390_hdr() 456 outb(0, nic_base + EN0_RSARLO); /* On page boundary */ in ne2k_pci_get_8390_hdr() 457 outb(ring_page, nic_base + EN0_RSARHI); in ne2k_pci_get_8390_hdr() 458 outb(E8390_RREAD+E8390_START, nic_base + NE_CMD); in ne2k_pci_get_8390_hdr() 467 outb(ENISR_RDC, nic_base + EN0_ISR); /* Ack intr. */ in ne2k_pci_get_8390_hdr() 479 long nic_base = dev->base_addr; in ne2k_pci_block_input() local 492 outb(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base+ NE_CMD); in ne2k_pci_block_input() [all …]
|
D | hydra.c | 193 int nic_base = dev->base_addr; in hydra_get_8390_hdr() local 195 unsigned long hdr_start= (nic_base-HYDRA_NIC_BASE) + in hydra_get_8390_hdr() 209 unsigned long nic_base = dev->base_addr; in hydra_block_input() local 210 unsigned long mem_base = nic_base - HYDRA_NIC_BASE; in hydra_block_input() 230 unsigned long nic_base = dev->base_addr; in hydra_block_output() local 231 unsigned long mem_base = nic_base - HYDRA_NIC_BASE; in hydra_block_output()
|
/linux-2.4.37.9/drivers/net/pcmcia/ |
D | pcnet_cs.c | 1066 ioaddr_t nic_base = dev->base_addr; in set_misc_reg() local 1071 tmp = inb_p(nic_base + PCNET_MISC) & ~3; in set_misc_reg() 1078 outb_p(tmp, nic_base + PCNET_MISC); in set_misc_reg() 1082 mdio_reset(nic_base + DLINK_GPIO, info->eth_phy); in set_misc_reg() 1084 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x0000); in set_misc_reg() 1085 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x1200); in set_misc_reg() 1088 outb(full_duplex ? 4 : 0, nic_base + DLINK_DIAG); in set_misc_reg() 1177 ioaddr_t nic_base = dev->base_addr; in pcnet_reset_8390() local 1182 outb_p(E8390_NODMA+E8390_PAGE0+E8390_STOP, nic_base + E8390_CMD); in pcnet_reset_8390() 1184 outb(inb(nic_base + PCNET_RESET), nic_base + PCNET_RESET); in pcnet_reset_8390() [all …]
|
D | axnet_cs.c | 738 ioaddr_t nic_base = dev->base_addr; in axnet_reset_8390() local 743 outb_p(E8390_NODMA+E8390_PAGE0+E8390_STOP, nic_base + E8390_CMD); in axnet_reset_8390() 745 outb(inb(nic_base + AXNET_RESET), nic_base + AXNET_RESET); in axnet_reset_8390() 748 if ((inb_p(nic_base+EN0_ISR) & ENISR_RESET) != 0) in axnet_reset_8390() 752 outb_p(ENISR_RESET, nic_base + EN0_ISR); /* Ack intr. */ in axnet_reset_8390() 773 ioaddr_t nic_base = dev->base_addr; in ei_watchdog() local 774 ioaddr_t mii_addr = nic_base + AXNET_MII_EEP; in ei_watchdog() 781 if (info->stale++ && (inb_p(nic_base + EN0_ISR) & ENISR_ALL)) { in ei_watchdog() 869 ioaddr_t nic_base = dev->base_addr; in get_8390_hdr() local 871 outb_p(0, nic_base + EN0_RSARLO); /* On page boundary */ in get_8390_hdr() [all …]
|