From cb6ba975ae54f8eb915136264bf040d52d7bc2b4 Mon Sep 17 00:00:00 2001 From: Dun Tan Date: Mon, 3 Jun 2024 17:42:10 +0800 Subject: SecurityPkg: Add new gEdkiiTcg2AcpiCommunicateBufferHobGuid Add a new GUID HOB gEdkiiTcg2AcpiCommunicateBufferHobGuid. This Tcg2 Acpi Communicate Buffer HOB is used to store the address of a buffer reserved for Tcg2Acpi driver. The buffer will be used to retrive information from Standalone mm environment. Signed-off-by: Dun Tan --- .../Include/Guid/Tcg2AcpiCommunicateBuffer.h | 33 ++++++++++++++++++++++ SecurityPkg/SecurityPkg.dec | 3 ++ 2 files changed, 36 insertions(+) create mode 100644 SecurityPkg/Include/Guid/Tcg2AcpiCommunicateBuffer.h (limited to 'SecurityPkg') diff --git a/SecurityPkg/Include/Guid/Tcg2AcpiCommunicateBuffer.h b/SecurityPkg/Include/Guid/Tcg2AcpiCommunicateBuffer.h new file mode 100644 index 0000000000..c1d8c2d6f5 --- /dev/null +++ b/SecurityPkg/Include/Guid/Tcg2AcpiCommunicateBuffer.h @@ -0,0 +1,33 @@ +/** @file + This Tcg2 Acpi Communicate Buffer HOB is used to store the address + of a buffer reserved for Tcg2Acpi driver. The buffer will be used to + retrive information from standalone mm environment. + + Copyright (c) 2024, Intel Corporation. All rights reserved.
+ + SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#ifndef TCG2_ACPI_COMMUNICATE_BUFFER_H_ +#define TCG2_ACPI_COMMUNICATE_BUFFER_H_ + +#define TCG2_ACPI_COMMUNICATE_BUFFER_HOB_REVISION 1 + +#define TCG2_ACPI_COMMUNICATE_BUFFER_GUID \ + { \ + 0xcefea14f, 0x9f1a, 0x4774, {0x8d, 0x18, 0x79, 0x93, 0x8d, 0x48, 0xfe, 0x7d} \ + } + +typedef struct { + /// + /// Base address of the buffer reserved for Tcg2Acpi driver. + /// Tcg2Acpi will use it to exchange information with Tcg2StandaloneMm. + /// + EFI_PHYSICAL_ADDRESS Tcg2AcpiCommunicateBuffer; + UINT64 Pages; +} TCG2_ACPI_COMMUNICATE_BUFFER; + +extern EFI_GUID gEdkiiTcg2AcpiCommunicateBufferHobGuid; + +#endif diff --git a/SecurityPkg/SecurityPkg.dec b/SecurityPkg/SecurityPkg.dec index 65f3587c48..1fa9a567da 100644 --- a/SecurityPkg/SecurityPkg.dec +++ b/SecurityPkg/SecurityPkg.dec @@ -238,6 +238,9 @@ ## The GUIDed HOB contains the same value as PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer). gEdkiiTcgPhysicalPresenceInterfaceVerHobGuid = { 0x3979411a, 0x4e6d, 0x47e4, { 0x94, 0x4b, 0x0e, 0xcc, 0x6c, 0xf6, 0xc0, 0xcd } } + ## Include/Guid/Tcg2AcpiCommunicateBuffer.h + gEdkiiTcg2AcpiCommunicateBufferHobGuid = { 0xcefea14f, 0x9f1a, 0x4774, { 0x8d, 0x18, 0x79, 0x93, 0x8d, 0x48, 0xfe, 0x7d } } + [Ppis] ## The PPI GUID for that TPM physical presence should be locked. # Include/Ppi/LockPhysicalPresence.h -- cgit v1.2.3