Skip to content

Commit 8593eca

Browse files
sarah-walker-armlgao4
authored andcommitted
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 <[email protected]>
1 parent 14f5e9b commit 8593eca

File tree

1 file changed

+21
-0
lines changed
  • ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Tpm2

1 file changed

+21
-0
lines changed

ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Tpm2/Tpm2Parser.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@ STATIC CONST ACPI_PARSER Tpm2StartMethodArmSmc[] = {
5656
{ L"SMC/HVC Function ID", 4, 8, L"0x%x", NULL, NULL, NULL, NULL },
5757
};
5858

59+
/**
60+
An ACPI_PARSER array describing the Start Method Specific Parameters for Arm FF-A table.
61+
**/
62+
STATIC CONST ACPI_PARSER Tpm2StartMethodArmFFA[] = {
63+
{ L"Flags", 1, 0, L"0x%x", NULL, NULL, NULL, NULL },
64+
{ L"Attributes", 1, 1, L"0x%x", NULL, NULL, NULL, NULL },
65+
{ L"Partition ID", 2, 2, L"0x%x", NULL, NULL, NULL, NULL },
66+
{ L"Reserved", 8, 4, L"0x%lx", NULL, NULL, NULL, NULL },
67+
};
68+
5969
/**
6070
This function parses the ACPI TPM2 table.
6171
When trace is enabled this function parses the TPM2 table and
@@ -109,6 +119,17 @@ ParseAcpiTpm2 (
109119
);
110120
break;
111121

122+
case EFI_TPM2_ACPI_TABLE_START_METHOD_COMMAND_RESPONSE_BUFFER_INTERFACE_WITH_FFA:
123+
ParseAcpi (
124+
TRUE,
125+
0,
126+
"Start Method Specific Parameters for Arm FF-A",
127+
Ptr + Offset,
128+
AcpiTableLength - Offset,
129+
PARSER_PARAMS (Tpm2StartMethodArmFFA)
130+
);
131+
break;
132+
112133
default:
113134
Print (
114135
L"WARNING: Start Method %u not supported\n",

0 commit comments

Comments
 (0)