Adding typedef according to framework specification.
[mirror_edk2.git] / IntelFrameworkPkg / Include / Framework / DataHubRecords.h
CommitLineData
79964ac8 1/** @file\r
2 This file defines GUIDs and associated data structures for records posted to the Data Hub.\r
3 The producers of these records use these definitions to construct records.\r
4 The consumers of these records use these definitions to retrieve, filter and parse records.\r
5\r
6 Copyright (c) 2007, Intel Corporation\r
7 All rights reserved. This program and the accompanying materials\r
8 are licensed and made available under the terms and conditions of the BSD License\r
9 which accompanies this distribution. The full text of the license may be found at\r
10 http://opensource.org/licenses/bsd-license.php\r
11\r
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14\r
15 Module Name: DataHubRecords.h\r
16\r
17 @par Revision Reference:\r
18 DataHubRecord.h include all data hub sub class defitions from Cache subclass\r
19 spec 0.9, DataHub SubClass spec 0.9, Memory SubClass Spec 0.9, Processor\r
20 Subclass spec 0.9,Misc SubClass spec 0.9.\r
21\r
22**/\r
23\r
24#ifndef _DATAHUB_RECORDS_H_\r
25#define _DATAHUB_RECORDS_H_\r
26\r
b80fbe85 27#include <PiPei.h>\r
28#include <Protocol/DevicePath.h>\r
29\r
79964ac8 30#define EFI_PROCESSOR_SUBCLASS_VERSION 0x00010000\r
31\r
79964ac8 32#pragma pack(1)\r
33\r
34typedef struct _USB_PORT_DEVICE_PATH {\r
35 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;\r
36 PCI_DEVICE_PATH PciBusDevicePath;\r
37 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;\r
38} USB_PORT_DEVICE_PATH;\r
39\r
40//\r
41// IDE\r
42//\r
43typedef struct _IDE_DEVICE_PATH {\r
44 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;\r
45 PCI_DEVICE_PATH PciBusDevicePath;\r
46 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;\r
47} IDE_DEVICE_PATH;\r
48\r
49//\r
50// RMC Connector\r
51//\r
52typedef struct _RMC_CONN_DEVICE_PATH {\r
53 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;\r
54 PCI_DEVICE_PATH PciBridgeDevicePath;\r
55 PCI_DEVICE_PATH PciBusDevicePath;\r
56 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;\r
57} RMC_CONN_DEVICE_PATH;\r
58\r
59//\r
60// RIDE\r
61//\r
62typedef struct _RIDE_DEVICE_PATH {\r
63 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;\r
64 PCI_DEVICE_PATH PciBridgeDevicePath;\r
65 PCI_DEVICE_PATH PciBusDevicePath;\r
66 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;\r
67} RIDE_DEVICE_PATH;\r
68\r
69//\r
70// Gigabit NIC\r
71//\r
72typedef struct _GB_NIC_DEVICE_PATH {\r
73 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;\r
74 PCI_DEVICE_PATH PciBridgeDevicePath;\r
75 PCI_DEVICE_PATH PciXBridgeDevicePath;\r
76 PCI_DEVICE_PATH PciXBusDevicePath;\r
77 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;\r
78} GB_NIC_DEVICE_PATH;\r
79\r
80//\r
81// P/S2 Connector\r
82//\r
83typedef struct _PS2_CONN_DEVICE_PATH {\r
84 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;\r
85 PCI_DEVICE_PATH LpcBridgeDevicePath;\r
86 ACPI_HID_DEVICE_PATH LpcBusDevicePath;\r
87 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;\r
88} PS2_CONN_DEVICE_PATH;\r
89\r
90//\r
91// Serial Port Connector\r
92//\r
93typedef struct _SERIAL_CONN_DEVICE_PATH {\r
94 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;\r
95 PCI_DEVICE_PATH LpcBridgeDevicePath;\r
96 ACPI_HID_DEVICE_PATH LpcBusDevicePath;\r
97 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;\r
98} SERIAL_CONN_DEVICE_PATH;\r
99\r
100//\r
101// Parallel Port Connector\r
102//\r
103typedef struct _PARALLEL_CONN_DEVICE_PATH {\r
104 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;\r
105 PCI_DEVICE_PATH LpcBridgeDevicePath;\r
106 ACPI_HID_DEVICE_PATH LpcBusDevicePath;\r
107 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;\r
108} PARALLEL_CONN_DEVICE_PATH;\r
109\r
110//\r
111// Floopy Connector\r
112//\r
113typedef struct _FLOOPY_CONN_DEVICE_PATH {\r
114 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;\r
115 PCI_DEVICE_PATH LpcBridgeDevicePath;\r
116 ACPI_HID_DEVICE_PATH LpcBusDevicePath;\r
117 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;\r
118} FLOOPY_CONN_DEVICE_PATH;\r
119\r
120typedef union _EFI_MISC_PORT_DEVICE_PATH {\r
121 USB_PORT_DEVICE_PATH UsbDevicePath;\r
122 IDE_DEVICE_PATH IdeDevicePath;\r
123 RMC_CONN_DEVICE_PATH RmcConnDevicePath;\r
124 RIDE_DEVICE_PATH RideDevicePath;\r
125 GB_NIC_DEVICE_PATH GbNicDevicePath;\r
126 PS2_CONN_DEVICE_PATH Ps2ConnDevicePath;\r
127 SERIAL_CONN_DEVICE_PATH SerialConnDevicePath;\r
128 PARALLEL_CONN_DEVICE_PATH ParallelConnDevicePath;\r
129 FLOOPY_CONN_DEVICE_PATH FloppyConnDevicePath;\r
130} EFI_MISC_PORT_DEVICE_PATH;\r
131\r
132#pragma pack()\r
133\r
134//\r
135// String Token Definition\r
136//\r
137#define EFI_STRING_TOKEN UINT16\r
138\r
139typedef struct {\r
140 UINT32 Version;\r
141 UINT32 HeaderSize;\r
142 UINT16 Instance;\r
143 UINT16 SubInstance;\r
144 UINT32 RecordType;\r
145} EFI_SUBCLASS_TYPE1_HEADER;\r
146\r
147typedef struct {\r
148 EFI_GUID ProducerName;\r
149 UINT16 Instance;\r
150 UINT16 SubInstance;\r
151} EFI_INTER_LINK_DATA;\r
152\r
153\r
154//\r
155// EXP data\r
156//\r
157\r
158typedef struct {\r
159 UINT16 Value;\r
160 UINT16 Exponent;\r
161} EFI_EXP_BASE2_DATA;\r
162\r
163\r
df2b7d51 164typedef struct {\r
165 UINT16 Value;\r
166 UINT16 Exponent;\r
167} EFI_EXP_BASE10_DATA;\r
168\r
79964ac8 169typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_MAX_CORE_FREQUENCY_DATA;\r
170\r
171typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_MAX_FSB_FREQUENCY_DATA;\r
172\r
173typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_CORE_FREQUENCY_DATA;\r
174\r
175typedef EFI_EXP_BASE10_DATA *EFI_PROCESSOR_CORE_FREQUENCY_LIST_DATA;\r
176\r
177typedef EFI_EXP_BASE10_DATA *EFI_PROCESSOR_FSB_FREQUENCY_LIST_DATA;\r
178\r
179typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_FSB_FREQUENCY_DATA;\r
180\r
181typedef STRING_REF EFI_PROCESSOR_VERSION_DATA;\r
182\r
183typedef STRING_REF EFI_PROCESSOR_MANUFACTURER_DATA;\r
184\r
185typedef STRING_REF EFI_PROCESSOR_SERIAL_NUMBER_DATA;\r
186\r
187typedef STRING_REF EFI_PROCESSOR_ASSET_TAG_DATA;\r
188\r
189typedef struct {\r
190 UINT32 ProcessorSteppingId:4;\r
191 UINT32 ProcessorModel: 4;\r
192 UINT32 ProcessorFamily: 4;\r
193 UINT32 ProcessorType: 2;\r
194 UINT32 ProcessorReserved1: 2;\r
195 UINT32 ProcessorXModel: 4;\r
196 UINT32 ProcessorXFamily: 8;\r
197 UINT32 ProcessorReserved2: 4;\r
198} EFI_PROCESSOR_SIGNATURE;\r
199\r
200typedef struct {\r
201 UINT32 ProcessorBrandIndex :8;\r
202 UINT32 ProcessorClflush :8;\r
203 UINT32 ProcessorReserved :8;\r
204 UINT32 ProcessorDfltApicId :8;\r
205} EFI_PROCESSOR_MISC_INFO;\r
206\r
207typedef struct {\r
208 UINT32 ProcessorFpu: 1;\r
209 UINT32 ProcessorVme: 1;\r
210 UINT32 ProcessorDe: 1;\r
211 UINT32 ProcessorPse: 1;\r
212 UINT32 ProcessorTsc: 1;\r
213 UINT32 ProcessorMsr: 1;\r
214 UINT32 ProcessorPae: 1;\r
215 UINT32 ProcessorMce: 1;\r
216 UINT32 ProcessorCx8: 1;\r
217 UINT32 ProcessorApic: 1;\r
218 UINT32 ProcessorReserved1: 1;\r
219 UINT32 ProcessorSep: 1;\r
220 UINT32 ProcessorMtrr: 1;\r
221 UINT32 ProcessorPge: 1;\r
222 UINT32 ProcessorMca: 1;\r
223 UINT32 ProcessorCmov: 1;\r
224 UINT32 ProcessorPat: 1;\r
225 UINT32 ProcessorPse36: 1;\r
226 UINT32 ProcessorPsn: 1;\r
227 UINT32 ProcessorClfsh: 1;\r
228 UINT32 ProcessorReserved2: 1;\r
229 UINT32 ProcessorDs: 1;\r
230 UINT32 ProcessorAcpi: 1;\r
231 UINT32 ProcessorMmx: 1;\r
232 UINT32 ProcessorFxsr: 1;\r
233 UINT32 ProcessorSse: 1;\r
234 UINT32 ProcessorSse2: 1;\r
235 UINT32 ProcessorSs: 1;\r
236 UINT32 ProcessorReserved3: 1;\r
237 UINT32 ProcessorTm: 1;\r
238 UINT32 ProcessorReserved4: 2;\r
239} EFI_PROCESSOR_FEATURE_FLAGS;\r
240\r
241typedef struct {\r
242 EFI_PROCESSOR_SIGNATURE Signature;\r
243 EFI_PROCESSOR_MISC_INFO MiscInfo;\r
244 UINT32 Reserved;\r
245 EFI_PROCESSOR_FEATURE_FLAGS FeatureFlags;\r
246} EFI_PROCESSOR_ID_DATA;\r
247\r
248typedef enum {\r
249 EfiProcessorOther = 1,\r
250 EfiProcessorUnknown = 2,\r
251 EfiCentralProcessor = 3,\r
252 EfiMathProcessor = 4,\r
253 EfiDspProcessor = 5,\r
254 EfiVideoProcessor = 6\r
255} EFI_PROCESSOR_TYPE_DATA;\r
256\r
257typedef enum {\r
258 EfiProcessorFamilyOther = 1,\r
259 EfiProcessorFamilyUnknown = 2,\r
260 EfiProcessorFamily8086 = 3,\r
261 EfiProcessorFamily80286 = 4,\r
262 EfiProcessorFamilyIntel386 = 5,\r
263 EfiProcessorFamilyIntel486 = 6,\r
264 EfiProcessorFamily8087 = 7,\r
265 EfiProcessorFamily80287 = 8,\r
266 EfiProcessorFamily80387 = 9,\r
267 EfiProcessorFamily80487 = 0x0A,\r
268 EfiProcessorFamilyPentium = 0x0B,\r
269 EfiProcessorFamilyPentiumPro = 0x0C,\r
270 EfiProcessorFamilyPentiumII = 0x0D,\r
271 EfiProcessorFamilyPentiumMMX = 0x0E,\r
272 EfiProcessorFamilyCeleron = 0x0F,\r
273 EfiProcessorFamilyPentiumIIXeon = 0x10,\r
274 EfiProcessorFamilyPentiumIII = 0x11,\r
275 EfiProcessorFamilyM1 = 0x12,\r
276 EfiProcessorFamilyM1Reserved1 = 0x13,\r
277 EfiProcessorFamilyM1Reserved2 = 0x14,\r
278 EfiProcessorFamilyM1Reserved3 = 0x15,\r
279 EfiProcessorFamilyM1Reserved4 = 0x16,\r
280 EfiProcessorFamilyM1Reserved5 = 0x17,\r
281 EfiProcessorFamilyM1Reserved6 = 0x18,\r
282 EfiProcessorFamilyK5 = 0x19,\r
283 EfiProcessorFamilyK5Reserved1 = 0x1A,\r
284 EfiProcessorFamilyK5Reserved2 = 0x1B,\r
285 EfiProcessorFamilyK5Reserved3 = 0x1C,\r
286 EfiProcessorFamilyK5Reserved4 = 0x1D,\r
287 EfiProcessorFamilyK5Reserved5 = 0x1E,\r
288 EfiProcessorFamilyK5Reserved6 = 0x1F,\r
289 EfiProcessorFamilyPowerPC = 0x20,\r
290 EfiProcessorFamilyPowerPC601 = 0x21,\r
291 EfiProcessorFamilyPowerPC603 = 0x22,\r
292 EfiProcessorFamilyPowerPC603Plus = 0x23,\r
293 EfiProcessorFamilyPowerPC604 = 0x24,\r
294 EfiProcessorFamilyAlpha2 = 0x30,\r
295 EfiProcessorFamilyMips = 0x40,\r
296 EfiProcessorFamilySparc = 0x50,\r
297 EfiProcessorFamily68040 = 0x60,\r
298 EfiProcessorFamily68xxx = 0x61,\r
299 EfiProcessorFamily68000 = 0x62,\r
300 EfiProcessorFamily68010 = 0x63,\r
301 EfiProcessorFamily68020 = 0x64,\r
302 EfiProcessorFamily68030 = 0x65,\r
303 EfiProcessorFamilyHobbit = 0x70,\r
304 EfiProcessorFamilyWeitek = 0x80,\r
305 EfiProcessorFamilyPARISC = 0x90,\r
306 EfiProcessorFamilyV30 = 0xA0,\r
307 EfiProcessorFamilyPentiumIIIXeon = 0xB0,\r
308 EfiProcessorFamilyPentiumIIISpeedStep = 0xB1,\r
309 EfiProcessorFamilyPentium4 = 0xB2,\r
310 EfiProcessorFamilyIntelXeon = 0xB3,\r
311 EfiProcessorFamilyAS400 = 0xB4,\r
312 EfiProcessorFamilyIntelXeonMP = 0xB5,\r
313 EfiProcessorFamilyAMDAthlonXP = 0xB6,\r
314 EfiProcessorFamilyAMDAthlonMP = 0xB7,\r
315 EfiProcessorFamilyIntelPentiumM = 0xB9,\r
316 EfiProcessorFamilyIntelCeleronD = 0xBA,\r
317 EfiProcessorFamilyIntelPentiumD = 0xBB,\r
318 EfiProcessorFamilyIntelPentiumEx = 0xBC,\r
319 EfiProcessorFamilyIBM390 = 0xC8,\r
320 EfiProcessorFamilyG4 = 0xC9,\r
321 EfiProcessorFamilyG5 = 0xCA,\r
322 EfiProcessorFamilyi860 = 0xFA,\r
323 EfiProcessorFamilyi960 = 0xFB\r
324} EFI_PROCESSOR_FAMILY_DATA;\r
325\r
326typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_VOLTAGE_DATA;\r
327\r
328typedef EFI_PHYSICAL_ADDRESS EFI_PROCESSOR_APIC_BASE_ADDRESS_DATA;\r
329\r
330typedef UINT32 EFI_PROCESSOR_APIC_ID_DATA;\r
331\r
332typedef UINT32 EFI_PROCESSOR_APIC_VERSION_NUMBER_DATA;\r
333\r
334typedef enum {\r
335 EfiProcessorIa32Microcode = 1,\r
336 EfiProcessorIpfPalAMicrocode = 2,\r
337 EfiProcessorIpfPalBMicrocode = 3\r
338} EFI_PROCESSOR_MICROCODE_TYPE;\r
339\r
340typedef struct {\r
341 EFI_PROCESSOR_MICROCODE_TYPE ProcessorMicrocodeType;\r
342 UINT32 ProcessorMicrocodeRevisionNumber;\r
343} EFI_PROCESSOR_MICROCODE_REVISION_DATA;\r
344\r
345typedef struct {\r
346 UINT32 CpuStatus :3;\r
347 UINT32 Reserved1 :3;\r
348 UINT32 SocketPopulated :1;\r
349 UINT32 Reserved2 :1;\r
350 UINT32 ApicEnable :1;\r
351 UINT32 BootApplicationProcessor :1;\r
352 UINT32 Reserved3 :22;\r
353} EFI_PROCESSOR_STATUS_DATA;\r
354\r
355typedef enum {\r
356 EfiCpuStatusUnknown = 0,\r
357 EfiCpuStatusEnabled = 1,\r
358 EfiCpuStatusDisabledByUser = 2,\r
359 EfiCpuStatusDisabledbyBios = 3,\r
360 EfiCpuStatusIdle = 4,\r
361 EfiCpuStatusOther = 7\r
362} EFI_CPU_STATUS;\r
363\r
364typedef enum {\r
365 EfiProcessorSocketOther = 1,\r
366 EfiProcessorSocketUnknown = 2,\r
367 EfiProcessorSocketDaughterBoard = 3,\r
368 EfiProcessorSocketZIF = 4,\r
369 EfiProcessorSocketReplacePiggyBack = 5,\r
370 EfiProcessorSocketNone = 6,\r
371 EfiProcessorSocketLIF = 7,\r
372 EfiProcessorSocketSlot1 = 8,\r
373 EfiProcessorSocketSlot2 = 9,\r
374 EfiProcessorSocket370Pin = 0xA,\r
375 EfiProcessorSocketSlotA = 0xB,\r
376 EfiProcessorSocketSlotM = 0xC,\r
377 EfiProcessorSocket423 = 0xD,\r
378 EfiProcessorSocketA462 = 0xE,\r
379 EfiProcessorSocket478 = 0xF,\r
380 EfiProcessorSocket754 = 0x10,\r
381 EfiProcessorSocket940 = 0x11,\r
382 EfiProcessorSocket939 = 0x12,\r
383 EfiProcessorSocketmPGA604 = 0x13,\r
384 EfiProcessorSocketLGA771 = 0x14,\r
385 EfiProcessorSocketLGA775 = 0x15\r
386\r
387} EFI_PROCESSOR_SOCKET_TYPE_DATA;\r
388\r
389typedef STRING_REF EFI_PROCESSOR_SOCKET_NAME_DATA;\r
390\r
391typedef EFI_INTER_LINK_DATA EFI_CACHE_ASSOCIATION_DATA;\r
392\r
393typedef enum {\r
394 EfiProcessorHealthy = 1,\r
395 EfiProcessorPerfRestricted = 2,\r
396 EfiProcessorFuncRestricted = 3\r
397} EFI_PROCESSOR_HEALTH_STATUS;\r
398\r
399typedef UINTN EFI_PROCESSOR_PACKAGE_NUMBER_DATA;\r
400\r
401\r
402typedef enum {\r
403 ProcessorCoreFrequencyRecordType = 1,\r
404 ProcessorFsbFrequencyRecordType = 2,\r
405 ProcessorVersionRecordType = 3,\r
406 ProcessorManufacturerRecordType = 4,\r
407 ProcessorSerialNumberRecordType = 5,\r
408 ProcessorIdRecordType = 6,\r
409 ProcessorTypeRecordType = 7,\r
410 ProcessorFamilyRecordType = 8,\r
411 ProcessorVoltageRecordType = 9,\r
412 ProcessorApicBaseAddressRecordType = 10,\r
413 ProcessorApicIdRecordType = 11,\r
414 ProcessorApicVersionNumberRecordType = 12,\r
415 CpuUcodeRevisionDataRecordType = 13,\r
416 ProcessorStatusRecordType = 14,\r
417 ProcessorSocketTypeRecordType = 15,\r
418 ProcessorSocketNameRecordType = 16,\r
419 CacheAssociationRecordType = 17,\r
420 ProcessorMaxCoreFrequencyRecordType = 18,\r
421 ProcessorAssetTagRecordType = 19,\r
422 ProcessorMaxFsbFrequencyRecordType = 20,\r
423 ProcessorPackageNumberRecordType = 21,\r
424 ProcessorCoreFrequencyListRecordType = 22,\r
425 ProcessorFsbFrequencyListRecordType = 23,\r
426 ProcessorHealthStatusRecordType = 24\r
427} EFI_CPU_VARIABLE_RECORD_TYPE;\r
428\r
429typedef union {\r
430 EFI_PROCESSOR_CORE_FREQUENCY_LIST_DATA ProcessorCoreFrequencyList;\r
431 EFI_PROCESSOR_FSB_FREQUENCY_LIST_DATA ProcessorFsbFrequencyList;\r
432 EFI_PROCESSOR_SERIAL_NUMBER_DATA ProcessorSerialNumber;\r
433 EFI_PROCESSOR_CORE_FREQUENCY_DATA ProcessorCoreFrequency;\r
434 EFI_PROCESSOR_FSB_FREQUENCY_DATA ProcessorFsbFrequency;\r
435 EFI_PROCESSOR_MAX_CORE_FREQUENCY_DATA ProcessorMaxCoreFrequency;\r
436 EFI_PROCESSOR_MAX_FSB_FREQUENCY_DATA ProcessorMaxFsbFrequency;\r
437 EFI_PROCESSOR_VERSION_DATA ProcessorVersion;\r
438 EFI_PROCESSOR_MANUFACTURER_DATA ProcessorManufacturer;\r
439 EFI_PROCESSOR_ID_DATA ProcessorId;\r
440 EFI_PROCESSOR_TYPE_DATA ProcessorType;\r
441 EFI_PROCESSOR_FAMILY_DATA ProcessorFamily;\r
442 EFI_PROCESSOR_VOLTAGE_DATA ProcessorVoltage;\r
443 EFI_PROCESSOR_APIC_BASE_ADDRESS_DATA ProcessorApicBase;\r
444 EFI_PROCESSOR_APIC_ID_DATA ProcessorApicId;\r
445 EFI_PROCESSOR_APIC_VERSION_NUMBER_DATA ProcessorApicVersionNumber;\r
446 EFI_PROCESSOR_MICROCODE_REVISION_DATA CpuUcodeRevisionData;\r
447 EFI_PROCESSOR_STATUS_DATA ProcessorStatus;\r
448 EFI_PROCESSOR_SOCKET_TYPE_DATA ProcessorSocketType;\r
449 EFI_PROCESSOR_SOCKET_NAME_DATA ProcessorSocketName;\r
450 EFI_PROCESSOR_ASSET_TAG_DATA ProcessorAssetTag;\r
451 EFI_PROCESSOR_HEALTH_STATUS ProcessorHealthStatus;\r
452 EFI_PROCESSOR_PACKAGE_NUMBER_DATA ProcessorPackageNumber;\r
453} EFI_CPU_VARIABLE_RECORD;\r
454\r
455typedef struct {\r
456 EFI_SUBCLASS_TYPE1_HEADER DataRecordHeader;\r
457 EFI_CPU_VARIABLE_RECORD VariableRecord;\r
458} EFI_CPU_DATA_RECORD;\r
459\r
460#define EFI_CACHE_SUBCLASS_VERSION 0x00010000\r
461\r
79964ac8 462typedef EFI_EXP_BASE2_DATA EFI_CACHE_SIZE_DATA;\r
463\r
464typedef EFI_EXP_BASE2_DATA EFI_MAXIMUM_CACHE_SIZE_DATA;\r
465\r
466typedef EFI_EXP_BASE10_DATA EFI_CACHE_SPEED_DATA;\r
467\r
468typedef STRING_REF EFI_CACHE_SOCKET_DATA;\r
469\r
470typedef struct {\r
471 UINT32 Other :1;\r
472 UINT32 Unknown :1;\r
473 UINT32 NonBurst :1;\r
474 UINT32 Burst :1;\r
475 UINT32 PipelineBurst :1;\r
476 UINT32 Asynchronous :1;\r
477 UINT32 Synchronous :1;\r
478 UINT32 Reserved :25;\r
479} EFI_CACHE_SRAM_TYPE_DATA;\r
480\r
8403ef2e 481typedef EFI_CACHE_SRAM_TYPE_DATA EFI_CACHE_SRAM_INSTALL_DATA;\r
482\r
79964ac8 483typedef enum {\r
484 EfiCacheErrorOther = 1,\r
485 EfiCacheErrorUnknown = 2,\r
486 EfiCacheErrorNone = 3,\r
487 EfiCacheErrorParity = 4,\r
488 EfiCacheErrorSingleBit = 5,\r
489 EfiCacheErrorMultiBit = 6\r
490} EFI_CACHE_ERROR_TYPE_DATA;\r
491\r
492typedef enum {\r
493 EfiCacheTypeOther = 1,\r
494 EfiCacheTypeUnknown = 2,\r
495 EfiCacheTypeInstruction = 3,\r
496 EfiCacheTypeData = 4,\r
497 EfiCacheTypeUnified = 5\r
498} EFI_CACHE_TYPE_DATA;\r
499\r
500typedef enum {\r
501 EfiCacheAssociativityOther = 1,\r
502 EfiCacheAssociativityUnknown = 2,\r
503 EfiCacheAssociativityDirectMapped = 3,\r
504 EfiCacheAssociativity2Way = 4,\r
505 EfiCacheAssociativity4Way = 5,\r
506 EfiCacheAssociativityFully = 6,\r
507 EfiCacheAssociativity8Way = 7,\r
508 EfiCacheAssociativity16Way = 8\r
509} EFI_CACHE_ASSOCIATIVITY_DATA;\r
510\r
511typedef struct {\r
512 UINT32 Level :3;\r
513 UINT32 Socketed :1;\r
514 UINT32 Reserved2 :1;\r
515 UINT32 Location :2;\r
516 UINT32 Enable :1;\r
517 UINT32 OperationalMode :2;\r
518 UINT32 Reserved1 :22;\r
519} EFI_CACHE_CONFIGURATION_DATA;\r
520\r
521#define EFI_CACHE_L1 1\r
522#define EFI_CACHE_L2 2\r
523#define EFI_CACHE_L3 3\r
524#define EFI_CACHE_L4 4\r
525#define EFI_CACHE_LMAX EFI_CACHE_L4\r
526\r
527#define EFI_CACHE_SOCKETED 1\r
528#define EFI_CACHE_NOT_SOCKETED 0\r
529\r
530typedef enum {\r
531 EfiCacheInternal = 0,\r
532 EfiCacheExternal = 1,\r
533 EfiCacheReserved = 2,\r
534 EfiCacheUnknown = 3\r
535} EFI_CACHE_LOCATION;\r
536\r
537#define EFI_CACHE_ENABLED 1\r
538#define EFI_CACHE_DISABLED 0\r
539\r
540typedef enum {\r
541 EfiCacheWriteThrough = 0,\r
542 EfiCacheWriteBack = 1,\r
543 EfiCacheDynamicMode = 2,\r
544 EfiCacheUnknownMode = 3\r
545} EFI_CACHE_OPERATIONAL_MODE;\r
546\r
547\r
548\r
549typedef enum {\r
550 CacheSizeRecordType = 1,\r
551 MaximumSizeCacheRecordType = 2,\r
552 CacheSpeedRecordType = 3,\r
553 CacheSocketRecordType = 4,\r
554 CacheSramTypeRecordType = 5,\r
555 CacheInstalledSramTypeRecordType = 6,\r
556 CacheErrorTypeRecordType = 7,\r
557 CacheTypeRecordType = 8,\r
558 CacheAssociativityRecordType = 9,\r
559 CacheConfigRecordType = 10\r
560} EFI_CACHE_VARIABLE_RECORD_TYPE;\r
561\r
562\r
563typedef union {\r
564 EFI_CACHE_SIZE_DATA CacheSize;\r
565 EFI_MAXIMUM_CACHE_SIZE_DATA MaximumCacheSize;\r
566 EFI_CACHE_SPEED_DATA CacheSpeed;\r
567 EFI_CACHE_SOCKET_DATA CacheSocket;\r
568 EFI_CACHE_SRAM_TYPE_DATA CacheSramType;\r
569 EFI_CACHE_SRAM_TYPE_DATA CacheInstalledSramType;\r
570 EFI_CACHE_ERROR_TYPE_DATA CacheErrorType;\r
571 EFI_CACHE_TYPE_DATA CacheType;\r
572 EFI_CACHE_ASSOCIATIVITY_DATA CacheAssociativity;\r
573 EFI_CACHE_CONFIGURATION_DATA CacheConfig;\r
574 EFI_CACHE_ASSOCIATION_DATA CacheAssociation;\r
575} EFI_CACHE_VARIABLE_RECORD;\r
576\r
577typedef struct {\r
578 EFI_SUBCLASS_TYPE1_HEADER DataRecordHeader;\r
579 EFI_CACHE_VARIABLE_RECORD VariableRecord;\r
580} EFI_CACHE_DATA_RECORD;\r
581\r
582#define EFI_MEMORY_SUBCLASS_VERSION 0x0100\r
583\r
584\r
585#define EFI_MEMORY_SIZE_RECORD_NUMBER 0x00000001\r
586\r
587typedef enum _EFI_MEMORY_REGION_TYPE {\r
588 EfiMemoryRegionMemory = 0x01,\r
589 EfiMemoryRegionReserved = 0x02,\r
590 EfiMemoryRegionAcpi = 0x03,\r
591 EfiMemoryRegionNvs = 0x04\r
592} EFI_MEMORY_REGION_TYPE;\r
593\r
594typedef struct {\r
595 UINT32 ProcessorNumber;\r
596 UINT16 StartBusNumber;\r
597 UINT16 EndBusNumber;\r
598 EFI_MEMORY_REGION_TYPE MemoryRegionType;\r
599 EFI_EXP_BASE2_DATA MemorySize;\r
600 EFI_PHYSICAL_ADDRESS MemoryStartAddress;\r
601} EFI_MEMORY_SIZE_DATA;\r
602\r
603\r
604#define EFI_MEMORY_ARRAY_LOCATION_RECORD_NUMBER 0x00000002\r
605\r
606typedef enum _EFI_MEMORY_ARRAY_LOCATION {\r
607 EfiMemoryArrayLocationOther = 0x01,\r
608 EfiMemoryArrayLocationUnknown = 0x02,\r
609 EfiMemoryArrayLocationSystemBoard = 0x03,\r
610 EfiMemoryArrayLocationIsaAddonCard = 0x04,\r
611 EfiMemoryArrayLocationEisaAddonCard = 0x05,\r
612 EfiMemoryArrayLocationPciAddonCard = 0x06,\r
613 EfiMemoryArrayLocationMcaAddonCard = 0x07,\r
614 EfiMemoryArrayLocationPcmciaAddonCard = 0x08,\r
615 EfiMemoryArrayLocationProprietaryAddonCard = 0x09,\r
616 EfiMemoryArrayLocationNuBus = 0x0A,\r
617 EfiMemoryArrayLocationPc98C20AddonCard = 0xA0,\r
618 EfiMemoryArrayLocationPc98C24AddonCard = 0xA1,\r
619 EfiMemoryArrayLocationPc98EAddonCard = 0xA2,\r
620 EfiMemoryArrayLocationPc98LocalBusAddonCard = 0xA3\r
621} EFI_MEMORY_ARRAY_LOCATION;\r
622\r
623typedef enum _EFI_MEMORY_ARRAY_USE {\r
624 EfiMemoryArrayUseOther = 0x01,\r
625 EfiMemoryArrayUseUnknown = 0x02,\r
626 EfiMemoryArrayUseSystemMemory = 0x03,\r
627 EfiMemoryArrayUseVideoMemory = 0x04,\r
628 EfiMemoryArrayUseFlashMemory = 0x05,\r
629 EfiMemoryArrayUseNonVolatileRam = 0x06,\r
630 EfiMemoryArrayUseCacheMemory = 0x07,\r
631} EFI_MEMORY_ARRAY_USE;\r
632\r
633typedef enum _EFI_MEMORY_ERROR_CORRECTION {\r
634 EfiMemoryErrorCorrectionOther = 0x01,\r
635 EfiMemoryErrorCorrectionUnknown = 0x02,\r
636 EfiMemoryErrorCorrectionNone = 0x03,\r
637 EfiMemoryErrorCorrectionParity = 0x04,\r
638 EfiMemoryErrorCorrectionSingleBitEcc = 0x05,\r
639 EfiMemoryErrorCorrectionMultiBitEcc = 0x06,\r
640 EfiMemoryErrorCorrectionCrc = 0x07,\r
641} EFI_MEMORY_ERROR_CORRECTION;\r
642\r
643typedef struct {\r
644 EFI_MEMORY_ARRAY_LOCATION MemoryArrayLocation;\r
645 EFI_MEMORY_ARRAY_USE MemoryArrayUse;\r
646 EFI_MEMORY_ERROR_CORRECTION MemoryErrorCorrection;\r
647 EFI_EXP_BASE2_DATA MaximumMemoryCapacity;\r
648 UINT16 NumberMemoryDevices;\r
649} EFI_MEMORY_ARRAY_LOCATION_DATA;\r
650\r
651\r
652#define EFI_MEMORY_ARRAY_LINK_RECORD_NUMBER 0x00000003\r
653\r
654typedef enum _EFI_MEMORY_FORM_FACTOR {\r
655 EfiMemoryFormFactorOther = 0x01,\r
656 EfiMemoryFormFactorUnknown = 0x02,\r
657 EfiMemoryFormFactorSimm = 0x03,\r
658 EfiMemoryFormFactorSip = 0x04,\r
659 EfiMemoryFormFactorChip = 0x05,\r
660 EfiMemoryFormFactorDip = 0x06,\r
661 EfiMemoryFormFactorZip = 0x07,\r
662 EfiMemoryFormFactorProprietaryCard = 0x08,\r
663 EfiMemoryFormFactorDimm = 0x09,\r
664 EfiMemoryFormFactorTsop = 0x0A,\r
665 EfiMemoryFormFactorRowOfChips = 0x0B,\r
666 EfiMemoryFormFactorRimm = 0x0C,\r
667 EfiMemoryFormFactorSodimm = 0x0D,\r
668 EfiMemoryFormFactorSrimm = 0x0E,\r
669 EfiMemoryFormFactorFbDimm = 0x0F\r
670} EFI_MEMORY_FORM_FACTOR;\r
671\r
672typedef enum _EFI_MEMORY_ARRAY_TYPE {\r
673 EfiMemoryTypeOther = 0x01,\r
674 EfiMemoryTypeUnknown = 0x02,\r
675 EfiMemoryTypeDram = 0x03,\r
676 EfiMemoryTypeEdram = 0x04,\r
677 EfiMemoryTypeVram = 0x05,\r
678 EfiMemoryTypeSram = 0x06,\r
679 EfiMemoryTypeRam = 0x07,\r
680 EfiMemoryTypeRom = 0x08,\r
681 EfiMemoryTypeFlash = 0x09,\r
682 EfiMemoryTypeEeprom = 0x0A,\r
683 EfiMemoryTypeFeprom = 0x0B,\r
684 EfiMemoryTypeEprom = 0x0C,\r
685 EfiMemoryTypeCdram = 0x0D,\r
686 EfiMemoryType3Dram = 0x0E,\r
687 EfiMemoryTypeSdram = 0x0F,\r
688 EfiMemoryTypeSgram = 0x10,\r
689 EfiMemoryTypeRdram = 0x11,\r
690 EfiMemoryTypeDdr = 0x12,\r
691 EfiMemoryTypeDdr2 = 0x13,\r
692 EfiMemoryTypeDdr2FbDimm = 0x14\r
693} EFI_MEMORY_ARRAY_TYPE;\r
694\r
695typedef struct {\r
696 UINT32 Reserved :1;\r
697 UINT32 Other :1;\r
698 UINT32 Unknown :1;\r
699 UINT32 FastPaged :1;\r
700 UINT32 StaticColumn :1;\r
701 UINT32 PseudoStatic :1;\r
702 UINT32 Rambus :1;\r
703 UINT32 Synchronous :1;\r
704 UINT32 Cmos :1;\r
705 UINT32 Edo :1;\r
706 UINT32 WindowDram :1;\r
707 UINT32 CacheDram :1;\r
708 UINT32 Nonvolatile :1;\r
709 UINT32 Reserved1 :19;\r
710} EFI_MEMORY_TYPE_DETAIL;\r
711\r
712typedef enum {\r
713 EfiMemoryStateEnabled = 0,\r
714 EfiMemoryStateUnknown = 1,\r
715 EfiMemoryStateUnsupported = 2,\r
716 EfiMemoryStateError = 3,\r
717 EfiMemoryStateAbsent = 4,\r
718 EfiMemoryStateDisabled = 5,\r
719 EfiMemoryStatePartial = 6\r
720} EFI_MEMORY_STATE;\r
721\r
722typedef struct {\r
723 STRING_REF MemoryDeviceLocator;\r
724 STRING_REF MemoryBankLocator;\r
725 STRING_REF MemoryManufacturer;\r
726 STRING_REF MemorySerialNumber;\r
727 STRING_REF MemoryAssetTag;\r
728 STRING_REF MemoryPartNumber;\r
729 EFI_INTER_LINK_DATA MemoryArrayLink;\r
730 EFI_INTER_LINK_DATA MemorySubArrayLink;\r
731 UINT16 MemoryTotalWidth;\r
732 UINT16 MemoryDataWidth;\r
733 EFI_EXP_BASE2_DATA MemoryDeviceSize;\r
734 EFI_MEMORY_FORM_FACTOR MemoryFormFactor;\r
735 UINT8 MemoryDeviceSet;\r
736 EFI_MEMORY_ARRAY_TYPE MemoryType;\r
737 EFI_MEMORY_TYPE_DETAIL MemoryTypeDetail;\r
738 EFI_EXP_BASE10_DATA MemorySpeed;\r
739 EFI_MEMORY_STATE MemoryState;\r
740} EFI_MEMORY_ARRAY_LINK_DATA;\r
741\r
742\r
743#define EFI_MEMORY_ARRAY_START_ADDRESS_RECORD_NUMBER 0x00000004\r
744\r
745typedef struct {\r
746 EFI_PHYSICAL_ADDRESS MemoryArrayStartAddress;\r
747 EFI_PHYSICAL_ADDRESS MemoryArrayEndAddress;\r
748 EFI_INTER_LINK_DATA PhysicalMemoryArrayLink;\r
749 UINT16 MemoryArrayPartitionWidth;\r
750} EFI_MEMORY_ARRAY_START_ADDRESS_DATA;\r
751\r
752\r
753#define EFI_MEMORY_DEVICE_START_ADDRESS_RECORD_NUMBER 0x00000005\r
754\r
755typedef struct {\r
756 EFI_PHYSICAL_ADDRESS MemoryDeviceStartAddress;\r
757 EFI_PHYSICAL_ADDRESS MemoryDeviceEndAddress;\r
758 EFI_INTER_LINK_DATA PhysicalMemoryDeviceLink;\r
759 EFI_INTER_LINK_DATA PhysicalMemoryArrayLink;\r
760 UINT8 MemoryDevicePartitionRowPosition;\r
761 UINT8 MemoryDeviceInterleavePosition;\r
762 UINT8 MemoryDeviceInterleaveDataDepth;\r
763} EFI_MEMORY_DEVICE_START_ADDRESS_DATA;\r
764\r
765\r
766//\r
767// Memory. Channel Device Type - SMBIOS Type 37\r
768//\r
769\r
770#define EFI_MEMORY_CHANNEL_TYPE_RECORD_NUMBER 0x00000006\r
771\r
772typedef enum _EFI_MEMORY_CHANNEL_TYPE {\r
773 EfiMemoryChannelTypeOther = 1,\r
774 EfiMemoryChannelTypeUnknown = 2,\r
775 EfiMemoryChannelTypeRambus = 3,\r
776 EfiMemoryChannelTypeSyncLink = 4\r
777} EFI_MEMORY_CHANNEL_TYPE;\r
778\r
779typedef struct {\r
780 EFI_MEMORY_CHANNEL_TYPE MemoryChannelType;\r
781 UINT8 MemoryChannelMaximumLoad;\r
782 UINT8 MemoryChannelDeviceCount;\r
783} EFI_MEMORY_CHANNEL_TYPE_DATA;\r
784\r
785#define EFI_MEMORY_CHANNEL_DEVICE_RECORD_NUMBER 0x00000007\r
786\r
787typedef struct {\r
788 UINT8 DeviceId;\r
789 EFI_INTER_LINK_DATA DeviceLink;\r
790 UINT8 MemoryChannelDeviceLoad;\r
791} EFI_MEMORY_CHANNEL_DEVICE_DATA;\r
792\r
793\r
794\r
795typedef union _EFI_MEMORY_SUBCLASS_RECORDS {\r
796 EFI_MEMORY_SIZE_DATA SizeData;\r
797 EFI_MEMORY_ARRAY_LOCATION_DATA ArrayLocationData;\r
798 EFI_MEMORY_ARRAY_LINK_DATA ArrayLink;\r
799 EFI_MEMORY_ARRAY_START_ADDRESS_DATA ArrayStartAddress;\r
800 EFI_MEMORY_DEVICE_START_ADDRESS_DATA DeviceStartAddress;\r
801 EFI_MEMORY_CHANNEL_TYPE_DATA ChannelTypeData;\r
802 EFI_MEMORY_CHANNEL_DEVICE_DATA ChannelDeviceData;\r
803} EFI_MEMORY_SUBCLASS_RECORDS;\r
804\r
805typedef struct {\r
806 EFI_SUBCLASS_TYPE1_HEADER Header;\r
807 EFI_MEMORY_SUBCLASS_RECORDS Record;\r
808} EFI_MEMORY_SUBCLASS_DRIVER_DATA;\r
809\r
810#define EFI_MISC_SUBCLASS_VERSION 0x0100\r
811\r
812#pragma pack(1)\r
813//\r
814//////////////////////////////////////////////////////////////////////////////\r
815//\r
816// Last PCI Bus Number\r
817//\r
818#define EFI_MISC_LAST_PCI_BUS_RECORD_NUMBER 0x00000001\r
819\r
820typedef struct {\r
821 UINT8 LastPciBus;\r
822} EFI_MISC_LAST_PCI_BUS_DATA;\r
823\r
824//\r
825//////////////////////////////////////////////////////////////////////////////\r
826//\r
827// Misc. BIOS Vendor - SMBIOS Type 0\r
828//\r
829#define EFI_MISC_BIOS_VENDOR_RECORD_NUMBER 0x00000002\r
830\r
831typedef struct {\r
832 UINT64 Reserved1 :2;\r
833 UINT64 Unknown :1;\r
834 UINT64 BiosCharacteristicsNotSupported :1;\r
835 UINT64 IsaIsSupported :1;\r
836 UINT64 McaIsSupported :1;\r
837 UINT64 EisaIsSupported :1;\r
838 UINT64 PciIsSupported :1;\r
839 UINT64 PcmciaIsSupported :1;\r
840 UINT64 PlugAndPlayIsSupported :1;\r
841 UINT64 ApmIsSupported :1;\r
842 UINT64 BiosIsUpgradable :1;\r
843 UINT64 BiosShadowingAllowed :1;\r
844 UINT64 VlVesaIsSupported :1;\r
845 UINT64 EscdSupportIsAvailable :1;\r
846 UINT64 BootFromCdIsSupported :1;\r
847 UINT64 SelectableBootIsSupported :1;\r
848 UINT64 RomBiosIsSocketed :1;\r
849 UINT64 BootFromPcmciaIsSupported :1;\r
850 UINT64 EDDSpecificationIsSupported :1;\r
851 UINT64 JapaneseNecFloppyIsSupported :1;\r
852 UINT64 JapaneseToshibaFloppyIsSupported :1;\r
853 UINT64 Floppy525_360IsSupported :1;\r
854 UINT64 Floppy525_12IsSupported :1;\r
855 UINT64 Floppy35_720IsSupported :1;\r
856 UINT64 Floppy35_288IsSupported :1;\r
857 UINT64 PrintScreenIsSupported :1;\r
858 UINT64 Keyboard8042IsSupported :1;\r
859 UINT64 SerialIsSupported :1;\r
860 UINT64 PrinterIsSupported :1;\r
861 UINT64 CgaMonoIsSupported :1;\r
862 UINT64 NecPc98 :1;\r
863 UINT64 AcpiIsSupported :1;\r
864 UINT64 UsbLegacyIsSupported :1;\r
865 UINT64 AgpIsSupported :1;\r
866 UINT64 I20BootIsSupported :1;\r
867 UINT64 Ls120BootIsSupported :1;\r
868 UINT64 AtapiZipDriveBootIsSupported :1;\r
869 UINT64 Boot1394IsSupported :1;\r
870 UINT64 SmartBatteryIsSupported :1;\r
871 UINT64 BiosBootSpecIsSupported :1;\r
872 UINT64 FunctionKeyNetworkBootIsSupported :1;\r
873 UINT64 Reserved :22;\r
874} EFI_MISC_BIOS_CHARACTERISTICS;\r
875\r
876typedef struct {\r
877 UINT64 BiosReserved :16;\r
878 UINT64 SystemReserved :16;\r
879 UINT64 Reserved :32;\r
880} EFI_MISC_BIOS_CHARACTERISTICS_EXTENSION;\r
881\r
882typedef struct {\r
883 STRING_REF BiosVendor;\r
884 STRING_REF BiosVersion;\r
885 STRING_REF BiosReleaseDate;\r
886 EFI_PHYSICAL_ADDRESS BiosStartingAddress;\r
887 EFI_EXP_BASE2_DATA BiosPhysicalDeviceSize;\r
888 EFI_MISC_BIOS_CHARACTERISTICS BiosCharacteristics1;\r
889 EFI_MISC_BIOS_CHARACTERISTICS_EXTENSION BiosCharacteristics2;\r
890 UINT8 BiosMajorRelease;\r
891 UINT8 BiosMinorRelease;\r
892 UINT8 BiosEmbeddedFirmwareMajorRelease;\r
893 UINT8 BiosEmbeddedFirmwareMinorRelease;\r
894} EFI_MISC_BIOS_VENDOR_DATA;\r
895\r
896//\r
897//////////////////////////////////////////////////////////////////////////////\r
898//\r
899// Misc. System Manufacturer - SMBIOS Type 1\r
900//\r
901#define EFI_MISC_SYSTEM_MANUFACTURER_RECORD_NUMBER 0x00000003\r
902\r
903typedef enum {\r
904 EfiSystemWakeupTypeReserved = 0,\r
905 EfiSystemWakeupTypeOther = 1,\r
906 EfiSystemWakeupTypeUnknown = 2,\r
907 EfiSystemWakeupTypeApmTimer = 3,\r
908 EfiSystemWakeupTypeModemRing = 4,\r
909 EfiSystemWakeupTypeLanRemote = 5,\r
910 EfiSystemWakeupTypePowerSwitch = 6,\r
911 EfiSystemWakeupTypePciPme = 7,\r
912 EfiSystemWakeupTypeAcPowerRestored = 8,\r
913} EFI_MISC_SYSTEM_WAKEUP_TYPE;\r
914\r
915typedef struct {\r
916 STRING_REF SystemManufacturer;\r
917 STRING_REF SystemProductName;\r
918 STRING_REF SystemVersion;\r
919 STRING_REF SystemSerialNumber;\r
920 EFI_GUID SystemUuid;\r
921 EFI_MISC_SYSTEM_WAKEUP_TYPE SystemWakeupType;\r
922 STRING_REF SystemSKUNumber;\r
923 STRING_REF SystemFamily;\r
924} EFI_MISC_SYSTEM_MANUFACTURER_DATA;\r
925\r
926//\r
927//////////////////////////////////////////////////////////////////////////////\r
928//\r
929// Misc. Base Board Manufacturer - SMBIOS Type 2\r
930//\r
931#define EFI_MISC_BASE_BOARD_MANUFACTURER_RECORD_NUMBER 0x00000004\r
932\r
933typedef struct {\r
934 UINT32 Motherboard :1;\r
935 UINT32 RequiresDaughterCard :1;\r
936 UINT32 Removable :1;\r
937 UINT32 Replaceable :1;\r
938 UINT32 HotSwappable :1;\r
939 UINT32 Reserved :27;\r
940} EFI_BASE_BOARD_FEATURE_FLAGS;\r
941\r
942typedef enum {\r
943 EfiBaseBoardTypeUnknown = 1,\r
944 EfiBaseBoardTypeOther = 2,\r
945 EfiBaseBoardTypeServerBlade = 3,\r
946 EfiBaseBoardTypeConnectivitySwitch = 4,\r
947 EfiBaseBoardTypeSystemManagementModule = 5,\r
948 EfiBaseBoardTypeProcessorModule = 6,\r
949 EfiBaseBoardTypeIOModule = 7,\r
950 EfiBaseBoardTypeMemoryModule = 8,\r
951 EfiBaseBoardTypeDaughterBoard = 9,\r
952 EfiBaseBoardTypeMotherBoard = 0xA,\r
953 EfiBaseBoardTypeProcessorMemoryModule = 0xB,\r
954 EfiBaseBoardTypeProcessorIOModule = 0xC,\r
955 EfiBaseBoardTypeInterconnectBoard = 0xD,\r
956} EFI_BASE_BOARD_TYPE;\r
957\r
958typedef struct {\r
959 STRING_REF BaseBoardManufacturer;\r
960 STRING_REF BaseBoardProductName;\r
961 STRING_REF BaseBoardVersion;\r
962 STRING_REF BaseBoardSerialNumber;\r
963 STRING_REF BaseBoardAssetTag;\r
964 STRING_REF BaseBoardChassisLocation;\r
965 EFI_BASE_BOARD_FEATURE_FLAGS BaseBoardFeatureFlags;\r
966 EFI_BASE_BOARD_TYPE BaseBoardType;\r
967 EFI_INTER_LINK_DATA BaseBoardChassisLink;\r
968 UINT32 BaseBoardNumberLinks;\r
969 EFI_INTER_LINK_DATA LinkN;\r
970} EFI_MISC_BASE_BOARD_MANUFACTURER_DATA;\r
971\r
972//\r
973//////////////////////////////////////////////////////////////////////////////\r
974//\r
975// Misc. System/Chassis Enclosure - SMBIOS Type 3\r
976//\r
977#define EFI_MISC_CHASSIS_MANUFACTURER_RECORD_NUMBER 0x00000005\r
978\r
979typedef enum {\r
980 EfiMiscChassisTypeOther = 0x1,\r
981 EfiMiscChassisTypeUnknown = 0x2,\r
982 EfiMiscChassisTypeDeskTop = 0x3,\r
983 EfiMiscChassisTypeLowProfileDesktop = 0x4,\r
984 EfiMiscChassisTypePizzaBox = 0x5,\r
985 EfiMiscChassisTypeMiniTower = 0x6,\r
986 EfiMiscChassisTypeTower = 0x7,\r
987 EfiMiscChassisTypePortable = 0x8,\r
988 EfiMiscChassisTypeLapTop = 0x9,\r
989 EfiMiscChassisTypeNotebook = 0xA,\r
990 EfiMiscChassisTypeHandHeld = 0xB,\r
991 EfiMiscChassisTypeDockingStation = 0xC,\r
992 EfiMiscChassisTypeAllInOne = 0xD,\r
993 EfiMiscChassisTypeSubNotebook = 0xE,\r
994 EfiMiscChassisTypeSpaceSaving = 0xF,\r
995 EfiMiscChassisTypeLunchBox = 0x10,\r
996 EfiMiscChassisTypeMainServerChassis = 0x11,\r
997 EfiMiscChassisTypeExpansionChassis = 0x12,\r
998 EfiMiscChassisTypeSubChassis = 0x13,\r
999 EfiMiscChassisTypeBusExpansionChassis = 0x14,\r
1000 EfiMiscChassisTypePeripheralChassis = 0x15,\r
1001 EfiMiscChassisTypeRaidChassis = 0x16,\r
1002 EfiMiscChassisTypeRackMountChassis = 0x17,\r
1003 EfiMiscChassisTypeSealedCasePc = 0x18,\r
1004 EfiMiscChassisMultiSystemChassis = 0x19,\r
1005} EFI_MISC_CHASSIS_TYPE;\r
1006\r
1007typedef struct {\r
1008 UINT32 ChassisType :16;\r
1009 UINT32 ChassisLockPresent:1;\r
1010 UINT32 Reserved :15;\r
1011} EFI_MISC_CHASSIS_STATUS;\r
1012\r
1013typedef enum {\r
1014 EfiChassisStateOther = 0x01,\r
1015 EfiChassisStateUnknown = 0x02,\r
1016 EfiChassisStateSafe = 0x03,\r
1017 EfiChassisStateWarning = 0x04,\r
1018 EfiChassisStateCritical = 0x05,\r
1019 EfiChassisStateNonRecoverable = 0x06,\r
1020} EFI_MISC_CHASSIS_STATE;\r
1021\r
1022typedef enum {\r
1023 EfiChassisSecurityStatusOther = 0x01,\r
1024 EfiChassisSecurityStatusUnknown = 0x02,\r
1025 EfiChassisSecurityStatusNone = 0x03,\r
1026 EfiChassisSecurityStatusExternalInterfaceLockedOut = 0x04,\r
1027 EfiChassisSecurityStatusExternalInterfaceLockedEnabled = 0x05,\r
1028} EFI_MISC_CHASSIS_SECURITY_STATE;\r
1029\r
1030typedef struct {\r
1031 UINT32 RecordType :1;\r
1032 UINT32 Reserved :24;\r
1033} EFI_MISC_ELEMENT_TYPE;\r
1034\r
1035typedef struct {\r
1036 EFI_MISC_ELEMENT_TYPE ChassisElementType;\r
1037 EFI_INTER_LINK_DATA ChassisElementStructure;\r
1038 EFI_BASE_BOARD_TYPE ChassisBaseBoard;\r
1039 UINT32 ChassisElementMinimum;\r
1040 UINT32 ChassisElementMaximum;\r
1041} EFI_MISC_ELEMENTS;\r
1042\r
1043typedef struct {\r
1044 STRING_REF ChassisManufacturer;\r
1045 STRING_REF ChassisVersion;\r
1046 STRING_REF ChassisSerialNumber;\r
1047 STRING_REF ChassisAssetTag;\r
1048 EFI_MISC_CHASSIS_STATUS ChassisType;\r
1049 EFI_MISC_CHASSIS_STATE ChassisBootupState;\r
1050 EFI_MISC_CHASSIS_STATE ChassisPowerSupplyState;\r
1051 EFI_MISC_CHASSIS_STATE ChassisThermalState;\r
1052 EFI_MISC_CHASSIS_SECURITY_STATE ChassisSecurityState;\r
1053 UINT32 ChassisOemDefined;\r
1054 UINT32 ChassisHeight;\r
1055 UINT32 ChassisNumberPowerCords;\r
1056 UINT32 ChassisElementCount;\r
1057 UINT32 ChassisElementRecordLength;//\r
1058 EFI_MISC_ELEMENTS ChassisElements;\r
1059} EFI_MISC_CHASSIS_MANUFACTURER_DATA;\r
1060\r
1061//\r
1062//////////////////////////////////////////////////////////////////////////////\r
1063//\r
1064// Misc. Port Connector Information - SMBIOS Type 8\r
1065//\r
1066#define EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR_RECORD_NUMBER 0x00000006\r
1067\r
1068typedef enum {\r
1069 EfiPortConnectorTypeNone = 0x00,\r
1070 EfiPortConnectorTypeCentronics = 0x01,\r
1071 EfiPortConnectorTypeMiniCentronics = 0x02,\r
1072 EfiPortConnectorTypeProprietary = 0x03,\r
1073 EfiPortConnectorTypeDB25Male = 0x04,\r
1074 EfiPortConnectorTypeDB25Female = 0x05,\r
1075 EfiPortConnectorTypeDB15Male = 0x06,\r
1076 EfiPortConnectorTypeDB15Female = 0x07,\r
1077 EfiPortConnectorTypeDB9Male = 0x08,\r
1078 EfiPortConnectorTypeDB9Female = 0x09,\r
1079 EfiPortConnectorTypeRJ11 = 0x0A,\r
1080 EfiPortConnectorTypeRJ45 = 0x0B,\r
1081 EfiPortConnectorType50PinMiniScsi = 0x0C,\r
1082 EfiPortConnectorTypeMiniDin = 0x0D,\r
1083 EfiPortConnectorTypeMicriDin = 0x0E,\r
1084 EfiPortConnectorTypePS2 = 0x0F,\r
1085 EfiPortConnectorTypeInfrared = 0x10,\r
1086 EfiPortConnectorTypeHpHil = 0x11,\r
1087 EfiPortConnectorTypeUsb = 0x12,\r
1088 EfiPortConnectorTypeSsaScsi = 0x13,\r
1089 EfiPortConnectorTypeCircularDin8Male = 0x14,\r
1090 EfiPortConnectorTypeCircularDin8Female = 0x15,\r
1091 EfiPortConnectorTypeOnboardIde = 0x16,\r
1092 EfiPortConnectorTypeOnboardFloppy = 0x17,\r
1093 EfiPortConnectorType9PinDualInline = 0x18,\r
1094 EfiPortConnectorType25PinDualInline = 0x19,\r
1095 EfiPortConnectorType50PinDualInline = 0x1A,\r
1096 EfiPortConnectorType68PinDualInline = 0x1B,\r
1097 EfiPortConnectorTypeOnboardSoundInput = 0x1C,\r
1098 EfiPortConnectorTypeMiniCentronicsType14 = 0x1D,\r
1099 EfiPortConnectorTypeMiniCentronicsType26 = 0x1E,\r
1100 EfiPortConnectorTypeHeadPhoneMiniJack = 0x1F,\r
1101 EfiPortConnectorTypeBNC = 0x20,\r
1102 EfiPortConnectorType1394 = 0x21,\r
1103 EfiPortConnectorTypePC98 = 0xA0,\r
1104 EfiPortConnectorTypePC98Hireso = 0xA1,\r
1105 EfiPortConnectorTypePCH98 = 0xA2,\r
1106 EfiPortConnectorTypePC98Note = 0xA3,\r
1107 EfiPortConnectorTypePC98Full = 0xA4,\r
1108 EfiPortConnectorTypeOther = 0xFF,\r
1109} EFI_MISC_PORT_CONNECTOR_TYPE;\r
1110\r
1111typedef enum {\r
1112 EfiPortTypeNone = 0x00,\r
1113 EfiPortTypeParallelXtAtCompatible = 0x01,\r
1114 EfiPortTypeParallelPortPs2 = 0x02,\r
1115 EfiPortTypeParallelPortEcp = 0x03,\r
1116 EfiPortTypeParallelPortEpp = 0x04,\r
1117 EfiPortTypeParallelPortEcpEpp = 0x05,\r
1118 EfiPortTypeSerialXtAtCompatible = 0x06,\r
1119 EfiPortTypeSerial16450Compatible = 0x07,\r
1120 EfiPortTypeSerial16550Compatible = 0x08,\r
1121 EfiPortTypeSerial16550ACompatible = 0x09,\r
1122 EfiPortTypeScsi = 0x0A,\r
1123 EfiPortTypeMidi = 0x0B,\r
1124 EfiPortTypeJoyStick = 0x0C,\r
1125 EfiPortTypeKeyboard = 0x0D,\r
1126 EfiPortTypeMouse = 0x0E,\r
1127 EfiPortTypeSsaScsi = 0x0F,\r
1128 EfiPortTypeUsb = 0x10,\r
1129 EfiPortTypeFireWire = 0x11,\r
1130 EfiPortTypePcmciaTypeI = 0x12,\r
1131 EfiPortTypePcmciaTypeII = 0x13,\r
1132 EfiPortTypePcmciaTypeIII = 0x14,\r
1133 EfiPortTypeCardBus = 0x15,\r
1134 EfiPortTypeAccessBusPort = 0x16,\r
1135 EfiPortTypeScsiII = 0x17,\r
1136 EfiPortTypeScsiWide = 0x18,\r
1137 EfiPortTypePC98 = 0x19,\r
1138 EfiPortTypePC98Hireso = 0x1A,\r
1139 EfiPortTypePCH98 = 0x1B,\r
1140 EfiPortTypeVideoPort = 0x1C,\r
1141 EfiPortTypeAudioPort = 0x1D,\r
1142 EfiPortTypeModemPort = 0x1E,\r
1143 EfiPortTypeNetworkPort = 0x1F,\r
1144 EfiPortType8251Compatible = 0xA0,\r
1145 EfiPortType8251FifoCompatible = 0xA1,\r
1146 EfiPortTypeOther = 0xFF,\r
1147} EFI_MISC_PORT_TYPE;\r
1148\r
1149typedef struct {\r
1150 STRING_REF PortInternalConnectorDesignator;\r
1151 STRING_REF PortExternalConnectorDesignator;\r
1152 EFI_MISC_PORT_CONNECTOR_TYPE PortInternalConnectorType;\r
1153 EFI_MISC_PORT_CONNECTOR_TYPE PortExternalConnectorType;\r
1154 EFI_MISC_PORT_TYPE PortType;\r
1155 EFI_MISC_PORT_DEVICE_PATH PortPath;\r
1156} EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR_DATA;\r
1157\r
1158//\r
1159//////////////////////////////////////////////////////////////////////////////\r
1160//\r
1161// Misc. System Slots - SMBIOS Type 9\r
1162//\r
1163#define EFI_MISC_SYSTEM_SLOT_DESIGNATION_RECORD_NUMBER 0x00000007\r
1164\r
1165typedef enum {\r
1166 EfiSlotTypeOther = 0x01,\r
1167 EfiSlotTypeUnknown = 0x02,\r
1168 EfiSlotTypeIsa = 0x03,\r
1169 EfiSlotTypeMca = 0x04,\r
1170 EfiSlotTypeEisa = 0x05,\r
1171 EfiSlotTypePci = 0x06,\r
1172 EfiSlotTypePcmcia = 0x07,\r
1173 EfiSlotTypeVlVesa = 0x08,\r
1174 EfiSlotTypeProprietary = 0x09,\r
1175 EfiSlotTypeProcessorCardSlot = 0x0A,\r
1176 EfiSlotTypeProprietaryMemoryCardSlot = 0x0B,\r
1177 EfiSlotTypeIORiserCardSlot = 0x0C,\r
1178 EfiSlotTypeNuBus = 0x0D,\r
1179 EfiSlotTypePci66MhzCapable = 0x0E,\r
1180 EfiSlotTypeAgp = 0x0F,\r
1181 EfiSlotTypeApg2X = 0x10,\r
1182 EfiSlotTypeAgp4X = 0x11,\r
1183 EfiSlotTypePciX = 0x12,\r
1184 EfiSlotTypeAgp4x = 0x13,\r
1185 EfiSlotTypePC98C20 = 0xA0,\r
1186 EfiSlotTypePC98C24 = 0xA1,\r
1187 EfiSlotTypePC98E = 0xA2,\r
1188 EfiSlotTypePC98LocalBus = 0xA3,\r
1189 EfiSlotTypePC98Card = 0xA4,\r
1190 EfiSlotTypePciExpress = 0xA5\r
1191} EFI_MISC_SLOT_TYPE;\r
1192\r
1193typedef enum {\r
1194 EfiSlotDataBusWidthOther = 0x01,\r
1195 EfiSlotDataBusWidthUnknown = 0x02,\r
1196 EfiSlotDataBusWidth8Bit = 0x03,\r
1197 EfiSlotDataBusWidth16Bit = 0x04,\r
1198 EfiSlotDataBusWidth32Bit = 0x05,\r
1199 EfiSlotDataBusWidth64Bit = 0x06,\r
1200 EfiSlotDataBusWidth128Bit = 0x07,\r
1201} EFI_MISC_SLOT_DATA_BUS_WIDTH;\r
1202\r
1203typedef enum {\r
1204 EfiSlotUsageOther = 1,\r
1205 EfiSlotUsageUnknown = 2,\r
1206 EfiSlotUsageAvailable = 3,\r
1207 EfiSlotUsageInUse = 4,\r
1208} EFI_MISC_SLOT_USAGE;\r
1209\r
1210typedef enum {\r
1211 EfiSlotLengthOther = 1,\r
1212 EfiSlotLengthUnknown = 2,\r
1213 EfiSlotLengthShort = 3,\r
1214 EfiSlotLengthLong = 4\r
1215} EFI_MISC_SLOT_LENGTH;\r
1216\r
1217typedef struct {\r
1218 UINT32 CharacteristicsUnknown :1;\r
1219 UINT32 Provides50Volts :1;\r
1220 UINT32 Provides33Volts :1;\r
1221 UINT32 SharedSlot :1;\r
1222 UINT32 PcCard16Supported :1;\r
1223 UINT32 CardBusSupported :1;\r
1224 UINT32 ZoomVideoSupported :1;\r
1225 UINT32 ModemRingResumeSupported:1;\r
1226 UINT32 PmeSignalSupported :1;\r
1227 UINT32 HotPlugDevicesSupported :1;\r
1228 UINT32 SmbusSignalSupported :1;\r
1229 UINT32 Reserved :21;\r
1230} EFI_MISC_SLOT_CHARACTERISTICS;\r
1231\r
1232typedef struct {\r
1233 STRING_REF SlotDesignation;\r
1234 EFI_MISC_SLOT_TYPE SlotType;\r
1235 EFI_MISC_SLOT_DATA_BUS_WIDTH SlotDataBusWidth;\r
1236 EFI_MISC_SLOT_USAGE SlotUsage;\r
1237 EFI_MISC_SLOT_LENGTH SlotLength;\r
1238 UINT16 SlotId;\r
1239 EFI_MISC_SLOT_CHARACTERISTICS SlotCharacteristics;\r
1240 EFI_DEVICE_PATH_PROTOCOL SlotDevicePath;\r
1241} EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA;\r
1242\r
1243//\r
1244//////////////////////////////////////////////////////////////////////////////\r
1245//\r
1246// Misc. Onboard Device - SMBIOS Type 10\r
1247//\r
1248#define EFI_MISC_ONBOARD_DEVICE_RECORD_NUMBER 0x00000008\r
1249\r
1250typedef enum {\r
1251 EfiOnBoardDeviceTypeOther = 1,\r
1252 EfiOnBoardDeviceTypeUnknown = 2,\r
1253 EfiOnBoardDeviceTypeVideo = 3,\r
1254 EfiOnBoardDeviceTypeScsiController = 4,\r
1255 EfiOnBoardDeviceTypeEthernet = 5,\r
1256 EfiOnBoardDeviceTypeTokenRing = 6,\r
1257 EfiOnBoardDeviceTypeSound = 7,\r
1258} EFI_MISC_ONBOARD_DEVICE_TYPE;\r
1259\r
1260typedef struct {\r
1261 UINT32 DeviceType :16;\r
1262 UINT32 DeviceEnabled :1;\r
1263 UINT32 Reserved :15;\r
1264} EFI_MISC_ONBOARD_DEVICE_STATUS;\r
1265\r
1266typedef struct {\r
1267 STRING_REF OnBoardDeviceDescription;\r
1268 EFI_MISC_ONBOARD_DEVICE_STATUS OnBoardDeviceStatus;\r
1269 EFI_DEVICE_PATH_PROTOCOL OnBoardDevicePath;\r
1270} EFI_MISC_ONBOARD_DEVICE_DATA;\r
1271\r
1272//\r
1273//////////////////////////////////////////////////////////////////////////////\r
1274//\r
1275// Misc. BIOS Language Information - SMBIOS Type 11\r
1276//\r
1277#define EFI_MISC_OEM_STRING_RECORD_NUMBER 0x00000009\r
1278\r
1279typedef struct {\r
1280 STRING_REF OemStringRef[1];\r
1281} EFI_MISC_OEM_STRING_DATA;\r
1282\r
1283//\r
1284//////////////////////////////////////////////////////////////////////////////\r
1285//\r
1286// Misc. System Options - SMBIOS Type 12\r
1287//\r
1288typedef struct {\r
1289 STRING_REF SystemOptionStringRef[1];\r
1290} EFI_MISC_SYSTEM_OPTION_STRING_DATA;\r
1291\r
1292#define EFI_MISC_SYSTEM_OPTION_STRING_RECORD_NUMBER 0x0000000A\r
1293\r
1294//\r
1295//////////////////////////////////////////////////////////////////////////////\r
1296//\r
1297// Misc. Number of Installable Languages - SMBIOS Type 13\r
1298//\r
1299#define EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES_RECORD_NUMBER 0x0000000B\r
1300\r
1301typedef struct {\r
1302 UINT32 AbbreviatedLanguageFormat :1;\r
1303 UINT32 Reserved :31;\r
1304} EFI_MISC_LANGUAGE_FLAGS;\r
1305\r
1306typedef struct {\r
1307 UINT16 NumberOfInstallableLanguages;\r
1308 EFI_MISC_LANGUAGE_FLAGS LanguageFlags;\r
1309 UINT16 CurrentLanguageNumber;\r
1310} EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES_DATA;\r
1311\r
1312//\r
1313//////////////////////////////////////////////////////////////////////////////\r
1314//\r
1315// Misc. System Language String\r
1316//\r
1317#define EFI_MISC_SYSTEM_LANGUAGE_STRING_RECORD_NUMBER 0x0000000C\r
1318\r
1319typedef struct {\r
1320 UINT16 LanguageId;\r
1321 STRING_REF SystemLanguageString;\r
1322} EFI_MISC_SYSTEM_LANGUAGE_STRING_DATA;\r
1323\r
1324//\r
1325//////////////////////////////////////////////////////////////////////////////\r
1326//\r
1327// Group Associations - SMBIOS Type 14\r
1328//\r
1329#define EFI_MISC_GROUP_NAME_RECORD_NUMBER 0x0000000D\r
1330\r
1331typedef struct {\r
1332 STRING_REF GroupName;\r
1333 UINT16 NumberGroupItems;\r
1334 UINT16 GroupId;\r
1335} EFI_MISC_GROUP_NAME_DATA;\r
1336\r
1337//\r
1338//////////////////////////////////////////////////////////////////////////////\r
1339//\r
1340// Group Item Set Element\r
1341//\r
1342#define EFI_MISC_GROUP_ITEM_SET_RECORD_NUMBER 0x0000000E\r
1343\r
1344typedef struct {\r
1345 EFI_GUID SubClass;\r
1346 EFI_INTER_LINK_DATA GroupLink;\r
1347 UINT16 GroupId;\r
1348 UINT16 GroupElementId;\r
1349} EFI_MISC_GROUP_ITEM_SET_DATA;\r
1350\r
1351// Misc. System Event Log - SMBIOS Type 15\r
1352//\r
1353#define EFI_MISC_SYSTEM_EVENT_LOG_RECORD_NUMBER 0x0000000D\r
1354typedef struct {\r
1355 UINT16 LogAreaLength;\r
1356 UINT16 LogHeaderStartOffset;\r
1357 UINT16 LogDataStartOffset;\r
1358 UINT8 AccessMethod;\r
1359 UINT8 LogStatus;\r
1360 UINT32 LogChangeToken;\r
1361 UINT32 AccessMethodAddress;\r
1362 UINT8 LogHeaderFormat;\r
1363 UINT8 NumberOfSupportedLogType;\r
1364 UINT8 LengthOfLogDescriptor;\r
1365} EFI_MISC_SYSTEM_EVENT_LOG_DATA;\r
1366\r
1367//\r
1368// Access Method.\r
1369// 0x00~0x04: as following definition\r
1370// 0x05~0x7f: Available for future assignment.\r
1371// 0x80~0xff: BIOS Vendor/OEM-specific.\r
1372//\r
1373#define ACCESS_INDEXIO_1INDEX8BIT_DATA8BIT 0x00\r
1374#define ACCESS_INDEXIO_2INDEX8BIT_DATA8BIT 0X01\r
1375#define ACCESS_INDEXIO_1INDEX16BIT_DATA8BIT 0X02\r
1376#define ACCESS_MEMORY_MAPPED 0x03\r
1377#define ACCESS_GPNV 0x04\r
1378\r
1379//\r
1380//////////////////////////////////////////////////////////////////////////////\r
1381//\r
1382// Misc. Pointing Device Type - SMBIOS Type 21\r
1383//\r
1384#define EFI_MISC_POINTING_DEVICE_TYPE_RECORD_NUMBER 0x0000000F\r
1385\r
1386typedef enum {\r
1387 EfiPointingDeviceTypeOther = 0x01,\r
1388 EfiPointingDeviceTypeUnknown = 0x02,\r
1389 EfiPointingDeviceTypeMouse = 0x03,\r
1390 EfiPointingDeviceTypeTrackBall = 0x04,\r
1391 EfiPointingDeviceTypeTrackPoint = 0x05,\r
1392 EfiPointingDeviceTypeGlidePoint = 0x06,\r
1393 EfiPointingDeviceTouchPad = 0x07,\r
1394 EfiPointingDeviceTouchScreen = 0x08,\r
1395 EfiPointingDeviceOpticalSensor = 0x09,\r
1396} EFI_MISC_POINTING_DEVICE_TYPE;\r
1397\r
1398typedef enum {\r
1399 EfiPointingDeviceInterfaceOther = 0x01,\r
1400 EfiPointingDeviceInterfaceUnknown = 0x02,\r
1401 EfiPointingDeviceInterfaceSerial = 0x03,\r
1402 EfiPointingDeviceInterfacePs2 = 0x04,\r
1403 EfiPointingDeviceInterfaceInfrared = 0x05,\r
1404 EfiPointingDeviceInterfaceHpHil = 0x06,\r
1405 EfiPointingDeviceInterfaceBusMouse = 0x07,\r
1406 EfiPointingDeviceInterfaceADB = 0x08,\r
1407 EfiPointingDeviceInterfaceBusMouseDB9 = 0xA0,\r
1408 EfiPointingDeviceInterfaceBusMouseMicroDin = 0xA1,\r
1409 EfiPointingDeviceInterfaceUsb = 0xA2,\r
1410} EFI_MISC_POINTING_DEVICE_INTERFACE;\r
1411\r
1412typedef struct {\r
1413 EFI_MISC_POINTING_DEVICE_TYPE PointingDeviceType;\r
1414 EFI_MISC_POINTING_DEVICE_INTERFACE PointingDeviceInterface;\r
1415 UINT16 NumberPointingDeviceButtons;\r
1416 EFI_DEVICE_PATH_PROTOCOL PointingDevicePath;\r
1417} EFI_MISC_PORTING_DEVICE_TYPE_DATA;\r
1418\r
1419//\r
1420//////////////////////////////////////////////////////////////////////////////\r
1421//\r
1422// Portable Battery - SMBIOS Type 22\r
1423//\r
1424#define EFI_MISC_BATTERY_LOCATION_RECORD_NUMBER 0x00000010\r
1425\r
1426typedef enum {\r
1427 EfiBatteryDeviceChemistryTypeOther = 0x01,\r
1428 EfiBatteryDeviceChemistryTypeUnknown = 0x02,\r
1429 EfiBatteryDeviceChemistryTypeLeadAcid = 0x03,\r
1430 EfiBatteryDeviceChemistryTypeNickelCadmium = 0x04,\r
1431 EfiBatteryDeviceChemistryTypeNickelMetalHydride = 0x05,\r
1432 EfiBatteryDeviceChemistryTypeLithiumIon = 0x06,\r
1433 EfiBatteryDeviceChemistryTypeZincAir = 0x07,\r
1434 EfiBatteryDeviceChemistryTypeLithiumPolymer = 0x08,\r
1435} EFI_MISC_BATTERY_DEVICE_CHEMISTRY;\r
1436\r
1437typedef struct {\r
1438 UINT32 Date :5;\r
1439 UINT32 Month :4;\r
1440 UINT32 Year :7;\r
1441 UINT32 Reserved :16;\r
1442} EFI_MISC_BATTERY_SBDS_MANUFACTURE_DATE;\r
1443\r
1444typedef struct {\r
1445 STRING_REF BatteryLocation;\r
1446 STRING_REF BatteryManufacturer;\r
1447 STRING_REF BatteryManufactureDate;\r
1448 STRING_REF BatterySerialNumber;\r
1449 STRING_REF BatteryDeviceName;\r
1450 STRING_REF BatterySbdsVersionNumber;\r
1451 STRING_REF BatterySbdsDeviceChemistry;\r
1452 EFI_MISC_BATTERY_DEVICE_CHEMISTRY BatteryDeviceChemistry;\r
1453 EFI_EXP_BASE10_DATA BatteryDesignCapacity;\r
1454 EFI_EXP_BASE10_DATA BatteryDesignVoltage;\r
1455 UINT16 BatteryMaximumError;\r
1456 UINT16 BatterySbdsSerialNumber;\r
1457 EFI_MISC_BATTERY_SBDS_MANUFACTURE_DATE\r
1458 BatterySbdsManufacturingDate;\r
1459 UINT32 BatteryOemSpecific;\r
1460} EFI_MISC_BATTERY_LOCATION_DATA;\r
1461\r
1462//\r
1463//////////////////////////////////////////////////////////////////////////////\r
1464//\r
1465// Misc. Reset Capabilities - SMBIOS Type 23\r
1466//\r
1467#define EFI_MISC_RESET_CAPABILITIES_RECORD_NUMBER 0x00000011\r
1468\r
1469typedef struct {\r
1470 UINT32 Status :1;\r
1471 UINT32 BootOption :2;\r
1472 UINT32 BootOptionOnLimit :2;\r
1473 UINT32 WatchdogTimerPresent:1;\r
1474 UINT32 Reserved :26;\r
1475} EFI_MISC_RESET_CAPABILITIES_TYPE;\r
1476\r
1477typedef struct {\r
1478 EFI_MISC_RESET_CAPABILITIES_TYPE ResetCapabilities;\r
1479 UINT16 ResetCount;\r
1480 UINT16 ResetLimit;\r
1481 UINT16 ResetTimerInterval;\r
1482 UINT16 ResetTimeout;\r
1483} EFI_MISC_RESET_CAPABILITIES;\r
1484\r
1485typedef struct {\r
1486 EFI_MISC_RESET_CAPABILITIES ResetCapabilities;\r
1487 UINT16 ResetCount;\r
1488 UINT16 ResetLimit;\r
1489 UINT16 ResetTimerInterval;\r
1490 UINT16 ResetTimeout;\r
1491} EFI_MISC_RESET_CAPABILITIES_DATA;\r
1492\r
1493//\r
1494//////////////////////////////////////////////////////////////////////////////\r
1495//\r
1496// Misc. Hardware Security - SMBIOS Type 24\r
1497//\r
1498#define EFI_MISC_HARDWARE_SECURITY_RECORD_NUMBER 0x00000012\r
1499\r
1500typedef enum {\r
1501 EfiHardwareSecurityStatusDisabled = 0,\r
1502 EfiHardwareSecurityStatusEnabled = 1,\r
1503 EfiHardwareSecurityStatusNotImplemented = 2,\r
1504 EfiHardwareSecurityStatusUnknown = 3\r
1505} EFI_MISC_HARDWARE_SECURITY_STATUS;\r
1506\r
1507typedef struct {\r
1508 EFI_MISC_HARDWARE_SECURITY_STATUS FrontPanelResetStatus :2;\r
1509 EFI_MISC_HARDWARE_SECURITY_STATUS AdministratorPasswordStatus :2;\r
1510 EFI_MISC_HARDWARE_SECURITY_STATUS KeyboardPasswordStatus :2;\r
1511 EFI_MISC_HARDWARE_SECURITY_STATUS PowerOnPasswordStatus :2;\r
1512 EFI_MISC_HARDWARE_SECURITY_STATUS Reserved :24;\r
1513} EFI_MISC_HARDWARE_SECURITY_SETTINGS;\r
1514\r
1515typedef struct {\r
1516 EFI_MISC_HARDWARE_SECURITY_SETTINGS HardwareSecuritySettings;\r
1517} EFI_MISC_HARDWARE_SECURITY_SETTINGS_DATA;\r
1518\r
1519//\r
1520//////////////////////////////////////////////////////////////////////////////\r
1521//\r
1522// System Power Controls - SMBIOS Type 25\r
1523//\r
1524#define EFI_MISC_SCHEDULED_POWER_ON_MONTH_RECORD_NUMBER 0x00000013\r
1525\r
1526typedef struct {\r
1527 UINT16 ScheduledPoweronMonth;\r
1528 UINT16 ScheduledPoweronDayOfMonth;\r
1529 UINT16 ScheduledPoweronHour;\r
1530 UINT16 ScheduledPoweronMinute;\r
1531 UINT16 ScheduledPoweronSecond;\r
1532} EFI_MISC_SCHEDULED_POWER_ON_MONTH_DATA;\r
1533\r
1534//\r
1535//////////////////////////////////////////////////////////////////////////////\r
1536//\r
1537// Voltage Probe - SMBIOS Type 26\r
1538//\r
1539#define EFI_MISC_VOLTAGE_PROBE_DESCRIPTION_RECORD_NUMBER 0x00000014\r
1540\r
1541typedef struct {\r
1542 UINT32 VoltageProbeSite :5;\r
1543 UINT32 VoltageProbeStatus :3;\r
1544 UINT32 Reserved :24;\r
1545} EFI_MISC_VOLTAGE_PROBE_LOCATION;\r
1546\r
1547typedef struct {\r
1548 STRING_REF VoltageProbeDescription;\r
1549 EFI_MISC_VOLTAGE_PROBE_LOCATION VoltageProbeLocation;\r
1550 EFI_EXP_BASE10_DATA VoltageProbeMaximumValue;\r
1551 EFI_EXP_BASE10_DATA VoltageProbeMinimumValue;\r
1552 EFI_EXP_BASE10_DATA VoltageProbeResolution;\r
1553 EFI_EXP_BASE10_DATA VoltageProbeTolerance;\r
1554 EFI_EXP_BASE10_DATA VoltageProbeAccuracy;\r
1555 EFI_EXP_BASE10_DATA VoltageProbeNominalValue;\r
1556 EFI_EXP_BASE10_DATA MDLowerNoncriticalThreshold;\r
1557 EFI_EXP_BASE10_DATA MDUpperNoncriticalThreshold;\r
1558 EFI_EXP_BASE10_DATA MDLowerCriticalThreshold;\r
1559 EFI_EXP_BASE10_DATA MDUpperCriticalThreshold;\r
1560 EFI_EXP_BASE10_DATA MDLowerNonrecoverableThreshold;\r
1561 EFI_EXP_BASE10_DATA MDUpperNonrecoverableThreshold;\r
1562 UINT32 VoltageProbeOemDefined;\r
1563} EFI_MISC_VOLTAGE_PROBE_DESCRIPTION_DATA;\r
1564\r
1565//\r
1566//////////////////////////////////////////////////////////////////////////////\r
1567//\r
1568// Cooling Device - SMBIOS Type 27\r
1569//\r
1570#define EFI_MISC_COOLING_DEVICE_TEMP_LINK_RECORD_NUMBER 0x00000015\r
1571\r
1572typedef struct {\r
1573 UINT32 CoolingDevice :5;\r
1574 UINT32 CoolingDeviceStatus :3;\r
1575 UINT32 Reserved :24;\r
1576} EFI_MISC_COOLING_DEVICE_TYPE;\r
1577\r
1578typedef struct {\r
1579 EFI_MISC_COOLING_DEVICE_TYPE CoolingDeviceType;\r
1580 EFI_INTER_LINK_DATA CoolingDeviceTemperatureLink;\r
1581 UINT16 CoolingDeviceUnitGroup;\r
1582 EFI_EXP_BASE10_DATA CoolingDeviceNominalSpeed;\r
1583 UINT32 CoolingDeviceOemDefined;\r
1584} EFI_MISC_COOLING_DEVICE_TEMP_LINK_DATA;\r
1585\r
1586//\r
1587//////////////////////////////////////////////////////////////////////////////\r
1588//\r
1589// Temperature Probe - SMBIOS Type 28\r
1590//\r
1591#define EFI_MISC_TEMPERATURE_PROBE_DESCRIPTION_RECORD_NUMBER 0x00000016\r
1592\r
1593typedef struct {\r
1594 UINT32 TemperatureProbeSite :5;\r
1595 UINT32 TemperatureProbeStatus :3;\r
1596 UINT32 Reserved :24;\r
1597} EFI_MISC_TEMPERATURE_PROBE_LOCATION;\r
1598\r
1599typedef struct {\r
1600 STRING_REF TemperatureProbeDescription;\r
1601 EFI_MISC_TEMPERATURE_PROBE_LOCATION\r
1602 TemperatureProbeLocation;\r
1603 EFI_EXP_BASE10_DATA TemperatureProbeMaximumValue;\r
1604 EFI_EXP_BASE10_DATA TemperatureProbeMinimumValue;\r
1605 EFI_EXP_BASE10_DATA TemperatureProbeResolution;\r
1606 EFI_EXP_BASE10_DATA TemperatureProbeTolerance;\r
1607 EFI_EXP_BASE10_DATA TemperatureProbeAccuracy;\r
1608 EFI_EXP_BASE10_DATA TemperatureProbeNominalValue;\r
1609 EFI_EXP_BASE10_DATA MDLowerNoncriticalThreshold;\r
1610 EFI_EXP_BASE10_DATA MDUpperNoncriticalThreshold;\r
1611 EFI_EXP_BASE10_DATA MDLowerCriticalThreshold;\r
1612 EFI_EXP_BASE10_DATA MDUpperCriticalThreshold;\r
1613 EFI_EXP_BASE10_DATA MDLowerNonrecoverableThreshold;\r
1614 EFI_EXP_BASE10_DATA MDUpperNonrecoverableThreshold;\r
1615 UINT32 TemperatureProbeOemDefined;\r
1616} EFI_MISC_TEMPERATURE_PROBE_DESCRIPTION_DATA;\r
1617\r
1618//\r
1619//////////////////////////////////////////////////////////////////////////////\r
1620//\r
1621// Electrical Current Probe - SMBIOS Type 29\r
1622//\r
1623\r
1624#define EFI_MISC_ELECTRICAL_CURRENT_PROBE_DESCRIPTION_RECORD_NUMBER 0x00000017\r
1625\r
1626typedef struct {\r
1627 UINT32 ElectricalCurrentProbeSite :5;\r
1628 UINT32 ElectricalCurrentProbeStatus :3;\r
1629 UINT32 Reserved :24;\r
1630} EFI_MISC_ELECTRICAL_CURRENT_PROBE_LOCATION;\r
1631\r
1632typedef struct {\r
1633 STRING_REF ElectricalCurrentProbeDescription;\r
1634 EFI_MISC_ELECTRICAL_CURRENT_PROBE_LOCATION\r
1635 ElectricalCurrentProbeLocation;\r
1636 EFI_EXP_BASE10_DATA ElectricalCurrentProbeMaximumValue;\r
1637 EFI_EXP_BASE10_DATA ElectricalCurrentProbeMinimumValue;\r
1638 EFI_EXP_BASE10_DATA ElectricalCurrentProbeResolution;\r
1639 EFI_EXP_BASE10_DATA ElectricalCurrentProbeTolerance;\r
1640 EFI_EXP_BASE10_DATA ElectricalCurrentProbeAccuracy;\r
1641 EFI_EXP_BASE10_DATA ElectricalCurrentProbeNominalValue;\r
1642 EFI_EXP_BASE10_DATA MDLowerNoncriticalThreshold;\r
1643 EFI_EXP_BASE10_DATA MDUpperNoncriticalThreshold;\r
1644 EFI_EXP_BASE10_DATA MDLowerCriticalThreshold;\r
1645 EFI_EXP_BASE10_DATA MDUpperCriticalThreshold;\r
1646 EFI_EXP_BASE10_DATA MDLowerNonrecoverableThreshold;\r
1647 EFI_EXP_BASE10_DATA MDUpperNonrecoverableThreshold;\r
1648 UINT32 ElectricalCurrentProbeOemDefined;\r
1649} EFI_MISC_ELECTRICAL_CURRENT_PROBE_DESCRIPTION_DATA;\r
1650\r
1651//\r
1652//////////////////////////////////////////////////////////////////////////////\r
1653//\r
1654// Out-of-Band Remote Access - SMBIOS Type 30\r
1655//\r
1656\r
1657#define EFI_MISC_REMOTE_ACCESS_MANUFACTURER_DESCRIPTION_RECORD_NUMBER 0x00000018\r
1658\r
1659typedef struct {\r
1660 UINT32 InboundConnectionEnabled :1;\r
1661 UINT32 OutboundConnectionEnabled :1;\r
1662 UINT32 Reserved :30;\r
1663} EFI_MISC_REMOTE_ACCESS_CONNECTIONS;\r
1664\r
1665typedef struct {\r
1666 STRING_REF RemoteAccessManufacturerNameDescription;\r
1667 EFI_MISC_REMOTE_ACCESS_CONNECTIONS RemoteAccessConnections;\r
1668} EFI_MISC_REMOTE_ACCESS_MANUFACTURER_DESCRIPTION_DATA;\r
1669\r
1670//\r
1671//////////////////////////////////////////////////////////////////////////////\r
1672//\r
1673// Misc. BIS Entry Point - SMBIOS Type 31\r
1674//\r
1675#define EFI_MISC_BIS_ENTRY_POINT_RECORD_NUMBER 0x00000019\r
1676\r
1677typedef struct {\r
1678 EFI_PHYSICAL_ADDRESS BisEntryPoint;\r
1679} EFI_MISC_BIS_ENTRY_POINT_DATA;\r
1680\r
1681//\r
1682//////////////////////////////////////////////////////////////////////////////\r
1683//\r
1684// Misc. Boot Information - SMBIOS Type 32\r
1685//\r
1686#define EFI_MISC_BOOT_INFORMATION_STATUS_RECORD_NUMBER 0x0000001A\r
1687\r
1688typedef enum {\r
1689 EfiBootInformationStatusNoError = 0x00,\r
1690 EfiBootInformationStatusNoBootableMedia = 0x01,\r
1691 EfiBootInformationStatusNormalOSFailedLoading = 0x02,\r
1692 EfiBootInformationStatusFirmwareDetectedFailure = 0x03,\r
1693 EfiBootInformationStatusOSDetectedFailure = 0x04,\r
1694 EfiBootInformationStatusUserRequestedBoot = 0x05,\r
1695 EfiBootInformationStatusSystemSecurityViolation = 0x06,\r
1696 EfiBootInformationStatusPreviousRequestedImage = 0x07,\r
1697 EfiBootInformationStatusWatchdogTimerExpired = 0x08,\r
1698 EfiBootInformationStatusStartReserved = 0x09,\r
1699 EfiBootInformationStatusStartOemSpecific = 0x80,\r
1700 EfiBootInformationStatusStartProductSpecific = 0xC0,\r
1701} EFI_MISC_BOOT_INFORMATION_STATUS_DATA_TYPE;\r
1702\r
1703typedef struct {\r
1704 EFI_MISC_BOOT_INFORMATION_STATUS_DATA_TYPE BootInformationStatus;\r
1705 UINT8 BootInformationData[9];\r
1706} EFI_MISC_BOOT_INFORMATION_STATUS_DATA;\r
1707\r
1708//\r
1709//////////////////////////////////////////////////////////////////////////////\r
1710//\r
1711// Management Device - SMBIOS Type 34\r
1712//\r
1713#define EFI_MISC_MANAGEMENT_DEVICE_DESCRIPTION_RECORD_NUMBER 0x0000001B\r
1714\r
1715typedef enum {\r
1716 EfiManagementDeviceTypeOther = 0x01,\r
1717 EfiManagementDeviceTypeUnknown = 0x02,\r
1718 EfiManagementDeviceTypeLm75 = 0x03,\r
1719 EfiManagementDeviceTypeLm78 = 0x04,\r
1720 EfiManagementDeviceTypeLm79 = 0x05,\r
1721 EfiManagementDeviceTypeLm80 = 0x06,\r
1722 EfiManagementDeviceTypeLm81 = 0x07,\r
1723 EfiManagementDeviceTypeAdm9240 = 0x08,\r
1724 EfiManagementDeviceTypeDs1780 = 0x09,\r
1725 EfiManagementDeviceTypeMaxim1617 = 0x0A,\r
1726 EfiManagementDeviceTypeGl518Sm = 0x0B,\r
1727 EfiManagementDeviceTypeW83781D = 0x0C,\r
1728 EfiManagementDeviceTypeHt82H791 = 0x0D,\r
1729} EFI_MISC_MANAGEMENT_DEVICE_TYPE;\r
1730\r
1731typedef enum {\r
1732 EfiManagementDeviceAddressTypeOther = 1,\r
1733 EfiManagementDeviceAddressTypeUnknown = 2,\r
1734 EfiManagementDeviceAddressTypeIOPort = 3,\r
1735 EfiManagementDeviceAddressTypeMemory = 4,\r
1736 EfiManagementDeviceAddressTypeSmbus = 5\r
1737} EFI_MISC_MANAGEMENT_DEVICE_ADDRESS_TYPE;\r
1738\r
1739typedef struct {\r
1740 STRING_REF ManagementDeviceDescription;\r
1741 EFI_MISC_MANAGEMENT_DEVICE_TYPE ManagementDeviceType;\r
1742 UINTN ManagementDeviceAddress;\r
1743 EFI_MISC_MANAGEMENT_DEVICE_ADDRESS_TYPE\r
1744 ManagementDeviceAddressType;\r
1745} EFI_MISC_MANAGEMENT_DEVICE_DESCRIPTION_DATA;\r
1746\r
1747//\r
1748//////////////////////////////////////////////////////////////////////////////\r
1749//\r
1750// Management Device Component - SMBIOS Type 35\r
1751//\r
1752\r
1753#define EFI_MISC_MANAGEMENT_DEVICE_COMPONENT_DESCRIPTION_RECORD_NUMBER 0x0000001C\r
1754\r
1755typedef struct {\r
1756 STRING_REF ManagementDeviceComponentDescription;\r
1757 EFI_INTER_LINK_DATA ManagementDeviceLink;\r
1758 EFI_INTER_LINK_DATA ManagementDeviceComponentLink;\r
1759} EFI_MISC_MANAGEMENT_DEVICE_COMPONENT_DESCRIPTION_DATA;\r
1760\r
1761//\r
1762//////////////////////////////////////////////////////////////////////////////\r
1763//\r
1764// IPMI Data Record - SMBIOS Type 38\r
1765//\r
1766typedef enum {\r
1767 EfiIpmiOther = 0,\r
1768 EfiIpmiKcs = 1,\r
1769 EfiIpmiSmic = 2,\r
1770 EfiIpmiBt = 3,\r
1771} EFI_MISC_IPMI_INTERFACE_TYPE;\r
1772\r
1773typedef struct {\r
1774 UINT16 IpmiSpecLeastSignificantDigit:4;\r
1775 UINT16 IpmiSpecMostSignificantDigit: 4;\r
1776 UINT16 Reserved: 8;\r
1777} EFI_MISC_IPMI_SPECIFICATION_REVISION;\r
1778\r
1779typedef struct {\r
1780 EFI_MISC_IPMI_INTERFACE_TYPE IpmiInterfaceType;\r
1781 EFI_MISC_IPMI_SPECIFICATION_REVISION IpmiSpecificationRevision;\r
1782 UINT16 IpmiI2CSlaveAddress;\r
1783 UINT16 IpmiNvDeviceAddress;\r
1784 UINT64 IpmiBaseAddress;\r
1785 EFI_DEVICE_PATH_PROTOCOL IpmiDevicePath;\r
1786} EFI_MISC_IPMI_INTERFACE_TYPE_DATA;\r
1787\r
1788#define EFI_MISC_IPMI_INTERFACE_TYPE_RECORD_NUMBER 0x0000001D\r
1789\r
1790//\r
1791//////////////////////////////////////////////////////////////////////////////\r
1792//\r
1793//System Power supply Record - SMBIOS Type 39\r
1794//\r
1795typedef struct {\r
1796 UINT16 PowerSupplyHotReplaceable :1;\r
1797 UINT16 PowerSupplyPresent :1;\r
1798 UINT16 PowerSupplyUnplugged :1;\r
1799 UINT16 InputVoltageRangeSwitch :4;\r
1800 UINT16 PowerSupplyStatus :3;\r
1801 UINT16 PowerSupplyType :4;\r
1802 UINT16 Reserved :2;\r
1803} POWER_SUPPLY_CHARACTERISTICS;\r
1804\r
1805typedef struct {\r
1806 UINT16 PowerUnitGroup;\r
1807 STRING_REF PowerSupplyLocation;\r
1808 STRING_REF PowerSupplyDeviceName;\r
1809 STRING_REF PowerSupplyManufacturer;\r
1810 STRING_REF PowerSupplySerialNumber;\r
1811 STRING_REF PowerSupplyAssetTagNumber;\r
1812 STRING_REF PowerSupplyModelPartNumber;\r
1813 STRING_REF PowerSupplyRevisionLevel;\r
1814 UINT16 PowerSupplyMaxPowerCapacity;\r
1815 POWER_SUPPLY_CHARACTERISTICS PowerSupplyCharacteristics;\r
1816 EFI_INTER_LINK_DATA PowerSupplyInputVoltageProbeLink;\r
1817 EFI_INTER_LINK_DATA PowerSupplyCoolingDeviceLink;\r
1818 EFI_INTER_LINK_DATA PowerSupplyInputCurrentProbeLink;\r
1819} EFI_MISC_SYSTEM_POWER_SUPPLY_DATA;\r
1820\r
1821#define EFI_MISC_SYSTEM_POWER_SUPPLY_RECORD_NUMBER 0x0000001E\r
1822\r
1823//\r
1824//////////////////////////////////////////////////////////////////////////////\r
1825//\r
1826// OEM Data Record - SMBIOS Type 0x80-0xFF\r
1827//\r
1828typedef struct {\r
1829 UINT8 Type;\r
1830 UINT8 Length;\r
1831 UINT16 Handle;\r
1832} SMBIOS_STRUCTURE_HDR;\r
1833\r
1834typedef struct {\r
1835 SMBIOS_STRUCTURE_HDR Header;\r
1836 UINT8 RawData[1];\r
1837} EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION_DATA;\r
1838\r
1839#define EFI_MISC_SMBIOS_STRUCT_ENCAP_RECORD_NUMBER 0x0000001F\r
1840\r
1841//\r
1842// Declare the following strutures alias to use them more conviniently.\r
1843//\r
1844typedef EFI_MISC_LAST_PCI_BUS_DATA EFI_MISC_LAST_PCI_BUS;\r
1845typedef EFI_MISC_BIOS_VENDOR_DATA EFI_MISC_BIOS_VENDOR;\r
1846typedef EFI_MISC_SYSTEM_MANUFACTURER_DATA EFI_MISC_SYSTEM_MANUFACTURER;\r
1847typedef EFI_MISC_BASE_BOARD_MANUFACTURER_DATA EFI_MISC_BASE_BOARD_MANUFACTURER;\r
1848typedef EFI_MISC_CHASSIS_MANUFACTURER_DATA EFI_MISC_CHASSIS_MANUFACTURER;\r
1849typedef EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR_DATA EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR;\r
1850typedef EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA EFI_MISC_SYSTEM_SLOT_DESIGNATION;\r
1851typedef EFI_MISC_ONBOARD_DEVICE_DATA EFI_MISC_ONBOARD_DEVICE;\r
1852typedef EFI_MISC_PORTING_DEVICE_TYPE_DATA EFI_MISC_ONBOARD_DEVICE_TYPE_DATA;\r
1853typedef EFI_MISC_OEM_STRING_DATA EFI_MISC_OEM_STRING;\r
1854typedef EFI_MISC_SYSTEM_OPTION_STRING_DATA EFI_MISC_SYSTEM_OPTION_STRING;\r
1855typedef EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES_DATA EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES;\r
1856typedef EFI_MISC_SYSTEM_LANGUAGE_STRING_DATA EFI_MISC_SYSTEM_LANGUAGE_STRING;\r
1857typedef EFI_MISC_SYSTEM_EVENT_LOG_DATA EFI_MISC_SYSTEM_EVENT_LOG;\r
1858typedef EFI_MISC_BIS_ENTRY_POINT_DATA EFI_MISC_BIS_ENTRY_POINT;\r
1859typedef EFI_MISC_BOOT_INFORMATION_STATUS_DATA EFI_MISC_BOOT_INFORMATION_STATUS;\r
1860typedef EFI_MISC_SYSTEM_POWER_SUPPLY_DATA EFI_MISC_SYSTEM_POWER_SUPPLY;\r
1861typedef EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION_DATA EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION;\r
1862\r
1863typedef union {\r
1864 EFI_MISC_LAST_PCI_BUS_DATA LastPciBus;\r
1865 EFI_MISC_BIOS_VENDOR_DATA MiscBiosVendor;\r
1866 EFI_MISC_SYSTEM_MANUFACTURER_DATA MiscSystemManufacturer;\r
1867 EFI_MISC_BASE_BOARD_MANUFACTURER_DATA MiscBaseBoardManufacturer;\r
1868 EFI_MISC_CHASSIS_MANUFACTURER_DATA MiscChassisManufacturer;\r
1869 EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR_DATA MiscPortInternalConnectorDesignator;\r
1870 EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA MiscSystemSlotDesignation;\r
1871 EFI_MISC_ONBOARD_DEVICE_DATA MiscOnboardDevice;\r
1872 EFI_MISC_OEM_STRING_DATA MiscOemString;\r
1873 EFI_MISC_SYSTEM_OPTION_STRING_DATA MiscOptionString;\r
1874 EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES_DATA NumberOfInstallableLanguages;\r
1875 EFI_MISC_SYSTEM_LANGUAGE_STRING_DATA MiscSystemLanguageString;\r
1876 EFI_MISC_SYSTEM_EVENT_LOG_DATA MiscSystemEventLog;\r
1877 EFI_MISC_GROUP_NAME_DATA MiscGroupNameData;\r
1878 EFI_MISC_GROUP_ITEM_SET_DATA MiscGroupItemSetData;\r
1879 EFI_MISC_PORTING_DEVICE_TYPE_DATA MiscPortingDeviceTypeData;\r
1880 EFI_MISC_RESET_CAPABILITIES_DATA MiscResetCapablilitiesData;\r
1881 EFI_MISC_HARDWARE_SECURITY_SETTINGS_DATA MiscHardwareSecuritySettingsData;\r
1882 EFI_MISC_SCHEDULED_POWER_ON_MONTH_DATA MiscScheduledPowerOnMonthData;\r
1883 EFI_MISC_VOLTAGE_PROBE_DESCRIPTION_DATA MiscVoltagePorbeDescriptionData;\r
1884 EFI_MISC_COOLING_DEVICE_TEMP_LINK_DATA MiscCoolingDeviceTempLinkData;\r
1885 EFI_MISC_TEMPERATURE_PROBE_DESCRIPTION_DATA MiscTemperatureProbeDescriptionData;\r
1886 EFI_MISC_ELECTRICAL_CURRENT_PROBE_DESCRIPTION_DATA MiscElectricalCurrentProbeDescriptionData;\r
1887 EFI_MISC_REMOTE_ACCESS_MANUFACTURER_DESCRIPTION_DATA\r
1888 MiscRemoteAccessManufacturerDescriptionData;\r
1889 EFI_MISC_BIS_ENTRY_POINT_DATA MiscBisEntryPoint;\r
1890 EFI_MISC_BOOT_INFORMATION_STATUS_DATA MiscBootInformationStatus;\r
1891 EFI_MISC_MANAGEMENT_DEVICE_DESCRIPTION_DATA MiscMangementDeviceDescriptionData;\r
1892 EFI_MISC_MANAGEMENT_DEVICE_COMPONENT_DESCRIPTION_DATA\r
1893 MiscmangementDeviceComponentDescriptionData;\r
1894 EFI_MISC_IPMI_INTERFACE_TYPE_DATA MiscIpmiInterfaceTypeData;\r
1895 EFI_MISC_SYSTEM_POWER_SUPPLY_DATA MiscPowerSupplyInfo;\r
1896 EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION_DATA MiscSmbiosStructEncapsulation;\r
1897} EFI_MISC_SUBCLASS_RECORDS;\r
1898\r
1899//\r
1900//\r
1901//\r
1902typedef struct {\r
1903 EFI_SUBCLASS_TYPE1_HEADER Header;\r
1904 EFI_MISC_SUBCLASS_RECORDS Record;\r
1905} EFI_MISC_SUBCLASS_DRIVER_DATA;\r
1906\r
1907#pragma pack()\r
1908\r
1909//\r
1910// Sub Class Header type1\r
1911//\r
1912\r
1913#define EFI_SUBCLASS_INSTANCE_RESERVED 0\r
1914#define EFI_SUBCLASS_INSTANCE_NON_APPLICABLE 0xFFFF //16 bit\r
1915\r
1916#endif\r