TianoCore EDK2 master
Loading...
Searching...
No Matches
OemMiscLib.c
Go to the documentation of this file.
1
13#include <Uefi.h>
14#include <Guid/ZeroGuid.h>
16#include <Library/DebugLib.h>
17#include <Library/HiiLib.h>
18#include <Library/OemMiscLib.h>
19#include <Library/PcdLib.h>
20
28EFIAPI
30 IN UINT8 ProcessorIndex
31 )
32{
33 ASSERT (FALSE);
34 return 0;
35}
36
47BOOLEAN
48EFIAPI
50 IN UINTN ProcessorIndex,
51 IN OUT PROCESSOR_STATUS_DATA *ProcessorStatus,
52 IN OUT PROCESSOR_CHARACTERISTIC_FLAGS *ProcessorCharacteristics,
53 IN OUT OEM_MISC_PROCESSOR_DATA *MiscProcessorData
54 )
55{
56 ASSERT (FALSE);
57 return TRUE;
58}
59
70BOOLEAN
71EFIAPI
73 IN UINT8 ProcessorIndex,
74 IN UINT8 CacheLevel,
75 IN BOOLEAN DataCache,
76 IN BOOLEAN UnifiedCache,
77 IN OUT SMBIOS_TABLE_TYPE7 *SmbiosCacheTable
78 )
79{
80 ASSERT (FALSE);
81 return TRUE;
82}
83
88UINT8
89EFIAPI
91 VOID
92 )
93{
94 ASSERT (FALSE);
95 return 1;
96}
97
103EFIAPI
105 VOID
106 )
107{
108 ASSERT (FALSE);
109 return MiscChassisTypeUnknown;
110}
111
118BOOLEAN
119EFIAPI
121 IN UINTN ProcessorIndex
122 )
123{
124 ASSERT (FALSE);
125 return FALSE;
126}
127
134VOID
135EFIAPI
137 IN EFI_HII_HANDLE HiiHandle,
138 IN EFI_STRING_ID TokenToUpdate,
139 IN OEM_MISC_SMBIOS_HII_STRING_FIELD Field
140 )
141{
142 ASSERT (FALSE);
143}
144
150EFIAPI
152 VOID
153 )
154{
155 ASSERT (FALSE);
156 return BootInformationStatusNoError;
157}
158
164EFIAPI
166 VOID
167 )
168{
169 ASSERT (FALSE);
170 return ChassisStateSafe;
171}
172
178EFIAPI
180 VOID
181 )
182{
183 ASSERT (FALSE);
184 return ChassisStateSafe;
185}
186
192EFIAPI
194 VOID
195 )
196{
197 ASSERT (FALSE);
198 return ChassisStateSafe;
199}
200
206EFIAPI
208 VOID
209 )
210{
211 ASSERT (FALSE);
212 return ChassisSecurityStatusNone;
213}
214
219UINT8
220EFIAPI
222 VOID
223 )
224{
225 ASSERT (FALSE);
226 return 1U;
227}
228
233UINT8
234EFIAPI
236 VOID
237 )
238{
239 ASSERT (FALSE);
240 return 1;
241}
242
249VOID
250EFIAPI
252 OUT GUID *SystemUuid
253 )
254{
255 ASSERT (FALSE);
256 CopyGuid (SystemUuid, &gZeroGuid);
257}
258
263UINT16
264EFIAPI
266 VOID
267 )
268{
269 ASSERT (FALSE);
270 return PcdGet16 (PcdSystemBiosRelease);
271}
272
277UINT16
278EFIAPI
280 VOID
281 )
282{
283 ASSERT (FALSE);
284 return PcdGet16 (PcdEmbeddedControllerFirmwareRelease);
285}
UINT64 UINTN
GUID *EFIAPI CopyGuid(OUT GUID *DestinationGuid, IN CONST GUID *SourceGuid)
Definition: MemLibGuid.c:39
MISC_BOOT_INFORMATION_STATUS_DATA_TYPE
Definition: SmBios.h:2417
MISC_CHASSIS_SECURITY_STATE
Definition: SmBios.h:464
MISC_CHASSIS_STATE
Definition: SmBios.h:452
MISC_CHASSIS_TYPE
Definition: SmBios.h:410
#define TRUE
Definition: Base.h:301
#define FALSE
Definition: Base.h:307
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
MISC_CHASSIS_STATE EFIAPI OemGetChassisBootupState(VOID)
Definition: OemMiscLib.c:165
BOOLEAN EFIAPI OemIsProcessorPresent(IN UINTN ProcessorIndex)
Definition: OemMiscLib.c:120
UINT8 EFIAPI OemGetChassisNumPowerCords(VOID)
Definition: OemMiscLib.c:235
VOID EFIAPI OemUpdateSmbiosInfo(IN EFI_HII_HANDLE HiiHandle, IN EFI_STRING_ID TokenToUpdate, IN OEM_MISC_SMBIOS_HII_STRING_FIELD Field)
Definition: OemMiscLib.c:136
MISC_BOOT_INFORMATION_STATUS_DATA_TYPE EFIAPI OemGetBootStatus(VOID)
Definition: OemMiscLib.c:151
BOOLEAN EFIAPI OemGetProcessorInformation(IN UINTN ProcessorIndex, IN OUT PROCESSOR_STATUS_DATA *ProcessorStatus, IN OUT PROCESSOR_CHARACTERISTIC_FLAGS *ProcessorCharacteristics, IN OUT OEM_MISC_PROCESSOR_DATA *MiscProcessorData)
Definition: OemMiscLib.c:49
UINT8 EFIAPI OemGetChassisHeight(VOID)
Definition: OemMiscLib.c:221
MISC_CHASSIS_SECURITY_STATE EFIAPI OemGetChassisSecurityStatus(VOID)
Definition: OemMiscLib.c:207
UINT16 EFIAPI OemGetEmbeddedControllerFirmwareRelease(VOID)
Definition: OemMiscLib.c:279
UINTN EFIAPI OemGetCpuFreq(IN UINT8 ProcessorIndex)
Definition: OemMiscLib.c:29
MISC_CHASSIS_TYPE EFIAPI OemGetChassisType(VOID)
Definition: OemMiscLib.c:104
VOID EFIAPI OemGetSystemUuid(OUT GUID *SystemUuid)
Definition: OemMiscLib.c:251
UINT16 EFIAPI OemGetBiosRelease(VOID)
Definition: OemMiscLib.c:265
BOOLEAN EFIAPI OemGetCacheInformation(IN UINT8 ProcessorIndex, IN UINT8 CacheLevel, IN BOOLEAN DataCache, IN BOOLEAN UnifiedCache, IN OUT SMBIOS_TABLE_TYPE7 *SmbiosCacheTable)
Definition: OemMiscLib.c:72
MISC_CHASSIS_STATE EFIAPI OemGetChassisPowerSupplyState(VOID)
Definition: OemMiscLib.c:179
MISC_CHASSIS_STATE EFIAPI OemGetChassisThermalState(VOID)
Definition: OemMiscLib.c:193
UINT8 EFIAPI OemGetMaxProcessors(VOID)
Definition: OemMiscLib.c:90
#define PcdGet16(TokenName)
Definition: PcdLib.h:349
VOID * EFI_HII_HANDLE
Definition: Base.h:213