2 #ifndef __TPM_EVENTLOG_H__
3 #define __TPM_EVENTLOG_H__
5 #define TCG_EVENT_NAME_LEN_MAX 255
6 #define MAX_TEXT_EVENT 1000 /* Max event string length */
7 #define ACPI_TCPA_SIG "TCPA" /* 0x41504354 /'TCPA' */
10 #define do_endian_conversion(x) be32_to_cpu(x)
12 #define do_endian_conversion(x) x
15 enum bios_platform_class
{
22 void *bios_event_log_end
;
28 u8 pcr_value
[20]; /* SHA1 */
33 enum tcpa_event_types
{
44 PLATFORM_CONFIG_FLAGS
,
54 struct tcpa_pc_event
{
60 enum tcpa_pc_event_ids
{
69 OPTION_ROM_MICROCODE
= 10,
73 HOST_TABLE_OF_DEVICES
,
76 #if defined(CONFIG_ACPI)
77 int tpm_read_log_acpi(struct tpm_chip
*chip
);
79 static inline int tpm_read_log_acpi(struct tpm_chip
*chip
)
84 #if defined(CONFIG_OF)
85 int tpm_read_log_of(struct tpm_chip
*chip
);
87 static inline int tpm_read_log_of(struct tpm_chip
*chip
)
93 int tpm_bios_log_setup(struct tpm_chip
*chip
);
94 void tpm_bios_log_teardown(struct tpm_chip
*chip
);