aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/tpm.h
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2018-08-28 12:58:03 -0400
committerTony Lindgren <tony@atomide.com>2018-08-28 12:58:03 -0400
commitea4d65f14f6aaa53e379b93c5544245ef081b3e7 (patch)
treea15485f4f1cf547a52b31fa8e16e14b9579b7200 /include/linux/tpm.h
parentce32d59ee2cd036f6e8a6ed17a06a0b0bec5c67c (diff)
parent496f3347d834aec91c38b45d6249ed00f58ad233 (diff)
Merge branch 'perm-fix' into omap-for-v4.19/fixes-v2
Diffstat (limited to 'include/linux/tpm.h')
-rw-r--r--include/linux/tpm.h7
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,
61extern int tpm_unseal_trusted(struct tpm_chip *chip, 63extern 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);
66extern struct tpm_chip *tpm_default_chip(void);
64#else 67#else
65static inline int tpm_is_tpm2(struct tpm_chip *chip) 68static 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}
102static inline struct tpm_chip *tpm_default_chip(void)
103{
104 return NULL;
105}
99#endif 106#endif
100#endif 107#endif