Searched refs:nic (Results 1 - 25 of 46) sorted by relevance

12

/vbox/src/VBox/Devices/PC/ipxe/src/drivers/net/
H A D3c5x9.c31 #include "nic.h"
40 void t5x9_disable ( struct nic *nic ) {
42 outw(RX_DISABLE, nic->ioaddr + EP_COMMAND);
43 outw(RX_DISCARD_TOP_PACK, nic->ioaddr + EP_COMMAND);
44 while (inw(nic->ioaddr + EP_STATUS) & S_COMMAND_IN_PROGRESS)
46 outw(TX_DISABLE, nic->ioaddr + EP_COMMAND);
47 outw(STOP_TRANSCEIVER, nic->ioaddr + EP_COMMAND);
49 outw(RX_RESET, nic->ioaddr + EP_COMMAND);
50 outw(TX_RESET, nic
135 t509_transmit( struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
199 t509_poll(struct nic *nic, int retrieve) argument
342 t5x9_probe( struct nic *nic, uint16_t prod_id_check, uint16_t prod_id_mask ) argument
[all...]
H A D3c509-eisa.c15 static int el3_eisa_probe ( struct nic *nic, struct eisa_device *eisa ) { argument
18 nic->ioaddr = eisa->ioaddr;
19 nic->irqno = 0;
23 return t5x9_probe ( nic, ISA_PROD_ID ( PROD_ID ), ISA_PROD_ID_MASK );
26 static void el3_eisa_disable ( struct nic *nic, struct eisa_device *eisa ) { argument
27 t5x9_disable ( nic );
H A D3c529.c11 #include "nic.h"
25 static int t529_probe ( struct nic *nic, struct mca_device *mca ) { argument
28 nic->ioaddr = ( ( mca->pos[4] & 0xfc ) | 0x02 ) << 8;
29 nic->irqno = mca->pos[5] & 0x0f;
31 nic->ioaddr, nic->irqno );
34 return t5x9_probe ( nic, MCA_ID ( mca ), 0xffff );
37 static void t529_disable ( struct nic *nic, struc argument
[all...]
H A Dlegacy.c8 #include <nic.h>
22 struct nic nic; variable in typeref:struct:nic
27 struct nic *nic = netdev->priv; local
34 nic->nic_op->transmit ( nic, ( const char * ) ethhdr->h_dest,
42 struct nic *nic = netdev->priv; local
49 nic
69 struct nic *nic = netdev->priv; local
82 legacy_probe( void *hwdev, void ( * set_drvdata ) ( void *hwdev, void *priv ), struct device *dev, int ( * probe ) ( struct nic *nic, void *hwdev ), void ( * disable ) ( struct nic *nic, void *hwdev ) ) argument
138 legacy_remove( void *hwdev, void * ( * get_drvdata ) ( void *hwdev ), void ( * disable ) ( struct nic *nic, void *hwdev ) ) argument
142 struct nic *nic = netdev->priv; local
[all...]
H A Dprism2_pci.c29 #include <nic.h>
34 static int prism2_pci_probe ( struct nic *nic, struct pci_device *pci ) { argument
40 nic->ioaddr = pci->membase;
41 nic->irqno = 0;
43 return prism2_probe ( nic, hw );
46 static void prism2_pci_disable ( struct nic *nic ) {
47 prism2_disable ( nic );
H A D3c515.c60 #include "nic.h"
109 outw(SelectWindow + (win_num), nic->ioaddr + EL3_CMD)
288 int options, struct nic *nic);
290 struct nic *nic);
301 static void t515_reset(struct nic *nic) argument
309 outb(0x20, nic->ioaddr + Wn3_MAC_Ctrl); /* Set the full-duplex bit. */
310 config.i = inl(nic
426 t515_poll(struct nic *nic, int retrieve) argument
512 t515_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
574 t515_disable( struct nic *nic, struct isapnp_device *isapnp ) argument
622 t515_probe( struct nic *nic, struct isapnp_device *isapnp ) argument
664 corkscrew_found_device(int ioaddr, int irq, int product_index, int options, struct nic *nic) argument
686 corkscrew_probe1(int ioaddr, int irq, int product_index __unused, struct nic *nic) argument
[all...]
H A Dsmc9000.c44 #include "nic.h"
615 struct nic *nic,
642 SMC_SELECT_BANK(nic->ioaddr, 2);
643 _outw(MC_ALLOC | numPages, nic->ioaddr + MMU_CMD);
648 status = inb(nic->ioaddr + INTERRUPT);
651 _outb(IM_ALLOC_INT, nic->ioaddr + INTERRUPT);
661 _outw(MC_RESET, nic->ioaddr + MMU_CMD);
666 packet_no = inb(nic->ioaddr + PNR_ARR + 1);
674 _outb(packet_no, nic
614 smc9000_transmit( struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
756 smc9000_poll(struct nic *nic, int retrieve) argument
795 smc9000_disable( struct nic *nic, struct isa_device *isa __unused ) argument
833 smc9000_probe( struct nic *nic, struct isa_device *isa ) argument
[all...]
H A Deepro.c47 #include "nic.h"
309 static void eepro_reset(struct nic *nic) argument
314 eepro_sw2bank2(nic->ioaddr); /* be careful, bank2 now */
315 temp_reg = inb(nic->ioaddr + eeprom_reg);
318 outb(temp_reg & 0xEF, nic->ioaddr + eeprom_reg);
320 outb(nic->node_addr[i], nic->ioaddr + I_ADD_REG0 + i);
321 temp_reg = inb(nic->ioaddr + REG1);
324 | RCV_Discard_BadFrame, nic
355 eepro_poll(struct nic *nic, int retrieve) argument
416 eepro_transmit( struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
476 eepro_disable( struct nic *nic, struct isa_device *isa __unused ) argument
566 eepro_probe( struct nic *nic, struct isa_device *isa ) argument
[all...]
H A Ddepca.c241 #include "nic.h"
259 ** These are LANCE registers addressable through nic->ioaddr + DEPCA_ADDR
475 static void depca_init_ring(struct nic *nic)
496 lp.init_block.phys_addr[i] = nic->node_addr[i];
501 static inline void LoadCSRs(struct nic *nic)
503 outw(CSR1, nic->ioaddr + DEPCA_ADDR); /* initialisation block address LSW */
504 outw((u16) (lp.sh_mem & LA_MASK), nic->ioaddr + DEPCA_DATA);
505 outw(CSR2, nic
[all...]
H A Dprism2_plx.c29 #include <nic.h>
91 static int prism2_plx_probe ( struct nic *nic, struct pci_device *pci ) { argument
96 nic->ioaddr = hw->iobase;
97 nic->irqno = 0;
98 return prism2_probe ( nic, hw );
101 static void prism2_plx_disable ( struct nic *nic ) {
102 prism2_disable ( nic );
H A Dsis900.c51 #include "nic.h"
94 static void sis900_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex);
95 static void amd79c901_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex);
96 static void ics1893_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex);
97 static void rtl8201_read_mode(struct nic *nic, int phy_addr, int *speed, int *duplex);
98 static void vt6103_read_mode(struct nic *ni
180 sis900_get_mac_addr(struct pci_device * pci_dev __unused, struct nic *nic) argument
214 sis96x_get_mac_addr(struct pci_device * pci_dev __unused, struct nic *nic) argument
252 sis630e_get_mac_addr(struct pci_device * pci_dev __unused, struct nic *nic) argument
296 sis635_get_mac_addr(struct pci_device * pci_dev __unused, struct nic *nic) argument
336 sis900_probe( struct nic *nic, struct pci_device *pci ) argument
619 sis900_init(struct nic *nic) argument
681 sis900_init_rxfilter(struct nic *nic) argument
824 sis900_check_mode(struct nic *nic) argument
1104 sis900_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
1183 sis900_poll(struct nic *nic, int retrieve) argument
[all...]
H A Dcs89x0.c93 #include "nic.h"
261 static int send_test_pkt(struct nic *nic) argument
271 memcpy(testpacket, nic->node_addr, ETH_ALEN);
272 memcpy(testpacket+ETH_ALEN, nic->node_addr, ETH_ALEN);
300 static int detect_aui(struct nic *nic) argument
307 if (send_test_pkt(nic)) {
313 static int detect_bnc(struct nic *nic) argument
330 cs89x0_reset(struct nic *nic) argument
389 cs89x0_transmit( struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
441 cs89x0_poll(struct nic *nic, int retrieve) argument
500 cs89x0_probe( struct nic *nic, struct isa_device *isa __unused ) argument
706 cs89x0_disable( struct nic *nic, struct isa_device *isa __unused ) argument
[all...]
H A Dtlan.c53 #include "nic.h"
70 static void TLan_ResetLists(struct nic *nic __unused);
71 static void TLan_ResetAdapter(struct nic *nic __unused);
72 static void TLan_FinishReset(struct nic *nic __unused);
79 static void TLan_PhyDetect(struct nic *nic);
80 static void TLan_PhyPowerDown(struct nic *ni
387 TLan_FinishReset(struct nic *nic) argument
500 tlan_poll(struct nic *nic, int retrieve) argument
576 tlan_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
766 TLan_SetMulticastList(struct nic *nic) argument
788 tlan_probe( struct nic *nic, struct pci_device *pci ) argument
1347 TLan_PhyDetect(struct nic *nic) argument
1394 TLan_PhyPowerDown(struct nic *nic) argument
1421 TLan_PhyPowerUp(struct nic *nic) argument
1440 TLan_PhyReset(struct nic *nic) argument
1467 TLan_PhyStartLink(struct nic *nic) argument
1560 TLan_PhyFinishAutoNeg(struct nic *nic) argument
[all...]
H A D3c595.c31 #include "nic.h"
68 static void t595_reset(struct nic *nic) argument
112 outb(nic->node_addr[i], BASE + VX_W2_ADDR_0 + i);
166 struct nic *nic,
214 outsw(BASE + VX_W1_TX_PIO_WR_1, nic->node_addr, ETH_ALEN/2);
231 static int t595_poll(struct nic *nic, int retrieve) argument
273 insw(BASE + VX_W1_RX_PIO_RD_1, nic
165 t595_transmit( struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
473 t595_probe( struct nic *nic, struct pci_device *pci ) argument
[all...]
H A Ddavicom.c48 #include "nic.h"
158 static int davicom_probe(struct nic *nic,struct pci_device *pci);
159 static void davicom_init_chain(struct nic *nic); /* Sten 10/9 */
160 static void davicom_reset(struct nic *nic);
161 static void davicom_transmit(struct nic *nic, const char *d, unsigned int t,
163 static int davicom_poll(struct nic *ni
415 davicom_init_chain(struct nic *nic) argument
462 davicom_reset(struct nic *nic) argument
524 davicom_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
565 davicom_poll(struct nic *nic, int retrieve) argument
639 davicom_probe( struct nic *nic, struct pci_device *pci ) argument
[all...]
H A Ddmfe.c53 #include "nic.h"
237 static void dmfe_init_dm910x(struct nic *nic);
238 static void dmfe_descriptor_init(struct nic *, unsigned long ioaddr);
240 static void send_filter_frame(struct nic *nic);
241 static void dm9132_id_table(struct nic *nic);
247 static void dmfe_set_phyxcer(struct nic *nic);
253 dmfe_reset(struct nic *nic) argument
285 dmfe_init_dm910x(struct nic *nic) argument
352 dmfe_poll(struct nic *nic, int retrieve) argument
407 dmfe_transmit(struct nic *nic, const char *dest, unsigned int type, unsigned int size, const char *packet) argument
460 dmfe_probe( struct nic *nic, struct pci_device *pci ) argument
637 send_filter_frame(struct nic *nic) argument
1033 dmfe_parse_srom(struct nic *nic) argument
[all...]
H A Dw89c840.c92 #include "nic.h"
309 static void w89c840_reset(struct nic *nic) argument
323 writeb(nic->node_addr[i], ioaddr + StationAddr + i);
385 static int w89c840_poll(struct nic *nic, int retrieve) argument
388 /* nic->packet should contain data on return */
389 /* nic->packetlen should contain length of data */
440 w89c840_reset(nic);
453 nic
490 w89c840_transmit( struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
633 w89c840_probe( struct nic *nic, struct pci_device *p ) argument
[all...]
H A Dsundance.c57 #include "nic.h"
294 static int mdio_read(struct nic *nic, int phy_id, unsigned int location);
295 static void mdio_write(struct nic *nic, int phy_id, unsigned int location,
297 static void set_rx_mode(struct nic *nic);
299 static void check_duplex(struct nic *nic) argument
301 int mii_lpa = mdio_read(nic, sd
372 sundance_reset(struct nic *nic) argument
432 sundance_irq( struct nic *nic, irq_action_t action ) argument
452 sundance_poll(struct nic *nic, int retreive) argument
499 sundance_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
574 sundance_probe( struct nic *nic, struct pci_device *pci ) argument
[all...]
H A Dvia-rhine.c50 #include "nic.h"
687 static void rhine_probe1 (struct nic *nic, struct pci_device *pci, int ioaddr,
693 static void rhine_init_ring (struct nic *dev);
694 static void rhine_disable (struct nic *nic);
695 static void rhine_reset (struct nic *nic);
696 static int rhine_poll (struct nic *nic, in
713 rhine_init_ring(struct nic *nic) argument
934 rhine_irq( struct nic *nic, irq_action_t action ) argument
964 rhine_probe( struct nic *nic, struct pci_device *pci ) argument
999 rhine_probe1(struct nic *nic, struct pci_device *pci, int ioaddr, int chip_id, int options) argument
1191 rhine_reset(struct nic *nic) argument
1289 rhine_poll(struct nic *nic, int retreive) argument
1344 rhine_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) argument
[all...]
H A Depic100.c12 #include "nic.h"
54 static void epic100_disable(struct nic *nic);
55 static int epic100_poll(struct nic *nic, int retrieve);
56 static void epic100_transmit(struct nic *nic, const char *destaddr,
62 static void epic100_irq(struct nic *nic, irq_action_t action);
108 epic100_probe ( struct nic *ni argument
305 epic100_transmit(struct nic *nic, const char *destaddr, unsigned int type, unsigned int len, const char *data) argument
375 epic100_poll(struct nic *nic, int retrieve) argument
[all...]
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/linux/
H A Dtap.c60 struct tap_nic * nic = netdev->priv; local
64 nic->fd = linux_open("/dev/net/tun", O_RDWR);
65 if (nic->fd < 0) {
66 DBGC(nic, "tap %p open('/dev/net/tun') = %d (%s)\n", nic, nic->fd, linux_strerror(linux_errno));
67 return nic->fd;
73 strncpy(ifr.ifr_name, nic->interface, IFNAMSIZ);
74 DBGC(nic, "tap %p interface = '%s'\n", nic, ni
99 struct tap_nic * nic = netdev->priv; local
110 struct tap_nic * nic = netdev->priv; local
126 struct tap_nic * nic = netdev->priv; local
171 struct tap_nic *nic = netdev->priv; local
190 struct tap_nic *nic; local
[all...]
/vbox/src/VBox/Devices/PC/ipxe/src/include/
H A Dnic.h48 struct nic { struct
62 int ( *connect ) ( struct nic * );
63 int ( *poll ) ( struct nic *, int retrieve );
64 void ( *transmit ) ( struct nic *, const char *,
66 void ( *irq ) ( struct nic *, irq_action_t );
69 extern struct nic nic;
72 return nic.nic_op->poll ( &nic, retrieve );
77 nic
[all...]
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/block/
H A Dibft.c65 struct ibft_nic nic __attribute__ (( aligned ( 16 ) )); member in struct:ipxe_ibft
220 * @v nic NIC portion of iBFT
225 static int ibft_fill_nic ( struct ibft_nic *nic, argument
234 nic->header.structure_id = IBFT_STRUCTURE_ID_NIC;
235 nic->header.version = 1;
236 nic->header.length = cpu_to_le16 ( sizeof ( *nic ) );
237 nic->header.flags = ( IBFT_FL_NIC_BLOCK_VALID |
241 ibft_set_ipaddr_setting ( &nic->ip_address, &ip_setting, 1 );
242 DBG ( "iBFT NIC IP = %s\n", ibft_ipaddr ( &nic
[all...]
/vbox/src/VBox/Devices/PC/ipxe/contrib/rom-o-matic/
H A Dbuild.php63 // Make sure at least $nic was supplied
64 if ( ! isset ( $_POST['nic'] ) ) {
67 if ( isset ( $nics[$_POST['nic']] ) ) {
68 $nic = $nics[$_POST['nic']]; variable
70 die ( "Invalid NIC \"${_POST['nic']}\" supplied!" );
85 if ( $nic == 'undionly' && $fmt_extension == "pxe" ) { variable
119 // concatenate the pci codes to get the $nic part of the
123 $nic = $pci_codes; variable
181 $make_target = "bin/${nic}
[all...]
H A Dutils.php122 $nic = ""; variable
134 #list ( $dummy, $nic ) = split( "[ \t]+", $line );
135 list ( $dummy, $nic ) = explode("\t", $line);
136 settype ( $nic, "string" );
139 $nic = substr ( $nic, strrpos ( $nic, "/" ) + 1, variable
140 strlen ( $nic ) - strrpos ( $nic, "/" ) + 1 );
142 $nics[$nic]
[all...]

Completed in 2212 milliseconds

12