Add a new function to OemMiscLib to allow platforms to report their boot
status into the Type32 SMBIOS table.
Signed-off-by: Rebecca Cran <rebecca@nuviainc.com>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
IN OEM_MISC_SMBIOS_HII_STRING_FIELD Field\r
);\r
\r
+/** Fetches the Type 32 boot information status.\r
+\r
+ @return Boot status.\r
+**/\r
+MISC_BOOT_INFORMATION_STATUS_DATA_TYPE\r
+EFIAPI\r
+OemGetBootStatus (\r
+ VOID\r
+ );\r
+\r
/** Fetches the chassis status when it was last booted.\r
\r
@return Chassis status.\r
ASSERT (FALSE);\r
}\r
\r
+/** Fetches the Type 32 boot information status.\r
+\r
+ @return Boot status.\r
+**/\r
+MISC_BOOT_INFORMATION_STATUS_DATA_TYPE\r
+EFIAPI\r
+OemGetBootStatus (\r
+ VOID\r
+ )\r
+{\r
+ ASSERT (FALSE);\r
+ return BootInformationStatusNoError;\r
+}\r
+\r
/** Fetches the chassis status when it was last booted.\r
\r
@return Chassis status.\r
#include <Library/BaseMemoryLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/MemoryAllocationLib.h>\r
+#include <Library/OemMiscLib.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
\r
#include "SmbiosMisc.h"\r
\r
SmbiosRecord->Hdr.Length = sizeof (SMBIOS_TABLE_TYPE32);\r
\r
+ SmbiosRecord->BootStatus = OemGetBootStatus ();\r
+\r
//\r
// Now we have got the full smbios record, call smbios protocol to add this record.\r
//\r