/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | rtl8139.c | 176 static int read_eeprom(struct nic *nic, int location, int addr_len); 177 static void rtl_reset(struct nic *nic); 178 static void rtl_transmit(struct nic *nic, const char *destaddr, 180 static int rtl_poll(struct nic *nic, int retrieve); 182 static void rtl_irq(struct nic *nic, irq_action_t action); 187 struct nic *nic = (struct nic *)dev; in rtl8139_probe() local 191 unsigned short *ap = (unsigned short*)nic->node_addr; in rtl8139_probe() 198 nic->ioaddr = pci->ioaddr & ~3; in rtl8139_probe() 201 nic->irqno = pci->irq; in rtl8139_probe() 206 outb(0x00, nic->ioaddr + Config1); in rtl8139_probe() [all …]
|
H A D | pnic.c | 48 static uint16_t pnic_command_quiet ( struct nic *nic, uint16_t command, in pnic_command_quiet() argument 58 outw ( input_length, nic->ioaddr + PNIC_REG_LEN ); in pnic_command_quiet() 61 outb( ((char*)input)[i], nic->ioaddr + PNIC_REG_DATA ); in pnic_command_quiet() 65 outw ( command, nic->ioaddr + PNIC_REG_CMD ); in pnic_command_quiet() 67 status = inw ( nic->ioaddr + PNIC_REG_STAT ); in pnic_command_quiet() 69 _output_length = inw ( nic->ioaddr + PNIC_REG_LEN ); in pnic_command_quiet() 89 inb ( nic->ioaddr + PNIC_REG_DATA ); in pnic_command_quiet() 95 static uint16_t pnic_command ( struct nic *nic, uint16_t command, in pnic_command() argument 99 pnic_priv_data_t *priv = (pnic_priv_data_t*)nic->priv_data; in pnic_command() 100 uint16_t status = pnic_command_quiet ( nic, command, in pnic_command() [all …]
|
H A D | natsemi.c | 216 static void natsemi_init(struct nic *nic); 217 static void natsemi_reset(struct nic *nic); 218 static void natsemi_init_rxfilter(struct nic *nic); 219 static void natsemi_init_txd(struct nic *nic); 220 static void natsemi_init_rxd(struct nic *nic); 221 static void natsemi_set_rx_mode(struct nic *nic); 222 static void natsemi_check_duplex(struct nic *nic); 223 static void natsemi_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const … 224 static int natsemi_poll(struct nic *nic, int retrieve); 226 static void natsemi_irq(struct nic *nic, irq_action_t action); [all …]
|
H A D | tlan.c | 75 static void TLan_ResetLists(struct nic *nic __unused); 76 static void TLan_ResetAdapter(struct nic *nic __unused); 77 static void TLan_FinishReset(struct nic *nic __unused); 84 static void TLan_PhyDetect(struct nic *nic); 85 static void TLan_PhyPowerDown(struct nic *nic); 86 static void TLan_PhyPowerUp(struct nic *nic); 89 static void TLan_SetMac(struct nic *nic __unused, int areg, char *mac); 91 static void TLan_PhyReset(struct nic *nic); 92 static void TLan_PhyStartLink(struct nic *nic); 93 static void TLan_PhyFinishAutoNeg(struct nic *nic); [all …]
|
H A D | sis900.c | 83 static void sis900_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex); 84 static void amd79c901_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex); 85 static void ics1893_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex); 86 static void rtl8201_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex); 87 static void vt6103_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex); 93 void (*read_mode) (struct nic *nic, int phy_addr, int *speed, int *duplex); 138 static void sis900_init(struct nic *nic); 140 static void sis900_reset(struct nic *nic); 142 static void sis900_init_rxfilter(struct nic *nic); 143 static void sis900_init_txd(struct nic *nic); [all …]
|
H A D | 3c595.c | 64 static void t595_reset(struct nic *nic) in t595_reset() argument 108 outb(nic->node_addr[i], BASE + VX_W2_ADDR_0 + i); in t595_reset() 162 struct nic *nic, in t595_transmit() argument 210 outsw(BASE + VX_W1_TX_PIO_WR_1, nic->node_addr, ETH_ALEN/2); in t595_transmit() 227 static int t595_poll(struct nic *nic, int retrieve) in t595_poll() argument 269 insw(BASE + VX_W1_RX_PIO_RD_1, nic->packet, rx_fifo / 2); in t595_poll() 271 nic->packet[rx_fifo-1]=inb(BASE + VX_W1_RX_PIO_RD_1); in t595_poll() 272 nic->packetlen=rx_fifo; in t595_poll() 282 insw(BASE + VX_W1_RX_PIO_RD_1, nic->packet+nic->packetlen, rx_fifo / 2); in t595_poll() 284 nic->packet[nic->packetlen+rx_fifo-1]=inb(BASE + VX_W1_RX_PIO_RD_1); in t595_poll() [all …]
|
H A D | sundance.c | 310 static int mdio_read(struct nic *nic, int phy_id, unsigned int location); 311 static void mdio_write(struct nic *nic, int phy_id, unsigned int location, 313 static void set_rx_mode(struct nic *nic); 315 static void check_duplex(struct nic *nic) in check_duplex() argument 317 int mii_lpa = mdio_read(nic, sdc->phys[0], MII_LPA); in check_duplex() 346 static void init_ring(struct nic *nic __unused) in init_ring() 388 static void sundance_reset(struct nic *nic) in sundance_reset() argument 392 init_ring(nic); in sundance_reset() 402 addr16 = (nic->node_addr[0] | (nic->node_addr[1] << 8)); in sundance_reset() 404 addr16 = (nic->node_addr[2] | (nic->node_addr[3] << 8)); in sundance_reset() [all …]
|
H A D | davicom.c | 157 static void davicom_init_chain(struct nic *nic); /* Sten 10/9 */ 158 static void davicom_reset(struct nic *nic); 159 static void davicom_transmit(struct nic *nic, const char *d, unsigned int t, 161 static int davicom_poll(struct nic *nic, int retrieve); 171 static void davicom_media_chk(struct nic *); 350 static void davicom_media_chk(struct nic * nic __unused) in davicom_media_chk() 428 static void davicom_init_chain(struct nic *nic) in davicom_init_chain() argument 447 txb[0] = nic->node_addr[0]; in davicom_init_chain() 448 txb[1] = nic->node_addr[1]; in davicom_init_chain() 449 txb[4] = nic->node_addr[2]; in davicom_init_chain() [all …]
|
H A D | forcedeth.c | 392 static int mii_rw(struct nic *nic __unused, int addr, int miireg, in mii_rw() 451 static void start_rx(struct nic *nic __unused) in start_rx() 481 static void start_tx(struct nic *nic __unused) in start_tx() 505 static void txrx_reset(struct nic *nic __unused) in txrx_reset() 523 static int alloc_rx(struct nic *nic __unused) in alloc_rx() 545 static int update_linkspeed(struct nic *nic) in update_linkspeed() argument 549 adv = mii_rw(nic, np->phyaddr, MII_ADVERTISE, MII_READ); in update_linkspeed() 550 lpa = mii_rw(nic, np->phyaddr, MII_LPA, MII_READ); in update_linkspeed() 583 static int init_ring(struct nic *nic) in init_ring() argument 597 return alloc_rx(nic); in init_ring() [all …]
|
H A D | tulip.c | 479 static int mdio_read(struct nic *nic, int phy_id, int location); 480 static void mdio_write(struct nic *nic, int phy_id, int location, int value); 482 static void parse_eeprom(struct nic *nic); 484 static void tulip_init_ring(struct nic *nic); 485 static void tulip_reset(struct nic *nic); 486 static void tulip_transmit(struct nic *nic, const char *d, unsigned int t, 488 static int tulip_poll(struct nic *nic, int retrieve); 490 static void nway_start(struct nic *nic); 491 static void pnic_do_nway(struct nic *nic); 492 static void select_media(struct nic *nic, int startup); [all …]
|
H A D | via-rhine.c | 656 static void rhine_probe1 (struct nic *nic, int ioaddr, 662 static void rhine_init_ring (struct nic *dev); 664 static void rhine_reset (struct nic *nic); 665 static int rhine_poll (struct nic *nic, int retreive); 666 static void rhine_transmit (struct nic *nic, const char *d, unsigned int t, 671 rhine_init_ring (struct nic *nic) in rhine_init_ring() argument 673 struct rhine_private *tp = (struct rhine_private *) nic->priv_data; in rhine_init_ring() 887 void rhine_irq ( struct nic *nic, irq_action_t action ) { in rhine_irq() argument 888 struct rhine_private *tp = (struct rhine_private *) nic->priv_data; in rhine_irq() 895 intr_status = inw(nic->ioaddr + IntrStatus); in rhine_irq() [all …]
|
H A D | w89c840.c | 303 static void w89c840_reset(struct nic *nic) in w89c840_reset() argument 317 writeb(nic->node_addr[i], ioaddr + StationAddr + i); in w89c840_reset() 379 static int w89c840_poll(struct nic *nic, int retrieve) in w89c840_poll() argument 434 w89c840_reset(nic); in w89c840_poll() 447 nic->packetlen = pkt_len; in w89c840_poll() 452 memcpy(nic->packet, le32desc_to_virt(w840private.rx_ring[entry].buffer1), pkt_len); in w89c840_poll() 463 nic->packet[0], nic->packet[1], nic->packet[2], nic->packet[3], in w89c840_poll() 464 nic->packet[4], nic->packet[5], nic->packet[6], nic->packet[7], in w89c840_poll() 465 nic->packet[8], nic->packet[9], nic->packet[10], in w89c840_poll() 466 nic->packet[11], nic->packet[12], nic->packet[13], in w89c840_poll() [all …]
|
H A D | ns83820.c | 415 static void phy_intr(struct nic *nic __unused) in phy_intr() 502 static void ns83820_set_multicast(struct nic *nic __unused); 503 static void ns83820_setup_rx(struct nic *nic) in ns83820_setup_rx() argument 534 phy_intr(nic); in ns83820_setup_rx() 551 ns83820_set_multicast(nic); in ns83820_setup_rx() 556 static void ns83820_do_reset(struct nic *nic __unused, u32 which) in ns83820_do_reset() 566 static void ns83820_reset(struct nic *nic) in ns83820_reset() argument 573 ns83820_setup_rx(nic); in ns83820_reset() 587 static void ns83820_getmac(struct nic *nic __unused, u8 * mac) in ns83820_getmac() 602 static void ns83820_set_multicast(struct nic *nic __unused) in ns83820_set_multicast() [all …]
|
H A D | r8169.c | 419 void r8169_irq ( struct nic *nic __unused, irq_action_t action ) { in r8169_irq() 446 static int r8169_poll(struct nic *nic, int retreive) in r8169_poll() argument 467 nic->packetlen = (int) (tpc->RxDescArray[cur_rx]. in r8169_poll() 469 memcpy(nic->packet, tpc->RxBufferRing[cur_rx], in r8169_poll() 470 nic->packetlen); in r8169_poll() 500 static void r8169_transmit(struct nic *nic, const char *d, /* Destination */ in r8169_transmit() argument 515 memcpy(ptxb + ETH_ALEN, nic->node_addr, ETH_ALEN); in r8169_transmit() 544 static void rtl8169_set_rx_mode(struct nic *nic __unused) in rtl8169_set_rx_mode() 564 static void rtl8169_hw_start(struct nic *nic) in rtl8169_hw_start() argument 606 rtl8169_set_rx_mode(nic); in rtl8169_hw_start() [all …]
|
H A D | epic100.c | 53 static int epic100_poll(struct nic *nic, int retrieve); 54 static void epic100_transmit(struct nic *nic, const char *destaddr, 60 static void epic100_irq(struct nic *nic, irq_action_t action); 100 struct nic *nic = (struct nic *)dev; in epic100_probe() local 114 nic->irqno = 0; in epic100_probe() 115 nic->ioaddr = pci->ioaddr & ~3; in epic100_probe() 177 ap = (unsigned short*)nic->node_addr; in epic100_probe() 181 printf(" I/O %#hX %! ", ioaddr, nic->node_addr); in epic100_probe() 205 nic->poll = epic100_poll; in epic100_probe() 206 nic->transmit = epic100_transmit; in epic100_probe() [all …]
|
H A D | ns8390.c | 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() [all …]
|
H A D | pcnet32.c | 280 static int mdio_read(struct nic *nic __unused, int phy_id, int reg_num); 282 static void mdio_write(struct nic *nic __unused, int phy_id, int reg_num, 404 static int pcnet32_init_ring(struct nic *nic) in pcnet32_init_ring() argument 428 lp->init_block.phys_addr[i] = nic->node_addr[i]; in pcnet32_init_ring() 437 static void pcnet32_reset(struct nic *nic) in pcnet32_reset() argument 514 pcnet32_init_ring(nic); in pcnet32_reset() 542 static int pcnet32_poll(struct nic *nic __unused, int retrieve) in pcnet32_poll() 560 nic->packetlen = in pcnet32_poll() 562 memcpy(nic->packet, &rxb[entry], nic->packetlen); in pcnet32_poll() 581 static void pcnet32_transmit(struct nic *nic __unused, const char *d, /* Destination */ in pcnet32_transmit() [all …]
|
H A D | eepro100.c | 365 static void eepro100_irq(struct nic *nic __unused, irq_action_t action __unused) in eepro100_irq() 387 static void eepro100_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const… in eepro100_transmit() argument 407 memcpy (&hdr.src_addr, nic->node_addr, ETH_ALEN); in eepro100_transmit() 482 static int eepro100_poll(struct nic *nic, int retrieve) in eepro100_poll() argument 523 nic->packetlen = ACCESS(rxfd)count & 0x3fff; in eepro100_poll() 524 memcpy (nic->packet, ACCESS(rxfd)packet, nic->packetlen); in eepro100_poll() 526 hd (nic->packet, 0x30); in eepro100_poll() 575 struct nic *nic = (struct nic *)dev; in eepro100_probe() local 589 nic->ioaddr = ioaddr; in eepro100_probe() 595 nic->irqno = 0; in eepro100_probe() [all …]
|
H A D | nic.c | 122 struct nic nic = variable 139 (int (*)(struct nic *, int))dummy, /* poll */ 140 (void (*)(struct nic *, const char *, 143 (void (*)(struct nic *, irq_action_t))dummy, /* irq */ 168 dev = &nic.dev; in grub_eth_probe() 187 return ((*nic.poll)(&nic, retrieve)); in eth_poll() 192 (*nic.transmit)(&nic, d, t, s, p); in eth_transmit() 204 disable(&nic.dev); in eth_disable() 209 (*nic.irq)(&nic,action); in eth_irq() 284 if (nic.packetlen < ETH_HLEN + sizeof(struct arprequest)) in await_arp() [all …]
|
H A D | 3c90x.c | 474 a3c90x_transmit(struct nic *nic __unused, const char *d, unsigned int t, in a3c90x_transmit() 602 a3c90x_poll(struct nic *nic, int retrieve) in a3c90x_poll() argument 620 INF_3C90X.ReceiveUPD.DataAddr = virt_to_bus(nic->packet); in a3c90x_poll() 652 nic->packetlen = (INF_3C90X.ReceiveUPD.UpPktStatus & 0x1FFF); in a3c90x_poll() 675 static void a3c90x_irq(struct nic *nic __unused, irq_action_t action __unused) in a3c90x_irq() 693 struct nic *nic = (struct nic *)dev; in a3c90x_probe() local 707 nic->ioaddr = pci->ioaddr & ~3; in a3c90x_probe() 708 nic->irqno = 0; in a3c90x_probe() 814 nic->node_addr[i] = (eeprom[HWADDR_OFFSET + i/2] >> (8*((i&1)^1))) & 0xff; in a3c90x_probe() 954 nic->poll = a3c90x_poll; in a3c90x_probe() [all …]
|
H A D | nic.h | 23 struct nic struct 26 int (*poll)P((struct nic *, int retrieve)); argument 27 void (*transmit)P((struct nic *, const char *d, argument 29 void (*irq)P((struct nic *, irq_action_t)); argument
|
/illumos-gate/usr/src/cmd/ldmad/ |
H A D | ldma_device.c | 220 char *nic = NULL; in ldma_dev_validate_nic() local 229 nic = malloc(nlen + 1); in ldma_dev_validate_nic() 230 if (nic == NULL) { in ldma_dev_validate_nic() 235 (void) strncpy(nic, LDMA_HDR2DATA(request), nlen); in ldma_dev_validate_nic() 236 nic[nlen] = '\0'; in ldma_dev_validate_nic() 238 LDMA_DBG("VALIDATE_NIC(%s)", nic); in ldma_dev_validate_nic() 254 if (dladm_name2info(dlhandle, nic, &linkid, &flag, &class, in ldma_dev_validate_nic() 256 LDMA_DBG("VALIDATE_NIC(%s): name2info failed", nic); in ldma_dev_validate_nic() 258 LDMA_DBG("VALIDATE_NIC(%s): media=0x%x", nic, media); in ldma_dev_validate_nic() 278 (nic)? nic : "<none>", status); in ldma_dev_validate_nic() [all …]
|
/illumos-gate/usr/src/cmd/fm/eversholt/files/common/ |
H A D | nic.esc | 22 * Transceiver events are emitted by drivers under ereport.io.nic.txr-err. 44 event fault.io.nic.transceiver.TYPE@pcifn/port/transceiver \ 46 event fault.io.nic.transceiver.TYPE@pciexfn/port/transceiver \ 55 event ereport.io.nic.txr-err@pcifn; 58 event ereport.io.nic.txr-err@pciexfn; 62 prop fault.io.nic.transceiver.TYPE@pcifn/port[pn]/transceiver[tn] (2) -> \ 63 ereport.io.nic.txr-err@pcifn { \ 74 prop fault.io.nic.transceiver.TYPE@pciexfn/port[pn]/transceiver[tn] (2) -> \ 75 ereport.io.nic.txr-err@pciexfn { \ 105 prop fault.io.nic.transceiver.notsupp@pciexfn/port[pn]/transceiver[tn] (2) -> [all …]
|
/illumos-gate/usr/src/cmd/fm/dicts/ |
H A D | NIC.dict | 17 fault.io.nic.transceiver.notsupp=0 18 fault.io.nic.transceiver.whitelist=1 19 fault.io.nic.transceiver.overtemp=2 20 fault.io.nic.transceiver.hwfail=3 21 fault.io.nic.transceiver.unknown=4
|
/illumos-gate/usr/src/cmd/svc/milestone/ |
H A D | net-physical | 516 nic="`/sbin/devprop network-interface`" 517 if smf_is_globalzone && [ -z "$inet_list" ] && [ -n "$nic" ]; then 521 /sbin/ifconfig $nic plumb 2>/dev/null 522 [ -n "`/sbin/ifconfig $nic 2>/dev/null`" ] && ( 526 inet_list=$nic; 530 /sbin/ifconfig $nic auto-dhcp primary; 534 i4d_fail="$i4d_fail $nic"; 544 /sbin/ifconfig $nic plumb 2>/dev/null 545 [ -n "`/sbin/ifconfig $nic 2>/dev/null`" ] && ( 549 inet_list=$nic; [all …]
|