summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--SecurityPkg/Include/Guid/Tcg2AcpiCommunicateBuffer.h33
-rw-r--r--SecurityPkg/SecurityPkg.dec3
2 files changed, 36 insertions, 0 deletions
diff --git a/SecurityPkg/Include/Guid/Tcg2AcpiCommunicateBuffer.h b/SecurityPkg/Include/Guid/Tcg2AcpiCommunicateBuffer.h
new file mode 100644
index 0000000..c1d8c2d
--- /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.<BR>
+
+ 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 65f3587..1fa9a56 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