Home
last modified time | relevance | path

Searched full:nic (Results 1 – 25 of 362) sorted by relevance

12345678910>>...15

/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dnatsemi.c57 #include "nic.h"
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);
[all …]
H A Dsis900.c46 #include "nic.h"
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);
[all …]
H A Drtl8139.c25 NIC remains live and can crash the kernel later.
66 #include "nic.h"
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()
[all …]
H A Dpnic.c3 Bochs Pseudo NIC driver for Etherboot
12 * See pnic_api.h for an explanation of the Bochs Pseudo NIC.
18 #include "nic.h"
19 /* to get the PCI support functions, if this is a PCI NIC */
33 /* NIC specific static variables go here */
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()
[all …]
H A Dtlan.c50 #include "nic.h"
51 /* to get the PCI support functions, if this is a PCI NIC */
59 /* NIC specific static variables go here */
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);
[all …]
H A Dforcedeth.c47 #include "nic.h"
48 /* to get the PCI support functions, if this is a PCI NIC */
75 /* NIC specific static variables go here */
107 * NVREG_POLL_DEFAULT is the interval length of the timer source on the nic
309 /* Private Storage for the NIC */
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()
[all …]
H A Dsundance.c46 #include "nic.h"
47 /* to get the PCI support functions, if this is a PCI NIC */
103 /* media[] specifies the media type the NIC operates at.
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
[all …]
H A D3c595.c29 #include "nic.h"
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()
[all …]
H A Dns83820.c41 #include "nic.h"
42 /* to get the PCI support functions, if this is a PCI NIC */
69 /* NIC specific static variables go here */
392 /* Private Storage for the NIC */
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()
[all …]
H A Dvia-rhine.c47 #include "nic.h"
144 #define CR0_STOP 0x04 /* stop NIC, default = 1 */
145 #define CR0_STRT 0x02 /* start NIC */
170 #define CR_STOP 0x0004 /* stop NIC, default = 1 */
171 #define CR_STRT 0x0002 /* start NIC */
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,
[all …]
H A Dtulip.c22 The TRENDnet TE100-PCIA NIC which uses a genuine Intel 21143-PD
83 particular, the TRENDnet TE100-PCIA NIC which uses a genuine Intel
107 #include "nic.h"
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);
[all …]
H A Dw89c840.c81 #include "nic.h"
257 /* NIC specific static variables go here */
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
382 /* nic->packet should contain data on return */ in w89c840_poll()
383 /* nic->packetlen should contain length of data */ in w89c840_poll()
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()
[all …]
H A Depic100.c9 #include "nic.h"
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()
[all …]
H A Ddavicom.c44 #include "nic.h"
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()
[all …]
H A Dr8169.c30 * providing the evaluation NIC used to develop
47 #include "nic.h"
48 /* to get the PCI support functions, if this is a PCI NIC */
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
449 /* nic->packet should contain data on return */ in r8169_poll()
450 /* nic->packetlen should contain length of data */ in r8169_poll()
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()
[all …]
H A Dpcnet32.c27 * lance.c - LANCE NIC driver for Etherboot written by Ken Yap
45 #include "nic.h"
46 /* to get the PCI support functions, if this is a PCI NIC */
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()
[all …]
H A Dns8390.c29 #include "nic.h"
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
364 /* enter loopback mode and restart NIC */ in eth_rx_overrun()
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()
[all …]
H A Deepro100.c98 #include "nic.h"
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()
478 * returns the packet in the array nic->packet.
479 * returns the length of the packet in nic->packetlen.
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()
[all …]
/illumos-gate/usr/src/cmd/fm/dicts/
H A DNIC.po16 # code: NIC-8000-0Q
17 # keys: fault.io.nic.transceiver.notsupp
19 msgid "NIC-8000-0Q.type"
21 msgid "NIC-8000-0Q.severity"
23 msgid "NIC-8000-0Q.description"
24NIC transceiver module %<fault-list[0].resource.hc-specific.txr_index> (SFP/SFP+/QSFP+ etc.) in %<…
25 msgid "NIC-8000-0Q.response"
27 msgid "NIC-8000-0Q.impact"
29 msgid "NIC-8000-0Q.action"
33 # code: NIC-8000-1C
[all …]
H A DNIC.dict15 FMDICT: name=NIC version=1 maxkey=4
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/fm/eversholt/files/common/
H A Dnic.esc15 #pragma dictionary "NIC"
18 * Rules for the generic NIC (non-driver-specific) fault events.
22 * Transceiver events are emitted by drivers under ereport.io.nic.txr-err.
24 * These are emitted with detector = the PCI/PCIex function of the NIC.
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 { \
[all …]
/illumos-gate/usr/src/cmd/ldmad/
H A Dldma_device.c207 * We check that the device is a network interface (NIC) using libdladm.
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()
[all …]
/illumos-gate/usr/src/uts/common/io/cxgbe/firmware/
H A Dt4fw_cfg.txt47 # 7. Some OS Drivers will manage different ports and functions (NIC,
48 # storage, etc.) on different Physical Functions. For example, NIC
61 # 3 application functions (NIC, FCoE, iSCSI) per port *
70 # true for the NIC application functionality. (Note that there is
72 # Functions so this is in fact solely limited to NIC.)
156 # 4 ports, 3 functions (NIC, FCoE and iSCSI), scaling up to 8 "CPU Queue Sets"
165 # NFUNCS = 3 # functions per port (NIC, FCoE, iSCSI)
177 # NVI_NIC = 4 # NIC access to NPORTS
178 # NFLIQ_NIC = 32 # NIC Ingress Queues with Free Lists
179 # NETHCTRL_NIC = 32 # NIC Ethernet Control/TX Queues
[all …]
H A Dt6fw_cfg.txt32 # 7. Some OS Drivers will manage different ports and functions (NIC,
33 # storage, etc.) on different Physical Functions. For example, NIC
46 # 3 application functions (NIC, FCoE, iSCSI) per port *
54 # and "PCI Device Passthrough" -- this is especially true for the NIC
208 # 4 ports, 3 functions (NIC, FCoE and iSCSI), scaling up to 8 "CPU Queue Sets"
217 # NFUNCS = 3 # functions per port (NIC, FCoE, iSCSI)
229 # NVI_NIC = 4 # NIC access to NPORTS
230 # NFLIQ_NIC = 32 # NIC Ingress Queues with Free Lists
231 # NETHCTRL_NIC = 32 # NIC Ethernet Control/TX Queues
232 # NEQ_NIC = 64 # NIC Egress Queues (FL, ETHCTRL/TX)
[all …]
H A Dt5fw_cfg.txt32 # 7. Some OS Drivers will manage different ports and functions (NIC,
33 # storage, etc.) on different Physical Functions. For example, NIC
46 # 3 application functions (NIC, FCoE, iSCSI) per port *
54 # and "PCI Device Passthrough" -- this is especially true for the NIC
191 # 4 ports, 3 functions (NIC, FCoE and iSCSI), scaling up to 8 "CPU Queue Sets"
200 # NFUNCS = 3 # functions per port (NIC, FCoE, iSCSI)
212 # NVI_NIC = 4 # NIC access to NPORTS
213 # NFLIQ_NIC = 32 # NIC Ingress Queues with Free Lists
214 # NETHCTRL_NIC = 32 # NIC Ethernet Control/TX Queues
215 # NEQ_NIC = 64 # NIC Egress Queues (FL, ETHCTRL/TX)
[all …]

12345678910>>...15