ShellPkg: AcpiView: TPM2 parser for Arm FF-A

Add support for the ARM FF-A Start Method Specific Parameters to the TPM2
parser

Signed-off-by: Sarah Walker <Sarah.Walker2@arm.com>
This commit is contained in:
Sarah Walker 2025-01-02 14:11:06 +00:00 committed by Liming Gao
parent 14f5e9b098
commit 8593eca048

View File

@ -56,6 +56,16 @@ STATIC CONST ACPI_PARSER Tpm2StartMethodArmSmc[] = {
{ L"SMC/HVC Function ID", 4, 8, L"0x%x", NULL, NULL, NULL, NULL }, { L"SMC/HVC Function ID", 4, 8, L"0x%x", NULL, NULL, NULL, NULL },
}; };
/**
An ACPI_PARSER array describing the Start Method Specific Parameters for Arm FF-A table.
**/
STATIC CONST ACPI_PARSER Tpm2StartMethodArmFFA[] = {
{ L"Flags", 1, 0, L"0x%x", NULL, NULL, NULL, NULL },
{ L"Attributes", 1, 1, L"0x%x", NULL, NULL, NULL, NULL },
{ L"Partition ID", 2, 2, L"0x%x", NULL, NULL, NULL, NULL },
{ L"Reserved", 8, 4, L"0x%lx", NULL, NULL, NULL, NULL },
};
/** /**
This function parses the ACPI TPM2 table. This function parses the ACPI TPM2 table.
When trace is enabled this function parses the TPM2 table and When trace is enabled this function parses the TPM2 table and
@ -109,6 +119,17 @@ ParseAcpiTpm2 (
); );
break; break;
case EFI_TPM2_ACPI_TABLE_START_METHOD_COMMAND_RESPONSE_BUFFER_INTERFACE_WITH_FFA:
ParseAcpi (
TRUE,
0,
"Start Method Specific Parameters for Arm FF-A",
Ptr + Offset,
AcpiTableLength - Offset,
PARSER_PARAMS (Tpm2StartMethodArmFFA)
);
break;
default: default:
Print ( Print (
L"WARNING: Start Method %u not supported\n", L"WARNING: Start Method %u not supported\n",