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)) |
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 | 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 68 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 | ||
) |
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().
void dummy_irq | ( | struct nic *nic | __unused, |
irq_action_t irq_action | __unused | ||
) |
Definition at line 22 of file legacy.c.
Referenced by amd8111e_probe(), atl_probe(), bnx2_init_board(), ibft_install(), and legacy_probe().
|
static |
Definition at line 24 of file legacy.c.
Referenced by legacy_probe(), and legacy_remove().
|
static |
Definition at line 74 of file legacy.c.
Referenced by legacy_probe().