2013-09-18 07:29:06 +02:00
|
|
|
/** @file
|
|
|
|
TPM2 ACPI table definition.
|
|
|
|
|
2019-01-25 16:04:38 +01:00
|
|
|
Copyright (c) 2013 - 2019, Intel Corporation. All rights reserved. <BR>
|
2019-04-04 01:06:00 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2013-09-18 07:29:06 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef _TPM2_ACPI_H_
|
|
|
|
#define _TPM2_ACPI_H_
|
|
|
|
|
|
|
|
#include <IndustryStandard/Acpi.h>
|
|
|
|
|
|
|
|
#pragma pack (1)
|
|
|
|
|
2016-12-26 03:50:36 +01:00
|
|
|
#define EFI_TPM2_ACPI_TABLE_REVISION_3 3
|
|
|
|
#define EFI_TPM2_ACPI_TABLE_REVISION_4 4
|
2017-01-11 09:07:08 +01:00
|
|
|
#define EFI_TPM2_ACPI_TABLE_REVISION EFI_TPM2_ACPI_TABLE_REVISION_4
|
2013-09-18 07:29:06 +02:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
EFI_ACPI_DESCRIPTION_HEADER Header;
|
2017-01-11 09:07:08 +01:00
|
|
|
// Flags field is replaced in version 4 and above
|
|
|
|
// BIT0~15: PlatformClass This field is only valid for version 4 and above
|
|
|
|
// BIT16~31: Reserved
|
|
|
|
UINT32 Flags;
|
2013-09-18 07:29:06 +02:00
|
|
|
UINT64 AddressOfControlArea;
|
|
|
|
UINT32 StartMethod;
|
2019-01-25 16:04:38 +01:00
|
|
|
//UINT8 PlatformSpecificParameters[]; // size up to 12
|
|
|
|
//UINT32 Laml; // Optional
|
2019-09-28 13:52:22 +02:00
|
|
|
//UINT64 Lasa; // Optional
|
2013-09-18 07:29:06 +02:00
|
|
|
} EFI_TPM2_ACPI_TABLE;
|
|
|
|
|
|
|
|
#define EFI_TPM2_ACPI_TABLE_START_METHOD_ACPI 2
|
|
|
|
#define EFI_TPM2_ACPI_TABLE_START_METHOD_TIS 6
|
|
|
|
#define EFI_TPM2_ACPI_TABLE_START_METHOD_COMMAND_RESPONSE_BUFFER_INTERFACE 7
|
|
|
|
#define EFI_TPM2_ACPI_TABLE_START_METHOD_COMMAND_RESPONSE_BUFFER_INTERFACE_WITH_ACPI 8
|
2019-01-25 16:04:38 +01:00
|
|
|
#define EFI_TPM2_ACPI_TABLE_START_METHOD_COMMAND_RESPONSE_BUFFER_INTERFACE_WITH_SMC 11
|
2013-09-18 07:29:06 +02:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
UINT32 Reserved;
|
|
|
|
UINT32 Error;
|
|
|
|
UINT32 Cancel;
|
|
|
|
UINT32 Start;
|
|
|
|
UINT64 InterruptControl;
|
|
|
|
UINT32 CommandSize;
|
|
|
|
UINT64 Command;
|
|
|
|
UINT32 ResponseSize;
|
|
|
|
UINT64 Response;
|
|
|
|
} EFI_TPM2_ACPI_CONTROL_AREA;
|
|
|
|
|
|
|
|
#pragma pack ()
|
|
|
|
|
|
|
|
#endif
|