Lines Matching refs:nic
258 static void ns8390_reset(struct nic *nic) in ns8390_reset() argument
303 outb(nic->node_addr[i], eth_nic_base+D8390_P1_PAR0+i); in ns8390_reset()
328 t503_output = (nic->flags) ? 0 : _3COM_CR_XSEL; in ns8390_reset()
333 static int ns8390_poll(struct nic *nic, int retrieve);
339 static void eth_rx_overrun(struct nic *nic) in eth_rx_overrun() argument
376 while (ns8390_poll(nic, 1)) in eth_rx_overrun()
390 struct nic *nic, in ns8390_transmit() argument
402 memcpy((char *)eth_vmem+ETH_ALEN, nic->node_addr, ETH_ALEN); /* src */ in ns8390_transmit()
424 memcpy((char *)eth_vmem+ETH_ALEN, nic->node_addr, ETH_ALEN); /* src */ in ns8390_transmit()
448 eth_pio_write(nic->node_addr, (eth_tx_start<<8)+ETH_ALEN, ETH_ALEN); in ns8390_transmit()
488 static int ns8390_poll(struct nic *nic, int retrieve) in ns8390_poll() argument
500 eth_rx_overrun(nic); in ns8390_poll()
543 p = nic->packet; in ns8390_poll()
544 nic->packetlen = len; /* available to caller */ in ns8390_poll()
588 struct nic *nic = (struct nic *)dev; in ns8390_disable() local
590 ns8390_reset(nic); in ns8390_disable()
596 static void ns8390_irq(struct nic *nic __unused, irq_action_t action __unused) in ns8390_irq()
617 struct nic *nic = (struct nic *)dev; in eth_probe() local
626 nic->irqno = 0; in eth_probe()
653 nic->ioaddr = eth_nic_base; in eth_probe()
686 nic->node_addr[i] = inb(i+eth_asic_base+WD_LAR); in eth_probe()
691 printf(", PIO mode, addr %!\n", nic->node_addr); in eth_probe()
696 printf(", memory %#x, addr %!\n", eth_bmem, nic->node_addr); in eth_probe()
707 printf(", memory %#x, addr %!\n", eth_bmem, nic->node_addr); in eth_probe()
732 nic->flags = 1; /* aui */ in eth_probe()
734 nic->flags = 0; /* no aui */ in eth_probe()
818 nic->ioaddr = eth_nic_base; in eth_probe()
825 nic->node_addr[i] = inb(eth_nic_base+i); in eth_probe()
827 printf(", %s, addr %!\n", nic->flags ? "AUI" : "internal xcvr", in eth_probe()
828 nic->node_addr); in eth_probe()
921 nic->node_addr[i] = romdata[i + ((eth_flags & FLAG_16BIT) ? i : 0)]; in eth_probe()
923 nic->ioaddr = eth_nic_base; in eth_probe()
926 nic->node_addr); in eth_probe()
934 ns8390_reset(nic); in eth_probe()
937 nic->poll = ns8390_poll; in eth_probe()
938 nic->transmit = ns8390_transmit; in eth_probe()
939 nic->irq = ns8390_irq; in eth_probe()