Skip to content

Commit

Permalink
DynamicTablesPkg: Add parser for Tpm2 CM object
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
nvidia-dmach committed Jul 26, 2024
1 parent 6201226 commit c75c0ec
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,18 @@ STATIC CONST CM_OBJ_PARSER CmArmPsdInfoParser[] = {
{ "NumProc", 4, "0x%x", NULL },
};

/** A parser for EArmObjTpm2InterfaceInfo.
*/
STATIC CONST CM_OBJ_PARSER CmArmTpm2InterfaceInfo[] = {
{ "PlatformClass", sizeof (UINT16), "0x%x", NULL },
{ "AddressOfControlArea", sizeof (UINT64), "0x%llx", NULL },
{ "StartMethod", sizeof (UINT32), "0x%x", NULL },
{ "StartMethodParameters", EFI_TPM2_ACPI_TABLE_START_METHOD_SPECIFIC_PARAMETERS_MAX_SIZE, NULL, HexDump },
{ "StartMethodParametersSize", sizeof (UINT8), "0x%x", NULL },
{ "Laml", sizeof (UINT32), "0x%x", NULL },
{ "Lasa", sizeof (UINT64), "0x%llx", NULL },
};

/** A parser for Arm namespace objects.
*/
STATIC CONST CM_OBJ_PARSER_ARRAY ArmNamespaceObjectParser[] = {
Expand Down Expand Up @@ -776,6 +788,8 @@ STATIC CONST CM_OBJ_PARSER_ARRAY ArmNamespaceObjectParser[] = {
ARRAY_SIZE (CmArmEtInfo) },
{ "EArmObjPsdInfo", CmArmPsdInfoParser,
ARRAY_SIZE (CmArmPsdInfoParser) },
{ "EArmObjTpm2InterfaceInfo", CmArmTpm2InterfaceInfo,
ARRAY_SIZE (CmArmTpm2InterfaceInfo) },
{ "EArmObjMax", NULL, 0 },
};

Expand Down

0 comments on commit c75c0ec

Please sign in to comment.