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 | 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) |
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)) |
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 nic | nic |
#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 | |||
) |
enum irq_action_t |
enum duplex |
FILE_LICENCE | ( | GPL2_OR_LATER | ) |
|
inlinestatic |
|
inlinestatic |
Definition at line 76 of file nic.h.
References dest, 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 | ||
) |
Definition at line 82 of file legacy.c.
References alloc_etherdev(), device::desc, net_device::dev, EBUSY, ENODEV, ENOMEM, net_device::hw_addr, device_description::irq, nic::irqno, legacy_operations, legacy_registered, net_device::ll_protocol, memset(), netdev, netdev_init(), netdev_link_up(), netdev_nullify(), netdev_put(), nic, nic::node_addr, ll_protocol::ntoa, 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 138 of file legacy.c.
References legacy_registered, netdev, netdev_nullify(), netdev_put(), net_device::priv, and unregister_netdev().
Referenced by t509_remove().
|
inlinestatic |
Definition at line 109 of file nic.h.
References pci_set_drvdata(), and priv.
|
inlinestatic |
Definition at line 112 of file nic.h.
References pci_get_drvdata().
|
inlinestatic |
Definition at line 130 of file nic.h.
References isapnp_set_drvdata(), and priv.
|
inlinestatic |
Definition at line 133 of file nic.h.
References isapnp_get_drvdata().
|
inlinestatic |
Definition at line 151 of file nic.h.
References eisa_set_drvdata(), and priv.
|
inlinestatic |
Definition at line 154 of file nic.h.
References eisa_get_drvdata().
|
inlinestatic |
Definition at line 172 of file nic.h.
References mca_set_drvdata(), and priv.
|
inlinestatic |
Definition at line 175 of file nic.h.
References mca_get_drvdata().
|
inlinestatic |
Definition at line 203 of file nic.h.
References isa_set_drvdata(), and priv.
|
inlinestatic |
Definition at line 206 of file nic.h.
References isa_get_drvdata().
Definition at line 22 of file legacy.c.
Referenced by amd8111e_probe(), atl_probe(), bnx2_init_board(), ibft_install(), and legacy_probe().