iPXE
|
#include "igbvf_mbx.h"
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_ONLY) | |
static s32 | igbvf_poll_for_msg (struct e1000_hw *hw, u16 mbx_id) |
igbvf_poll_for_msg - Wait for message notification @hw: pointer to the HW structure @mbx_id: id of mailbox to write More... | |
static s32 | igbvf_poll_for_ack (struct e1000_hw *hw, u16 mbx_id) |
igbvf_poll_for_ack - Wait for message acknowledgement @hw: pointer to the HW structure @mbx_id: id of mailbox to write More... | |
static s32 | igbvf_read_posted_mbx (struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id) |
igbvf_read_posted_mbx - Wait for message notification and receive message @hw: pointer to the HW structure @msg: The message buffer @size: Length of buffer @mbx_id: id of mailbox to write More... | |
static s32 | igbvf_write_posted_mbx (struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id) |
igbvf_write_posted_mbx - Write a message to the mailbox, wait for ack @hw: pointer to the HW structure @msg: The message buffer @size: Length of buffer @mbx_id: id of mailbox to write More... | |
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... | |
static u32 | igbvf_read_v2p_mailbox (struct e1000_hw *hw) |
igbvf_read_v2p_mailbox - read v2p mailbox @hw: pointer to the HW structure More... | |
static s32 | igbvf_check_for_bit_vf (struct e1000_hw *hw, u32 mask) |
igbvf_check_for_bit_vf - Determine if a status bit was set @hw: pointer to the HW structure @mask: bitmask for bits to be tested and cleared More... | |
static s32 | igbvf_check_for_msg_vf (struct e1000_hw *hw, u16 mbx_id __unused) |
igbvf_check_for_msg_vf - checks to see if the PF has sent mail @hw: pointer to the HW structure @mbx_id: id of mailbox to check More... | |
static s32 | igbvf_check_for_ack_vf (struct e1000_hw *hw, u16 mbx_id __unused) |
igbvf_check_for_ack_vf - checks to see if the PF has ACK'd @hw: pointer to the HW structure @mbx_id: id of mailbox to check More... | |
static s32 | igbvf_check_for_rst_vf (struct e1000_hw *hw, u16 mbx_id __unused) |
igbvf_check_for_rst_vf - checks to see if the PF has reset @hw: pointer to the HW structure @mbx_id: id of mailbox to check More... | |
static s32 | igbvf_obtain_mbx_lock_vf (struct e1000_hw *hw) |
igbvf_obtain_mbx_lock_vf - obtain mailbox lock @hw: pointer to the HW structure More... | |
static s32 | igbvf_write_mbx_vf (struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id __unused) |
igbvf_write_mbx_vf - Write a message to the mailbox @hw: pointer to the HW structure @msg: The message buffer @size: Length of buffer @mbx_id: id of mailbox to write More... | |
static s32 | igbvf_read_mbx_vf (struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id __unused) |
igbvf_read_mbx_vf - Reads a message from the inbox intended for vf @hw: pointer to the HW structure @msg: The message buffer @size: Length of buffer @mbx_id: id of mailbox to read More... | |
s32 | igbvf_init_mbx_params_vf (struct e1000_hw *hw) |
igbvf_init_mbx_params_vf - set initial values for vf mailbox @hw: pointer to the HW structure More... | |
FILE_LICENCE | ( | GPL2_ONLY | ) |
igbvf_poll_for_msg - Wait for message notification @hw: pointer to the HW structure @mbx_id: id of mailbox to write
returns SUCCESS if it successfully received a message notification
Definition at line 40 of file igbvf_mbx.c.
References e1000_mbx_operations::check_for_msg, DEBUGFUNC, E1000_ERR_MBX, E1000_SUCCESS, e1000_mbx_info::ops, out, e1000_mbx_info::timeout, usec_delay, and e1000_mbx_info::usec_delay.
Referenced by igbvf_read_posted_mbx().
igbvf_poll_for_ack - Wait for message acknowledgement @hw: pointer to the HW structure @mbx_id: id of mailbox to write
returns SUCCESS if it successfully received a message acknowledgement
Definition at line 71 of file igbvf_mbx.c.
References e1000_mbx_operations::check_for_ack, DEBUGFUNC, E1000_ERR_MBX, E1000_SUCCESS, e1000_mbx_info::ops, out, e1000_mbx_info::timeout, usec_delay, and e1000_mbx_info::usec_delay.
Referenced by igbvf_write_posted_mbx().
igbvf_read_posted_mbx - Wait for message notification and receive message @hw: pointer to the HW structure @msg: The message buffer @size: Length of buffer @mbx_id: id of mailbox to write
returns SUCCESS if it successfully received a message notification and copied it into the receive buffer.
Definition at line 105 of file igbvf_mbx.c.
References DEBUGFUNC, E1000_ERR_MBX, igbvf_poll_for_msg(), msg(), e1000_mbx_info::ops, out, e1000_mbx_operations::read, and size.
Referenced by igbvf_init_mbx_ops_generic(), and igbvf_init_mbx_params_vf().
igbvf_write_posted_mbx - Write a message to the mailbox, wait for ack @hw: pointer to the HW structure @msg: The message buffer @size: Length of buffer @mbx_id: id of mailbox to write
returns SUCCESS if it successfully copied message into the buffer and received an ack to that message within delay * timeout period
Definition at line 135 of file igbvf_mbx.c.
References DEBUGFUNC, E1000_ERR_MBX, igbvf_poll_for_ack(), msg(), e1000_mbx_info::ops, out, size, e1000_mbx_info::timeout, and e1000_mbx_operations::write.
Referenced by igbvf_init_mbx_ops_generic(), and igbvf_init_mbx_params_vf().
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_read_v2p_mailbox - read v2p mailbox @hw: pointer to the HW structure
This function is used to read the v2p mailbox without losing the read to clear status bits.
Definition at line 177 of file igbvf_mbx.c.
References E1000_READ_REG, E1000_V2PMAILBOX, and E1000_V2PMAILBOX_R2C_BITS.
Referenced by igbvf_check_for_bit_vf(), and igbvf_obtain_mbx_lock_vf().
igbvf_check_for_bit_vf - Determine if a status bit was set @hw: pointer to the HW structure @mask: bitmask for bits to be tested and cleared
This function is used to check for the read to clear bits within the V2P mailbox.
Definition at line 195 of file igbvf_mbx.c.
References E1000_ERR_MBX, E1000_SUCCESS, and igbvf_read_v2p_mailbox().
Referenced by igbvf_check_for_ack_vf(), igbvf_check_for_msg_vf(), and igbvf_check_for_rst_vf().
igbvf_check_for_msg_vf - checks to see if the PF has sent mail @hw: pointer to the HW structure @mbx_id: id of mailbox to check
returns SUCCESS if the PF has set the Status bit or else ERR_MBX
Definition at line 215 of file igbvf_mbx.c.
References DEBUGFUNC, E1000_ERR_MBX, E1000_SUCCESS, E1000_V2PMAILBOX_PFSTS, and igbvf_check_for_bit_vf().
Referenced by igbvf_init_mbx_params_vf(), and igbvf_write_mbx_vf().
igbvf_check_for_ack_vf - checks to see if the PF has ACK'd @hw: pointer to the HW structure @mbx_id: id of mailbox to check
returns SUCCESS if the PF has set the ACK bit or else ERR_MBX
Definition at line 236 of file igbvf_mbx.c.
References DEBUGFUNC, E1000_ERR_MBX, E1000_SUCCESS, E1000_V2PMAILBOX_PFACK, and igbvf_check_for_bit_vf().
Referenced by igbvf_init_mbx_params_vf(), and igbvf_write_mbx_vf().
igbvf_check_for_rst_vf - checks to see if the PF has reset @hw: pointer to the HW structure @mbx_id: id of mailbox to check
returns true if the PF has set the reset done bit or else false
Definition at line 257 of file igbvf_mbx.c.
References DEBUGFUNC, E1000_ERR_MBX, E1000_SUCCESS, E1000_V2PMAILBOX_RSTD, E1000_V2PMAILBOX_RSTI, and igbvf_check_for_bit_vf().
Referenced by igbvf_init_mbx_params_vf().
igbvf_obtain_mbx_lock_vf - obtain mailbox lock @hw: pointer to the HW structure
return SUCCESS if we obtained the mailbox lock
Definition at line 278 of file igbvf_mbx.c.
References DEBUGFUNC, E1000_ERR_MBX, E1000_SUCCESS, E1000_V2PMAILBOX, E1000_V2PMAILBOX_VFU, E1000_WRITE_REG, and igbvf_read_v2p_mailbox().
Referenced by igbvf_read_mbx_vf(), and igbvf_write_mbx_vf().
|
static |
igbvf_write_mbx_vf - Write a message to the mailbox @hw: pointer to the HW structure @msg: The message buffer @size: Length of buffer @mbx_id: id of mailbox to write
returns SUCCESS if it successfully copied message into the buffer
Definition at line 303 of file igbvf_mbx.c.
References DEBUGFUNC, E1000_V2PMAILBOX, E1000_V2PMAILBOX_REQ, E1000_VMBMEM, E1000_WRITE_REG, E1000_WRITE_REG_ARRAY, igbvf_check_for_ack_vf(), igbvf_check_for_msg_vf(), igbvf_obtain_mbx_lock_vf(), msg(), and size.
Referenced by igbvf_init_mbx_params_vf().
|
static |
igbvf_read_mbx_vf - Reads a message from the inbox intended for vf @hw: pointer to the HW structure @msg: The message buffer @size: Length of buffer @mbx_id: id of mailbox to read
returns SUCCESS if it successfuly read message from buffer
Definition at line 344 of file igbvf_mbx.c.
References DEBUGFUNC, E1000_READ_REG_ARRAY, E1000_SUCCESS, E1000_V2PMAILBOX, E1000_V2PMAILBOX_ACK, E1000_VMBMEM, E1000_WRITE_REG, igbvf_obtain_mbx_lock_vf(), msg(), and size.
Referenced by igbvf_init_mbx_params_vf().
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().