linux/drivers/net/ethernet/intel/igbvf/mbx.h

/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright(c) 1999 - 2018 Intel Corporation. */

#ifndef _E1000_MBX_H_
#define _E1000_MBX_H_

#include "vf.h"

#define E1000_V2PMAILBOX_REQ
#define E1000_V2PMAILBOX_ACK
#define E1000_V2PMAILBOX_VFU
#define E1000_V2PMAILBOX_PFU
#define E1000_V2PMAILBOX_PFSTS
#define E1000_V2PMAILBOX_PFACK
#define E1000_V2PMAILBOX_RSTI
#define E1000_V2PMAILBOX_RSTD
#define E1000_V2PMAILBOX_R2C_BITS

#define E1000_VFMAILBOX_SIZE

/* If it's a E1000_VF_* msg then it originates in the VF and is sent to the
 * PF.  The reverse is true if it is E1000_PF_*.
 * Message ACK's are the value or'd with 0xF0000000
 */
/* Messages below or'd with this are the ACK */
#define E1000_VT_MSGTYPE_ACK
/* Messages below or'd with this are the NACK */
#define E1000_VT_MSGTYPE_NACK
/* Indicates that VF is still clear to send requests */
#define E1000_VT_MSGTYPE_CTS

/* We have a total wait time of 1s for vf mailbox posted messages */
#define E1000_VF_MBX_INIT_TIMEOUT
#define E1000_VF_MBX_INIT_DELAY

#define E1000_VT_MSGINFO_SHIFT
/* bits 23:16 are used for exra info for certain messages */
#define E1000_VT_MSGINFO_MASK

#define E1000_VF_RESET
#define E1000_VF_SET_MAC_ADDR
/* VF requests PF to clear all unicast MAC filters */
#define E1000_VF_MAC_FILTER_CLR
/* VF requests PF to add unicast MAC filter */
#define E1000_VF_MAC_FILTER_ADD
#define E1000_VF_SET_MULTICAST
#define E1000_VF_SET_VLAN
#define E1000_VF_SET_LPE

#define E1000_PF_CONTROL_MSG

s32 e1000_init_mbx_params_vf(struct e1000_hw *);

#endif /* _E1000_MBX_H_ */