1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(C) 2023 Marvell Inc. 3 */ 4 5 /** 6 * @file rte_pmd_cnxk_eventdev.h 7 * Marvell CNXK eventdev PMD specific functions. 8 * 9 **/ 10 11 #ifndef _PMD_CNXK_EVENTDEV_H_ 12 #define _PMD_CNXK_EVENTDEV_H_ 13 14 #include <rte_common.h> 15 #include <rte_compat.h> 16 17 /** 18 * Wait for the currently active flow context on the event port to become HEAD 19 * of the flow-chain. 20 * 21 * @param dev 22 * Event device identifier. 23 * 24 * @param port 25 * Event port identifier. 26 */ 27 __rte_experimental 28 void 29 rte_pmd_cnxk_eventdev_wait_head(uint8_t dev, uint8_t port); 30 31 32 /** 33 * Check if the currently active flow context on the event port is the HEAD 34 * of the flow-chain. 35 * 36 * @param dev 37 * Event device identifier. 38 * 39 * @param port 40 * Event port identifier. 41 * 42 * @return Status of the currently held flow context 43 * 0 not the head of the flow-chain 44 * 1 head of the flow-chain 45 */ 46 __rte_experimental 47 uint8_t 48 rte_pmd_cnxk_eventdev_is_head(uint8_t dev, uint8_t port); 49 50 #endif 51