TianoCore EDK2 master
|
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/HiiLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/OemMiscLib.h>
#include <Library/PrintLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include "SmbiosMisc.h"
Go to the source code of this file.
Data Structures | |
struct | MONTH_DESCRIPTION |
Functions | |
UINT8 | Base2ToByteWith64KUnit (IN UINTN Value) |
VOID | GetReleaseTime (OUT EFI_TIME *Time) |
CHAR16 * | GetBiosReleaseDate (VOID) |
VOID | SetBiosVersion (VOID) |
SMBIOS_MISC_TABLE_FUNCTION (MiscBiosVendor) | |
Variables | |
STATIC CONST MONTH_DESCRIPTION | mMonthDescription [] |
Copyright (c) 2022 - 2023, Ampere Computing LLC. All rights reserved.
Copyright (c) 2021, NUVIA Inc. All rights reserved.
Copyright (c) 2009, Intel Corporation. All rights reserved.
Copyright (c) 2015, Hisilicon Limited. All rights reserved.
Copyright (c) 2015, Linaro Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file MiscBiosVendorFunction.c.
Field Filling Function. Transform an EFI_EXP_BASE2_DATA to a byte, with '64k' as the unit.
Value | Pointer to Base2_Data |
Definition at line 55 of file MiscBiosVendorFunction.c.
CHAR16 * GetBiosReleaseDate | ( | VOID | ) |
Fetches the firmware ('BIOS') release date from the FirmwareVersionInfo HOB.
Definition at line 101 of file MiscBiosVendorFunction.c.
Returns the date and time this file (and firmware) was built.
[out] | *Time | Pointer to the EFI_TIME structure to fill in. |
Definition at line 72 of file MiscBiosVendorFunction.c.
VOID SetBiosVersion | ( | VOID | ) |
Fetches the Firmware version string for SMBIOS type 0
This function first acquires the firmware version string from OemMiscLib; if it is invalid, PcdFirmwareVersionString is used as a fallback, and then sets it in SMBIOS type 0.
Definition at line 135 of file MiscBiosVendorFunction.c.
SMBIOS_MISC_TABLE_FUNCTION | ( | MiscBiosVendor | ) |
This function makes boot time changes to the contents of the MiscBiosVendor (Type 0) record.
RecordData | Pointer to SMBIOS table with default values. |
Smbios | SMBIOS protocol. |
EFI_SUCCESS | The SMBIOS table was successfully added. |
EFI_INVALID_PARAMETER | Invalid parameter was found. |
EFI_OUT_OF_RESOURCES | Failed to allocate required memory. |
Definition at line 182 of file MiscBiosVendorFunction.c.
STATIC CONST MONTH_DESCRIPTION mMonthDescription[] |
Definition at line 29 of file MiscBiosVendorFunction.c.