X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=ArmPkg%2FInclude%2FLibrary%2FOemMiscLib.h;fp=ArmPkg%2FInclude%2FLibrary%2FOemMiscLib.h;h=569cd51352766fd85ad46d3c0f2f530f8d72ef9b;hp=0b03fe8d4de3e52e987206d03e1dbdf58b0298d7;hb=429309e0c6b74792d679681a8edd0d5ae0ff850c;hpb=7c2a6033c149625482a18cd51b65513c8fb8fe15 diff --git a/ArmPkg/Include/Library/OemMiscLib.h b/ArmPkg/Include/Library/OemMiscLib.h index 0b03fe8d4d..569cd51352 100644 --- a/ArmPkg/Include/Library/OemMiscLib.h +++ b/ArmPkg/Include/Library/OemMiscLib.h @@ -8,15 +8,13 @@ * **/ - #ifndef OEM_MISC_LIB_H_ #define OEM_MISC_LIB_H_ #include #include -typedef enum -{ +typedef enum { CpuCacheL1 = 1, CpuCacheL2, CpuCacheL3, @@ -27,37 +25,35 @@ typedef enum CpuCacheLevelMax } OEM_MISC_CPU_CACHE_LEVEL; -typedef struct -{ - UINT8 Voltage; ///< Processor voltage - UINT16 CurrentSpeed; ///< Current clock speed in MHz - UINT16 MaxSpeed; ///< Maximum clock speed in MHz - UINT16 ExternalClock; ///< External clock speed in MHz - UINT16 CoreCount; ///< Number of cores available - UINT16 CoresEnabled; ///< Number of cores enabled - UINT16 ThreadCount; ///< Number of threads per processor +typedef struct { + UINT8 Voltage; ///< Processor voltage + UINT16 CurrentSpeed; ///< Current clock speed in MHz + UINT16 MaxSpeed; ///< Maximum clock speed in MHz + UINT16 ExternalClock; ///< External clock speed in MHz + UINT16 CoreCount; ///< Number of cores available + UINT16 CoresEnabled; ///< Number of cores enabled + UINT16 ThreadCount; ///< Number of threads per processor } OEM_MISC_PROCESSOR_DATA; -typedef enum -{ - ProductNameType01, - SerialNumType01, - UuidType01, - SystemManufacturerType01, - SkuNumberType01, - FamilyType01, - AssertTagType02, - SerialNumberType02, - BoardManufacturerType02, - SkuNumberType02, - ChassisLocationType02, - AssetTagType03, - SerialNumberType03, - VersionType03, - ChassisTypeType03, - ManufacturerType03, - SkuNumberType03, - SmbiosHiiStringFieldMax +typedef enum { + ProductNameType01, + SerialNumType01, + UuidType01, + SystemManufacturerType01, + SkuNumberType01, + FamilyType01, + AssertTagType02, + SerialNumberType02, + BoardManufacturerType02, + SkuNumberType02, + ChassisLocationType02, + AssetTagType03, + SerialNumberType03, + VersionType03, + ChassisTypeType03, + ManufacturerType03, + SkuNumberType03, + SmbiosHiiStringFieldMax } OEM_MISC_SMBIOS_HII_STRING_FIELD; /* @@ -74,7 +70,7 @@ typedef enum UINTN EFIAPI OemGetCpuFreq ( - IN UINT8 ProcessorIndex + IN UINT8 ProcessorIndex ); /** Gets information about the specified processor and stores it in @@ -90,10 +86,10 @@ OemGetCpuFreq ( 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 + 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 cache at the specified cache level. @@ -109,11 +105,11 @@ OemGetProcessorInformation ( BOOLEAN EFIAPI OemGetCacheInformation ( - IN UINT8 ProcessorIndex, - IN UINT8 CacheLevel, - IN BOOLEAN DataCache, - IN BOOLEAN UnifiedCache, - IN OUT SMBIOS_TABLE_TYPE7 *SmbiosCacheTable + IN UINT8 ProcessorIndex, + IN UINT8 CacheLevel, + IN BOOLEAN DataCache, + IN BOOLEAN UnifiedCache, + IN OUT SMBIOS_TABLE_TYPE7 *SmbiosCacheTable ); /** Gets the maximum number of processors supported by the platform. @@ -145,7 +141,7 @@ OemGetChassisType ( BOOLEAN EFIAPI OemIsProcessorPresent ( - IN UINTN ProcessorIndex + IN UINTN ProcessorIndex ); /** Updates the HII string for the specified field. @@ -157,9 +153,9 @@ OemIsProcessorPresent ( VOID EFIAPI OemUpdateSmbiosInfo ( - IN EFI_HII_HANDLE HiiHandle, - IN EFI_STRING_ID TokenToUpdate, - IN OEM_MISC_SMBIOS_HII_STRING_FIELD Field + IN EFI_HII_HANDLE HiiHandle, + IN EFI_STRING_ID TokenToUpdate, + IN OEM_MISC_SMBIOS_HII_STRING_FIELD Field ); /** Fetches the Type 32 boot information status.