|
iPXE
|
#include <stdint.h>#include <stdio.h>#include <errno.h>#include <ipxe/if_ether.h>#include <ipxe/netdevice.h>#include <ipxe/ethernet.h>#include <ipxe/iobuf.h>#include <nic.h>Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static int | legacy_transmit (struct net_device *netdev, struct io_buffer *iobuf) |
| static void | legacy_poll (struct net_device *netdev) |
| static int | legacy_open (struct net_device *netdev __unused) |
| static void | legacy_close (struct net_device *netdev __unused) |
| static void | legacy_irq (struct net_device *netdev __unused, int enable) |
| 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)) |
| int | dummy_connect (struct nic *nic __unused) |
| void | dummy_irq (struct nic *nic __unused, irq_action_t irq_action __unused) |
Variables | |
| struct nic | legacy_nic |
| static int | legacy_registered = 0 |
| static struct net_device_operations | legacy_operations |
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Definition at line 26 of file legacy.c.
References io_buffer::data, DBG, ETH_ZLEN, ethhdr::h_dest, ethhdr::h_protocol, iob_len(), iob_pad(), iob_pull, netdev, netdev_tx_complete(), nic::nic_op, ntohs, net_device::priv, and nic_operations::transmit.
|
static |
Definition at line 41 of file legacy.c.
References alloc_iob(), io_buffer::data, DBG, ETH_FRAME_LEN, free_iob(), iob_put, netdev, netdev_rx(), nic::nic_op, nic::packet, nic::packetlen, nic_operations::poll, and net_device::priv.
|
static |
|
static |
|
static |
Definition at line 69 of file legacy.c.
References DISABLE, ENABLE, nic_operations::irq, netdev, nic::nic_op, and net_device::priv.
| 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().
| void dummy_irq | ( | struct nic *nic | __unused, |
| irq_action_t irq_action | __unused | ||
| ) |
| struct nic legacy_nic |
Definition at line 22 of file legacy.c.
Referenced by eth_poll(), eth_transmit(), and legacy_probe().
|
static |
Definition at line 24 of file legacy.c.
Referenced by legacy_probe(), and legacy_remove().
|
static |
Definition at line 75 of file legacy.c.
Referenced by legacy_probe().
1.8.15