1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2015-2020 Beijing WangXun Technology Co., Ltd. 3 * Copyright(c) 2010-2017 Intel Corporation 4 */ 5 6 /** 7 * @file rte_pmd_txgbe.h 8 * txgbe PMD specific functions. 9 * 10 **/ 11 12 #ifndef _PMD_TXGBE_H_ 13 #define _PMD_TXGBE_H_ 14 15 #include <rte_compat.h> 16 #include <rte_ethdev.h> 17 #include <rte_ether.h> 18 19 /** 20 * Response sent back to txgbe driver from user app after callback 21 */ 22 enum rte_pmd_txgbe_mb_event_rsp { 23 RTE_PMD_TXGBE_MB_EVENT_NOOP_ACK, /**< skip mbox request and ACK */ 24 RTE_PMD_TXGBE_MB_EVENT_NOOP_NACK, /**< skip mbox request and NACK */ 25 RTE_PMD_TXGBE_MB_EVENT_PROCEED, /**< proceed with mbox request */ 26 RTE_PMD_TXGBE_MB_EVENT_MAX /**< max value of this enum */ 27 }; 28 29 /** 30 * Data sent to the user application when the callback is executed. 31 */ 32 struct rte_pmd_txgbe_mb_event_param { 33 uint16_t vfid; /**< Virtual Function number */ 34 uint16_t msg_type; /**< VF to PF message type, defined in txgbe_mbx.h */ 35 uint16_t retval; /**< return value */ 36 void *msg; /**< pointer to message */ 37 }; 38 #endif /* _PMD_TXGBE_H_ */ 39