iPXE
Defines | Functions
pnic_api.h File Reference

Go to the source code of this file.

Defines

#define PNIC_PCI_VENDOR   0xfefe /* Hopefully these won't clash with */
#define PNIC_PCI_DEVICE   0xefef /* any real PCI device IDs. */
#define PNIC_REG_CMD   0x00 /* Command register, 2 bytes, write only */
#define PNIC_REG_STAT   0x00 /* Status register, 2 bytes, read only */
#define PNIC_REG_LEN   0x02 /* Length register, 2 bytes, read-write */
#define PNIC_REG_DATA   0x04 /* Data port, 1 byte, read-write */
#define PNIC_MAX_REG   0x04
#define PNIC_CMD_NOOP   0x0000
#define PNIC_CMD_API_VER   0x0001
#define PNIC_CMD_READ_MAC   0x0002
#define PNIC_CMD_RESET   0x0003
#define PNIC_CMD_XMIT   0x0004
#define PNIC_CMD_RECV   0x0005
#define PNIC_CMD_RECV_QLEN   0x0006
#define PNIC_CMD_MASK_IRQ   0x0007
#define PNIC_CMD_FORCE_IRQ   0x0008
#define PNIC_STATUS_OK   0x4f4b /* 'OK' */
#define PNIC_STATUS_UNKNOWN_CMD   0x3f3f /* '??' */
#define PNIC_API_VERSION   0x0101 /* 1.1 */

Functions

 FILE_LICENCE (GPL2_OR_LATER)

Define Documentation

#define PNIC_PCI_VENDOR   0xfefe /* Hopefully these won't clash with */

Definition at line 20 of file pnic_api.h.

#define PNIC_PCI_DEVICE   0xefef /* any real PCI device IDs. */

Definition at line 21 of file pnic_api.h.

#define PNIC_REG_CMD   0x00 /* Command register, 2 bytes, write only */

Definition at line 26 of file pnic_api.h.

Referenced by pnic_command_quiet().

#define PNIC_REG_STAT   0x00 /* Status register, 2 bytes, read only */

Definition at line 27 of file pnic_api.h.

Referenced by pnic_command_quiet().

#define PNIC_REG_LEN   0x02 /* Length register, 2 bytes, read-write */

Definition at line 28 of file pnic_api.h.

Referenced by pnic_command_quiet().

#define PNIC_REG_DATA   0x04 /* Data port, 1 byte, read-write */

Definition at line 29 of file pnic_api.h.

Referenced by pnic_command_quiet().

#define PNIC_MAX_REG   0x04

Definition at line 33 of file pnic_api.h.

#define PNIC_CMD_NOOP   0x0000

Definition at line 38 of file pnic_api.h.

#define PNIC_CMD_API_VER   0x0001

Definition at line 39 of file pnic_api.h.

Referenced by pnic_probe().

#define PNIC_CMD_READ_MAC   0x0002

Definition at line 40 of file pnic_api.h.

Referenced by pnic_probe().

#define PNIC_CMD_RESET   0x0003

Definition at line 41 of file pnic_api.h.

Referenced by pnic_remove().

#define PNIC_CMD_XMIT   0x0004

Definition at line 42 of file pnic_api.h.

Referenced by pnic_transmit().

#define PNIC_CMD_RECV   0x0005

Definition at line 43 of file pnic_api.h.

Referenced by pnic_poll().

#define PNIC_CMD_RECV_QLEN   0x0006

Definition at line 44 of file pnic_api.h.

Referenced by pnic_poll().

#define PNIC_CMD_MASK_IRQ   0x0007

Definition at line 45 of file pnic_api.h.

Referenced by pnic_irq().

#define PNIC_CMD_FORCE_IRQ   0x0008

Definition at line 46 of file pnic_api.h.

#define PNIC_STATUS_OK   0x4f4b /* 'OK' */

Definition at line 54 of file pnic_api.h.

Referenced by pnic_command(), pnic_poll(), and pnic_probe().

#define PNIC_STATUS_UNKNOWN_CMD   0x3f3f /* '??' */

Definition at line 55 of file pnic_api.h.

#define PNIC_API_VERSION   0x0101 /* 1.1 */

Definition at line 61 of file pnic_api.h.

Referenced by pnic_api_check().


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER  )