*\r
**/\r
\r
-\r
#ifndef OEM_MISC_LIB_H_\r
#define OEM_MISC_LIB_H_\r
\r
#include <Uefi.h>\r
#include <IndustryStandard/SmBios.h>\r
\r
-typedef enum\r
-{\r
+typedef enum {\r
CpuCacheL1 = 1,\r
CpuCacheL2,\r
CpuCacheL3,\r
CpuCacheLevelMax\r
} OEM_MISC_CPU_CACHE_LEVEL;\r
\r
-typedef struct\r
-{\r
- UINT8 Voltage; ///< Processor voltage\r
- UINT16 CurrentSpeed; ///< Current clock speed in MHz\r
- UINT16 MaxSpeed; ///< Maximum clock speed in MHz\r
- UINT16 ExternalClock; ///< External clock speed in MHz\r
- UINT16 CoreCount; ///< Number of cores available\r
- UINT16 CoresEnabled; ///< Number of cores enabled\r
- UINT16 ThreadCount; ///< Number of threads per processor\r
+typedef struct {\r
+ UINT8 Voltage; ///< Processor voltage\r
+ UINT16 CurrentSpeed; ///< Current clock speed in MHz\r
+ UINT16 MaxSpeed; ///< Maximum clock speed in MHz\r
+ UINT16 ExternalClock; ///< External clock speed in MHz\r
+ UINT16 CoreCount; ///< Number of cores available\r
+ UINT16 CoresEnabled; ///< Number of cores enabled\r
+ UINT16 ThreadCount; ///< Number of threads per processor\r
} OEM_MISC_PROCESSOR_DATA;\r
\r
-typedef enum\r
-{\r
- ProductNameType01,\r
- SerialNumType01,\r
- UuidType01,\r
- SystemManufacturerType01,\r
- SkuNumberType01,\r
- FamilyType01,\r
- AssertTagType02,\r
- SerialNumberType02,\r
- BoardManufacturerType02,\r
- SkuNumberType02,\r
- ChassisLocationType02,\r
- AssetTagType03,\r
- SerialNumberType03,\r
- VersionType03,\r
- ChassisTypeType03,\r
- ManufacturerType03,\r
- SkuNumberType03,\r
- SmbiosHiiStringFieldMax\r
+typedef enum {\r
+ ProductNameType01,\r
+ SerialNumType01,\r
+ UuidType01,\r
+ SystemManufacturerType01,\r
+ SkuNumberType01,\r
+ FamilyType01,\r
+ AssertTagType02,\r
+ SerialNumberType02,\r
+ BoardManufacturerType02,\r
+ SkuNumberType02,\r
+ ChassisLocationType02,\r
+ AssetTagType03,\r
+ SerialNumberType03,\r
+ VersionType03,\r
+ ChassisTypeType03,\r
+ ManufacturerType03,\r
+ SkuNumberType03,\r
+ SmbiosHiiStringFieldMax\r
} OEM_MISC_SMBIOS_HII_STRING_FIELD;\r
\r
/*\r
UINTN\r
EFIAPI\r
OemGetCpuFreq (\r
- IN UINT8 ProcessorIndex\r
+ IN UINT8 ProcessorIndex\r
);\r
\r
/** Gets information about the specified processor and stores it in\r
BOOLEAN\r
EFIAPI\r
OemGetProcessorInformation (\r
- IN UINTN ProcessorIndex,\r
- IN OUT PROCESSOR_STATUS_DATA *ProcessorStatus,\r
- IN OUT PROCESSOR_CHARACTERISTIC_FLAGS *ProcessorCharacteristics,\r
- IN OUT OEM_MISC_PROCESSOR_DATA *MiscProcessorData\r
+ IN UINTN ProcessorIndex,\r
+ IN OUT PROCESSOR_STATUS_DATA *ProcessorStatus,\r
+ IN OUT PROCESSOR_CHARACTERISTIC_FLAGS *ProcessorCharacteristics,\r
+ IN OUT OEM_MISC_PROCESSOR_DATA *MiscProcessorData\r
);\r
\r
/** Gets information about the cache at the specified cache level.\r
BOOLEAN\r
EFIAPI\r
OemGetCacheInformation (\r
- IN UINT8 ProcessorIndex,\r
- IN UINT8 CacheLevel,\r
- IN BOOLEAN DataCache,\r
- IN BOOLEAN UnifiedCache,\r
- IN OUT SMBIOS_TABLE_TYPE7 *SmbiosCacheTable\r
+ IN UINT8 ProcessorIndex,\r
+ IN UINT8 CacheLevel,\r
+ IN BOOLEAN DataCache,\r
+ IN BOOLEAN UnifiedCache,\r
+ IN OUT SMBIOS_TABLE_TYPE7 *SmbiosCacheTable\r
);\r
\r
/** Gets the maximum number of processors supported by the platform.\r
BOOLEAN\r
EFIAPI\r
OemIsProcessorPresent (\r
- IN UINTN ProcessorIndex\r
+ IN UINTN ProcessorIndex\r
);\r
\r
/** Updates the HII string for the specified field.\r
VOID\r
EFIAPI\r
OemUpdateSmbiosInfo (\r
- IN EFI_HII_HANDLE HiiHandle,\r
- IN EFI_STRING_ID TokenToUpdate,\r
- IN OEM_MISC_SMBIOS_HII_STRING_FIELD Field\r
+ IN EFI_HII_HANDLE HiiHandle,\r
+ IN EFI_STRING_ID TokenToUpdate,\r
+ IN OEM_MISC_SMBIOS_HII_STRING_FIELD Field\r
);\r
\r
/** Fetches the Type 32 boot information status.\r