TianoCore EDK2 master
Loading...
Searching...
No Matches
SmbiosProcessorArmCommon.c File Reference

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)
 

Detailed Description

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.

Function Documentation

◆ HasSmcArm64SocId()

BOOLEAN HasSmcArm64SocId ( VOID  )

Checks if ther ARM64 SoC ID SMC call is supported

Returns
Whether the ARM64 SoC ID call is supported.

Definition at line 87 of file SmbiosProcessorArmCommon.c.

◆ SmbiosGetExternalClockFrequency()

UINTN SmbiosGetExternalClockFrequency ( VOID  )

Returns the external clock frequency.

Returns
The external clock frequency.

Definition at line 180 of file SmbiosProcessorArmCommon.c.

◆ SmbiosGetProcessorCharacteristics()

PROCESSOR_CHARACTERISTIC_FLAGS SmbiosGetProcessorCharacteristics ( VOID  )

Returns the SMBIOS Processor Characteristics.

Returns
Processor Characteristics bitfield.

Definition at line 231 of file SmbiosProcessorArmCommon.c.

◆ SmbiosGetProcessorFamily()

UINT8 SmbiosGetProcessorFamily ( VOID  )

Returns the SMBIOS ProcessorFamily field value.

Returns
The value for the ProcessorFamily field.

Definition at line 192 of file SmbiosProcessorArmCommon.c.

◆ SmbiosGetProcessorFamily2()

UINT16 SmbiosGetProcessorFamily2 ( VOID  )

Returns the ProcessorFamily2 field value.

Returns
The value for the ProcessorFamily2 field.

Definition at line 204 of file SmbiosProcessorArmCommon.c.

◆ SmbiosGetProcessorId()

UINT64 SmbiosGetProcessorId ( VOID  )

Returns a value for the Processor ID field that conforms to SMBIOS requirements.

Returns
Processor ID.

Definition at line 157 of file SmbiosProcessorArmCommon.c.

◆ SmbiosGetSmcArm64SocId()

EFI_STATUS SmbiosGetSmcArm64SocId ( OUT INT32 *  Jep106Code,
OUT INT32 *  SocRevision 
)

Fetches the JEP106 code and SoC Revision.

Parameters
Jep106CodeJEP 106 code.
SocRevisionSoC revision.
Return values
EFI_SUCCESSSucceeded.
EFI_UNSUPPORTEDFailed.

Definition at line 119 of file SmbiosProcessorArmCommon.c.

◆ SmbiosProcessorGetMaxCacheLevel()

UINT8 SmbiosProcessorGetMaxCacheLevel ( VOID  )

Returns the maximum cache level implemented by the current CPU.

Returns
The maximum cache level implemented.

Definition at line 26 of file SmbiosProcessorArmCommon.c.

◆ SmbiosProcessorHasSeparateCaches()

BOOLEAN SmbiosProcessorHasSeparateCaches ( UINT8  CacheLevel)

Returns whether or not the specified cache level has separate I/D caches.

Parameters
CacheLevelThe cache level (L1, L2 etc.).
Returns
TRUE if the cache level has separate I/D caches, FALSE otherwise.

Definition at line 61 of file SmbiosProcessorArmCommon.c.