mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-25 22:54:51 +02:00
ArmPkg: Allow platforms to report their boot status via OemMiscLib call
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>
This commit is contained in:
parent
bf2b99990e
commit
bbeb1bea41
@ -162,6 +162,16 @@ OemUpdateSmbiosInfo (
|
|||||||
IN OEM_MISC_SMBIOS_HII_STRING_FIELD Field
|
IN OEM_MISC_SMBIOS_HII_STRING_FIELD Field
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/** Fetches the Type 32 boot information status.
|
||||||
|
|
||||||
|
@return Boot status.
|
||||||
|
**/
|
||||||
|
MISC_BOOT_INFORMATION_STATUS_DATA_TYPE
|
||||||
|
EFIAPI
|
||||||
|
OemGetBootStatus (
|
||||||
|
VOID
|
||||||
|
);
|
||||||
|
|
||||||
/** Fetches the chassis status when it was last booted.
|
/** Fetches the chassis status when it was last booted.
|
||||||
|
|
||||||
@return Chassis status.
|
@return Chassis status.
|
||||||
|
@ -140,6 +140,20 @@ OemUpdateSmbiosInfo (
|
|||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Fetches the Type 32 boot information status.
|
||||||
|
|
||||||
|
@return Boot status.
|
||||||
|
**/
|
||||||
|
MISC_BOOT_INFORMATION_STATUS_DATA_TYPE
|
||||||
|
EFIAPI
|
||||||
|
OemGetBootStatus (
|
||||||
|
VOID
|
||||||
|
)
|
||||||
|
{
|
||||||
|
ASSERT (FALSE);
|
||||||
|
return BootInformationStatusNoError;
|
||||||
|
}
|
||||||
|
|
||||||
/** Fetches the chassis status when it was last booted.
|
/** Fetches the chassis status when it was last booted.
|
||||||
|
|
||||||
@return Chassis status.
|
@return Chassis status.
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
#include <Library/BaseMemoryLib.h>
|
#include <Library/BaseMemoryLib.h>
|
||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
#include <Library/MemoryAllocationLib.h>
|
#include <Library/MemoryAllocationLib.h>
|
||||||
|
#include <Library/OemMiscLib.h>
|
||||||
#include <Library/UefiBootServicesTableLib.h>
|
#include <Library/UefiBootServicesTableLib.h>
|
||||||
|
|
||||||
#include "SmbiosMisc.h"
|
#include "SmbiosMisc.h"
|
||||||
@ -59,6 +60,8 @@ SMBIOS_MISC_TABLE_FUNCTION(MiscBootInformation)
|
|||||||
|
|
||||||
SmbiosRecord->Hdr.Length = sizeof (SMBIOS_TABLE_TYPE32);
|
SmbiosRecord->Hdr.Length = sizeof (SMBIOS_TABLE_TYPE32);
|
||||||
|
|
||||||
|
SmbiosRecord->BootStatus = OemGetBootStatus ();
|
||||||
|
|
||||||
//
|
//
|
||||||
// Now we have got the full smbios record, call smbios protocol to add this record.
|
// Now we have got the full smbios record, call smbios protocol to add this record.
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user