diff options
Diffstat (limited to 'drivers/char/tpm/tpm.h')
-rw-r--r-- | drivers/char/tpm/tpm.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h index 9c4163cfa3ce..010547138281 100644 --- a/drivers/char/tpm/tpm.h +++ b/drivers/char/tpm/tpm.h | |||
@@ -38,6 +38,11 @@ enum tpm_addr { | |||
38 | TPM_ADDR = 0x4E, | 38 | TPM_ADDR = 0x4E, |
39 | }; | 39 | }; |
40 | 40 | ||
41 | #define TPM_WARN_DOING_SELFTEST 0x802 | ||
42 | #define TPM_ERR_DEACTIVATED 0x6 | ||
43 | #define TPM_ERR_DISABLED 0x7 | ||
44 | |||
45 | #define TPM_HEADER_SIZE 10 | ||
41 | extern ssize_t tpm_show_pubek(struct device *, struct device_attribute *attr, | 46 | extern ssize_t tpm_show_pubek(struct device *, struct device_attribute *attr, |
42 | char *); | 47 | char *); |
43 | extern ssize_t tpm_show_pcrs(struct device *, struct device_attribute *attr, | 48 | extern ssize_t tpm_show_pcrs(struct device *, struct device_attribute *attr, |
@@ -279,9 +284,9 @@ struct tpm_cmd_t { | |||
279 | 284 | ||
280 | ssize_t tpm_getcap(struct device *, __be32, cap_t *, const char *); | 285 | ssize_t tpm_getcap(struct device *, __be32, cap_t *, const char *); |
281 | 286 | ||
282 | extern void tpm_get_timeouts(struct tpm_chip *); | 287 | extern int tpm_get_timeouts(struct tpm_chip *); |
283 | extern void tpm_gen_interrupt(struct tpm_chip *); | 288 | extern void tpm_gen_interrupt(struct tpm_chip *); |
284 | extern void tpm_continue_selftest(struct tpm_chip *); | 289 | extern int tpm_do_selftest(struct tpm_chip *); |
285 | extern unsigned long tpm_calc_ordinal_duration(struct tpm_chip *, u32); | 290 | extern unsigned long tpm_calc_ordinal_duration(struct tpm_chip *, u32); |
286 | extern struct tpm_chip* tpm_register_hardware(struct device *, | 291 | extern struct tpm_chip* tpm_register_hardware(struct device *, |
287 | const struct tpm_vendor_specific *); | 292 | const struct tpm_vendor_specific *); |
@@ -294,7 +299,8 @@ extern ssize_t tpm_read(struct file *, char __user *, size_t, loff_t *); | |||
294 | extern void tpm_remove_hardware(struct device *); | 299 | extern void tpm_remove_hardware(struct device *); |
295 | extern int tpm_pm_suspend(struct device *, pm_message_t); | 300 | extern int tpm_pm_suspend(struct device *, pm_message_t); |
296 | extern int tpm_pm_resume(struct device *); | 301 | extern int tpm_pm_resume(struct device *); |
297 | 302 | extern int wait_for_tpm_stat(struct tpm_chip *, u8, unsigned long, | |
303 | wait_queue_head_t *); | ||
298 | #ifdef CONFIG_ACPI | 304 | #ifdef CONFIG_ACPI |
299 | extern struct dentry ** tpm_bios_log_setup(char *); | 305 | extern struct dentry ** tpm_bios_log_setup(char *); |
300 | extern void tpm_bios_log_teardown(struct dentry **); | 306 | extern void tpm_bios_log_teardown(struct dentry **); |