iPXE
|
#include <stdint.h>
#include <stdio.h>
#include <ipxe/io.h>
#include <errno.h>
#include <ipxe/pci.h>
#include <ipxe/if_ether.h>
#include <ipxe/ethernet.h>
#include <ipxe/iobuf.h>
#include <ipxe/netdevice.h>
#include "pnic_api.h"
Go to the source code of this file.
Data Structures | |
struct | pnic |
Functions | |
FILE_LICENCE (GPL2_OR_LATER) | |
static uint16_t | pnic_command_quiet (struct pnic *pnic, uint16_t command, const void *input, uint16_t input_length, void *output, uint16_t output_max_length, uint16_t *output_length) |
static uint16_t | pnic_command (struct pnic *pnic, uint16_t command, const void *input, uint16_t input_length, void *output, uint16_t output_max_length, uint16_t *output_length) |
static int | pnic_api_check (uint16_t api_version) |
static void | pnic_poll (struct net_device *netdev) |
static int | pnic_transmit (struct net_device *netdev, struct io_buffer *iobuf) |
static int | pnic_open (struct net_device *netdev __unused) |
static void | pnic_close (struct net_device *netdev __unused) |
static void | pnic_irq (struct net_device *netdev, int enable) |
static void | pnic_remove (struct pci_device *pci) |
static int | pnic_probe (struct pci_device *pci) |
Variables | |
static struct net_device_operations | pnic_operations |
static struct pci_device_id | pnic_nics [] |
struct pci_driver pnic_driver | __pci_driver |
FILE_LICENCE | ( | GPL2_OR_LATER | ) |
|
static |
Definition at line 55 of file pnic.c.
References insb(), inw(), pnic::ioaddr, NULL, outsb(), outw, PNIC_REG_CMD, PNIC_REG_DATA, PNIC_REG_LEN, PNIC_REG_STAT, printf(), and status.
Referenced by pnic_command(), and pnic_probe().
|
static |
Definition at line 96 of file pnic.c.
References pnic_command_quiet(), PNIC_STATUS_OK, printf(), and status.
Referenced by pnic_irq(), pnic_poll(), pnic_probe(), pnic_remove(), and pnic_transmit().
|
static |
Definition at line 111 of file pnic.c.
References PNIC_API_VERSION, and printf().
Referenced by pnic_probe().
|
static |
Definition at line 127 of file pnic.c.
References alloc_iob(), io_buffer::data, DBG, EIO, ENOMEM, ETH_FRAME_LEN, iob_put, length, netdev, netdev_rx(), netdev_rx_err(), NULL, PNIC_CMD_RECV, PNIC_CMD_RECV_QLEN, pnic_command(), PNIC_STATUS_OK, and net_device::priv.
|
static |
Definition at line 161 of file pnic.c.
References io_buffer::data, ETH_ZLEN, iob_len(), iob_pad(), netdev, netdev_tx_complete(), NULL, PNIC_CMD_XMIT, pnic_command(), and net_device::priv.
|
static |
|
static |
|
static |
Definition at line 193 of file pnic.c.
References netdev, NULL, PNIC_CMD_MASK_IRQ, pnic_command(), and net_device::priv.
|
static |
Definition at line 215 of file pnic.c.
References netdev, netdev_nullify(), netdev_put(), NULL, pci_get_drvdata(), PNIC_CMD_RESET, pnic_command(), net_device::priv, and unregister_netdev().
|
static |
Definition at line 228 of file pnic.c.
References adjust_pci_device(), alloc_etherdev(), pci_device::dev, net_device::dev, EIO, ENOMEM, ETH_ALEN, net_device::hw_addr, pnic::ioaddr, pci_device::ioaddr, netdev, netdev_init(), netdev_link_up(), netdev_nullify(), netdev_put(), NULL, pci_set_drvdata(), pnic_api_check(), PNIC_CMD_API_VER, PNIC_CMD_READ_MAC, pnic_command(), pnic_command_quiet(), pnic_operations, PNIC_STATUS_OK, printf(), net_device::priv, rc, register_netdev(), and status.
|
static |
Definition at line 204 of file pnic.c.
Referenced by pnic_probe().
|
static |
struct pci_driver pnic_driver __pci_driver |