iPXE
|
#include "igbvf_vf.h"
Go to the source code of this file.
Macros | |
#define | _IGBVF_MBX_H_ |
#define | E1000_V2PMAILBOX(_n) (0x00C40 + (4 * (_n))) |
#define | E1000_VMBMEM(_n) (0x00800 + (64 * (_n))) |
#define | E1000_V2PMAILBOX_REQ 0x00000001 /* Request for PF Ready bit */ |
#define | E1000_V2PMAILBOX_ACK 0x00000002 /* Ack PF message received */ |
#define | E1000_V2PMAILBOX_VFU 0x00000004 /* VF owns the mailbox buffer */ |
#define | E1000_V2PMAILBOX_PFU 0x00000008 /* PF owns the mailbox buffer */ |
#define | E1000_V2PMAILBOX_PFSTS 0x00000010 /* PF wrote a message in the MB */ |
#define | E1000_V2PMAILBOX_PFACK 0x00000020 /* PF ack the previous VF msg */ |
#define | E1000_V2PMAILBOX_RSTI 0x00000040 /* PF has reset indication */ |
#define | E1000_V2PMAILBOX_RSTD 0x00000080 /* PF has indicated reset done */ |
#define | E1000_V2PMAILBOX_R2C_BITS 0x000000B0 /* All read to clear bits */ |
#define | E1000_VFMAILBOX_SIZE 16 /* 16 32 bit words - 64 bytes */ |
#define | E1000_VT_MSGTYPE_ACK |
#define | E1000_VT_MSGTYPE_NACK |
#define | E1000_VT_MSGTYPE_CTS |
#define | E1000_VT_MSGINFO_SHIFT 16 |
#define | E1000_VT_MSGINFO_MASK (0xFF << E1000_VT_MSGINFO_SHIFT) |
#define | E1000_VF_RESET 0x01 /* VF requests reset */ |
#define | E1000_VF_SET_MAC_ADDR 0x02 /* VF requests to set MAC addr */ |
#define | E1000_VF_SET_MULTICAST 0x03 /* VF requests to set MC addr */ |
#define | E1000_VF_SET_MULTICAST_COUNT_MASK (0x1F << E1000_VT_MSGINFO_SHIFT) |
#define | E1000_VF_SET_MULTICAST_OVERFLOW (0x80 << E1000_VT_MSGINFO_SHIFT) |
#define | E1000_VF_SET_VLAN 0x04 /* VF requests to set VLAN */ |
#define | E1000_VF_SET_VLAN_ADD (0x01 << E1000_VT_MSGINFO_SHIFT) |
#define | E1000_VF_SET_LPE 0x05 /* VF requests to set VMOLR.LPE */ |
#define | E1000_VF_SET_PROMISC 0x06 /*VF requests to clear VMOLR.ROPE/MPME*/ |
#define | E1000_VF_SET_PROMISC_UNICAST (0x01 << E1000_VT_MSGINFO_SHIFT) |
#define | E1000_VF_SET_PROMISC_MULTICAST (0x02 << E1000_VT_MSGINFO_SHIFT) |
#define | E1000_PF_CONTROL_MSG 0x0100 /* PF control message */ |
#define | E1000_VF_MBX_INIT_TIMEOUT 2000 /* number of retries on mailbox */ |
#define | E1000_VF_MBX_INIT_DELAY 500 /* microseconds between retries */ |
Functions | |
FILE_LICENCE (GPL2_ONLY) | |
void | igbvf_init_mbx_ops_generic (struct e1000_hw *hw) |
igbvf_init_mbx_ops_generic - Initialize NVM function pointers @hw: pointer to the HW structure More... | |
s32 | igbvf_init_mbx_params_vf (struct e1000_hw *) |
igbvf_init_mbx_params_vf - set initial values for vf mailbox @hw: pointer to the HW structure More... | |
#define _IGBVF_MBX_H_ |
Definition at line 32 of file igbvf_mbx.h.
#define E1000_V2PMAILBOX | ( | _n | ) | (0x00C40 + (4 * (_n))) |
Definition at line 37 of file igbvf_mbx.h.
#define E1000_VMBMEM | ( | _n | ) | (0x00800 + (64 * (_n))) |
Definition at line 38 of file igbvf_mbx.h.
#define E1000_V2PMAILBOX_REQ 0x00000001 /* Request for PF Ready bit */ |
Definition at line 41 of file igbvf_mbx.h.
#define E1000_V2PMAILBOX_ACK 0x00000002 /* Ack PF message received */ |
Definition at line 42 of file igbvf_mbx.h.
#define E1000_V2PMAILBOX_VFU 0x00000004 /* VF owns the mailbox buffer */ |
Definition at line 43 of file igbvf_mbx.h.
#define E1000_V2PMAILBOX_PFU 0x00000008 /* PF owns the mailbox buffer */ |
Definition at line 44 of file igbvf_mbx.h.
#define E1000_V2PMAILBOX_PFSTS 0x00000010 /* PF wrote a message in the MB */ |
Definition at line 45 of file igbvf_mbx.h.
#define E1000_V2PMAILBOX_PFACK 0x00000020 /* PF ack the previous VF msg */ |
Definition at line 46 of file igbvf_mbx.h.
#define E1000_V2PMAILBOX_RSTI 0x00000040 /* PF has reset indication */ |
Definition at line 47 of file igbvf_mbx.h.
#define E1000_V2PMAILBOX_RSTD 0x00000080 /* PF has indicated reset done */ |
Definition at line 48 of file igbvf_mbx.h.
#define E1000_V2PMAILBOX_R2C_BITS 0x000000B0 /* All read to clear bits */ |
Definition at line 49 of file igbvf_mbx.h.
Definition at line 51 of file igbvf_mbx.h.
#define E1000_VT_MSGTYPE_ACK |
Definition at line 57 of file igbvf_mbx.h.
#define E1000_VT_MSGTYPE_NACK |
Definition at line 59 of file igbvf_mbx.h.
#define E1000_VT_MSGTYPE_CTS |
Definition at line 61 of file igbvf_mbx.h.
#define E1000_VT_MSGINFO_SHIFT 16 |
Definition at line 63 of file igbvf_mbx.h.
#define E1000_VT_MSGINFO_MASK (0xFF << E1000_VT_MSGINFO_SHIFT) |
Definition at line 65 of file igbvf_mbx.h.
#define E1000_VF_RESET 0x01 /* VF requests reset */ |
Definition at line 67 of file igbvf_mbx.h.
#define E1000_VF_SET_MAC_ADDR 0x02 /* VF requests to set MAC addr */ |
Definition at line 68 of file igbvf_mbx.h.
#define E1000_VF_SET_MULTICAST 0x03 /* VF requests to set MC addr */ |
Definition at line 69 of file igbvf_mbx.h.
#define E1000_VF_SET_MULTICAST_COUNT_MASK (0x1F << E1000_VT_MSGINFO_SHIFT) |
Definition at line 70 of file igbvf_mbx.h.
#define E1000_VF_SET_MULTICAST_OVERFLOW (0x80 << E1000_VT_MSGINFO_SHIFT) |
Definition at line 71 of file igbvf_mbx.h.
#define E1000_VF_SET_VLAN 0x04 /* VF requests to set VLAN */ |
Definition at line 72 of file igbvf_mbx.h.
#define E1000_VF_SET_VLAN_ADD (0x01 << E1000_VT_MSGINFO_SHIFT) |
Definition at line 73 of file igbvf_mbx.h.
#define E1000_VF_SET_LPE 0x05 /* VF requests to set VMOLR.LPE */ |
Definition at line 74 of file igbvf_mbx.h.
#define E1000_VF_SET_PROMISC 0x06 /*VF requests to clear VMOLR.ROPE/MPME*/ |
Definition at line 75 of file igbvf_mbx.h.
#define E1000_VF_SET_PROMISC_UNICAST (0x01 << E1000_VT_MSGINFO_SHIFT) |
Definition at line 76 of file igbvf_mbx.h.
#define E1000_VF_SET_PROMISC_MULTICAST (0x02 << E1000_VT_MSGINFO_SHIFT) |
Definition at line 77 of file igbvf_mbx.h.
#define E1000_PF_CONTROL_MSG 0x0100 /* PF control message */ |
Definition at line 79 of file igbvf_mbx.h.
#define E1000_VF_MBX_INIT_TIMEOUT 2000 /* number of retries on mailbox */ |
Definition at line 81 of file igbvf_mbx.h.
#define E1000_VF_MBX_INIT_DELAY 500 /* microseconds between retries */ |
Definition at line 82 of file igbvf_mbx.h.
FILE_LICENCE | ( | GPL2_ONLY | ) |
void igbvf_init_mbx_ops_generic | ( | struct e1000_hw * | hw | ) |
igbvf_init_mbx_ops_generic - Initialize NVM function pointers @hw: pointer to the HW structure
Setups up the function pointers to no-op functions
Definition at line 163 of file igbvf_mbx.c.
References igbvf_read_posted_mbx(), igbvf_write_posted_mbx(), e1000_mbx_info::ops, e1000_mbx_operations::read_posted, and e1000_mbx_operations::write_posted.
igbvf_init_mbx_params_vf - set initial values for vf mailbox @hw: pointer to the HW structure
Initializes the hw->mbx struct to correct values for vf mailbox
Definition at line 377 of file igbvf_mbx.c.
References e1000_mbx_stats::acks, e1000_mbx_operations::check_for_ack, e1000_mbx_operations::check_for_msg, e1000_mbx_operations::check_for_rst, E1000_SUCCESS, E1000_VF_MBX_INIT_DELAY, E1000_VFMAILBOX_SIZE, igbvf_check_for_ack_vf(), igbvf_check_for_msg_vf(), igbvf_check_for_rst_vf(), igbvf_read_mbx_vf(), igbvf_read_posted_mbx(), igbvf_write_mbx_vf(), igbvf_write_posted_mbx(), e1000_mbx_stats::msgs_rx, e1000_mbx_stats::msgs_tx, e1000_mbx_info::ops, e1000_mbx_operations::read, e1000_mbx_operations::read_posted, e1000_mbx_stats::reqs, e1000_mbx_stats::rsts, e1000_mbx_info::size, e1000_mbx_info::stats, e1000_mbx_info::timeout, e1000_mbx_info::usec_delay, e1000_mbx_operations::write, and e1000_mbx_operations::write_posted.
Referenced by igbvf_init_function_pointers_vf().