iPXE
|
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <assert.h>
#include <byteswap.h>
#include <ipxe/io.h>
#include <ipxe/pci.h>
#include <ipxe/malloc.h>
#include <ipxe/iobuf.h>
#include <ipxe/netdevice.h>
#include "efx_common.h"
#include "efx_bitfield.h"
#include "mc_driver_pcol.h"
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
void | efx_writel (struct efx_nic *efx, efx_dword_t *value, unsigned int reg) |
void | efx_readl (struct efx_nic *efx, efx_dword_t *value, unsigned int reg) |
void | efx_probe (struct net_device *netdev, enum efx_revision revision) |
void | efx_remove (struct net_device *netdev) |
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
void efx_writel | ( | struct efx_nic * | efx, |
efx_dword_t * | value, | ||
unsigned int | reg | ||
) |
Definition at line 49 of file efx_common.c.
References _efx_writel(), DBGCIO, EFX_DWORD_FMT, EFX_DWORD_VAL, reg, and value.
void efx_readl | ( | struct efx_nic * | efx, |
efx_dword_t * | value, | ||
unsigned int | reg | ||
) |
Definition at line 57 of file efx_common.c.
References _efx_readl(), DBGCIO, EFX_DWORD_FMT, EFX_DWORD_VAL, reg, and value.
Referenced by efx_hunt_clear_interrupts().
void efx_probe | ( | struct net_device * | netdev, |
enum efx_revision | revision | ||
) |
Definition at line 71 of file efx_common.c.
References adjust_pci_device(), container_of, DBGCP, pci_device::dev, net_device::dev, efx_nic::membase, efx_nic::mmio_len, efx_nic::mmio_start, netdev, efx_nic::netdev, pci_bar_size(), pci_bar_start(), PCI_BASE_ADDRESS_0, PCI_BASE_ADDRESS_2, PCI_BASE_ADDRESS_IO_MASK, PCI_BASE_ADDRESS_SPACE_IO, pci_ioremap(), pci_read_config_dword(), net_device::priv, reg, revision, and efx_nic::revision.
Referenced by hunt_probe().
void efx_remove | ( | struct net_device * | netdev | ) |
Definition at line 98 of file efx_common.c.
References iounmap(), efx_nic::membase, netdev, NULL, and net_device::priv.
Referenced by hunt_probe(), and hunt_remove().