]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Universal/Smbios/OemMiscLibNull/OemMiscLib.c
ArmPkg: Rename some functions and parameters in OemMiscLib
[mirror_edk2.git] / ArmPkg / Universal / Smbios / OemMiscLibNull / OemMiscLib.c
CommitLineData
0e51d7e4
RC
1/** @file\r
2* OemMiscLib.c\r
3*\r
4* Copyright (c) 2021, NUVIA Inc. All rights reserved.\r
5* Copyright (c) 2018, Hisilicon Limited. All rights reserved.\r
6* Copyright (c) 2018, Linaro Limited. All rights reserved.\r
7*\r
8* SPDX-License-Identifier: BSD-2-Clause-Patent\r
9*\r
10**/\r
11\r
12#include <Uefi.h>\r
13#include <Library/BaseMemoryLib.h>\r
8cb9b296 14#include <Library/DebugLib.h>\r
0e51d7e4 15#include <Library/HiiLib.h>\r
0e51d7e4
RC
16#include <Library/OemMiscLib.h>\r
17\r
18\r
19/** Gets the CPU frequency of the specified processor.\r
20\r
21 @param ProcessorIndex Index of the processor to get the frequency for.\r
22\r
23 @return CPU frequency in Hz\r
24**/\r
0e51d7e4 25UINTN\r
533fff50 26EFIAPI\r
0e51d7e4
RC
27OemGetCpuFreq (\r
28 IN UINT8 ProcessorIndex\r
29 )\r
30{\r
31 ASSERT (FALSE);\r
32 return 0;\r
33}\r
34\r
35/** Gets information about the specified processor and stores it in\r
36 the structures provided.\r
37\r
38 @param ProcessorIndex Index of the processor to get the information for.\r
39 @param ProcessorStatus Processor status.\r
40 @param ProcessorCharacteristics Processor characteritics.\r
41 @param MiscProcessorData Miscellaneous processor information.\r
42\r
43 @return TRUE on success, FALSE on failure.\r
44**/\r
0e51d7e4 45BOOLEAN\r
533fff50 46EFIAPI\r
0e51d7e4
RC
47OemGetProcessorInformation (\r
48 IN UINTN ProcessorIndex,\r
49 IN OUT PROCESSOR_STATUS_DATA *ProcessorStatus,\r
50 IN OUT PROCESSOR_CHARACTERISTIC_FLAGS *ProcessorCharacteristics,\r
51 IN OUT OEM_MISC_PROCESSOR_DATA *MiscProcessorData\r
52 )\r
53{\r
54 ASSERT (FALSE);\r
55 return TRUE;\r
56}\r
57\r
58/** Gets information about the cache at the specified cache level.\r
59\r
60 @param ProcessorIndex The processor to get information for.\r
61 @param CacheLevel The cache level to get information for.\r
62 @param DataCache Whether the cache is a data cache.\r
63 @param UnifiedCache Whether the cache is a unified cache.\r
64 @param SmbiosCacheTable The SMBIOS Type7 cache information structure.\r
65\r
66 @return TRUE on success, FALSE on failure.\r
67**/\r
0e51d7e4 68BOOLEAN\r
533fff50 69EFIAPI\r
0e51d7e4
RC
70OemGetCacheInformation (\r
71 IN UINT8 ProcessorIndex,\r
72 IN UINT8 CacheLevel,\r
73 IN BOOLEAN DataCache,\r
74 IN BOOLEAN UnifiedCache,\r
75 IN OUT SMBIOS_TABLE_TYPE7 *SmbiosCacheTable\r
76 )\r
77{\r
78 ASSERT (FALSE);\r
79 return TRUE;\r
80}\r
81\r
869ccd4a 82/** Gets the maximum number of processors supported by the platform.\r
0e51d7e4 83\r
869ccd4a 84 @return The maximum number of processors.\r
0e51d7e4 85**/\r
0e51d7e4 86UINT8\r
533fff50 87EFIAPI\r
869ccd4a 88OemGetMaxProcessors (\r
0e51d7e4
RC
89 VOID\r
90 )\r
91{\r
92 ASSERT (FALSE);\r
93 return 1;\r
94}\r
95\r
96/** Gets the type of chassis for the system.\r
97\r
98 @param ChassisType The type of the chassis.\r
99\r
100 @retval EFI_SUCCESS The chassis type was fetched successfully.\r
101**/\r
102EFI_STATUS\r
103EFIAPI\r
104OemGetChassisType (\r
105 UINT8 *ChassisType\r
106 )\r
107{\r
108 ASSERT (FALSE);\r
109 *ChassisType = MiscChassisTypeUnknown;\r
110 return EFI_SUCCESS;\r
111}\r
112\r
113/** Returns whether the specified processor is present or not.\r
114\r
115 @param ProcessIndex The processor index to check.\r
116\r
117 @return TRUE is the processor is present, FALSE otherwise.\r
118**/\r
0e51d7e4 119BOOLEAN\r
533fff50 120EFIAPI\r
869ccd4a 121OemIsProcessorPresent (\r
0e51d7e4
RC
122 IN UINTN ProcessorIndex\r
123 )\r
124{\r
125 ASSERT (FALSE);\r
126 return FALSE;\r
127}\r
128\r
129/** Updates the HII string for the specified field.\r
130\r
869ccd4a 131 @param HiiHandle The HII handle.\r
0e51d7e4 132 @param TokenToUpdate The string to update.\r
869ccd4a 133 @param Field The field to get information about.\r
0e51d7e4 134**/\r
0e51d7e4 135VOID\r
533fff50 136EFIAPI\r
0e51d7e4 137OemUpdateSmbiosInfo (\r
869ccd4a 138 IN EFI_HII_HANDLE HiiHandle,\r
0e51d7e4 139 IN EFI_STRING_ID TokenToUpdate,\r
869ccd4a 140 IN OEM_MISC_SMBIOS_HII_STRING_FIELD Field\r
0e51d7e4
RC
141 )\r
142{\r
143 ASSERT (FALSE);\r
144}\r