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