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