36 lines · c
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#else13static inline int tpm_read_log_acpi(struct tpm_chip *chip)14{15 return -ENODEV;16}17#endif18#if defined(CONFIG_OF)19int tpm_read_log_of(struct tpm_chip *chip);20#else21static inline int tpm_read_log_of(struct tpm_chip *chip)22{23 return -ENODEV;24}25#endif26#if defined(CONFIG_EFI)27int tpm_read_log_efi(struct tpm_chip *chip);28#else29static inline int tpm_read_log_efi(struct tpm_chip *chip)30{31 return -ENODEV;32}33#endif34 35#endif36