xref: /linux/drivers/char/tpm/eventlog/common.h (revision a06c3fad49a50d5d5eb078f93e70f4d3eca5d5a5)
1 #ifndef __TPM_EVENTLOG_COMMON_H__
2 #define __TPM_EVENTLOG_COMMON_H__
3 
4 #include "../tpm.h"
5 
6 extern const struct seq_operations tpm1_ascii_b_measurements_seqops;
7 extern const struct seq_operations tpm1_binary_b_measurements_seqops;
8 extern const struct seq_operations tpm2_binary_b_measurements_seqops;
9 
10 #if defined(CONFIG_ACPI)
11 int tpm_read_log_acpi(struct tpm_chip *chip);
12 #else
13 static inline int tpm_read_log_acpi(struct tpm_chip *chip)
14 {
15 	return -ENODEV;
16 }
17 #endif
18 #if defined(CONFIG_OF)
19 int tpm_read_log_of(struct tpm_chip *chip);
20 #else
21 static inline int tpm_read_log_of(struct tpm_chip *chip)
22 {
23 	return -ENODEV;
24 }
25 #endif
26 #if defined(CONFIG_EFI)
27 int tpm_read_log_efi(struct tpm_chip *chip);
28 #else
29 static inline int tpm_read_log_efi(struct tpm_chip *chip)
30 {
31 	return -ENODEV;
32 }
33 #endif
34 
35 #endif
36