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