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 int read_log(struct tpm_bios_log
*log
);
78 #if defined(CONFIG_TCG_IBMVTPM) || defined(CONFIG_TCG_IBMVTPM_MODULE) || \
80 extern struct dentry
**tpm_bios_log_setup(char *);
81 extern void tpm_bios_log_teardown(struct dentry
**);
83 static inline struct dentry
**tpm_bios_log_setup(char *name
)
87 static inline void tpm_bios_log_teardown(struct dentry
**dir
)