]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Include/Library/OemMiscLib.h
ArmPkg: Allow platforms to supply more data for SMBIOS Type3 record
[mirror_edk2.git] / ArmPkg / Include / Library / OemMiscLib.h
index e70019d05f15effcc04fb33cabc69d4503a8b82e..25ae508ddb0314227bceb826bc407b8842fd0e91 100644 (file)
@@ -71,8 +71,8 @@ typedef enum
 \r
   @return               CPU frequency in Hz\r
 **/\r
-EFIAPI\r
 UINTN\r
+EFIAPI\r
 OemGetCpuFreq (\r
   IN UINT8 ProcessorIndex\r
   );\r
@@ -87,8 +87,8 @@ OemGetCpuFreq (
 \r
   @return  TRUE on success, FALSE on failure.\r
 **/\r
-EFIAPI\r
 BOOLEAN\r
+EFIAPI\r
 OemGetProcessorInformation (\r
   IN UINTN ProcessorIndex,\r
   IN OUT PROCESSOR_STATUS_DATA *ProcessorStatus,\r
@@ -106,8 +106,8 @@ OemGetProcessorInformation (
 \r
   @return TRUE on success, FALSE on failure.\r
 **/\r
-EFIAPI\r
 BOOLEAN\r
+EFIAPI\r
 OemGetCacheInformation (\r
   IN UINT8   ProcessorIndex,\r
   IN UINT8   CacheLevel,\r
@@ -116,26 +116,24 @@ OemGetCacheInformation (
   IN OUT SMBIOS_TABLE_TYPE7 *SmbiosCacheTable\r
   );\r
 \r
-/** Gets the maximum number of sockets supported by the platform.\r
+/** Gets the maximum number of processors supported by the platform.\r
 \r
-  @return The maximum number of sockets.\r
+  @return The maximum number of processors.\r
 **/\r
-EFIAPI\r
 UINT8\r
-OemGetProcessorMaxSockets (\r
+EFIAPI\r
+OemGetMaxProcessors (\r
   VOID\r
   );\r
 \r
 /** Gets the type of chassis for the system.\r
 \r
-  @param ChassisType The type of the chassis.\r
-\r
-  @retval EFI_SUCCESS The chassis type was fetched successfully.\r
+  @retval The type of the chassis.\r
 **/\r
+MISC_CHASSIS_TYPE\r
 EFIAPI\r
-EFI_STATUS\r
 OemGetChassisType (\r
-  OUT UINT8 *ChassisType\r
+  VOID\r
   );\r
 \r
 /** Returns whether the specified processor is present or not.\r
@@ -144,24 +142,84 @@ OemGetChassisType (
 \r
   @return TRUE is the processor is present, FALSE otherwise.\r
 **/\r
-EFIAPI\r
 BOOLEAN\r
-OemIsSocketPresent (\r
+EFIAPI\r
+OemIsProcessorPresent (\r
   IN UINTN ProcessorIndex\r
   );\r
 \r
 /** Updates the HII string for the specified field.\r
 \r
-  @param mHiiHandle    The HII handle.\r
+  @param HiiHandle     The HII handle.\r
   @param TokenToUpdate The string to update.\r
-  @param Offset        The field to get information about.\r
+  @param Field         The field to get information about.\r
 **/\r
-EFIAPI\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 Offset\r
+  IN OEM_MISC_SMBIOS_HII_STRING_FIELD Field\r
+  );\r
+\r
+/** Fetches the chassis status when it was last booted.\r
+\r
+ @return Chassis status.\r
+**/\r
+MISC_CHASSIS_STATE\r
+EFIAPI\r
+OemGetChassisBootupState (\r
+  VOID\r
+  );\r
+\r
+/** Fetches the chassis power supply/supplies status when last booted.\r
+\r
+ @return Chassis power supply/supplies status.\r
+**/\r
+MISC_CHASSIS_STATE\r
+EFIAPI\r
+OemGetChassisPowerSupplyState (\r
+  VOID\r
+  );\r
+\r
+/** Fetches the chassis thermal status when last booted.\r
+\r
+ @return Chassis thermal status.\r
+**/\r
+MISC_CHASSIS_STATE\r
+EFIAPI\r
+OemGetChassisThermalState (\r
+  VOID\r
+  );\r
+\r
+/** Fetches the chassis security status when last booted.\r
+\r
+ @return Chassis security status.\r
+**/\r
+MISC_CHASSIS_SECURITY_STATE\r
+EFIAPI\r
+OemGetChassisSecurityStatus (\r
+  VOID\r
+  );\r
+\r
+/** Fetches the chassis height in RMUs (Rack Mount Units).\r
+\r
+  @return The height of the chassis.\r
+**/\r
+UINT8\r
+EFIAPI\r
+OemGetChassisHeight (\r
+  VOID\r
+  );\r
+\r
+/** Fetches the number of power cords.\r
+\r
+  @return The number of power cords.\r
+**/\r
+UINT8\r
+EFIAPI\r
+OemGetChassisNumPowerCords (\r
+  VOID\r
   );\r
 \r
 #endif // OEM_MISC_LIB_H_\r