Linux 4.18.10
[linux/fpc-iii.git] / drivers / char / tpm / eventlog / common.h
blob47ff8136ceb539a6077af3d81cb4de1aa97abb34
1 #ifndef __TPM_EVENTLOG_COMMON_H__
2 #define __TPM_EVENTLOG_COMMON_H__
4 #include "../tpm.h"
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;
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)
15 return -ENODEV;
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)
23 return -ENODEV;
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)
31 return -ENODEV;
33 #endif
35 #endif