1 /* SPDX-License-Identifier: BSD-3-Clause */ 2 /* Copyright(c) 2007-2022 Intel Corporation */ 3 /* $FreeBSD$ */ 4 #ifndef ADF_CFG_USER_H_ 5 #define ADF_CFG_USER_H_ 6 7 #include "adf_cfg_common.h" 8 #include "adf_cfg_strings.h" 9 10 struct adf_user_cfg_key_val { 11 char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES]; 12 char val[ADF_CFG_MAX_VAL_LEN_IN_BYTES]; 13 union { 14 struct adf_user_cfg_key_val *next; 15 uint64_t padding3; 16 }; 17 enum adf_cfg_val_type type; 18 }; 19 20 struct adf_user_cfg_section { 21 char name[ADF_CFG_MAX_SECTION_LEN_IN_BYTES]; 22 union { 23 struct adf_user_cfg_key_val *params; 24 uint64_t padding1; 25 }; 26 union { 27 struct adf_user_cfg_section *next; 28 uint64_t padding3; 29 }; 30 }; 31 32 struct adf_user_cfg_ctl_data { 33 union { 34 struct adf_user_cfg_section *config_section; 35 uint64_t padding; 36 }; 37 u32 device_id; 38 }; 39 40 struct adf_user_reserve_ring { 41 u32 accel_id; 42 u32 bank_nr; 43 u32 ring_mask; 44 }; 45 46 #endif 47