coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
txt.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef SECURITY_INTEL_TXT_H_
4 #define SECURITY_INTEL_TXT_H_
5 
6 #include <types.h>
7 
8 /* Error codes */
9 #define ACM_E_TYPE_NOT_MATCH 0x01
10 #define ACM_E_MODULE_SUB_TYPE_WRONG 0x02
11 #define ACM_E_MODULE_VENDOR_NOT_INTEL 0x03
12 #define ACM_E_SIZE_INCORRECT 0x04
13 #define ACM_E_CANT_CALL_GETSEC 0x05
14 #define ACM_E_NOT_FIT_INTO_CPU_ACM_MEM 0x06
15 #define ACM_E_NO_INFO_TABLE 0x07
16 #define ACM_E_NOT_BIOS_ACM 0x08
17 #define ACM_E_UUID_NOT_MATCH 0x09
18 #define ACM_E_PLATFORM_IS_NOT_PROD 0x10
19 
20 void intel_txt_romstage_init(void);
23 int intel_txt_log_acm_error(const uint32_t acm_error);
24 void intel_txt_log_spad(void);
27 void intel_txt_run_sclean(void);
28 int intel_txt_run_bios_acm(const u8 input_params);
29 bool intel_txt_prepare_txt_env(void);
30 /* Allow platform override to skip TXT lockdown, e.g. required for RAS error injection. */
31 bool skip_intel_txt_lockdown(void);
33 
34 #endif /* SECURITY_INTEL_TXT_H_ */
#define __noreturn
Definition: compiler.h:31
unsigned int type
Definition: edid.c:57
unsigned int uint32_t
Definition: stdint.h:14
uint8_t u8
Definition: stdint.h:45
unsigned char uint8_t
Definition: stdint.h:8
void __noreturn txt_reset_platform(void)
Definition: common.c:29
void intel_txt_log_spad(void)
Definition: common.c:101
void intel_txt_log_bios_acm_error(void)
Dump useful informaation about the BIOS ACM state.
Definition: logging.c:58
bool skip_intel_txt_lockdown(void)
Definition: ramstage.c:359
void intel_txt_romstage_init(void)
Definition: romstage.c:84
void intel_txt_run_sclean(void)
Definition: common.c:313
bool intel_txt_memory_has_secrets(void)
Definition: common.c:135
int intel_txt_run_bios_acm(const u8 input_params)
Definition: common.c:353
const char * intel_txt_processor_error_type(uint8_t type)
Definition: logging.c:12
int intel_txt_log_acm_error(const uint32_t acm_error)
Dump the ACM error status bits.
Definition: common.c:49
bool intel_txt_chipset_is_production_fused(void)
Definition: common.c:149
bool intel_txt_prepare_txt_env(void)
Definition: common.c:394