diff options
author | Xiaoyan Zhang <xiaoyan.zhang@intel.com> | 2012-08-22 06:47:22 -0400 |
---|---|---|
committer | Kent Yoder <key@linux.vnet.ibm.com> | 2012-08-22 17:23:42 -0400 |
commit | f84fdff0fdcda7e509ce530e0ee612233a2104fb (patch) | |
tree | 6af900776de08b9610f383eb741681366e800e9a /drivers/char/tpm/tpm.h | |
parent | 1f862f0f96abdf8b030bda84d6b66d676f31785f (diff) |
driver: add PPI support in tpm driver
The Physical Presence Interface enables the OS and the BIOS to cooperate and
provides a simple and straightforward platform user experience for
administering the TPM without sacrificing security.
V2: separate the patch out in a separate source file,
add #ifdef CONFIG_ACPI so it compiles out on ppc,
use standard error instead of ACPI error as return code of show/store fns.
V3: move #ifdef CONFIG_ACPI from .c file to .h file.
V4: move tpm_ppi code from tpm module to tpm_bios module.
V5: modify sys_add_ppi() so that ppi_attr_grp doesn't need to be exported
Signed-off-by: Xiaoyan Zhang <xiaoyan.zhang@intel.com>
Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>
Diffstat (limited to 'drivers/char/tpm/tpm.h')
-rw-r--r-- | drivers/char/tpm/tpm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h index f1af73821101..02c266aa2bf7 100644 --- a/drivers/char/tpm/tpm.h +++ b/drivers/char/tpm/tpm.h | |||
@@ -327,3 +327,12 @@ extern int tpm_pm_suspend(struct device *); | |||
327 | extern int tpm_pm_resume(struct device *); | 327 | extern int tpm_pm_resume(struct device *); |
328 | extern int wait_for_tpm_stat(struct tpm_chip *, u8, unsigned long, | 328 | extern int wait_for_tpm_stat(struct tpm_chip *, u8, unsigned long, |
329 | wait_queue_head_t *); | 329 | wait_queue_head_t *); |
330 | |||
331 | #ifdef CONFIG_ACPI | ||
332 | extern ssize_t sys_add_ppi(struct kobject *parent); | ||
333 | #else | ||
334 | static inline ssize_t sys_add_ppi(struct kobject *parent) | ||
335 | { | ||
336 | return 0; | ||
337 | } | ||
338 | #endif | ||