common.h 791 B

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