ArmPkg[all]  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
OemMiscLib.h File Reference

Data Structures

struct  OEM_MISC_PROCESSOR_DATA
 

Enumerations

enum  OEM_MISC_CPU_CACHE_LEVEL {
  CpuCacheL1 = 1, CpuCacheL2, CpuCacheL3, CpuCacheL4,
  CpuCacheL5, CpuCacheL6, CpuCacheL7, CpuCacheLevelMax
}
 
enum  OEM_MISC_SMBIOS_HII_STRING_FIELD {
  ProductNameType01, SerialNumType01, UuidType01, SystemManufacturerType01,
  SkuNumberType01, FamilyType01, AssertTagType02, SerialNumberType02,
  BoardManufacturerType02, SkuNumberType02, ChassisLocationType02, AssetTagType03,
  SerialNumberType03, VersionType03, ChassisTypeType03, ManufacturerType03,
  SkuNumberType03, SmbiosHiiStringFieldMax
}
 

Functions

UINTN EFIAPI OemGetCpuFreq (IN UINT8 ProcessorIndex)
 
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)
 
BOOLEAN EFIAPI OemGetCacheInformation (IN UINT8 ProcessorIndex, IN UINT8 CacheLevel, IN BOOLEAN DataCache, IN BOOLEAN UnifiedCache, IN OUT SMBIOS_TABLE_TYPE7 *SmbiosCacheTable)
 
UINT8 EFIAPI OemGetMaxProcessors (VOID)
 
MISC_CHASSIS_TYPE EFIAPI OemGetChassisType (VOID)
 
BOOLEAN EFIAPI OemIsProcessorPresent (IN UINTN ProcessorIndex)
 
VOID EFIAPI OemUpdateSmbiosInfo (IN EFI_HII_HANDLE HiiHandle, IN EFI_STRING_ID TokenToUpdate, IN OEM_MISC_SMBIOS_HII_STRING_FIELD Field)
 
MISC_BOOT_INFORMATION_STATUS_DATA_TYPE
EFIAPI 
OemGetBootStatus (VOID)
 
MISC_CHASSIS_STATE EFIAPI OemGetChassisBootupState (VOID)
 
MISC_CHASSIS_STATE EFIAPI OemGetChassisPowerSupplyState (VOID)
 
MISC_CHASSIS_STATE EFIAPI OemGetChassisThermalState (VOID)
 
MISC_CHASSIS_SECURITY_STATE EFIAPI OemGetChassisSecurityStatus (VOID)
 
UINT8 EFIAPI OemGetChassisHeight (VOID)
 
UINT8 EFIAPI OemGetChassisNumPowerCords (VOID)
 

Detailed Description

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

Enumeration Type Documentation

Enumerator
CpuCacheL1 
CpuCacheL2 
CpuCacheL3 
CpuCacheL4 
CpuCacheL5 
CpuCacheL6 
CpuCacheL7 
CpuCacheLevelMax 
Enumerator
ProductNameType01 
SerialNumType01 
UuidType01 
SystemManufacturerType01 
SkuNumberType01 
FamilyType01 
AssertTagType02 
SerialNumberType02 
BoardManufacturerType02 
SkuNumberType02 
ChassisLocationType02 
AssetTagType03 
SerialNumberType03 
VersionType03 
ChassisTypeType03 
ManufacturerType03 
SkuNumberType03 
SmbiosHiiStringFieldMax 

Function Documentation

MISC_BOOT_INFORMATION_STATUS_DATA_TYPE EFIAPI OemGetBootStatus ( VOID  )

Fetches the Type 32 boot information status.

Returns
Boot status.
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.

Parameters
ProcessorIndexThe processor to get information for.
CacheLevelThe cache level to get information for.
DataCacheWhether the cache is a data cache.
UnifiedCacheWhether the cache is a unified cache.
SmbiosCacheTableThe SMBIOS Type7 cache information structure.
Returns
TRUE on success, FALSE on failure.
MISC_CHASSIS_STATE EFIAPI OemGetChassisBootupState ( VOID  )

Fetches the chassis status when it was last booted.

Returns
Chassis status.
UINT8 EFIAPI OemGetChassisHeight ( VOID  )

Fetches the chassis height in RMUs (Rack Mount Units).

Returns
The height of the chassis.
UINT8 EFIAPI OemGetChassisNumPowerCords ( VOID  )

Fetches the number of power cords.

Returns
The number of power cords.
MISC_CHASSIS_STATE EFIAPI OemGetChassisPowerSupplyState ( VOID  )

Fetches the chassis power supply/supplies status when last booted.

Returns
Chassis power supply/supplies status.
MISC_CHASSIS_SECURITY_STATE EFIAPI OemGetChassisSecurityStatus ( VOID  )

Fetches the chassis security status when last booted.

Returns
Chassis security status.
MISC_CHASSIS_STATE EFIAPI OemGetChassisThermalState ( VOID  )

Fetches the chassis thermal status when last booted.

Returns
Chassis thermal status.
MISC_CHASSIS_TYPE EFIAPI OemGetChassisType ( VOID  )

Gets the type of chassis for the system.

Return values
Thetype of the chassis.
UINTN EFIAPI OemGetCpuFreq ( IN UINT8  ProcessorIndex)

Gets the CPU frequency of the specified processor.

Parameters
ProcessorIndexIndex of the processor to get the frequency for.
Returns
CPU frequency in Hz
UINT8 EFIAPI OemGetMaxProcessors ( VOID  )

Gets the maximum number of processors supported by the platform.

Returns
The maximum number of processors.
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.

Parameters
ProcessorIndexIndex of the processor to get the information for.
ProcessorStatusProcessor status.
ProcessorCharacteristicsProcessor characteritics.
MiscProcessorDataMiscellaneous processor information.
Returns
TRUE on success, FALSE on failure.
BOOLEAN EFIAPI OemIsProcessorPresent ( IN UINTN  ProcessorIndex)

Returns whether the specified processor is present or not.

Parameters
ProcessIndexThe processor index to check.
Returns
TRUE is the processor is present, FALSE otherwise.
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.

Parameters
HiiHandleThe HII handle.
TokenToUpdateThe string to update.
FieldThe field to get information about.