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