16#define INTELVF_BAR_SIZE ( 16 * 1024 )
19#define INTELVF_MBCTRL 0x0c40UL
20#define INTELVF_MBCTRL_REQ 0x00000001UL
21#define INTELVF_MBCTRL_ACK 0x00000002UL
22#define INTELVF_MBCTRL_VFU 0x00000004UL
23#define INTELVF_MBCTRL_PFU 0x00000008UL
24#define INTELVF_MBCTRL_PFSTS 0x00000010UL
25#define INTELVF_MBCTRL_PFACK 0x00000020UL
26#define INTELVF_MBCTRL_RSTI 0x00000040UL
27#define INTELVF_MBCTRL_RSTD 0x00000080UL
30#define INTELVF_MBMEM 0x0800UL
33#define INTELVF_MSG_TYPE_RESET 0x00000001UL
36#define INTELVF_MSG_TYPE_SET_MAC 0x00000002UL
39#define INTELVF_MSG_TYPE_SET_MTU 0x00000005UL
42#define INTELVF_MSG_TYPE_GET_QUEUES 0x00000009UL
45#define INTELVF_MSG_TYPE_CONTROL 0x00000100UL
48#define INTELVF_MSG_TYPE_MASK 0x0000ffffUL
51#define INTELVF_MSG_NACK 0x40000000UL
54#define INTELVF_MSG_ACK 0x80000000UL
57#define INTELVF_MSG_RESPONSE ( INTELVF_MSG_ACK | INTELVF_MSG_NACK )
149#define INTELVF_MBOX_MAX_WAIT_MS 500
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Intel 10/100/1000 network card driver.
int intelvf_mbox_poll(struct intel_nic *intel)
Poll mailbox.
int intelvf_mbox_set_mac(struct intel_nic *intel, const uint8_t *ll_addr)
Send set MAC address message.
int intelvf_mbox_reset(struct intel_nic *intel, uint8_t *hw_addr)
Send reset message and get initial MAC address.
int intelvf_mbox_msg(struct intel_nic *intel, union intelvf_msg *msg)
Send/receive mailbox message.
int intelvf_mbox_wait(struct intel_nic *intel)
Wait for PF reset to complete.
int intelvf_mbox_set_mtu(struct intel_nic *intel, size_t mtu)
Send set MTU message.
void msg(unsigned int row, const char *fmt,...)
Print message centred on specified row.
MAC address mailbox message.
uint8_t reserved[(-ETH_ALEN) &0x3]
Alignment padding.
uint32_t hdr
Message header.
uint8_t mac[ETH_ALEN]
MAC address.
uint32_t hdr
Message header.
uint32_t mtu
Maximum packet size.
Queue configuration mailbox message (API v1.1+ only)
uint32_t hdr
Message header.
uint32_t vlan_thing
VLAN hand-waving thing.
uint32_t tx
Maximum number of transmit queues.
uint32_t rx
Maximum number of receive queues.
uint32_t dflt
Default queue.
uint32_t dword[0]
Raw dwords.
Version number mailbox message.
uint32_t hdr
Message header.
uint32_t version
API version.
struct intelvf_msg_raw raw
Raw dwords.
struct intelvf_msg_mac mac
MAC address message.
uint32_t hdr
Message header.
struct intelvf_msg_mtu mtu
MTU message.
struct intelvf_msg_version version
Version number message.
struct intelvf_msg_queues queues
Queue configuration message.