From 46eb0ca29bf6bd84381af8506e0d9b1755f767d9 Mon Sep 17 00:00:00 2001 From: Shenbagadevi R Date: Thu, 2 May 2024 15:39:19 +0530 Subject: [PATCH] ShellPkg: Changes to print Type17 in Smbiosview Add changes to print PMIC and RCD details of Smbios Type17 in Shell smbiosview command. Cc: Gaoliming Cc: Sainadh N Cc: Sundaresan S Cc: Srinivasan M Cc: Ramesh R Cc: Karthika R Signed-off-by: Shenbagadevi R Reviewed-by: Giri Mudusuru --- .../UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c index 35369f0183..e5a742950d 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c @@ -903,6 +903,13 @@ SmbiosPrintStructure ( ShellPrintEx (-1, -1, L"Extended Configured Memory Speed: 0x%x\n", Struct->Type17->ExtendedConfiguredMemorySpeed); } + if (AE_SMBIOS_VERSION (0x3, 0x7) && (Struct->Hdr->Length > 0x5C)) { + ShellPrintEx (-1, -1, L"PMIC0 Manufacturer ID: 0x%x\n", Struct->Type17->Pmic0ManufacturerID); + ShellPrintEx (-1, -1, L"PMIC0 Revision Number: 0x%x\n", Struct->Type17->Pmic0RevisionNumber); + ShellPrintEx (-1, -1, L"RCD Manufacturer ID: 0x%x\n", Struct->Type17->RcdManufacturerID); + ShellPrintEx (-1, -1, L"RCD Revision Number: 0x%x\n", Struct->Type17->RcdRevisionNumber); + } + break; //