TianoCore EDK2 master
Loading...
Searching...
No Matches
SmbiosProcessor.h File Reference
#include <Uefi.h>
#include <IndustryStandard/SmBios.h>

Go to the source code of this file.

Functions

UINT8 SmbiosProcessorGetMaxCacheLevel (VOID)
 
BOOLEAN SmbiosProcessorHasSeparateCaches (UINT8 CacheLevel)
 
UINT64 SmbiosProcessorGetCacheSize (IN UINT8 CacheLevel, IN BOOLEAN DataCache, IN BOOLEAN UnifiedCache)
 
UINT32 SmbiosProcessorGetCacheAssociativity (IN UINT8 CacheLevel, IN BOOLEAN DataCache, IN BOOLEAN UnifiedCache)
 
UINT64 SmbiosGetProcessorId (VOID)
 
UINTN SmbiosGetExternalClockFrequency (VOID)
 
UINT8 SmbiosGetProcessorFamily (VOID)
 
UINT16 SmbiosGetProcessorFamily2 (VOID)
 
PROCESSOR_CHARACTERISTIC_FLAGS SmbiosGetProcessorCharacteristics (VOID)
 

Detailed Description

SMBIOS Processor Related Functions.

Copyright (c) 2021, NUVIA Inc. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file SmbiosProcessor.h.

Function Documentation

◆ SmbiosGetExternalClockFrequency()

UINTN SmbiosGetExternalClockFrequency ( VOID  )

Returns the external clock frequency.

Returns
The external CPU clock frequency.

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.

◆ SmbiosProcessorGetCacheAssociativity()

UINT32 SmbiosProcessorGetCacheAssociativity ( IN UINT8  CacheLevel,
IN BOOLEAN  DataCache,
IN BOOLEAN  UnifiedCache 
)

Gets the associativity of the specified cache.

Parameters
CacheLevelThe cache level (L1, L2 etc.).
DataCacheWhether the cache is a dedicated data cache.
UnifiedCacheWhether the cache is a unified cache.
Returns
The cache associativity.

Definition at line 66 of file SmbiosProcessorAArch64.c.

◆ SmbiosProcessorGetCacheSize()

UINT64 SmbiosProcessorGetCacheSize ( IN UINT8  CacheLevel,
IN BOOLEAN  DataCache,
IN BOOLEAN  UnifiedCache 
)

Gets the size of the specified cache.

Parameters
CacheLevelThe cache level (L1, L2 etc.).
DataCacheWhether the cache is a dedicated data cache.
UnifiedCacheWhether the cache is a unified cache.
Returns
The cache size.

Definition at line 25 of file SmbiosProcessorAArch64.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.