diff options
Diffstat (limited to 'include/linux/tpm.h')
| -rw-r--r-- | include/linux/tpm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/tpm.h b/include/linux/tpm.h index 06639fb6ab85..4609b94142d4 100644 --- a/include/linux/tpm.h +++ b/include/linux/tpm.h | |||
| @@ -43,6 +43,8 @@ struct tpm_class_ops { | |||
| 43 | u8 (*status) (struct tpm_chip *chip); | 43 | u8 (*status) (struct tpm_chip *chip); |
| 44 | bool (*update_timeouts)(struct tpm_chip *chip, | 44 | bool (*update_timeouts)(struct tpm_chip *chip, |
| 45 | unsigned long *timeout_cap); | 45 | unsigned long *timeout_cap); |
| 46 | int (*go_idle)(struct tpm_chip *chip); | ||
| 47 | int (*cmd_ready)(struct tpm_chip *chip); | ||
| 46 | int (*request_locality)(struct tpm_chip *chip, int loc); | 48 | int (*request_locality)(struct tpm_chip *chip, int loc); |
| 47 | int (*relinquish_locality)(struct tpm_chip *chip, int loc); | 49 | int (*relinquish_locality)(struct tpm_chip *chip, int loc); |
| 48 | void (*clk_enable)(struct tpm_chip *chip, bool value); | 50 | void (*clk_enable)(struct tpm_chip *chip, bool value); |
| @@ -61,6 +63,7 @@ extern int tpm_seal_trusted(struct tpm_chip *chip, | |||
| 61 | extern int tpm_unseal_trusted(struct tpm_chip *chip, | 63 | extern int tpm_unseal_trusted(struct tpm_chip *chip, |
| 62 | struct trusted_key_payload *payload, | 64 | struct trusted_key_payload *payload, |
| 63 | struct trusted_key_options *options); | 65 | struct trusted_key_options *options); |
| 66 | extern struct tpm_chip *tpm_default_chip(void); | ||
| 64 | #else | 67 | #else |
| 65 | static inline int tpm_is_tpm2(struct tpm_chip *chip) | 68 | static inline int tpm_is_tpm2(struct tpm_chip *chip) |
| 66 | { | 69 | { |
| @@ -96,5 +99,9 @@ static inline int tpm_unseal_trusted(struct tpm_chip *chip, | |||
| 96 | { | 99 | { |
| 97 | return -ENODEV; | 100 | return -ENODEV; |
| 98 | } | 101 | } |
| 102 | static inline struct tpm_chip *tpm_default_chip(void) | ||
| 103 | { | ||
| 104 | return NULL; | ||
| 105 | } | ||
| 99 | #endif | 106 | #endif |
| 100 | #endif | 107 | #endif |
