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' */
9 enum bios_platform_class {
16 void *bios_event_log_end;
22 u8 pcr_value[20]; /* SHA1 */
27 enum tcpa_event_types {
38 PLATFORM_CONFIG_FLAGS,
48 struct tcpa_pc_event {
54 enum tcpa_pc_event_ids {
63 OPTION_ROM_MICROCODE = 10,
67 HOST_TABLE_OF_DEVICES,
70 int read_log(struct tpm_bios_log *log);
72 #if defined(CONFIG_TCG_IBMVTPM) || defined(CONFIG_TCG_IBMVTPM_MODULE) || \
74 extern struct dentry **tpm_bios_log_setup(char *);
75 extern void tpm_bios_log_teardown(struct dentry **);
77 static inline struct dentry **tpm_bios_log_setup(char *name)
81 static inline void tpm_bios_log_teardown(struct dentry **dir)