diff options
author | Dat Mach <dmach@nvidia.com> | 2024-06-25 15:07:38 -0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-08-08 01:52:47 +0000 |
commit | b0f43dd3fdec2363e3548ec31eb455dc1c4ac761 (patch) | |
tree | 9f1216154b53ed35d4d2d17721f3745a41066642 /DynamicTablesPkg | |
parent | d24df10cee88c4c011dfe84f7ed66cfb081b8146 (diff) | |
download | edk2-b0f43dd3fdec2363e3548ec31eb455dc1c4ac761.tar.gz edk2-b0f43dd3fdec2363e3548ec31eb455dc1c4ac761.tar.bz2 edk2-b0f43dd3fdec2363e3548ec31eb455dc1c4ac761.zip |
DynamicTablesPkg: Add parser for Tpm2 CM object
Update the CM Object parser to add support for parsing the
CM_ARM_TPM2_INTERFACE_INFO object.
Signed-off-by: Dat Mach <dmach@nvidia.com>
Diffstat (limited to 'DynamicTablesPkg')
-rw-r--r-- | DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c index 0c66961566..eceb91a6d8 100644 --- a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c +++ b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c @@ -665,6 +665,18 @@ STATIC CONST CM_OBJ_PARSER CmArchCommonPsdInfoParser[] = { { "NumProc", 4, "0x%x", NULL },
};
+/** A parser for EArchCommonObjTpm2InterfaceInfo.
+*/
+STATIC CONST CM_OBJ_PARSER CmArchCommonTpm2InterfaceInfo[] = {
+ { "PlatformClass", sizeof (UINT16), "0x%x", NULL },
+ { "AddressOfControlArea", sizeof (UINT64), "0x%llx", NULL },
+ { "StartMethod", sizeof (UINT32), "0x%x", NULL },
+ { "StartMethodParametersSize", sizeof (UINT8), "0x%x", NULL },
+ { "StartMethodParameters", EFI_TPM2_ACPI_TABLE_START_METHOD_SPECIFIC_PARAMETERS_MAX_SIZE, NULL, HexDump },
+ { "Laml", sizeof (UINT32), "0x%x", NULL },
+ { "Lasa", sizeof (UINT64), "0x%llx", NULL },
+};
+
/** A parser for Arch Common namespace objects.
*/
STATIC CONST CM_OBJ_PARSER_ARRAY ArchCommonNamespaceObjectParser[] = {
@@ -694,6 +706,7 @@ STATIC CONST CM_OBJ_PARSER_ARRAY ArchCommonNamespaceObjectParser[] = { CM_PARSER_ADD_OBJECT (EArchCommonObjPccSubspaceType4Info, CmArchCommonPccSubspaceType34InfoParser),
CM_PARSER_ADD_OBJECT (EArchCommonObjPccSubspaceType5Info, CmArchCommonPccSubspaceType5InfoParser),
CM_PARSER_ADD_OBJECT (EArchCommonObjPsdInfo, CmArchCommonPsdInfoParser),
+ CM_PARSER_ADD_OBJECT (EArchCommonObjTpm2InterfaceInfo, CmArchCommonTpm2InterfaceInfo),
CM_PARSER_ADD_OBJECT_RESERVED (EArchCommonObjMax)
};
|