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