Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mbx.h File Reference
#include "vf.h"

Go to the source code of this file.

Macros

#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_VF_MBX_INIT_TIMEOUT   2000 /* retry count for mailbox timeout */
 
#define E1000_VF_MBX_INIT_DELAY   500 /* usec delay between retries */
 
#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 PF to set MAC addr */
 
#define E1000_VF_SET_MULTICAST   0x03 /* VF requests PF to set MC addr */
 
#define E1000_VF_SET_VLAN   0x04 /* VF requests PF to set VLAN */
 
#define E1000_VF_SET_LPE   0x05 /* VF requests PF to set VMOLR.LPE */
 
#define E1000_PF_CONTROL_MSG   0x0100 /* PF control message */
 

Functions

void e1000_init_mbx_ops_generic (struct e1000_hw *hw)
 
s32 e1000_init_mbx_params_vf (struct e1000_hw *)
 

Macro Definition Documentation

#define E1000_PF_CONTROL_MSG   0x0100 /* PF control message */

Definition at line 67 of file mbx.h.

#define E1000_V2PMAILBOX_ACK   0x00000002 /* Ack PF message received */

Definition at line 34 of file mbx.h.

#define E1000_V2PMAILBOX_PFACK   0x00000020 /* PF ack the previous VF msg */

Definition at line 38 of file mbx.h.

#define E1000_V2PMAILBOX_PFSTS   0x00000010 /* PF wrote a message in the MB */

Definition at line 37 of file mbx.h.

#define E1000_V2PMAILBOX_PFU   0x00000008 /* PF owns the mailbox buffer */

Definition at line 36 of file mbx.h.

#define E1000_V2PMAILBOX_R2C_BITS   0x000000B0 /* All read to clear bits */

Definition at line 41 of file mbx.h.

#define E1000_V2PMAILBOX_REQ   0x00000001 /* Request for PF Ready bit */

Definition at line 33 of file mbx.h.

#define E1000_V2PMAILBOX_RSTD   0x00000080 /* PF has indicated reset done */

Definition at line 40 of file mbx.h.

#define E1000_V2PMAILBOX_RSTI   0x00000040 /* PF has reset indication */

Definition at line 39 of file mbx.h.

#define E1000_V2PMAILBOX_VFU   0x00000004 /* VF owns the mailbox buffer */

Definition at line 35 of file mbx.h.

#define E1000_VF_MBX_INIT_DELAY   500 /* usec delay between retries */

Definition at line 55 of file mbx.h.

#define E1000_VF_MBX_INIT_TIMEOUT   2000 /* retry count for mailbox timeout */

Definition at line 54 of file mbx.h.

#define E1000_VF_RESET   0x01 /* VF requests reset */

Definition at line 61 of file mbx.h.

#define E1000_VF_SET_LPE   0x05 /* VF requests PF to set VMOLR.LPE */

Definition at line 65 of file mbx.h.

#define E1000_VF_SET_MAC_ADDR   0x02 /* VF requests PF to set MAC addr */

Definition at line 62 of file mbx.h.

#define E1000_VF_SET_MULTICAST   0x03 /* VF requests PF to set MC addr */

Definition at line 63 of file mbx.h.

#define E1000_VF_SET_VLAN   0x04 /* VF requests PF to set VLAN */

Definition at line 64 of file mbx.h.

#define E1000_VFMAILBOX_SIZE   16 /* 16 32 bit words - 64 bytes */

Definition at line 43 of file mbx.h.

#define E1000_VT_MSGINFO_MASK   (0xFF << E1000_VT_MSGINFO_SHIFT)

Definition at line 59 of file mbx.h.

#define E1000_VT_MSGINFO_SHIFT   16

Definition at line 57 of file mbx.h.

#define E1000_VT_MSGTYPE_ACK
Value:
0x80000000 /* Messages below or'd with
* this are the ACK */

Definition at line 49 of file mbx.h.

#define E1000_VT_MSGTYPE_CTS
Value:
0x20000000 /* Indicates that VF is still
clear to send requests */

Definition at line 51 of file mbx.h.

#define E1000_VT_MSGTYPE_NACK
Value:
0x40000000 /* Messages below or'd with
* this are the NACK */

Definition at line 50 of file mbx.h.

Function Documentation

void e1000_init_mbx_ops_generic ( struct e1000_hw hw)
s32 e1000_init_mbx_params_vf ( struct e1000_hw hw)

e1000_init_mbx_params_vf - set initial values for vf mailbox : pointer to the HW structure

Initializes the hw->mbx struct to correct values for vf mailbox

Definition at line 323 of file mbx.c.