TianoCore EDK2 master
|
Go to the source code of this file.
Data Structures | |
struct | OEM_MISC_PROCESSOR_DATA |
Copyright (c) 2022, Ampere Computing LLC. All rights reserved. Copyright (c) 2021, NUVIA Inc. 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 OemMiscLib.h.
enum OEM_MISC_CPU_CACHE_LEVEL |
Definition at line 18 of file OemMiscLib.h.
enum OEM_MISC_SMBIOS_HII_STRING_FIELD |
Definition at line 39 of file OemMiscLib.h.
UINT16 EFIAPI OemGetBiosRelease | ( | VOID | ) |
MISC_BOOT_INFORMATION_STATUS_DATA_TYPE EFIAPI OemGetBootStatus | ( | VOID | ) |
Fetches the Type 32 boot information status.
Definition at line 151 of file OemMiscLib.c.
BOOLEAN EFIAPI OemGetCacheInformation | ( | IN UINT8 | ProcessorIndex, |
IN UINT8 | CacheLevel, | ||
IN BOOLEAN | DataCache, | ||
IN BOOLEAN | UnifiedCache, | ||
IN OUT SMBIOS_TABLE_TYPE7 * | SmbiosCacheTable | ||
) |
Gets information about the cache at the specified cache level.
ProcessorIndex | The processor to get information for. |
CacheLevel | The cache level to get information for. |
DataCache | Whether the cache is a data cache. |
UnifiedCache | Whether the cache is a unified cache. |
SmbiosCacheTable | The SMBIOS Type7 cache information structure. |
Definition at line 72 of file OemMiscLib.c.
MISC_CHASSIS_STATE EFIAPI OemGetChassisBootupState | ( | VOID | ) |
Fetches the chassis status when it was last booted.
Definition at line 165 of file OemMiscLib.c.
UINT8 EFIAPI OemGetChassisHeight | ( | VOID | ) |
Fetches the chassis height in RMUs (Rack Mount Units).
Definition at line 221 of file OemMiscLib.c.
UINT8 EFIAPI OemGetChassisNumPowerCords | ( | VOID | ) |
Fetches the number of power cords.
Definition at line 235 of file OemMiscLib.c.
MISC_CHASSIS_STATE EFIAPI OemGetChassisPowerSupplyState | ( | VOID | ) |
Fetches the chassis power supply/supplies status when last booted.
Definition at line 179 of file OemMiscLib.c.
MISC_CHASSIS_SECURITY_STATE EFIAPI OemGetChassisSecurityStatus | ( | VOID | ) |
Fetches the chassis security status when last booted.
Definition at line 207 of file OemMiscLib.c.
MISC_CHASSIS_STATE EFIAPI OemGetChassisThermalState | ( | VOID | ) |
Fetches the chassis thermal status when last booted.
Definition at line 193 of file OemMiscLib.c.
MISC_CHASSIS_TYPE EFIAPI OemGetChassisType | ( | VOID | ) |
Gets the type of chassis for the system.
The | type of the chassis. |
Definition at line 104 of file OemMiscLib.c.
Gets the CPU frequency of the specified processor.
ProcessorIndex | Index of the processor to get the frequency for. |
Definition at line 29 of file OemMiscLib.c.
UINT16 EFIAPI OemGetEmbeddedControllerFirmwareRelease | ( | VOID | ) |
Fetches the embedded controller firmware release.
Definition at line 279 of file OemMiscLib.c.
UINT8 EFIAPI OemGetMaxProcessors | ( | VOID | ) |
Gets the maximum number of processors supported by the platform.
Definition at line 90 of file OemMiscLib.c.
BOOLEAN EFIAPI OemGetProcessorInformation | ( | IN UINTN | ProcessorIndex, |
IN OUT PROCESSOR_STATUS_DATA * | ProcessorStatus, | ||
IN OUT PROCESSOR_CHARACTERISTIC_FLAGS * | ProcessorCharacteristics, | ||
IN OUT OEM_MISC_PROCESSOR_DATA * | MiscProcessorData | ||
) |
Gets information about the specified processor and stores it in the structures provided.
ProcessorIndex | Index of the processor to get the information for. |
ProcessorStatus | Processor status. |
ProcessorCharacteristics | Processor characteritics. |
MiscProcessorData | Miscellaneous processor information. |
Definition at line 49 of file OemMiscLib.c.
Fetches the system UUID.
[out] | SystemUuid | The pointer to the buffer to store the System UUID. |
Definition at line 251 of file OemMiscLib.c.
Returns whether the specified processor is present or not.
ProcessIndex | The processor index to check. |
Definition at line 120 of file OemMiscLib.c.
VOID EFIAPI OemUpdateSmbiosInfo | ( | IN EFI_HII_HANDLE | HiiHandle, |
IN EFI_STRING_ID | TokenToUpdate, | ||
IN OEM_MISC_SMBIOS_HII_STRING_FIELD | Field | ||
) |
Updates the HII string for the specified field.
HiiHandle | The HII handle. |
TokenToUpdate | The string to update. |
Field | The field to get information about. |
Definition at line 136 of file OemMiscLib.c.