Philipp Deppenwiese | 5f9f776 | 2018-11-20 14:22:15 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #ifndef SECURITY_INTEL_TXT_GETSEC_H_ |
| 4 | #define SECURITY_INTEL_TXT_GETSEC_H_ |
| 5 | |
Angel Pons | 52082be | 2020-10-05 12:34:29 +0200 | [diff] [blame] | 6 | #include <types.h> |
Philipp Deppenwiese | 5f9f776 | 2018-11-20 14:22:15 +0100 | [diff] [blame] | 7 | |
Angel Pons | 0149025 | 2020-10-21 00:19:00 +0200 | [diff] [blame] | 8 | void enable_getsec_or_reset(void); |
| 9 | |
Philipp Deppenwiese | 5f9f776 | 2018-11-20 14:22:15 +0100 | [diff] [blame] | 10 | bool 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 | |
| 17 | bool getsec_capabilities(uint32_t *eax); |
| 18 | |
| 19 | void getsec_enteraccs(const uint32_t esi, |
| 20 | const uint32_t acm_base, |
| 21 | const uint32_t acm_size); |
| 22 | |
Angel Pons | 5725ee4 | 2020-10-21 00:23:29 +0200 | [diff] [blame] | 23 | void getsec_sclean(const uint32_t acm_base, |
| 24 | const uint32_t acm_size); |
| 25 | |
Philipp Deppenwiese | 5f9f776 | 2018-11-20 14:22:15 +0100 | [diff] [blame] | 26 | #endif /* SECURITY_INTEL_TXT_REGISTER_H_ */ |