ArmPkg: Allow platforms to supply more data for SMBIOS Type3 record

Add OemMiscLib calls to allow platforms to provide the following
information about the chassis:

o Bootup state
o Power supply/supplies state
o Thermal state
o Security state
o Chassis height (in RMU)
o Number of power cords

Signed-off-by: Rebecca Cran <rebecca@nuviainc.com>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
This commit is contained in:
Rebecca Cran
2021-03-30 20:16:16 -06:00
committed by mergify[bot]
parent 8d2012035d
commit bf2b99990e
3 changed files with 152 additions and 0 deletions

View File

@@ -162,6 +162,14 @@ SMBIOS_MISC_TABLE_FUNCTION(MiscChassisManufacturer)
UnicodeStrToAsciiStrS (AssertTag, StrStart, AssertTagStrLen + 1);
StrStart += AssertTagStrLen + 1;
UnicodeStrToAsciiStrS (ChassisSkuNumber, StrStart, ChaNumStrLen + 1);
SmbiosRecord->BootupState = OemGetChassisBootupState ();
SmbiosRecord->PowerSupplyState = OemGetChassisPowerSupplyState ();
SmbiosRecord->ThermalState = OemGetChassisThermalState ();
SmbiosRecord->SecurityStatus = OemGetChassisSecurityStatus ();
SmbiosRecord->Height = OemGetChassisHeight ();
SmbiosRecord->NumberofPowerCords = OemGetChassisNumPowerCords ();
//
// Now we have got the full smbios record, call smbios protocol to add this record.
//