1 /* 2 * SPDX-License-Identifier: BSD-3-Clause 3 * Copyright(c) 2023 Napatech A/S 4 */ 5 6 #ifndef _FLOW_API_ENGINE_H_ 7 #define _FLOW_API_ENGINE_H_ 8 9 /* 10 * Resource management 11 */ 12 #define BIT_CONTAINER_8_ALIGN(x) (((x) + 7) / 8) 13 14 /* 15 * Resource management 16 * These are free resources in FPGA 17 * Other FPGA memory lists are linked to one of these 18 * and will implicitly follow them 19 */ 20 enum res_type_e { 21 RES_QUEUE, 22 RES_CAT_CFN, 23 RES_CAT_COT, 24 RES_CAT_EXO, 25 RES_CAT_LEN, 26 RES_KM_FLOW_TYPE, 27 RES_KM_CATEGORY, 28 RES_HSH_RCP, 29 RES_PDB_RCP, 30 RES_QSL_RCP, 31 RES_QSL_QST, 32 RES_SLC_LR_RCP, 33 34 RES_FLM_FLOW_TYPE, 35 RES_FLM_RCP, 36 RES_TPE_RCP, 37 RES_TPE_EXT, 38 RES_TPE_RPL, 39 RES_SCRUB_RCP, 40 RES_COUNT, 41 RES_INVALID 42 }; 43 44 void km_free_ndev_resource_management(void **handle); 45 46 void kcc_free_ndev_resource_management(void **handle); 47 48 #endif /* _FLOW_API_ENGINE_H_ */ 49