diff options
author | Bob Moore <robert.moore@intel.com> | 2012-12-30 19:05:52 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-10 06:36:20 -0500 |
commit | 99c93f55a5eeccdc902da0396a8f9b4ec8a55c63 (patch) | |
tree | 1b1e9338a8f949572ed49f0526491246df6092f0 | |
parent | c41679a4481d5bf9908d99644d47b2e8ff6f028f (diff) |
ACPICA: Add header file support for the ACPI 5 TPM2 ACPI table.
Reserved in ACPI 5.0 specification, but defined in a November
2011 Microsoft document.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | include/acpi/actbl3.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/acpi/actbl3.h b/include/acpi/actbl3.h index 6585141e4b97..a067d7d0df7d 100644 --- a/include/acpi/actbl3.h +++ b/include/acpi/actbl3.h | |||
@@ -68,6 +68,7 @@ | |||
68 | #define ACPI_SIG_PCCT "PCCT" /* Platform Communications Channel Table */ | 68 | #define ACPI_SIG_PCCT "PCCT" /* Platform Communications Channel Table */ |
69 | #define ACPI_SIG_PMTT "PMTT" /* Platform Memory Topology Table */ | 69 | #define ACPI_SIG_PMTT "PMTT" /* Platform Memory Topology Table */ |
70 | #define ACPI_SIG_RASF "RASF" /* RAS Feature table */ | 70 | #define ACPI_SIG_RASF "RASF" /* RAS Feature table */ |
71 | #define ACPI_SIG_TPM2 "TPM2" /* Trusted Platform Module 2.0 H/W interface table */ | ||
71 | 72 | ||
72 | #define ACPI_SIG_S3PT "S3PT" /* S3 Performance (sub)Table */ | 73 | #define ACPI_SIG_S3PT "S3PT" /* S3 Performance (sub)Table */ |
73 | #define ACPI_SIG_PCCS "PCC" /* PCC Shared Memory Region */ | 74 | #define ACPI_SIG_PCCS "PCC" /* PCC Shared Memory Region */ |
@@ -550,6 +551,36 @@ enum acpi_rasf_status { | |||
550 | #define ACPI_RASF_ERROR (1<<2) | 551 | #define ACPI_RASF_ERROR (1<<2) |
551 | #define ACPI_RASF_STATUS (0x1F<<3) | 552 | #define ACPI_RASF_STATUS (0x1F<<3) |
552 | 553 | ||
554 | /******************************************************************************* | ||
555 | * | ||
556 | * TPM2 - Trusted Platform Module (TPM) 2.0 Hardware Interface Table | ||
557 | * Version 3 | ||
558 | * | ||
559 | * Conforms to "TPM 2.0 Hardware Interface Table (TPM2)" 29 November 2011 | ||
560 | * | ||
561 | ******************************************************************************/ | ||
562 | |||
563 | struct acpi_table_tpm2 { | ||
564 | struct acpi_table_header header; /* Common ACPI table header */ | ||
565 | u32 flags; | ||
566 | u64 control_address; | ||
567 | u32 start_method; | ||
568 | }; | ||
569 | |||
570 | /* Control area structure (not part of table, pointed to by control_address) */ | ||
571 | |||
572 | struct acpi_tpm2_control { | ||
573 | u32 reserved; | ||
574 | u32 error; | ||
575 | u32 cancel; | ||
576 | u32 start; | ||
577 | u64 interrupt_control; | ||
578 | u32 command_size; | ||
579 | u64 command_address; | ||
580 | u32 response_size; | ||
581 | u64 response_address; | ||
582 | }; | ||
583 | |||
553 | /* Reset to default packing */ | 584 | /* Reset to default packing */ |
554 | 585 | ||
555 | #pragma pack() | 586 | #pragma pack() |