Home
last modified time | relevance | path

Searched refs:nic (Results 1 – 25 of 55) sorted by relevance

123

/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Drtl8139.c177 static void rtl_reset(struct nic *nic);
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
297 static void set_rx_mode(struct nic *nic) { in set_rx_mode() argument
310 static void rtl_reset(struct nic* nic) in rtl_reset() argument
326 outb(nic->node_addr[i], nic->ioaddr + MAC0 + i); in rtl_reset()
423 static int rtl_poll(struct nic *nic, int retrieve) in rtl_poll() argument
475 nic->packet[12], nic->packet[13], rx_status); in rtl_poll()
486 static void rtl_irq(struct nic *nic, irq_action_t action) in rtl_irq() argument
[all …]
H A Dpnic.c48 static uint16_t pnic_command_quiet ( struct nic *nic, uint16_t command, in pnic_command_quiet() argument
95 static uint16_t pnic_command ( struct nic *nic, uint16_t command, in pnic_command() argument
128 static int pnic_poll(struct nic *nic, int retrieve) in pnic_poll() argument
149 nic->packetlen = length; in pnic_poll()
157 struct nic *nic, in pnic_transmit() argument
185 struct nic *nic = (struct nic *)dev; in pnic_disable() local
192 static void pnic_irq ( struct nic *nic, irq_action_t action ) in pnic_irq() argument
216 struct nic *nic = (struct nic *)dev; in pnic_probe() local
224 nic->priv_data = &priv; in pnic_probe()
228 nic->irqno = pci->irq; in pnic_probe()
[all …]
H A Dnatsemi.c216 static void natsemi_init(struct nic *nic);
217 static void natsemi_reset(struct nic *nic);
219 static void natsemi_init_txd(struct nic *nic);
245 struct nic *nic = (struct nic *)dev; in natsemi_probe() local
407 natsemi_init(struct nic *nic) in natsemi_init() argument
453 natsemi_reset(struct nic *nic __unused) in natsemi_reset()
484 natsemi_init_rxfilter(struct nic *nic) in natsemi_init_rxfilter() argument
505 natsemi_init_txd(struct nic *nic __unused) in natsemi_init_txd()
528 natsemi_init_rxd(struct nic *nic __unused) in natsemi_init_rxd()
603 natsemi_transmit(struct nic *nic, in natsemi_transmit() argument
[all …]
H A Dtlan.c84 static void TLan_PhyDetect(struct nic *nic);
86 static void TLan_PhyPowerUp(struct nic *nic);
91 static void TLan_PhyReset(struct nic *nic);
96 static void TLan_PhyMonitor(struct nic *nic);
412 void TLan_FinishReset(struct nic *nic) in TLan_FinishReset() argument
503 TLan_SetMac(nic, 0, nic->node_addr); in TLan_FinishReset()
567 hex_dump(nic->packet, nic->packetlen); in tlan_poll()
836 struct nic *nic = (struct nic *) dev; local
1431 void TLan_PhyDetect(struct nic *nic) argument
1505 void TLan_PhyPowerUp(struct nic *nic) argument
[all …]
H A Dsis900.c138 static void sis900_init(struct nic *nic);
140 static void sis900_reset(struct nic *nic);
143 static void sis900_init_txd(struct nic *nic);
144 static void sis900_init_rxd(struct nic *nic);
318 struct nic *nic = (struct nic *)dev; in sis900_probe() local
598 sis900_init(struct nic *nic) in sis900_init() argument
626 sis900_reset(struct nic *nic __unused) in sis900_reset()
658 sis900_init_rxfilter(struct nic *nic) in sis900_init_rxfilter() argument
796 sis900_check_mode(struct nic *nic) in sis900_check_mode() argument
1072 sis900_transmit(struct nic *nic, in sis900_transmit() argument
[all …]
H A D3c595.c64 static void t595_reset(struct nic *nic) in t595_reset() argument
162 struct nic *nic, in t595_transmit() argument
227 static int t595_poll(struct nic *nic, int retrieve) in t595_poll() argument
284 nic->packet[nic->packetlen+rx_fifo-1]=inb(BASE + VX_W1_RX_PIO_RD_1); in t595_poll()
305 type = (nic->packet[12]<<8) | nic->packet[13]; in t595_poll()
306 if(nic->packet[0]+nic->packet[1]+nic->packet[2]+nic->packet[3]+nic->packet[4]+ in t595_poll()
445 struct nic *nic = (struct nic *)dev; in t595_disable() local
446 t595_reset(nic); in t595_disable()
472 struct nic *nic = (struct nic *)dev; in t595_probe() local
481 nic->irqno = 0; in t595_probe()
[all …]
H A Dsundance.c313 static void set_rx_mode(struct nic *nic);
315 static void check_duplex(struct nic *nic) in check_duplex() argument
346 static void init_ring(struct nic *nic __unused) in init_ring()
388 static void sundance_reset(struct nic *nic) in sundance_reset() argument
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()
406 addr16 = (nic->node_addr[4] | (nic->node_addr[5] << 8)); in sundance_reset()
468 static int sundance_poll(struct nic *nic, int retreive) in sundance_poll() argument
587 struct nic *nic = (struct nic *) dev; in sundance_probe() local
837 mdio_write(struct nic *nic __unused, int phy_id, in mdio_write()
[all …]
H A Ddavicom.c157 static void davicom_init_chain(struct nic *nic); /* Sten 10/9 */
158 static void davicom_reset(struct nic *nic);
161 static int davicom_poll(struct nic *nic, int retrieve);
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
475 static void davicom_reset(struct nic *nic) in davicom_reset() argument
580 static int davicom_poll(struct nic *nic, int retrieve) in davicom_poll() argument
605 memcpy(nic->packet, rxb + rxd_tail * BUFLEN, nic->packetlen); in davicom_poll()
620 struct nic *nic = (struct nic *)dev; in davicom_disable() local
657 struct nic *nic = (struct nic *)dev; in davicom_probe() local
[all …]
H A Dforcedeth.c451 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
583 static int init_ring(struct nic *nic) in init_ring() argument
600 static void set_multicast(struct nic *nic) in set_multicast() argument
636 static int forcedeth_reset(struct nic *nic) in forcedeth_reset() argument
668 (nic->node_addr[4] << 0) + (nic->node_addr[5] << 8); in forcedeth_reset()
800 static int forcedeth_poll(struct nic *nic, int retrieve) in forcedeth_poll() argument
[all …]
H A Dtulip.c482 static void parse_eeprom(struct nic *nic);
485 static void tulip_reset(struct nic *nic);
490 static void nway_start(struct nic *nic);
493 static void init_media(struct nic *nic);
494 static void start_link(struct nic *nic);
730 static void parse_eeprom(struct nic *nic) in parse_eeprom() argument
952 static void tulip_reset(struct nic *nic) in tulip_reset() argument
1172 struct nic *nic = (struct nic *)dev; in tulip_disable() local
1210 struct nic *nic = (struct nic *)dev; in tulip_probe() local
1424 static void start_link(struct nic *nic) in start_link() argument
[all …]
H A Dvia-rhine.c656 static void rhine_probe1 (struct nic *nic, int ioaddr,
664 static void rhine_reset (struct nic *nic);
665 static int rhine_poll (struct nic *nic, int retreive);
671 rhine_init_ring (struct nic *nic) in rhine_init_ring() argument
887 void rhine_irq ( struct nic *nic, irq_action_t action ) { in rhine_irq() argument
913 struct nic *nic = (struct nic *)dev; in rhine_probe() local
933 static void set_rx_mode(struct nic *nic __unused) { in set_rx_mode()
1074 struct nic *nic = (struct nic *)dev; in rhine_disable() local
1092 rhine_reset (struct nic *nic) in rhine_reset() argument
1194 rhine_poll (struct nic *nic, int retreive) in rhine_poll() argument
[all …]
H A Dw89c840.c303 static void w89c840_reset(struct nic *nic) in w89c840_reset() argument
379 static int w89c840_poll(struct nic *nic, int retrieve) in w89c840_poll() argument
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()
467 nic->packet[14], nic->packet[15], nic->packet[16], in w89c840_poll()
485 struct nic *nic, in w89c840_transmit() argument
584 struct nic *nic = (struct nic *)dev; in w89c840_disable() local
614 struct nic *nic = (struct nic *)dev; in w89c840_probe() local
[all …]
H A Dns83820.c415 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
566 static void ns83820_reset(struct nic *nic) in ns83820_reset() argument
602 static void ns83820_set_multicast(struct nic *nic __unused) in ns83820_set_multicast()
656 static void ns83820_check_intr(struct nic *nic) { in ns83820_check_intr() argument
673 static int ns83820_poll(struct nic *nic, int retrieve) in ns83820_poll() argument
708 static inline void kick_tx(struct nic *nic __unused) in kick_tx()
753 kick_tx(nic); in ns83820_transmit()
816 struct nic *nic = (struct nic *) dev; in ns83820_probe() local
[all …]
H A Dr8169.c419 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
500 static void r8169_transmit(struct nic *nic, const char *d, /* Destination */ in r8169_transmit() argument
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
612 static void rtl8169_init_ring(struct nic *nic __unused) in rtl8169_init_ring()
641 static void r8169_reset(struct nic *nic) in r8169_reset() argument
714 struct nic *nic = (struct nic *) dev; in r8169_probe() local
831 r8169_reset(nic); in r8169_probe()
837 nic->irq = r8169_irq; in r8169_probe()
[all …]
H A Depic100.c53 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()
205 nic->poll = epic100_poll; in epic100_probe()
207 nic->irq = epic100_irq; in epic100_probe()
301 epic100_transmit(struct nic *nic, const char *destaddr, unsigned int type, in epic100_transmit() argument
368 epic100_poll(struct nic *nic, int retrieve) in epic100_poll() argument
398 memcpy(nic->packet, &rx_packet[entry * PKT_BUF_SZ], nic->packetlen); in epic100_poll()
[all …]
H A Dns8390.c258 static void ns8390_reset(struct nic *nic) in ns8390_reset() argument
333 static int ns8390_poll(struct nic *nic, int retrieve);
339 static void eth_rx_overrun(struct nic *nic) in eth_rx_overrun() argument
390 struct nic *nic, in ns8390_transmit() argument
488 static int ns8390_poll(struct nic *nic, int retrieve) in ns8390_poll() argument
543 p = nic->packet; in ns8390_poll()
588 struct nic *nic = (struct nic *)dev; in ns8390_disable() local
590 ns8390_reset(nic); in ns8390_disable()
617 struct nic *nic = (struct nic *)dev; in eth_probe() local
626 nic->irqno = 0; in eth_probe()
[all …]
H A Dpcnet32.c280 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
437 static void pcnet32_reset(struct nic *nic) in pcnet32_reset() argument
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()
670 struct nic *nic = (struct nic *) dev; in pcnet32_probe() local
687 nic->irqno = 0; in pcnet32_probe()
873 if (nic->node_addr[0] == 0x00 && nic->node_addr[1] == 0xe0 in pcnet32_probe()
[all …]
H A Deepro100.c365 static void eepro100_irq(struct nic *nic __unused, irq_action_t action __unused) in eepro100_irq()
482 static int eepro100_poll(struct nic *nic, int retrieve) in eepro100_poll() argument
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()
673 t[i] = nic->node_addr[i]; in eepro100_probe()
741 nic->poll = eepro100_poll; in eepro100_probe()
742 nic->transmit = eepro100_transmit; in eepro100_probe()
[all …]
H A Dnic.c122 struct nic nic = variable
140 (void (*)(struct nic *, const char *,
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()
919 if (nic.packetlen >= ETH_HLEN) { in await_reply()
950 &nic.packet[ETH_HLEN + iplen], in await_reply()
951 nic.packetlen - ipoptlen); in await_reply()
[all …]
H A Dnic.h23 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
H A D3c90x.c474 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()
954 nic->poll = a3c90x_poll; in a3c90x_probe()
955 nic->transmit = a3c90x_transmit; in a3c90x_probe()
[all …]
/illumos-gate/usr/src/cmd/ldmad/
H A Dldma_device.c220 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()
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()
281 nic, reply->msg_info); in ldma_dev_validate_nic()
[all …]
/illumos-gate/usr/src/cmd/fm/eversholt/files/common/
H A Dnic.esc22 * 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 { \
106 ereport.io.nic.txr-err@pciexfn {
[all …]
/illumos-gate/usr/src/cmd/fm/dicts/
H A DNIC.dict17 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 Dnet-physical516 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 …]

123