]>
Commit | Line | Data |
---|---|---|
2e61fb38 JY |
1 | /** @file\r |
2 | TPM2 ACPI table definition.\r | |
3 | \r | |
4 | Copyright (c) 2013, Intel Corporation. All rights reserved. <BR>\r | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #ifndef _TPM2_ACPI_H_\r | |
16 | #define _TPM2_ACPI_H_\r | |
17 | \r | |
18 | #include <IndustryStandard/Acpi.h>\r | |
19 | \r | |
20 | #pragma pack (1)\r | |
21 | \r | |
22 | #define EFI_TPM2_ACPI_TABLE_REVISION 3\r | |
23 | \r | |
24 | typedef struct {\r | |
25 | EFI_ACPI_DESCRIPTION_HEADER Header;\r | |
26 | UINT32 Flags;\r | |
27 | UINT64 AddressOfControlArea;\r | |
28 | UINT32 StartMethod;\r | |
29 | //UINT8 PlatformSpecificParameters[];\r | |
30 | } EFI_TPM2_ACPI_TABLE;\r | |
31 | \r | |
32 | #define EFI_TPM2_ACPI_TABLE_START_METHOD_ACPI 2\r | |
33 | #define EFI_TPM2_ACPI_TABLE_START_METHOD_TIS 6\r | |
34 | #define EFI_TPM2_ACPI_TABLE_START_METHOD_COMMAND_RESPONSE_BUFFER_INTERFACE 7\r | |
35 | #define EFI_TPM2_ACPI_TABLE_START_METHOD_COMMAND_RESPONSE_BUFFER_INTERFACE_WITH_ACPI 8\r | |
36 | \r | |
37 | typedef struct {\r | |
38 | UINT32 Reserved;\r | |
39 | UINT32 Error;\r | |
40 | UINT32 Cancel;\r | |
41 | UINT32 Start;\r | |
42 | UINT64 InterruptControl;\r | |
43 | UINT32 CommandSize;\r | |
44 | UINT64 Command;\r | |
45 | UINT32 ResponseSize;\r | |
46 | UINT64 Response;\r | |
47 | } EFI_TPM2_ACPI_CONTROL_AREA;\r | |
48 | \r | |
49 | #pragma pack ()\r | |
50 | \r | |
51 | #endif\r |