IN OEM_MISC_SMBIOS_HII_STRING_FIELD Field\r
);\r
\r
+/** Fetches the chassis status when it was last booted.\r
+\r
+ @return Chassis status.\r
+**/\r
+MISC_CHASSIS_STATE\r
+EFIAPI\r
+OemGetChassisBootupState (\r
+ VOID\r
+ );\r
+\r
+/** Fetches the chassis power supply/supplies status when last booted.\r
+\r
+ @return Chassis power supply/supplies status.\r
+**/\r
+MISC_CHASSIS_STATE\r
+EFIAPI\r
+OemGetChassisPowerSupplyState (\r
+ VOID\r
+ );\r
+\r
+/** Fetches the chassis thermal status when last booted.\r
+\r
+ @return Chassis thermal status.\r
+**/\r
+MISC_CHASSIS_STATE\r
+EFIAPI\r
+OemGetChassisThermalState (\r
+ VOID\r
+ );\r
+\r
+/** Fetches the chassis security status when last booted.\r
+\r
+ @return Chassis security status.\r
+**/\r
+MISC_CHASSIS_SECURITY_STATE\r
+EFIAPI\r
+OemGetChassisSecurityStatus (\r
+ VOID\r
+ );\r
+\r
+/** Fetches the chassis height in RMUs (Rack Mount Units).\r
+\r
+ @return The height of the chassis.\r
+**/\r
+UINT8\r
+EFIAPI\r
+OemGetChassisHeight (\r
+ VOID\r
+ );\r
+\r
+/** Fetches the number of power cords.\r
+\r
+ @return The number of power cords.\r
+**/\r
+UINT8\r
+EFIAPI\r
+OemGetChassisNumPowerCords (\r
+ VOID\r
+ );\r
+\r
#endif // OEM_MISC_LIB_H_\r
{\r
ASSERT (FALSE);\r
}\r
+\r
+/** Fetches the chassis status when it was last booted.\r
+\r
+ @return Chassis status.\r
+**/\r
+MISC_CHASSIS_STATE\r
+EFIAPI\r
+OemGetChassisBootupState (\r
+ VOID\r
+ )\r
+{\r
+ ASSERT (FALSE);\r
+ return ChassisStateSafe;\r
+}\r
+\r
+/** Fetches the chassis power supply/supplies status when last booted.\r
+\r
+ @return Chassis power supply/supplies status.\r
+**/\r
+MISC_CHASSIS_STATE\r
+EFIAPI\r
+OemGetChassisPowerSupplyState (\r
+ VOID\r
+ )\r
+{\r
+ ASSERT (FALSE);\r
+ return ChassisStateSafe;\r
+}\r
+\r
+/** Fetches the chassis thermal status when last booted.\r
+\r
+ @return Chassis thermal status.\r
+**/\r
+MISC_CHASSIS_STATE\r
+EFIAPI\r
+OemGetChassisThermalState (\r
+ VOID\r
+ )\r
+{\r
+ ASSERT (FALSE);\r
+ return ChassisStateSafe;\r
+}\r
+\r
+/** Fetches the chassis security status when last booted.\r
+\r
+ @return Chassis security status.\r
+**/\r
+MISC_CHASSIS_SECURITY_STATE\r
+EFIAPI\r
+OemGetChassisSecurityStatus (\r
+ VOID\r
+ )\r
+{\r
+ ASSERT (FALSE);\r
+ return ChassisSecurityStatusNone;\r
+}\r
+\r
+/** Fetches the chassis height in RMUs (Rack Mount Units).\r
+\r
+ @return The height of the chassis.\r
+**/\r
+UINT8\r
+EFIAPI\r
+OemGetChassisHeight (\r
+ VOID\r
+ )\r
+{\r
+ ASSERT (FALSE);\r
+ return 1U;\r
+}\r
+\r
+/** Fetches the number of power cords.\r
+\r
+ @return The number of power cords.\r
+**/\r
+UINT8\r
+EFIAPI\r
+OemGetChassisNumPowerCords (\r
+ VOID\r
+ )\r
+{\r
+ ASSERT (FALSE);\r
+ return 1;\r
+}\r
UnicodeStrToAsciiStrS (AssertTag, StrStart, AssertTagStrLen + 1);\r
StrStart += AssertTagStrLen + 1;\r
UnicodeStrToAsciiStrS (ChassisSkuNumber, StrStart, ChaNumStrLen + 1);\r
+\r
+ SmbiosRecord->BootupState = OemGetChassisBootupState ();\r
+ SmbiosRecord->PowerSupplyState = OemGetChassisPowerSupplyState ();\r
+ SmbiosRecord->ThermalState = OemGetChassisThermalState ();\r
+ SmbiosRecord->SecurityStatus = OemGetChassisSecurityStatus ();\r
+ SmbiosRecord->Height = OemGetChassisHeight ();\r
+ SmbiosRecord->NumberofPowerCords = OemGetChassisNumPowerCords ();\r
+\r
//\r
// Now we have got the full smbios record, call smbios protocol to add this record.\r
//\r