TianoCore EDK2 master
|
#include <Uefi.h>
#include <IndustryStandard/ArmCache.h>
#include <IndustryStandard/ArmStdSmc.h>
#include <IndustryStandard/SmBios.h>
#include <Library/ArmLib.h>
#include <Library/ArmSmcLib.h>
#include <Library/BaseMemoryLib.h>
#include "SmbiosProcessor.h"
Go to the source code of this file.
Functions | |
UINT8 | SmbiosProcessorGetMaxCacheLevel (VOID) |
BOOLEAN | SmbiosProcessorHasSeparateCaches (UINT8 CacheLevel) |
BOOLEAN | HasSmcArm64SocId (VOID) |
EFI_STATUS | SmbiosGetSmcArm64SocId (OUT INT32 *Jep106Code, OUT INT32 *SocRevision) |
UINT64 | SmbiosGetProcessorId (VOID) |
UINTN | SmbiosGetExternalClockFrequency (VOID) |
UINT8 | SmbiosGetProcessorFamily (VOID) |
UINT16 | SmbiosGetProcessorFamily2 (VOID) |
PROCESSOR_CHARACTERISTIC_FLAGS | SmbiosGetProcessorCharacteristics (VOID) |
Functions for processor information common to ARM and AARCH64.
Copyright (c) 2021, NUVIA Inc. All rights reserved.
Copyright (c) 2021 - 2022, Ampere Computing LLC. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SmbiosProcessorArmCommon.c.
BOOLEAN HasSmcArm64SocId | ( | VOID | ) |
Checks if ther ARM64 SoC ID SMC call is supported
Definition at line 87 of file SmbiosProcessorArmCommon.c.
UINTN SmbiosGetExternalClockFrequency | ( | VOID | ) |
Returns the external clock frequency.
Definition at line 180 of file SmbiosProcessorArmCommon.c.
PROCESSOR_CHARACTERISTIC_FLAGS SmbiosGetProcessorCharacteristics | ( | VOID | ) |
Returns the SMBIOS Processor Characteristics.
Definition at line 231 of file SmbiosProcessorArmCommon.c.
UINT8 SmbiosGetProcessorFamily | ( | VOID | ) |
Returns the SMBIOS ProcessorFamily field value.
Definition at line 192 of file SmbiosProcessorArmCommon.c.
UINT16 SmbiosGetProcessorFamily2 | ( | VOID | ) |
Returns the ProcessorFamily2 field value.
Definition at line 204 of file SmbiosProcessorArmCommon.c.
UINT64 SmbiosGetProcessorId | ( | VOID | ) |
Returns a value for the Processor ID field that conforms to SMBIOS requirements.
Definition at line 157 of file SmbiosProcessorArmCommon.c.
EFI_STATUS SmbiosGetSmcArm64SocId | ( | OUT INT32 * | Jep106Code, |
OUT INT32 * | SocRevision | ||
) |
Fetches the JEP106 code and SoC Revision.
Jep106Code | JEP 106 code. |
SocRevision | SoC revision. |
EFI_SUCCESS | Succeeded. |
EFI_UNSUPPORTED | Failed. |
Definition at line 119 of file SmbiosProcessorArmCommon.c.
UINT8 SmbiosProcessorGetMaxCacheLevel | ( | VOID | ) |
Returns the maximum cache level implemented by the current CPU.
Definition at line 26 of file SmbiosProcessorArmCommon.c.
BOOLEAN SmbiosProcessorHasSeparateCaches | ( | UINT8 | CacheLevel | ) |
Returns whether or not the specified cache level has separate I/D caches.
CacheLevel | The cache level (L1, L2 etc.). |
Definition at line 61 of file SmbiosProcessorArmCommon.c.