|
iPXE
|
#include <stdint.h>#include <string.h>#include <stdio.h>#include <byteswap.h>#include <ipxe/pci.h>#include <ipxe/isapnp.h>#include <ipxe/isa.h>#include <ipxe/eisa.h>#include <ipxe/mca.h>#include <ipxe/io.h>Go to the source code of this file.
Data Structures | |
| struct | nic |
| struct | nic_operations |
Macros | |
| #define | NIC_H |
| #define | NIC_FAKE_BSS_PTR(type) ( ( type * ) legacy_nic.fake_bss ) |
| #define | NIC_FAKE_BSS(type) ( * NIC_FAKE_BSS_PTR ( type ) ) |
| #define | PCI_DRIVER(_name, _ids, _class) |
| #define | ISAPNP_DRIVER(_name, _ids) |
| #define | EISA_DRIVER(_name, _ids) |
| #define | MCA_DRIVER(_name, _ids) |
| #define | ISA_DRIVER(_name, _probe_addrs, _probe_addr, _vendor_id, _prod_id) |
| #define | DRIVER(_name_text, _unused2, _unused3, _name, _probe, _disable, _fake_bss) |
Typedefs | |
| typedef enum duplex | duplex_t |
Enumerations | |
| enum | irq_action_t { DISABLE = 0, ENABLE, FORCE } |
| enum | duplex { HALF_DUPLEX = 1, FULL_DUPLEX } |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER) | |
| static int | eth_poll (int retrieve) |
| static void | eth_transmit (const char *dest, unsigned int type, unsigned int size, const void *packet) |
| int | dummy_connect (struct nic *nic) |
| void | dummy_irq (struct nic *nic, irq_action_t irq_action) |
| int | 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), size_t fake_bss_len) |
| void | legacy_remove (void *hwdev, void *(*get_drvdata)(void *hwdev), void(*disable)(struct nic *nic, void *hwdev)) |
| static void | legacy_pci_set_drvdata (void *hwdev, void *priv) |
| static void * | legacy_pci_get_drvdata (void *hwdev) |
| static void | legacy_isapnp_set_drvdata (void *hwdev, void *priv) |
| static void * | legacy_isapnp_get_drvdata (void *hwdev) |
| static void | legacy_eisa_set_drvdata (void *hwdev, void *priv) |
| static void * | legacy_eisa_get_drvdata (void *hwdev) |
| static void | legacy_mca_set_drvdata (void *hwdev, void *priv) |
| static void * | legacy_mca_get_drvdata (void *hwdev) |
| static void | legacy_isa_set_drvdata (void *hwdev, void *priv) |
| static void * | legacy_isa_get_drvdata (void *hwdev) |
Variables | |
| struct { | |
| } | no_fake_bss |
| struct nic | legacy_nic |
| #define NIC_FAKE_BSS | ( | type | ) | ( * NIC_FAKE_BSS_PTR ( type ) ) |
| #define PCI_DRIVER | ( | _name, | |
| _ids, | |||
| _class | |||
| ) |
| #define ISAPNP_DRIVER | ( | _name, | |
| _ids | |||
| ) |
| #define EISA_DRIVER | ( | _name, | |
| _ids | |||
| ) |
| #define MCA_DRIVER | ( | _name, | |
| _ids | |||
| ) |
| #define ISA_DRIVER | ( | _name, | |
| _probe_addrs, | |||
| _probe_addr, | |||
| _vendor_id, | |||
| _prod_id | |||
| ) |
| #define DRIVER | ( | _name_text, | |
| _unused2, | |||
| _unused3, | |||
| _name, | |||
| _probe, | |||
| _disable, | |||
| _fake_bss | |||
| ) |
| enum irq_action_t |
| enum duplex |
| FILE_LICENCE | ( | GPL2_OR_LATER | ) |
|
inlinestatic |
|
inlinestatic |
Definition at line 83 of file nic.h.
References dest, legacy_nic, nic::nic_op, nic::packet, size, nic_operations::transmit, and type.
| int dummy_connect | ( | struct nic * | nic | ) |
| void dummy_irq | ( | struct nic * | nic, |
| irq_action_t | irq_action | ||
| ) |
| int legacy_probe | ( | void * | hwdev, |
| void(*)(void *hwdev, void *priv) | set_drvdata, | ||
| struct device * | dev, | ||
| int(*)(struct nic *nic, void *hwdev) | probe, | ||
| void(*)(struct nic *nic, void *hwdev) | disable, | ||
| size_t | fake_bss_len | ||
| ) |
Definition at line 83 of file legacy.c.
References alloc_etherdev(), device::desc, net_device::dev, EBUSY, ENODEV, ENOMEM, nic::fake_bss, nic::fake_bss_len, free_phys(), net_device::hw_addr, device_description::irq, nic::irqno, legacy_nic, legacy_operations, legacy_registered, net_device::ll_protocol, malloc_phys(), memset(), netdev, netdev_init(), netdev_link_up(), netdev_nullify(), netdev_put(), nic::node_addr, ll_protocol::ntoa, PAGE_SIZE, printf(), net_device::priv, rc, and register_netdev().
Referenced by t509_probe().
| void legacy_remove | ( | void * | hwdev, |
| void *(*)(void *hwdev) | get_drvdata, | ||
| void(*)(struct nic *nic, void *hwdev) | disable | ||
| ) |
Definition at line 160 of file legacy.c.
References nic::fake_bss, nic::fake_bss_len, free_phys(), legacy_registered, netdev, netdev_nullify(), netdev_put(), net_device::priv, and unregister_netdev().
Referenced by t509_remove().
|
inlinestatic |
Definition at line 118 of file nic.h.
References pci_set_drvdata(), and priv.
|
inlinestatic |
Definition at line 121 of file nic.h.
References pci_get_drvdata().
|
inlinestatic |
Definition at line 139 of file nic.h.
References isapnp_set_drvdata(), and priv.
|
inlinestatic |
Definition at line 142 of file nic.h.
References isapnp_get_drvdata().
|
inlinestatic |
Definition at line 160 of file nic.h.
References eisa_set_drvdata(), and priv.
|
inlinestatic |
Definition at line 163 of file nic.h.
References eisa_get_drvdata().
|
inlinestatic |
Definition at line 181 of file nic.h.
References mca_set_drvdata(), and priv.
|
inlinestatic |
Definition at line 184 of file nic.h.
References mca_get_drvdata().
|
inlinestatic |
Definition at line 212 of file nic.h.
References isa_set_drvdata(), and priv.
|
inlinestatic |
Definition at line 215 of file nic.h.
References isa_get_drvdata().
| struct { ... } no_fake_bss |
| struct nic legacy_nic |
Definition at line 22 of file legacy.c.
Referenced by eth_poll(), eth_transmit(), and legacy_probe().
1.8.15