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:
committed by
mergify[bot]
parent
8d2012035d
commit
bf2b99990e
@@ -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.
|
||||
//
|
||||
|
Reference in New Issue
Block a user