15 #define INTELVF_BAR_SIZE ( 16 * 1024 ) 18 #define INTELVF_MBCTRL 0x0c40UL 19 #define INTELVF_MBCTRL_REQ 0x00000001UL 20 #define INTELVF_MBCTRL_ACK 0x00000002UL 21 #define INTELVF_MBCTRL_VFU 0x00000004UL 22 #define INTELVF_MBCTRL_PFU 0x00000008UL 23 #define INTELVF_MBCTRL_PFSTS 0x00000010UL 24 #define INTELVF_MBCTRL_PFACK 0x00000020UL 25 #define INTELVF_MBCTRL_RSTI 0x00000040UL 26 #define INTELVF_MBCTRL_RSTD 0x00000080UL 29 #define INTELVF_MBMEM 0x0800UL 32 #define INTELVF_MSG_TYPE_RESET 0x00000001UL 35 #define INTELVF_MSG_TYPE_SET_MAC 0x00000002UL 38 #define INTELVF_MSG_TYPE_SET_MTU 0x00000005UL 41 #define INTELVF_MSG_TYPE_GET_QUEUES 0x00000009UL 44 #define INTELVF_MSG_TYPE_CONTROL 0x00000100UL 47 #define INTELVF_MSG_TYPE_MASK 0x0000ffffUL 50 #define INTELVF_MSG_NACK 0x40000000UL 53 #define INTELVF_MSG_ACK 0x80000000UL 56 #define INTELVF_MSG_RESPONSE ( INTELVF_MSG_ACK | INTELVF_MSG_NACK ) 148 #define INTELVF_MBOX_MAX_WAIT_MS 500
uint32_t hdr
Message header.
void msg(unsigned int row, const char *fmt,...)
Print message centred on specified row.
uint8_t reserved[(-ETH_ALEN) &0x3]
Alignment padding.
int intelvf_mbox_wait(struct intel_nic *intel)
Wait for PF reset to complete.
int intelvf_mbox_msg(struct intel_nic *intel, union intelvf_msg *msg)
Send/receive mailbox message.
int intelvf_mbox_set_mtu(struct intel_nic *intel, size_t mtu)
Send set MTU message.
struct intelvf_msg_raw raw
Raw dwords.
uint32_t hdr
Message header.
Version number mailbox message.
struct intelvf_msg_version version
Version number message.
Intel 10/100/1000 network card driver.
uint32_t mtu
Maximum packet size.
struct intelvf_msg_mtu mtu
MTU message.
uint32_t rx
Maximum number of receive queues.
uint8_t mac[ETH_ALEN]
MAC address.
Queue configuration mailbox message (API v1.1+ only)
uint32_t hdr
Message header.
int intelvf_mbox_poll(struct intel_nic *intel)
Poll mailbox.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
uint32_t tx
Maximum number of transmit queues.
struct intelvf_msg_mac mac
MAC address message.
uint32_t vlan_thing
VLAN hand-waving thing.
uint32_t version
API version.
struct intelvf_msg_queues queues
Queue configuration message.
uint32_t hdr
Message header.
uint32_t hdr
Message header.
uint32_t dflt
Default queue.
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.
MAC address mailbox message.