]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Universal/Smbios/OemMiscLibNull/OemMiscLib.c
ArmPkg: Allow platforms to supply more data for SMBIOS Type3 record
[mirror_edk2.git] / ArmPkg / Universal / Smbios / OemMiscLibNull / OemMiscLib.c
index 767fc08d166bd11aba54d3e1cec2b274644cd1a8..33b0081d65b04d9748970acc18f1c290ce1f66f2 100644 (file)
@@ -11,8 +11,8 @@
 \r
 #include <Uefi.h>\r
 #include <Library/BaseMemoryLib.h>\r
+#include <Library/DebugLib.h>\r
 #include <Library/HiiLib.h>\r
-\r
 #include <Library/OemMiscLib.h>\r
 \r
 \r
@@ -22,8 +22,8 @@
 \r
   @return               CPU frequency in Hz\r
 **/\r
-EFIAPI\r
 UINTN\r
+EFIAPI\r
 OemGetCpuFreq (\r
   IN UINT8 ProcessorIndex\r
   )\r
@@ -42,8 +42,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
@@ -65,8 +65,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
@@ -79,13 +79,13 @@ OemGetCacheInformation (
   return TRUE;\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
@@ -95,19 +95,16 @@ OemGetProcessorMaxSockets (
 \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
-EFI_STATUS\r
+MISC_CHASSIS_TYPE\r
 EFIAPI\r
 OemGetChassisType (\r
-  UINT8 *ChassisType\r
+  VOID\r
   )\r
 {\r
   ASSERT (FALSE);\r
-  *ChassisType = MiscChassisTypeUnknown;\r
-  return EFI_SUCCESS;\r
+  return MiscChassisTypeUnknown;\r
 }\r
 \r
 /** Returns whether the specified processor is present or not.\r
@@ -116,9 +113,9 @@ 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
@@ -128,17 +125,101 @@ OemIsSocketPresent (
 \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 mHiiHandle,\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
+  ASSERT (FALSE);\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
+  ASSERT (FALSE);\r
+  return ChassisStateSafe;\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
+  ASSERT (FALSE);\r
+  return ChassisStateSafe;\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
+  ASSERT (FALSE);\r
+  return ChassisStateSafe;\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
+  ASSERT (FALSE);\r
+  return ChassisSecurityStatusNone;\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
+  ASSERT (FALSE);\r
+  return 1U;\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
   ASSERT (FALSE);\r
+  return 1;\r
 }\r