aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/qat/qat_common/adf_cfg_user.h
blob: 86b4a3e3f355c434f655b3120b10ce3f93173b8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) */
/* Copyright(c) 2014 - 2020 Intel Corporation */
#ifndef ADF_CFG_USER_H_
#define ADF_CFG_USER_H_

#include "adf_cfg_common.h"
#include "adf_cfg_strings.h"

struct adf_user_cfg_key_val {
	char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES];
	char val[ADF_CFG_MAX_VAL_LEN_IN_BYTES];
	union {
		struct adf_user_cfg_key_val *next;
		uint64_t padding3;
	};
	enum adf_cfg_val_type type;
} __packed;

struct adf_user_cfg_section {
	char name[ADF_CFG_MAX_SECTION_LEN_IN_BYTES];
	union {
		struct adf_user_cfg_key_val *params;
		uint64_t padding1;
	};
	union {
		struct adf_user_cfg_section *next;
		uint64_t padding3;
	};
} __packed;

struct adf_user_cfg_ctl_data {
	union {
		struct adf_user_cfg_section *config_section;
		uint64_t padding;
	};
	uint8_t device_id;
} __packed;
#endif