--- /dev/null
+/** @file\r
+* OemMiscLib.c\r
+*\r
+* Copyright (c) 2021, NUVIA Inc. All rights reserved.\r
+* Copyright (c) 2018, Hisilicon Limited. All rights reserved.\r
+* Copyright (c) 2018, Linaro Limited. All rights reserved.\r
+*\r
+* SPDX-License-Identifier: BSD-2-Clause-Patent\r
+*\r
+**/\r
+\r
+#include <Uefi.h>\r
+#include <Library/BaseMemoryLib.h>\r
+#include <Library/HiiLib.h>\r
+\r
+#include <Library/OemMiscLib.h>\r
+\r
+\r
+/** Gets the CPU frequency of the specified processor.\r
+\r
+ @param ProcessorIndex Index of the processor to get the frequency for.\r
+\r
+ @return CPU frequency in Hz\r
+**/\r
+EFIAPI\r
+UINTN\r
+OemGetCpuFreq (\r
+ IN UINT8 ProcessorIndex\r
+ )\r
+{\r
+ ASSERT (FALSE);\r
+ return 0;\r
+}\r
+\r
+/** Gets information about the specified processor and stores it in\r
+ the structures provided.\r
+\r
+ @param ProcessorIndex Index of the processor to get the information for.\r
+ @param ProcessorStatus Processor status.\r
+ @param ProcessorCharacteristics Processor characteritics.\r
+ @param MiscProcessorData Miscellaneous processor information.\r
+\r
+ @return TRUE on success, FALSE on failure.\r
+**/\r
+EFIAPI\r
+BOOLEAN\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
+ )\r
+{\r
+ ASSERT (FALSE);\r
+ return TRUE;\r
+}\r
+\r
+/** Gets information about the cache at the specified cache level.\r
+\r
+ @param ProcessorIndex The processor to get information for.\r
+ @param CacheLevel The cache level to get information for.\r
+ @param DataCache Whether the cache is a data cache.\r
+ @param UnifiedCache Whether the cache is a unified cache.\r
+ @param SmbiosCacheTable The SMBIOS Type7 cache information structure.\r
+\r
+ @return TRUE on success, FALSE on failure.\r
+**/\r
+EFIAPI\r
+BOOLEAN\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
+ )\r
+{\r
+ ASSERT (FALSE);\r
+ return TRUE;\r
+}\r
+\r
+/** Gets the maximum number of sockets supported by the platform.\r
+\r
+ @return The maximum number of sockets.\r
+**/\r
+EFIAPI\r
+UINT8\r
+OemGetProcessorMaxSockets (\r
+ VOID\r
+ )\r
+{\r
+ ASSERT (FALSE);\r
+ return 1;\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
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+OemGetChassisType (\r
+ UINT8 *ChassisType\r
+ )\r
+{\r
+ ASSERT (FALSE);\r
+ *ChassisType = MiscChassisTypeUnknown;\r
+ return EFI_SUCCESS;\r
+}\r
+\r
+/** Returns whether the specified processor is present or not.\r
+\r
+ @param ProcessIndex The processor index to check.\r
+\r
+ @return TRUE is the processor is present, FALSE otherwise.\r
+**/\r
+EFIAPI\r
+BOOLEAN\r
+OemIsSocketPresent (\r
+ IN UINTN ProcessorIndex\r
+ )\r
+{\r
+ ASSERT (FALSE);\r
+ return FALSE;\r
+}\r
+\r
+/** Updates the HII string for the specified field.\r
+\r
+ @param mHiiHandle The HII handle.\r
+ @param TokenToUpdate The string to update.\r
+ @param Offset The field to get information about.\r
+**/\r
+EFIAPI\r
+VOID\r
+OemUpdateSmbiosInfo (\r
+ IN EFI_HII_HANDLE mHiiHandle,\r
+ IN EFI_STRING_ID TokenToUpdate,\r
+ IN OEM_MISC_SMBIOS_HII_STRING_FIELD Offset\r
+ )\r
+{\r
+ ASSERT (FALSE);\r
+}\r