blob: f949c7d3613dda92e8201619a2de9dc90d244209 [file] [log] [blame]
Philipp Deppenwiese5f9f7762018-11-20 14:22:15 +01001/* SPDX-License-Identifier: GPL-2.0-only */
2
3#ifndef SECURITY_INTEL_TXT_GETSEC_H_
4#define SECURITY_INTEL_TXT_GETSEC_H_
5
Angel Pons52082be2020-10-05 12:34:29 +02006#include <types.h>
Philipp Deppenwiese5f9f7762018-11-20 14:22:15 +01007
Angel Pons01490252020-10-21 00:19:00 +02008void enable_getsec_or_reset(void);
9
Philipp Deppenwiese5f9f7762018-11-20 14:22:15 +010010bool getsec_parameter(uint32_t *version_mask,
11 uint32_t *version_numbers_supported,
12 uint32_t *max_size_acm_area,
13 uint32_t *memory_type_mask,
14 uint32_t *senter_function_disable,
15 uint32_t *txt_feature_flags);
16
17bool getsec_capabilities(uint32_t *eax);
18
19void getsec_enteraccs(const uint32_t esi,
20 const uint32_t acm_base,
21 const uint32_t acm_size);
22
Angel Pons5725ee42020-10-21 00:23:29 +020023void getsec_sclean(const uint32_t acm_base,
24 const uint32_t acm_size);
25
Philipp Deppenwiese5f9f7762018-11-20 14:22:15 +010026#endif /* SECURITY_INTEL_TXT_REGISTER_H_ */