mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
75d647f5de
Reduce the size of tpm.h by moving eventlog declarations to a separate header. Signed-off-by: Thiebaud Weksteen <tweek@google.com> Suggested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
35 lines
791 B
C
35 lines
791 B
C
#ifndef __TPM_EVENTLOG_COMMON_H__
|
|
#define __TPM_EVENTLOG_COMMON_H__
|
|
|
|
#include "../tpm.h"
|
|
|
|
extern const struct seq_operations tpm1_ascii_b_measurements_seqops;
|
|
extern const struct seq_operations tpm1_binary_b_measurements_seqops;
|
|
extern const struct seq_operations tpm2_binary_b_measurements_seqops;
|
|
|
|
#if defined(CONFIG_ACPI)
|
|
int tpm_read_log_acpi(struct tpm_chip *chip);
|
|
#else
|
|
static inline int tpm_read_log_acpi(struct tpm_chip *chip)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
#endif
|
|
#if defined(CONFIG_OF)
|
|
int tpm_read_log_of(struct tpm_chip *chip);
|
|
#else
|
|
static inline int tpm_read_log_of(struct tpm_chip *chip)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
#endif
|
|
#if defined(CONFIG_EFI)
|
|
int tpm_read_log_efi(struct tpm_chip *chip);
|
|
#else
|
|
static inline int tpm_read_log_efi(struct tpm_chip *chip)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
#endif
|
|
|
|
#endif
|