xref: /linux/drivers/crypto/intel/qat/qat_common/adf_cfg_user.h (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1 /* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) */
2 /* Copyright(c) 2014 - 2020 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 		__u64 padding3;
15 	};
16 	enum adf_cfg_val_type type;
17 } __packed;
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 		__u64 padding1;
24 	};
25 	union {
26 		struct adf_user_cfg_section *next;
27 		__u64 padding3;
28 	};
29 } __packed;
30 
31 struct adf_user_cfg_ctl_data {
32 	union {
33 		struct adf_user_cfg_section *config_section;
34 		__u64 padding;
35 	};
36 	__u8 device_id;
37 } __packed;
38 #endif
39