IntelFrameworkPkg: Clean up source files
[mirror_edk2.git] / IntelFrameworkPkg / Include / Guid / DataHubRecords.h
1 /** @file
2 DataHubRecord.h includes all data hub subclass GUID definitions.
3
4 This file includes all data hub sub class defitions from
5 Cache subclass specification 0.9, DataHub SubClass specification 0.9, Memory SubClass Spec 0.9,
6 Processor Subclass specification 0.9, and Misc SubClass specification 0.9.
7
8 Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
9 This program and the accompanying materials are licensed and made available under
10 the terms and conditions of the BSD License that accompanies this distribution.
11 The full text of the license may be found at
12 http://opensource.org/licenses/bsd-license.php.
13
14 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
15 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16
17 **/
18 #ifndef _DATAHUB_RECORDS_GUID_H_
19 #define _DATAHUB_RECORDS_GUID_H_
20
21 //
22 // The include is required to retrieve type EFI_EXP_BASE10_DATA
23 //
24 #include <Guid/StatusCodeDataTypeId.h>
25
26 #define EFI_PROCESSOR_SUBCLASS_GUID \
27 { 0x26fdeb7e, 0xb8af, 0x4ccf, {0xaa, 0x97, 0x02, 0x63, 0x3c, 0xe4, 0x8c, 0xa7 } }
28
29 extern EFI_GUID gEfiProcessorSubClassGuid;
30
31
32 #define EFI_CACHE_SUBCLASS_GUID \
33 { 0x7f0013a7, 0xdc79, 0x4b22, {0x80, 0x99, 0x11, 0xf7, 0x5f, 0xdc, 0x82, 0x9d } }
34
35 extern EFI_GUID gEfiCacheSubClassGuid;
36
37 ///
38 /// The memory subclass belongs to the data class and is identified as the memory
39 /// subclass by the GUID.
40 ///
41 #define EFI_MEMORY_SUBCLASS_GUID \
42 {0x4E8F4EBB, 0x64B9, 0x4e05, {0x9B, 0x18, 0x4C, 0xFE, 0x49, 0x23, 0x50, 0x97} }
43
44 extern EFI_GUID gEfiMemorySubClassGuid;
45
46 #define EFI_MISC_SUBCLASS_GUID \
47 { 0x772484B2, 0x7482, 0x4b91, {0x9F, 0x9A, 0xAD, 0x43, 0xF8, 0x1C, 0x58, 0x81 } }
48
49 extern EFI_GUID gEfiMiscSubClassGuid;
50
51
52 ///
53 /// Inconsistent with specification here:
54 /// In ProcSubclass specification 0.9, the value is 0x0100.
55 /// Keep it unchanged from the perspective of binary consistency.
56 ///
57 #define EFI_PROCESSOR_SUBCLASS_VERSION 0x00010000
58
59 #pragma pack(1)
60
61 typedef struct _USB_PORT_DEVICE_PATH {
62 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
63 PCI_DEVICE_PATH PciBusDevicePath;
64 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
65 } USB_PORT_DEVICE_PATH;
66
67 //
68 // IDE
69 //
70 typedef struct _IDE_DEVICE_PATH {
71 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
72 PCI_DEVICE_PATH PciBusDevicePath;
73 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
74 } IDE_DEVICE_PATH;
75
76 //
77 // RMC Connector
78 //
79 typedef struct _RMC_CONN_DEVICE_PATH {
80 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
81 PCI_DEVICE_PATH PciBridgeDevicePath;
82 PCI_DEVICE_PATH PciBusDevicePath;
83 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
84 } RMC_CONN_DEVICE_PATH;
85
86 //
87 // RIDE
88 //
89 typedef struct _RIDE_DEVICE_PATH {
90 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
91 PCI_DEVICE_PATH PciBridgeDevicePath;
92 PCI_DEVICE_PATH PciBusDevicePath;
93 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
94 } RIDE_DEVICE_PATH;
95
96 //
97 // Gigabit NIC
98 //
99 typedef struct _GB_NIC_DEVICE_PATH {
100 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
101 PCI_DEVICE_PATH PciBridgeDevicePath;
102 PCI_DEVICE_PATH PciXBridgeDevicePath;
103 PCI_DEVICE_PATH PciXBusDevicePath;
104 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
105 } GB_NIC_DEVICE_PATH;
106
107 //
108 // P/S2 Connector
109 //
110 typedef struct _PS2_CONN_DEVICE_PATH {
111 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
112 PCI_DEVICE_PATH LpcBridgeDevicePath;
113 ACPI_HID_DEVICE_PATH LpcBusDevicePath;
114 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
115 } PS2_CONN_DEVICE_PATH;
116
117 //
118 // Serial Port Connector
119 //
120 typedef struct _SERIAL_CONN_DEVICE_PATH {
121 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
122 PCI_DEVICE_PATH LpcBridgeDevicePath;
123 ACPI_HID_DEVICE_PATH LpcBusDevicePath;
124 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
125 } SERIAL_CONN_DEVICE_PATH;
126
127 //
128 // Parallel Port Connector
129 //
130 typedef struct _PARALLEL_CONN_DEVICE_PATH {
131 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
132 PCI_DEVICE_PATH LpcBridgeDevicePath;
133 ACPI_HID_DEVICE_PATH LpcBusDevicePath;
134 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
135 } PARALLEL_CONN_DEVICE_PATH;
136
137 //
138 // Floopy Connector
139 //
140 typedef struct _FLOOPY_CONN_DEVICE_PATH {
141 ACPI_HID_DEVICE_PATH PciRootBridgeDevicePath;
142 PCI_DEVICE_PATH LpcBridgeDevicePath;
143 ACPI_HID_DEVICE_PATH LpcBusDevicePath;
144 EFI_DEVICE_PATH_PROTOCOL EndDevicePath;
145 } FLOOPY_CONN_DEVICE_PATH;
146
147 ///
148 /// Inconsistent with specification here:
149 /// In MiscSubclass specification 0.9, this data structure and corrsponding fields are NOT defined.
150 /// It's implementation-specific to simplify the code logic.
151 ///
152 typedef union _EFI_MISC_PORT_DEVICE_PATH {
153 USB_PORT_DEVICE_PATH UsbDevicePath;
154 IDE_DEVICE_PATH IdeDevicePath;
155 RMC_CONN_DEVICE_PATH RmcConnDevicePath;
156 RIDE_DEVICE_PATH RideDevicePath;
157 GB_NIC_DEVICE_PATH GbNicDevicePath;
158 PS2_CONN_DEVICE_PATH Ps2ConnDevicePath;
159 SERIAL_CONN_DEVICE_PATH SerialConnDevicePath;
160 PARALLEL_CONN_DEVICE_PATH ParallelConnDevicePath;
161 FLOOPY_CONN_DEVICE_PATH FloppyConnDevicePath;
162 } EFI_MISC_PORT_DEVICE_PATH;
163
164 #pragma pack()
165
166 ///
167 /// String Token Definition
168 ///
169 /// Inconsistent with specification here:
170 /// The macro isn't defined by any specification.
171 /// Keep it unchanged for backward compatibility.
172 ///
173 #define EFI_STRING_TOKEN UINT16
174
175 ///
176 /// Each data record that is a member of some subclass starts with a standard
177 /// header of type EFI_SUBCLASS_TYPE1_HEADER.
178 /// This header is only a guideline and applicable only to a data
179 /// subclass that is producing SMBIOS data records. A subclass can start with a
180 /// different header if needed.
181 ///
182 typedef struct {
183 ///
184 /// The version of the specification to which a specific subclass data record adheres.
185 ///
186 UINT32 Version;
187 ///
188 /// The size in bytes of this data class header.
189 ///
190 UINT32 HeaderSize;
191 ///
192 /// The instance number of the subclass with the same ProducerName. This number is
193 /// applicable in cases where multiple subclass instances that were produced by the same
194 /// driver exist in the system. This entry is 1 based; 0 means Reserved and -1 means Not
195 /// Applicable. All data consumer drivers should be able to handle all the possible values
196 /// of Instance, including Not Applicable and Reserved.
197 ///
198 UINT16 Instance;
199 ///
200 /// The instance number of the RecordType for the same Instance. This number is
201 /// applicable in cases where multiple instances of the RecordType exist for a specific
202 /// Instance. This entry is 1 based; 0 means Reserved and -1 means Not Applicable.
203 /// All data consumer drivers should be able to handle all the possible values of
204 /// SubInstance, including Not Applicable and Reserved.
205 ///
206 UINT16 SubInstance;
207 ///
208 /// The record number for the data record being specified. The numbering scheme and
209 /// definition is defined in the specific subclass specification.
210 ///
211 UINT32 RecordType;
212 } EFI_SUBCLASS_TYPE1_HEADER;
213
214 ///
215 /// This structure is used to link data records in the same subclasses. A data record is
216 /// defined as a link to another data record in the same subclass using this structure.
217 ///
218 typedef struct {
219 ///
220 /// An EFI_GUID that identifies the component that produced this data record. Type
221 /// EFI_GUID is defined in InstallProtocolInterface() in the EFI 1.10 Specification.
222 ///
223 EFI_GUID ProducerName;
224 ///
225 /// The instance number of the subclass with the same ProducerName. This number is
226 /// applicable in cases where multiple subclass instances that were produced by the same
227 /// driver exist in the system. This entry is 1 based; 0 means Reserved and -1 means Not
228 /// Applicable. All data consumer drivers should be able to handle all the possible values
229 /// of Instance, including Not Applicable and Reserved.
230 ///
231 UINT16 Instance;
232 /// The instance number of the RecordType for the same Instance. This number is
233 /// applicable in cases where multiple instances of the RecordType exist for a specific
234 /// Instance. This entry is 1 based; 0 means Reserved and -1 means Not Applicable.
235 /// All data consumer drivers should be able to handle all the possible values of
236 /// SubInstance, including Not Applicable and Reserved.
237 UINT16 SubInstance;
238 } EFI_INTER_LINK_DATA;
239
240 //
241 // EXP data
242 //
243 ///
244 /// This macro provides a calculation for base-10 representations. Value and Exponent are each
245 /// INT16. It is signed to cover negative values and is 16 bits wide (15 bits for data and 1 bit
246 /// for the sign).
247 ///
248 typedef struct {
249 ///
250 /// The INT16 number by which to multiply the base-10 representation.
251 ///
252 UINT16 Value;
253 ///
254 /// The INT16 number by which to raise the base-10 calculation.
255 ///
256 UINT16 Exponent;
257 } EFI_EXP_BASE2_DATA;
258
259 typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_MAX_CORE_FREQUENCY_DATA;
260 typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_MAX_FSB_FREQUENCY_DATA;
261 typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_CORE_FREQUENCY_DATA;
262
263 ///
264 /// This data record refers to the list of frequencies that the processor core supports. The list of
265 /// supported frequencies is determined by the firmware based on hardware capabilities--for example,
266 /// it could be a common subset of all processors and the chipset. The unit of measurement of this data
267 /// record is in Hertz. For asynchronous processors, the content of this data record is zero.
268 /// The list is terminated by -1 in the Value field of the last element. A Value field of zero means
269 /// that the processor/driver supports automatic frequency selection.
270 ///
271 /// Inconsistent with specification here:
272 /// According to MiscSubclass 0.9 specification, it should be a pointer since it refers to a list of frequencies.
273 ///
274 typedef EFI_EXP_BASE10_DATA *EFI_PROCESSOR_CORE_FREQUENCY_LIST_DATA;
275
276 ///
277 /// This data record refers to the list of supported frequencies of the processor external bus. The list of
278 /// supported frequencies is determined by the firmware based on hardware capabilities--for example,
279 /// it could be a common subset of all processors and the chipset. The unit of measurement of this data
280 /// record is in Hertz. For asynchronous processors, the content of this data record is NULL.
281 /// The list is terminated by -1 in the Value field of the last element. A Value field of zero means
282 /// that the processor/driver supports automatic frequency selection.
283 ///
284 typedef EFI_EXP_BASE10_DATA *EFI_PROCESSOR_FSB_FREQUENCY_LIST_DATA;
285 typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_FSB_FREQUENCY_DATA;
286 typedef STRING_REF EFI_PROCESSOR_VERSION_DATA;
287 typedef STRING_REF EFI_PROCESSOR_MANUFACTURER_DATA;
288 typedef STRING_REF EFI_PROCESSOR_SERIAL_NUMBER_DATA;
289 typedef STRING_REF EFI_PROCESSOR_ASSET_TAG_DATA;
290 typedef STRING_REF EFI_PROCESSOR_PART_NUMBER_DATA;
291
292 typedef struct {
293 UINT32 ProcessorSteppingId:4;
294 UINT32 ProcessorModel: 4;
295 UINT32 ProcessorFamily: 4;
296 UINT32 ProcessorType: 2;
297 UINT32 ProcessorReserved1: 2;
298 UINT32 ProcessorXModel: 4;
299 UINT32 ProcessorXFamily: 8;
300 UINT32 ProcessorReserved2: 4;
301 } EFI_PROCESSOR_SIGNATURE;
302
303
304 ///
305 /// Inconsistent with specification here:
306 /// The name of third field in ProcSubClass specification 0.9 is LogicalProcessorCount.
307 /// Keep it unchanged for backward compatibility.
308 ///
309 typedef struct {
310 UINT32 ProcessorBrandIndex :8;
311 UINT32 ProcessorClflush :8;
312 UINT32 ProcessorReserved :8;
313 UINT32 ProcessorDfltApicId :8;
314 } EFI_PROCESSOR_MISC_INFO;
315
316 typedef struct {
317 UINT32 ProcessorFpu: 1;
318 UINT32 ProcessorVme: 1;
319 UINT32 ProcessorDe: 1;
320 UINT32 ProcessorPse: 1;
321 UINT32 ProcessorTsc: 1;
322 UINT32 ProcessorMsr: 1;
323 UINT32 ProcessorPae: 1;
324 UINT32 ProcessorMce: 1;
325 UINT32 ProcessorCx8: 1;
326 UINT32 ProcessorApic: 1;
327 UINT32 ProcessorReserved1: 1;
328 UINT32 ProcessorSep: 1;
329 UINT32 ProcessorMtrr: 1;
330 UINT32 ProcessorPge: 1;
331 UINT32 ProcessorMca: 1;
332 UINT32 ProcessorCmov: 1;
333 UINT32 ProcessorPat: 1;
334 UINT32 ProcessorPse36: 1;
335 UINT32 ProcessorPsn: 1;
336 UINT32 ProcessorClfsh: 1;
337 UINT32 ProcessorReserved2: 1;
338 UINT32 ProcessorDs: 1;
339 UINT32 ProcessorAcpi: 1;
340 UINT32 ProcessorMmx: 1;
341 UINT32 ProcessorFxsr: 1;
342 UINT32 ProcessorSse: 1;
343 UINT32 ProcessorSse2: 1;
344 UINT32 ProcessorSs: 1;
345 UINT32 ProcessorReserved3: 1;
346 UINT32 ProcessorTm: 1;
347 UINT32 ProcessorReserved4: 2;
348 } EFI_PROCESSOR_FEATURE_FLAGS;
349
350 ///
351 /// This data record refers to the unique ID that identifies a set of processors. This data record is 16
352 /// bytes in length. The data in this structure is processor specific and reserved values can be defined
353 /// for future use. The consumer of this data should not make any assumption and should use this data
354 /// with respect to the processor family defined in the Family record number.
355 ///
356 typedef struct {
357 ///
358 /// Identifies the processor.
359 ///
360 EFI_PROCESSOR_SIGNATURE Signature;
361 ///
362 /// Provides additional processor information.
363 ///
364 EFI_PROCESSOR_MISC_INFO MiscInfo;
365 ///
366 /// Reserved for future use.
367 ///
368 UINT32 Reserved;
369 ///
370 /// Provides additional processor information.
371 ///
372 EFI_PROCESSOR_FEATURE_FLAGS FeatureFlags;
373 } EFI_PROCESSOR_ID_DATA;
374
375 ///
376 /// This data record refers to the general classification of the processor. This data record is 4 bytes in
377 /// length.
378 ///
379 typedef enum {
380 EfiProcessorOther = 1,
381 EfiProcessorUnknown = 2,
382 EfiCentralProcessor = 3,
383 EfiMathProcessor = 4,
384 EfiDspProcessor = 5,
385 EfiVideoProcessor = 6
386 } EFI_PROCESSOR_TYPE_DATA;
387
388 ///
389 /// This data record refers to the family of the processor as defined by the DMTF.
390 /// This data record is 4 bytes in length.
391 ///
392 typedef enum {
393 EfiProcessorFamilyOther = 0x01,
394 EfiProcessorFamilyUnknown = 0x02,
395 EfiProcessorFamily8086 = 0x03,
396 EfiProcessorFamily80286 = 0x04,
397 EfiProcessorFamilyIntel386 = 0x05,
398 EfiProcessorFamilyIntel486 = 0x06,
399 EfiProcessorFamily8087 = 0x07,
400 EfiProcessorFamily80287 = 0x08,
401 EfiProcessorFamily80387 = 0x09,
402 EfiProcessorFamily80487 = 0x0A,
403 EfiProcessorFamilyPentium = 0x0B,
404 EfiProcessorFamilyPentiumPro = 0x0C,
405 EfiProcessorFamilyPentiumII = 0x0D,
406 EfiProcessorFamilyPentiumMMX = 0x0E,
407 EfiProcessorFamilyCeleron = 0x0F,
408 EfiProcessorFamilyPentiumIIXeon = 0x10,
409 EfiProcessorFamilyPentiumIII = 0x11,
410 EfiProcessorFamilyM1 = 0x12,
411 EfiProcessorFamilyM2 = 0x13,
412 EfiProcessorFamilyM1Reserved2 = 0x14,
413 EfiProcessorFamilyM1Reserved3 = 0x15,
414 EfiProcessorFamilyM1Reserved4 = 0x16,
415 EfiProcessorFamilyM1Reserved5 = 0x17,
416 EfiProcessorFamilyAmdDuron = 0x18,
417 EfiProcessorFamilyK5 = 0x19,
418 EfiProcessorFamilyK6 = 0x1A,
419 EfiProcessorFamilyK6_2 = 0x1B,
420 EfiProcessorFamilyK6_3 = 0x1C,
421 EfiProcessorFamilyAmdAthlon = 0x1D,
422 EfiProcessorFamilyAmd29000 = 0x1E,
423 EfiProcessorFamilyK6_2Plus = 0x1F,
424 EfiProcessorFamilyPowerPC = 0x20,
425 EfiProcessorFamilyPowerPC601 = 0x21,
426 EfiProcessorFamilyPowerPC603 = 0x22,
427 EfiProcessorFamilyPowerPC603Plus = 0x23,
428 EfiProcessorFamilyPowerPC604 = 0x24,
429 EfiProcessorFamilyPowerPC620 = 0x25,
430 EfiProcessorFamilyPowerPCx704 = 0x26,
431 EfiProcessorFamilyPowerPC750 = 0x27,
432 EfiProcessorFamilyAlpha3 = 0x30,
433 EfiProcessorFamilyAlpha21064 = 0x31,
434 EfiProcessorFamilyAlpha21066 = 0x32,
435 EfiProcessorFamilyAlpha21164 = 0x33,
436 EfiProcessorFamilyAlpha21164PC = 0x34,
437 EfiProcessorFamilyAlpha21164a = 0x35,
438 EfiProcessorFamilyAlpha21264 = 0x36,
439 EfiProcessorFamilyAlpha21364 = 0x37,
440 EfiProcessorFamilyMips = 0x40,
441 EfiProcessorFamilyMIPSR4000 = 0x41,
442 EfiProcessorFamilyMIPSR4200 = 0x42,
443 EfiProcessorFamilyMIPSR4400 = 0x43,
444 EfiProcessorFamilyMIPSR4600 = 0x44,
445 EfiProcessorFamilyMIPSR10000 = 0x45,
446 EfiProcessorFamilySparc = 0x50,
447 EfiProcessorFamilySuperSparc = 0x51,
448 EfiProcessorFamilymicroSparcII = 0x52,
449 EfiProcessorFamilymicroSparcIIep = 0x53,
450 EfiProcessorFamilyUltraSparc = 0x54,
451 EfiProcessorFamilyUltraSparcII = 0x55,
452 EfiProcessorFamilyUltraSparcIIi = 0x56,
453 EfiProcessorFamilyUltraSparcIII = 0x57,
454 ///
455 /// Inconsistent with specification here:
456 /// This field in ProcSubClass specification 0.9 is defined as EfiProcessorFamilyUltraSparcIIi.
457 /// Change it to EfiProcessorFamilyUltraSparcIIIi to avoid build break.
458 ///
459 EfiProcessorFamilyUltraSparcIIIi = 0x58,
460 EfiProcessorFamily68040 = 0x60,
461 EfiProcessorFamily68xxx = 0x61,
462 EfiProcessorFamily68000 = 0x62,
463 EfiProcessorFamily68010 = 0x63,
464 EfiProcessorFamily68020 = 0x64,
465 EfiProcessorFamily68030 = 0x65,
466 EfiProcessorFamilyHobbit = 0x70,
467 EfiProcessorFamilyCrusoeTM5000 = 0x78,
468 EfiProcessorFamilyCrusoeTM3000 = 0x79,
469 EfiProcessorFamilyEfficeonTM8000 = 0x7A,
470 EfiProcessorFamilyWeitek = 0x80,
471 EfiProcessorFamilyItanium = 0x82,
472 EfiProcessorFamilyAmdAthlon64 = 0x83,
473 EfiProcessorFamilyAmdOpteron = 0x84,
474 EfiProcessorFamilyAmdSempron = 0x85,
475 EfiProcessorFamilyAmdTurion64Mobile = 0x86,
476 EfiProcessorFamilyDualCoreAmdOpteron = 0x87,
477 EfiProcessorFamilyAmdAthlon64X2DualCore = 0x88,
478 EfiProcessorFamilyAmdTurion64X2Mobile = 0x89,
479 EfiProcessorFamilyPARISC = 0x90,
480 EfiProcessorFamilyPaRisc8500 = 0x91,
481 EfiProcessorFamilyPaRisc8000 = 0x92,
482 EfiProcessorFamilyPaRisc7300LC = 0x93,
483 EfiProcessorFamilyPaRisc7200 = 0x94,
484 EfiProcessorFamilyPaRisc7100LC = 0x95,
485 EfiProcessorFamilyPaRisc7100 = 0x96,
486 EfiProcessorFamilyV30 = 0xA0,
487 EfiProcessorFamilyPentiumIIIXeon = 0xB0,
488 EfiProcessorFamilyPentiumIIISpeedStep = 0xB1,
489 EfiProcessorFamilyPentium4 = 0xB2,
490 EfiProcessorFamilyIntelXeon = 0xB3,
491 EfiProcessorFamilyAS400 = 0xB4,
492 EfiProcessorFamilyIntelXeonMP = 0xB5,
493 EfiProcessorFamilyAMDAthlonXP = 0xB6,
494 EfiProcessorFamilyAMDAthlonMP = 0xB7,
495 EfiProcessorFamilyIntelItanium2 = 0xB8,
496 ///
497 /// Inconsistent with specification here:
498 /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
499 ///
500 EfiProcessorFamilyIntelPentiumM = 0xB9,
501 ///
502 /// Inconsistent with specification here:
503 /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
504 ///
505 EfiProcessorFamilyIntelCeleronD = 0xBA,
506 ///
507 /// Inconsistent with specification here:
508 /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
509 ///
510 EfiProcessorFamilyIntelPentiumD = 0xBB,
511 ///
512 /// Inconsistent with specification here:
513 /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
514 ///
515 EfiProcessorFamilyIntelPentiumEx = 0xBC,
516 ///
517 /// Inconsistent with specification here:
518 /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
519 ///
520 EfiProcessorFamilyIntelCoreSolo = 0xBD,
521 ///
522 /// Inconsistent with specification here:
523 /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
524 ///
525 EfiProcessorFamilyReserved = 0xBE,
526 ///
527 /// Inconsistent with specification here:
528 /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
529 ///
530 EfiProcessorFamilyIntelCore2 = 0xBF,
531 EfiProcessorFamilyIBM390 = 0xC8,
532 EfiProcessorFamilyG4 = 0xC9,
533 EfiProcessorFamilyG5 = 0xCA,
534 ///
535 /// Inconsistent with specification here:
536 /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
537 ///
538 EfiProcessorFamilyG6 = 0xCB,
539 ///
540 /// Inconsistent with specification here:
541 /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
542 ///
543 EfiProcessorFamilyzArchitectur = 0xCC,
544 ///
545 /// Inconsistent with specification here:
546 /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
547 ///
548 EfiProcessorFamilyViaC7M = 0xD2,
549 ///
550 /// Inconsistent with specification here:
551 /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
552 ///
553 EfiProcessorFamilyViaC7D = 0xD3,
554 ///
555 /// Inconsistent with specification here:
556 /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
557 ///
558 EfiProcessorFamilyViaC7 = 0xD4,
559 ///
560 /// Inconsistent with specification here:
561 /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
562 ///
563 EfiProcessorFamilyViaEden = 0xD5,
564 EfiProcessorFamilyi860 = 0xFA,
565 EfiProcessorFamilyi960 = 0xFB,
566 ///
567 /// Inconsistent with specification here:
568 /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
569 ///
570 EfiProcessorFamilyIndicatorFamily2 = 0xFE,
571 ///
572 /// Inconsistent with specification here:
573 /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
574 ///
575 EfiProcessorFamilyReserved1 = 0xFF
576 } EFI_PROCESSOR_FAMILY_DATA;
577
578 typedef enum {
579 EfiProcessorFamilySh3 = 0x104,
580 EfiProcessorFamilySh4 = 0x105,
581 EfiProcessorFamilyArm = 0x118,
582 EfiProcessorFamilyStrongArm = 0x119,
583 EfiProcessorFamily6x86 = 0x12C,
584 EfiProcessorFamilyMediaGx = 0x12D,
585 EfiProcessorFamilyMii = 0x12E,
586 EfiProcessorFamilyWinChip = 0x140,
587 EfiProcessorFamilyDsp = 0x15E,
588 EfiProcessorFamilyVideo = 0x1F4
589 } EFI_PROCESSOR_FAMILY2_DATA;
590
591 ///
592 /// This data record refers to the core voltage of the processor being defined. The unit of measurement
593 /// of this data record is in volts.
594 ///
595 typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_VOLTAGE_DATA;
596
597 ///
598 /// This data record refers to the base address of the APIC of the processor being defined. This data
599 /// record is a physical address location.
600 ///
601 typedef EFI_PHYSICAL_ADDRESS EFI_PROCESSOR_APIC_BASE_ADDRESS_DATA;
602
603 ///
604 /// This data record refers to the ID of the APIC of the processor being defined. This data record is a
605 /// 4-byte entry.
606 ///
607 typedef UINT32 EFI_PROCESSOR_APIC_ID_DATA;
608
609 ///
610 /// This data record refers to the version number of the APIC of the processor being defined. This data
611 /// record is a 4-byte entry.
612 ///
613 typedef UINT32 EFI_PROCESSOR_APIC_VERSION_NUMBER_DATA;
614
615 typedef enum {
616 EfiProcessorIa32Microcode = 1,
617 EfiProcessorIpfPalAMicrocode = 2,
618 EfiProcessorIpfPalBMicrocode = 3
619 } EFI_PROCESSOR_MICROCODE_TYPE;
620
621 ///
622 /// This data record refers to the revision of the processor microcode that is loaded in the processor.
623 /// This data record is a 4-byte entry.
624 ///
625 typedef struct {
626 ///
627 /// Identifies what type of microcode the data is.
628 ///
629 EFI_PROCESSOR_MICROCODE_TYPE ProcessorMicrocodeType;
630 ///
631 /// Indicates the revision number of this microcode.
632 ///
633 UINT32 ProcessorMicrocodeRevisionNumber;
634 } EFI_PROCESSOR_MICROCODE_REVISION_DATA;
635
636 ///
637 /// This data record refers to the status of the processor.
638 ///
639 typedef struct {
640 UINT32 CpuStatus :3; ///< Indicates the status of the processor.
641 UINT32 Reserved1 :3; ///< Reserved for future use. Should be set to zero.
642 UINT32 SocketPopulated :1; ///< Indicates if the processor is socketed or not.
643 UINT32 Reserved2 :1; ///< Reserved for future use. Should be set to zero.
644 UINT32 ApicEnable :1; ///< Indicates if the APIC is enabled or not.
645 UINT32 BootApplicationProcessor :1; ///< Indicates if this processor is the boot processor.
646 UINT32 Reserved3 :22;///< Reserved for future use. Should be set to zero.
647 } EFI_PROCESSOR_STATUS_DATA;
648
649 typedef enum {
650 EfiCpuStatusUnknown = 0,
651 EfiCpuStatusEnabled = 1,
652 EfiCpuStatusDisabledByUser = 2,
653 EfiCpuStatusDisabledbyBios = 3,
654 EfiCpuStatusIdle = 4,
655 EfiCpuStatusOther = 7
656 } EFI_CPU_STATUS;
657
658 typedef enum {
659 EfiProcessorSocketOther = 1,
660 EfiProcessorSocketUnknown = 2,
661 EfiProcessorSocketDaughterBoard = 3,
662 EfiProcessorSocketZIF = 4,
663 EfiProcessorSocketReplacePiggyBack = 5,
664 EfiProcessorSocketNone = 6,
665 EfiProcessorSocketLIF = 7,
666 EfiProcessorSocketSlot1 = 8,
667 EfiProcessorSocketSlot2 = 9,
668 EfiProcessorSocket370Pin = 0xA,
669 EfiProcessorSocketSlotA = 0xB,
670 EfiProcessorSocketSlotM = 0xC,
671 EfiProcessorSocket423 = 0xD,
672 EfiProcessorSocketA462 = 0xE,
673 EfiProcessorSocket478 = 0xF,
674 EfiProcessorSocket754 = 0x10,
675 EfiProcessorSocket940 = 0x11,
676 ///
677 /// Inconsistent with specification here:
678 /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
679 ///
680 EfiProcessorSocket939 = 0x12,
681 ///
682 /// Inconsistent with specification here:
683 /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
684 ///
685 EfiProcessorSocketmPGA604 = 0x13,
686 ///
687 /// Inconsistent with specification here:
688 /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
689 ///
690 EfiProcessorSocketLGA771 = 0x14,
691 ///
692 /// Inconsistent with specification here:
693 /// This field is NOT defined in ProcSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
694 ///
695 EfiProcessorSocketLGA775 = 0x15
696
697 } EFI_PROCESSOR_SOCKET_TYPE_DATA;
698
699 typedef STRING_REF EFI_PROCESSOR_SOCKET_NAME_DATA;
700
701 ///
702 /// Inconsistent with specification here:
703 /// In ProcSubclass specification 0.9, the naming is EFI_PROCESSOR_CACHE_ASSOCIATION_DATA.
704 /// Keep it unchanged for backward compatibilty.
705 ///
706 typedef EFI_INTER_LINK_DATA EFI_CACHE_ASSOCIATION_DATA;
707
708 ///
709 /// This data record refers to the health status of the processor.
710 ///
711 /// Inconsistent with specification here:
712 /// In ProcSubclass specification 0.9, the naming is EFI_PROCESSOR_HEALTH_STATUS_DATA.
713 /// Keep it unchanged for backward compatibilty.
714 ///
715 typedef enum {
716 EfiProcessorHealthy = 1,
717 EfiProcessorPerfRestricted = 2,
718 EfiProcessorFuncRestricted = 3
719 } EFI_PROCESSOR_HEALTH_STATUS;
720
721 ///
722 /// This data record refers to the package number of this processor. Multiple logical processors can
723 /// exist in a system and each logical processor can be correlated to the physical processor using this
724 /// record type.
725 ///
726 typedef UINTN EFI_PROCESSOR_PACKAGE_NUMBER_DATA;
727
728 typedef UINT8 EFI_PROCESSOR_CORE_COUNT_DATA;
729 typedef UINT8 EFI_PROCESSOR_ENABLED_CORE_COUNT_DATA;
730 typedef UINT8 EFI_PROCESSOR_THREAD_COUNT_DATA;
731
732 typedef struct {
733 UINT16 Reserved :1;
734 UINT16 Unknown :1;
735 UINT16 Capable64Bit :1;
736 UINT16 Reserved2 :13;
737 } EFI_PROCESSOR_CHARACTERISTICS_DATA;
738
739 ///
740 /// Inconsistent with specification here:
741 /// In ProcSubclass specification 0.9, the enumeration type data structure is NOT defined.
742 /// The equivalent in specification is
743 /// #define EFI_PROCESSOR_FREQUENCY_RECORD_NUMBER 0x00000001
744 /// #define EFI_PROCESSOR_BUS_FREQUENCY_RECORD_NUMBER 0x00000002
745 /// #define EFI_PROCESSOR_VERSION_RECORD_NUMBER 0x00000003
746 /// #define EFI_PROCESSOR_MANUFACTURER_RECORD_NUMBER 0x00000004
747 /// #define EFI_PROCESSOR_SERIAL_NUMBER_RECORD_NUMBER 0x00000005
748 /// #define EFI_PROCESSOR_ID_RECORD_NUMBER 0x00000006
749 /// #define EFI_PROCESSOR_TYPE_RECORD_NUMBER 0x00000007
750 /// #define EFI_PROCESSOR_FAMILY_RECORD_NUMBER 0x00000008
751 /// #define EFI_PROCESSOR_VOLTAGE_RECORD_NUMBER 0x00000009
752 /// #define EFI_PROCESSOR_APIC_BASE_ADDRESS_RECORD_NUMBER 0x0000000A
753 /// #define EFI_PROCESSOR_APIC_ID_RECORD_NUMBER 0x0000000B
754 /// #define EFI_PROCESSOR_APIC_VER_NUMBER_RECORD_NUMBER 0x0000000C
755 /// #define EFI_PROCESSOR_MICROCODE_REVISION_RECORD_NUMBER 0x0000000D
756 /// #define EFI_PROCESSOR_STATUS_RECORD_NUMBER 0x0000000E
757 /// #define EFI_PROCESSOR_SOCKET_TYPE_RECORD_NUMBER 0x0000000F
758 /// #define EFI_PROCESSOR_SOCKET_NAME_RECORD_NUMBER 0x00000010
759 /// #define EFI_PROCESSOR_CACHE_ASSOCIATION_RECORD_NUMBER 0x00000011
760 /// #define EFI_PROCESSOR_MAX_FREQUENCY_RECORD_NUMBER 0x00000012
761 /// #define EFI_PROCESSOR_ASSET_TAG_RECORD_NUMBER 0x00000013
762 /// #define EFI_PROCESSOR_MAX_FSB_FREQUENCY_RECORD_NUMBER 0x00000014
763 /// #define EFI_PROCESSOR_PACKAGE_NUMBER_RECORD_NUMBER 0x00000015
764 /// #define EFI_PROCESSOR_FREQUENCY_LIST_RECORD_NUMBER 0x00000016
765 /// #define EFI_PROCESSOR_FSB_FREQUENCY_LIST_RECORD_NUMBER 0x00000017
766 /// #define EFI_PROCESSOR_HEALTH_STATUS_RECORD_NUMBER 0x00000018
767 ///
768 /// Keep the definition unchanged for backward compatibility.
769 typedef enum {
770 ProcessorCoreFrequencyRecordType = 1,
771 ProcessorFsbFrequencyRecordType = 2,
772 ProcessorVersionRecordType = 3,
773 ProcessorManufacturerRecordType = 4,
774 ProcessorSerialNumberRecordType = 5,
775 ProcessorIdRecordType = 6,
776 ProcessorTypeRecordType = 7,
777 ProcessorFamilyRecordType = 8,
778 ProcessorVoltageRecordType = 9,
779 ProcessorApicBaseAddressRecordType = 10,
780 ProcessorApicIdRecordType = 11,
781 ProcessorApicVersionNumberRecordType = 12,
782 CpuUcodeRevisionDataRecordType = 13,
783 ProcessorStatusRecordType = 14,
784 ProcessorSocketTypeRecordType = 15,
785 ProcessorSocketNameRecordType = 16,
786 CacheAssociationRecordType = 17,
787 ProcessorMaxCoreFrequencyRecordType = 18,
788 ProcessorAssetTagRecordType = 19,
789 ProcessorMaxFsbFrequencyRecordType = 20,
790 ProcessorPackageNumberRecordType = 21,
791 ProcessorCoreFrequencyListRecordType = 22,
792 ProcessorFsbFrequencyListRecordType = 23,
793 ProcessorHealthStatusRecordType = 24,
794 ProcessorCoreCountRecordType = 25,
795 ProcessorEnabledCoreCountRecordType = 26,
796 ProcessorThreadCountRecordType = 27,
797 ProcessorCharacteristicsRecordType = 28,
798 ProcessorFamily2RecordType = 29,
799 ProcessorPartNumberRecordType = 30,
800 } EFI_CPU_VARIABLE_RECORD_TYPE;
801
802 ///
803 /// Inconsistent with specification here:
804 /// In ProcSubclass specification 0.9, the union type data structure is NOT defined.
805 /// It's implementation-specific to simplify the code logic.
806 ///
807 typedef union {
808 EFI_PROCESSOR_CORE_FREQUENCY_LIST_DATA ProcessorCoreFrequencyList;
809 EFI_PROCESSOR_FSB_FREQUENCY_LIST_DATA ProcessorFsbFrequencyList;
810 EFI_PROCESSOR_SERIAL_NUMBER_DATA ProcessorSerialNumber;
811 EFI_PROCESSOR_CORE_FREQUENCY_DATA ProcessorCoreFrequency;
812 EFI_PROCESSOR_FSB_FREQUENCY_DATA ProcessorFsbFrequency;
813 EFI_PROCESSOR_MAX_CORE_FREQUENCY_DATA ProcessorMaxCoreFrequency;
814 EFI_PROCESSOR_MAX_FSB_FREQUENCY_DATA ProcessorMaxFsbFrequency;
815 EFI_PROCESSOR_VERSION_DATA ProcessorVersion;
816 EFI_PROCESSOR_MANUFACTURER_DATA ProcessorManufacturer;
817 EFI_PROCESSOR_ID_DATA ProcessorId;
818 EFI_PROCESSOR_TYPE_DATA ProcessorType;
819 EFI_PROCESSOR_FAMILY_DATA ProcessorFamily;
820 EFI_PROCESSOR_VOLTAGE_DATA ProcessorVoltage;
821 EFI_PROCESSOR_APIC_BASE_ADDRESS_DATA ProcessorApicBase;
822 EFI_PROCESSOR_APIC_ID_DATA ProcessorApicId;
823 EFI_PROCESSOR_APIC_VERSION_NUMBER_DATA ProcessorApicVersionNumber;
824 EFI_PROCESSOR_MICROCODE_REVISION_DATA CpuUcodeRevisionData;
825 EFI_PROCESSOR_STATUS_DATA ProcessorStatus;
826 EFI_PROCESSOR_SOCKET_TYPE_DATA ProcessorSocketType;
827 EFI_PROCESSOR_SOCKET_NAME_DATA ProcessorSocketName;
828 EFI_PROCESSOR_ASSET_TAG_DATA ProcessorAssetTag;
829 EFI_PROCESSOR_PART_NUMBER_DATA ProcessorPartNumber;
830 EFI_PROCESSOR_HEALTH_STATUS ProcessorHealthStatus;
831 EFI_PROCESSOR_PACKAGE_NUMBER_DATA ProcessorPackageNumber;
832 EFI_PROCESSOR_CORE_COUNT_DATA ProcessorCoreCount;
833 EFI_PROCESSOR_ENABLED_CORE_COUNT_DATA ProcessorEnabledCoreCount;
834 EFI_PROCESSOR_THREAD_COUNT_DATA ProcessorThreadCount;
835 EFI_PROCESSOR_CHARACTERISTICS_DATA ProcessorCharacteristics;
836 EFI_PROCESSOR_FAMILY2_DATA ProcessorFamily2;
837 } EFI_CPU_VARIABLE_RECORD;
838
839 typedef struct {
840 EFI_SUBCLASS_TYPE1_HEADER DataRecordHeader;
841 EFI_CPU_VARIABLE_RECORD VariableRecord;
842 } EFI_CPU_DATA_RECORD;
843
844 #define EFI_CACHE_SUBCLASS_VERSION 0x00010000
845
846 typedef EFI_EXP_BASE2_DATA EFI_CACHE_SIZE_DATA;
847 ///
848 /// Inconsistent with specification here:
849 /// In CacheSubclass specification 0.9, the naming is EFI_CACHE_MAXIMUM_SIZE_DATA.
850 /// Keep it unchanged for backward compatibilty.
851 ///
852 typedef EFI_EXP_BASE2_DATA EFI_MAXIMUM_CACHE_SIZE_DATA;
853 typedef EFI_EXP_BASE10_DATA EFI_CACHE_SPEED_DATA;
854 typedef STRING_REF EFI_CACHE_SOCKET_DATA;
855
856 typedef struct {
857 UINT32 Other :1;
858 UINT32 Unknown :1;
859 UINT32 NonBurst :1;
860 UINT32 Burst :1;
861 UINT32 PipelineBurst :1;
862 ///
863 /// Inconsistent between CacheSubclass 0.9 and SMBIOS specifications here:
864 /// In CacheSubclass specification 0.9, the sequence of Asynchronous and Synchronous fileds
865 /// are opposite to SMBIOS specification.
866 ///
867 UINT32 Asynchronous :1;
868 UINT32 Synchronous :1;
869 UINT32 Reserved :25;
870 } EFI_CACHE_SRAM_TYPE_DATA;
871
872 typedef EFI_CACHE_SRAM_TYPE_DATA EFI_CACHE_SRAM_INSTALL_DATA;
873
874 typedef enum {
875 EfiCacheErrorOther = 1,
876 EfiCacheErrorUnknown = 2,
877 EfiCacheErrorNone = 3,
878 EfiCacheErrorParity = 4,
879 EfiCacheErrorSingleBit = 5,
880 EfiCacheErrorMultiBit = 6
881 } EFI_CACHE_ERROR_TYPE_DATA;
882
883 typedef enum {
884 EfiCacheTypeOther = 1,
885 EfiCacheTypeUnknown = 2,
886 EfiCacheTypeInstruction = 3,
887 EfiCacheTypeData = 4,
888 EfiCacheTypeUnified = 5
889 } EFI_CACHE_TYPE_DATA;
890
891 typedef enum {
892 EfiCacheAssociativityOther = 1,
893 EfiCacheAssociativityUnknown = 2,
894 EfiCacheAssociativityDirectMapped = 3,
895 EfiCacheAssociativity2Way = 4,
896 EfiCacheAssociativity4Way = 5,
897 EfiCacheAssociativityFully = 6,
898 EfiCacheAssociativity8Way = 7,
899 EfiCacheAssociativity16Way = 8
900 } EFI_CACHE_ASSOCIATIVITY_DATA;
901
902 ///
903 /// Inconsistent with specification here:
904 /// In CacheSubclass 0.9 specification. It defines the field type as UINT16.
905 /// In fact, it should be UINT32 type because it refers to a 32bit width data.
906 ///
907 typedef struct {
908 UINT32 Level :3;
909 UINT32 Socketed :1;
910 UINT32 Reserved2 :1;
911 UINT32 Location :2;
912 UINT32 Enable :1;
913 UINT32 OperationalMode :2;
914 UINT32 Reserved1 :22;
915 } EFI_CACHE_CONFIGURATION_DATA;
916
917 #define EFI_CACHE_L1 1
918 #define EFI_CACHE_L2 2
919 #define EFI_CACHE_L3 3
920 #define EFI_CACHE_L4 4
921 #define EFI_CACHE_LMAX EFI_CACHE_L4
922
923 #define EFI_CACHE_SOCKETED 1
924 #define EFI_CACHE_NOT_SOCKETED 0
925
926 typedef enum {
927 EfiCacheInternal = 0,
928 EfiCacheExternal = 1,
929 EfiCacheReserved = 2,
930 EfiCacheUnknown = 3
931 } EFI_CACHE_LOCATION;
932
933 #define EFI_CACHE_ENABLED 1
934 #define EFI_CACHE_DISABLED 0
935
936 typedef enum {
937 EfiCacheWriteThrough = 0,
938 EfiCacheWriteBack = 1,
939 EfiCacheDynamicMode = 2,
940 EfiCacheUnknownMode = 3
941 } EFI_CACHE_OPERATIONAL_MODE;
942
943
944 ///
945 /// Inconsistent with specification here:
946 /// In CacheSubclass specification 0.9, the enumeration type data structure is NOT defined.
947 /// The equivalent in specification is
948 /// #define EFI_CACHE_SIZE_RECORD_NUMBER 0x00000001
949 /// #define EFI_CACHE_MAXIMUM_SIZE_RECORD_NUMBER 0x00000002
950 /// #define EFI_CACHE_SPEED_RECORD_NUMBER 0x00000003
951 /// #define EFI_CACHE_SOCKET_RECORD_NUMBER 0x00000004
952 /// #define EFI_CACHE_SRAM_SUPPORT_RECORD_NUMBER 0x00000005
953 /// #define EFI_CACHE_SRAM_INSTALL_RECORD_NUMBER 0x00000006
954 /// #define EFI_CACHE_ERROR_SUPPORT_RECORD_NUMBER 0x00000007
955 /// #define EFI_CACHE_TYPE_RECORD_NUMBER 0x00000008
956 /// #define EFI_CACHE_ASSOCIATIVITY_RECORD_NUMBER 0x00000009
957 /// #define EFI_CACHE_CONFIGURATION_RECORD_NUMBER 0x0000000A
958 /// Keep the definition unchanged for backward compatibility.
959 ///
960 typedef enum {
961 CacheSizeRecordType = 1,
962 MaximumSizeCacheRecordType = 2,
963 CacheSpeedRecordType = 3,
964 CacheSocketRecordType = 4,
965 CacheSramTypeRecordType = 5,
966 CacheInstalledSramTypeRecordType = 6,
967 CacheErrorTypeRecordType = 7,
968 CacheTypeRecordType = 8,
969 CacheAssociativityRecordType = 9,
970 CacheConfigRecordType = 10
971 } EFI_CACHE_VARIABLE_RECORD_TYPE;
972
973 ///
974 /// Inconsistent with specification here:
975 /// In CacheSubclass specification 0.9, the union type data structure is NOT defined.
976 /// It's implementation-specific to simplify the code logic.
977 ///
978 typedef union {
979 EFI_CACHE_SIZE_DATA CacheSize;
980 EFI_MAXIMUM_CACHE_SIZE_DATA MaximumCacheSize;
981 EFI_CACHE_SPEED_DATA CacheSpeed;
982 EFI_CACHE_SOCKET_DATA CacheSocket;
983 EFI_CACHE_SRAM_TYPE_DATA CacheSramType;
984 EFI_CACHE_SRAM_TYPE_DATA CacheInstalledSramType;
985 EFI_CACHE_ERROR_TYPE_DATA CacheErrorType;
986 EFI_CACHE_TYPE_DATA CacheType;
987 EFI_CACHE_ASSOCIATIVITY_DATA CacheAssociativity;
988 EFI_CACHE_CONFIGURATION_DATA CacheConfig;
989 EFI_CACHE_ASSOCIATION_DATA CacheAssociation;
990 } EFI_CACHE_VARIABLE_RECORD;
991
992 typedef struct {
993 EFI_SUBCLASS_TYPE1_HEADER DataRecordHeader;
994 EFI_CACHE_VARIABLE_RECORD VariableRecord;
995 } EFI_CACHE_DATA_RECORD;
996
997 #define EFI_MEMORY_SUBCLASS_VERSION 0x0100
998 #define EFI_MEMORY_SIZE_RECORD_NUMBER 0x00000001
999
1000 typedef enum _EFI_MEMORY_REGION_TYPE {
1001 EfiMemoryRegionMemory = 0x01,
1002 EfiMemoryRegionReserved = 0x02,
1003 EfiMemoryRegionAcpi = 0x03,
1004 EfiMemoryRegionNvs = 0x04
1005 } EFI_MEMORY_REGION_TYPE;
1006
1007 ///
1008 /// This data record refers to the size of a memory region. The regions that are
1009 /// described can refer to physical memory, memory-mapped I/O, or reserved BIOS memory regions.
1010 /// The unit of measurement of this data record is in bytes.
1011 ///
1012 typedef struct {
1013 ///
1014 /// A zero-based value that indicates which processor(s) can access the memory region.
1015 /// A value of 0xFFFF indicates the region is accessible by all processors.
1016 ///
1017 UINT32 ProcessorNumber;
1018 ///
1019 /// A zero-based value that indicates the starting bus that can access the memory region.
1020 ///
1021 UINT16 StartBusNumber;
1022 ///
1023 /// A zero-based value that indicates the ending bus that can access the memory region.
1024 /// A value of 0xFF for a PCI system indicates the region is accessible by all buses and
1025 /// is global in scope. An example of the EndBusNumber not being 0xFF is a system
1026 /// with two or more peer-to-host PCI bridges.
1027 ///
1028 UINT16 EndBusNumber;
1029 ///
1030 /// The type of memory region from the operating system's point of view.
1031 /// MemoryRegionType values are equivalent to the legacy INT 15 AX = E820 BIOS
1032 /// command values.
1033 ///
1034 EFI_MEMORY_REGION_TYPE MemoryRegionType;
1035 ///
1036 /// The size of the memory region in bytes.
1037 ///
1038 EFI_EXP_BASE2_DATA MemorySize;
1039 ///
1040 /// The starting physical address of the memory region.
1041 ///
1042 EFI_PHYSICAL_ADDRESS MemoryStartAddress;
1043 } EFI_MEMORY_SIZE_DATA;
1044
1045
1046 #define EFI_MEMORY_ARRAY_LOCATION_RECORD_NUMBER 0x00000002
1047
1048 typedef enum _EFI_MEMORY_ARRAY_LOCATION {
1049 EfiMemoryArrayLocationOther = 0x01,
1050 EfiMemoryArrayLocationUnknown = 0x02,
1051 EfiMemoryArrayLocationSystemBoard = 0x03,
1052 EfiMemoryArrayLocationIsaAddonCard = 0x04,
1053 EfiMemoryArrayLocationEisaAddonCard = 0x05,
1054 EfiMemoryArrayLocationPciAddonCard = 0x06,
1055 EfiMemoryArrayLocationMcaAddonCard = 0x07,
1056 EfiMemoryArrayLocationPcmciaAddonCard = 0x08,
1057 EfiMemoryArrayLocationProprietaryAddonCard = 0x09,
1058 EfiMemoryArrayLocationNuBus = 0x0A,
1059 EfiMemoryArrayLocationPc98C20AddonCard = 0xA0,
1060 EfiMemoryArrayLocationPc98C24AddonCard = 0xA1,
1061 EfiMemoryArrayLocationPc98EAddonCard = 0xA2,
1062 EfiMemoryArrayLocationPc98LocalBusAddonCard = 0xA3
1063 } EFI_MEMORY_ARRAY_LOCATION;
1064
1065 typedef enum _EFI_MEMORY_ARRAY_USE {
1066 EfiMemoryArrayUseOther = 0x01,
1067 EfiMemoryArrayUseUnknown = 0x02,
1068 EfiMemoryArrayUseSystemMemory = 0x03,
1069 EfiMemoryArrayUseVideoMemory = 0x04,
1070 EfiMemoryArrayUseFlashMemory = 0x05,
1071 EfiMemoryArrayUseNonVolatileRam = 0x06,
1072 EfiMemoryArrayUseCacheMemory = 0x07
1073 } EFI_MEMORY_ARRAY_USE;
1074
1075 typedef enum _EFI_MEMORY_ERROR_CORRECTION {
1076 EfiMemoryErrorCorrectionOther = 0x01,
1077 EfiMemoryErrorCorrectionUnknown = 0x02,
1078 EfiMemoryErrorCorrectionNone = 0x03,
1079 EfiMemoryErrorCorrectionParity = 0x04,
1080 EfiMemoryErrorCorrectionSingleBitEcc = 0x05,
1081 EfiMemoryErrorCorrectionMultiBitEcc = 0x06,
1082 EfiMemoryErrorCorrectionCrc = 0x07
1083 } EFI_MEMORY_ERROR_CORRECTION;
1084
1085 ///
1086 /// This data record refers to the physical memory array. This data record is a structure.
1087 /// The type definition structure for EFI_MEMORY_ARRAY_LOCATION_DATA is in SMBIOS 2.3.4:
1088 /// - Table 3.3.17.1, Type 16, Offset 0x4
1089 /// - Table 3.3.17.2, Type 16, Offset 0x5
1090 /// - Table 3.3.17.3, Type 16, with the following offsets:
1091 /// -- Offset 0x6
1092 /// -- Offset 0x7
1093 /// -- Offset 0xB
1094 /// -- Offset 0xD
1095 ///
1096 typedef struct {
1097 ///
1098 /// The physical location of the memory array.
1099 ///
1100 EFI_MEMORY_ARRAY_LOCATION MemoryArrayLocation;
1101 ///
1102 /// The memory array usage.
1103 ///
1104 EFI_MEMORY_ARRAY_USE MemoryArrayUse;
1105 ///
1106 /// The primary error correction or detection supported by this memory array.
1107 ///
1108 EFI_MEMORY_ERROR_CORRECTION MemoryErrorCorrection;
1109 ///
1110 /// The maximum memory capacity size in kilobytes. If capacity is unknown, then
1111 /// values of MaximumMemoryCapacity.Value = 0x00 and
1112 /// MaximumMemoryCapacity.Exponent = 0x8000 are used.
1113 ///
1114 EFI_EXP_BASE2_DATA MaximumMemoryCapacity;
1115 ///
1116 /// The number of memory slots or sockets that are available for memory devices
1117 /// in this array.
1118 ///
1119 UINT16 NumberMemoryDevices;
1120 } EFI_MEMORY_ARRAY_LOCATION_DATA;
1121
1122
1123 #define EFI_MEMORY_ARRAY_LINK_RECORD_NUMBER 0x00000003
1124
1125 typedef enum _EFI_MEMORY_FORM_FACTOR {
1126 EfiMemoryFormFactorOther = 0x01,
1127 EfiMemoryFormFactorUnknown = 0x02,
1128 EfiMemoryFormFactorSimm = 0x03,
1129 EfiMemoryFormFactorSip = 0x04,
1130 EfiMemoryFormFactorChip = 0x05,
1131 EfiMemoryFormFactorDip = 0x06,
1132 EfiMemoryFormFactorZip = 0x07,
1133 EfiMemoryFormFactorProprietaryCard = 0x08,
1134 EfiMemoryFormFactorDimm = 0x09,
1135 EfiMemoryFormFactorTsop = 0x0A,
1136 EfiMemoryFormFactorRowOfChips = 0x0B,
1137 EfiMemoryFormFactorRimm = 0x0C,
1138 EfiMemoryFormFactorSodimm = 0x0D,
1139 EfiMemoryFormFactorSrimm = 0x0E,
1140 ///
1141 /// Inconsistent with specification here:
1142 /// This field is NOT defined in MemSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
1143 ///
1144 EfiMemoryFormFactorFbDimm = 0x0F
1145 } EFI_MEMORY_FORM_FACTOR;
1146
1147 typedef enum _EFI_MEMORY_ARRAY_TYPE {
1148 EfiMemoryTypeOther = 0x01,
1149 EfiMemoryTypeUnknown = 0x02,
1150 EfiMemoryTypeDram = 0x03,
1151 EfiMemoryTypeEdram = 0x04,
1152 EfiMemoryTypeVram = 0x05,
1153 EfiMemoryTypeSram = 0x06,
1154 EfiMemoryTypeRam = 0x07,
1155 EfiMemoryTypeRom = 0x08,
1156 EfiMemoryTypeFlash = 0x09,
1157 EfiMemoryTypeEeprom = 0x0A,
1158 EfiMemoryTypeFeprom = 0x0B,
1159 EfiMemoryTypeEprom = 0x0C,
1160 EfiMemoryTypeCdram = 0x0D,
1161 EfiMemoryType3Dram = 0x0E,
1162 EfiMemoryTypeSdram = 0x0F,
1163 EfiMemoryTypeSgram = 0x10,
1164 EfiMemoryTypeRdram = 0x11,
1165 EfiMemoryTypeDdr = 0x12,
1166 ///
1167 /// Inconsistent with specification here:
1168 /// This field is NOT defined in MemSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
1169 ///
1170 EfiMemoryTypeDdr2 = 0x13,
1171 ///
1172 /// Inconsistent with specification here:
1173 /// This field is NOT defined in MemSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
1174 ///
1175 EfiMemoryTypeDdr2FbDimm = 0x14
1176 } EFI_MEMORY_ARRAY_TYPE;
1177
1178 typedef struct {
1179 UINT32 Reserved :1;
1180 UINT32 Other :1;
1181 UINT32 Unknown :1;
1182 UINT32 FastPaged :1;
1183 UINT32 StaticColumn :1;
1184 UINT32 PseudoStatic :1;
1185 UINT32 Rambus :1;
1186 UINT32 Synchronous :1;
1187 UINT32 Cmos :1;
1188 UINT32 Edo :1;
1189 UINT32 WindowDram :1;
1190 UINT32 CacheDram :1;
1191 UINT32 Nonvolatile :1;
1192 UINT32 Reserved1 :19;
1193 } EFI_MEMORY_TYPE_DETAIL;
1194
1195 typedef enum {
1196 EfiMemoryStateEnabled = 0,
1197 EfiMemoryStateUnknown = 1,
1198 EfiMemoryStateUnsupported = 2,
1199 EfiMemoryStateError = 3,
1200 EfiMemoryStateAbsent = 4,
1201 EfiMemoryStateDisabled = 5,
1202 ///
1203 /// Inconsistent with specification here:
1204 /// This field is NOT defined in MemSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
1205 ///
1206 EfiMemoryStatePartial = 6
1207 } EFI_MEMORY_STATE;
1208
1209 ///
1210 /// This data record describes a memory device. This data record is a structure.
1211 /// The type definition structure for EFI_MEMORY_ARRAY_LINK_DATA is in SMBIOS 2.3.4.
1212 ///
1213 typedef struct {
1214 ///
1215 /// A string that identifies the physically labeled socket or board position where the
1216 /// memory device is located.
1217 ///
1218 STRING_REF MemoryDeviceLocator;
1219 ///
1220 /// A string denoting the physically labeled bank where the memory device is located.
1221 ///
1222 STRING_REF MemoryBankLocator;
1223 ///
1224 /// A string denoting the memory manufacturer.
1225 ///
1226 STRING_REF MemoryManufacturer;
1227 ///
1228 /// A string denoting the serial number of the memory device.
1229 ///
1230 STRING_REF MemorySerialNumber;
1231 ///
1232 /// The asset tag of the memory device.
1233 ///
1234 STRING_REF MemoryAssetTag;
1235 ///
1236 /// A string denoting the part number of the memory device.
1237 ///
1238 STRING_REF MemoryPartNumber;
1239 ///
1240 /// A link to a memory array structure set.
1241 ///
1242 EFI_INTER_LINK_DATA MemoryArrayLink;
1243 ///
1244 /// A link to a memory array structure set.
1245 ///
1246 EFI_INTER_LINK_DATA MemorySubArrayLink;
1247 ///
1248 /// The total width in bits of this memory device. If there are no error correcting bits,
1249 /// then the total width equals the data width. If the width is unknown, then set the field
1250 /// to 0xFFFF.
1251 ///
1252 UINT16 MemoryTotalWidth;
1253 ///
1254 /// The data width in bits of the memory device. A data width of 0x00 and a total width
1255 /// of 0x08 indicate that the device is used solely for error correction.
1256 ///
1257 UINT16 MemoryDataWidth;
1258 ///
1259 /// The size in bytes of the memory device. A value of 0x00 denotes that no device is
1260 /// installed, while a value of all Fs denotes that the size is not known.
1261 ///
1262 EFI_EXP_BASE2_DATA MemoryDeviceSize;
1263 ///
1264 /// The form factor of the memory device.
1265 ///
1266 EFI_MEMORY_FORM_FACTOR MemoryFormFactor;
1267 ///
1268 /// A memory device set that must be populated with all devices of the same type and
1269 /// size. A value of 0x00 indicates that the device is not part of any set. A value of 0xFF
1270 /// indicates that the attribute is unknown. Any other value denotes the set number.
1271 ///
1272 UINT8 MemoryDeviceSet;
1273 ///
1274 /// The memory type in the socket.
1275 ///
1276 EFI_MEMORY_ARRAY_TYPE MemoryType;
1277 ///
1278 /// The memory type details.
1279 ///
1280 EFI_MEMORY_TYPE_DETAIL MemoryTypeDetail;
1281 ///
1282 /// The memory speed in megahertz (MHz). A value of 0x00 denotes that
1283 /// the speed is unknown.
1284 /// Inconsistent with specification here:
1285 /// In MemSubclass specification 0.9, the naming is MemoryTypeSpeed.
1286 /// Keep it unchanged for backward compatibilty.
1287 ///
1288 EFI_EXP_BASE10_DATA MemorySpeed;
1289 ///
1290 /// The memory state.
1291 ///
1292 EFI_MEMORY_STATE MemoryState;
1293 } EFI_MEMORY_ARRAY_LINK_DATA;
1294
1295
1296 #define EFI_MEMORY_ARRAY_START_ADDRESS_RECORD_NUMBER 0x00000004
1297
1298 ///
1299 /// This data record refers to a specified physical memory array associated with
1300 /// a given memory range.
1301 ///
1302 typedef struct {
1303 ///
1304 /// The starting physical address in bytes of memory mapped to a specified physical
1305 /// memory array.
1306 ///
1307 EFI_PHYSICAL_ADDRESS MemoryArrayStartAddress;
1308 ///
1309 /// The last physical address in bytes of memory mapped to a specified physical memory
1310 /// array.
1311 ///
1312 EFI_PHYSICAL_ADDRESS MemoryArrayEndAddress;
1313 ///
1314 /// See Physical Memory Array (Type 16) for physical memory array structures.
1315 ///
1316 EFI_INTER_LINK_DATA PhysicalMemoryArrayLink;
1317 ///
1318 /// The number of memory devices that form a single row of memory for the address
1319 /// partition.
1320 ///
1321 UINT16 MemoryArrayPartitionWidth;
1322 } EFI_MEMORY_ARRAY_START_ADDRESS_DATA;
1323
1324
1325 #define EFI_MEMORY_DEVICE_START_ADDRESS_RECORD_NUMBER 0x00000005
1326
1327 ///
1328 /// This data record refers to a physical memory device that is associated with
1329 /// a given memory range.
1330 ///
1331 typedef struct {
1332 ///
1333 /// The starting physical address that is associated with the device.
1334 ///
1335 EFI_PHYSICAL_ADDRESS MemoryDeviceStartAddress;
1336 ///
1337 /// The ending physical address that is associated with the device.
1338 ///
1339 EFI_PHYSICAL_ADDRESS MemoryDeviceEndAddress;
1340 ///
1341 /// A link to the memory device data structure.
1342 ///
1343 EFI_INTER_LINK_DATA PhysicalMemoryDeviceLink;
1344 ///
1345 /// A link to the memory array data structure.
1346 ///
1347 EFI_INTER_LINK_DATA PhysicalMemoryArrayLink;
1348 ///
1349 /// The position of the memory device in a row. A value of 0x00 is reserved and a value
1350 /// of 0xFF indicates that the position is unknown.
1351 ///
1352 UINT8 MemoryDevicePartitionRowPosition;
1353 ///
1354 /// The position of the device in an interleave.
1355 ///
1356 UINT8 MemoryDeviceInterleavePosition;
1357 ///
1358 /// The maximum number of consecutive rows from the device that are accessed in a
1359 /// single interleave transfer. A value of 0x00 indicates that the device is not interleaved
1360 /// and a value of 0xFF indicates that the interleave configuration is unknown.
1361 ///
1362 UINT8 MemoryDeviceInterleaveDataDepth;
1363 } EFI_MEMORY_DEVICE_START_ADDRESS_DATA;
1364
1365
1366 //
1367 // Memory. Channel Device Type - SMBIOS Type 37
1368 //
1369
1370 #define EFI_MEMORY_CHANNEL_TYPE_RECORD_NUMBER 0x00000006
1371
1372 typedef enum _EFI_MEMORY_CHANNEL_TYPE {
1373 EfiMemoryChannelTypeOther = 1,
1374 EfiMemoryChannelTypeUnknown = 2,
1375 EfiMemoryChannelTypeRambus = 3,
1376 EfiMemoryChannelTypeSyncLink = 4
1377 } EFI_MEMORY_CHANNEL_TYPE;
1378
1379 ///
1380 /// This data record refers the type of memory that is associated with the channel. This data record is a
1381 /// structure.
1382 /// The type definition structure for EFI_MEMORY_CHANNEL_TYPE_DATA is in SMBIOS 2.3.4,
1383 /// Table 3.3.38, Type 37, with the following offsets:
1384 /// - Offset 0x4
1385 /// - Offset 0x5
1386 /// - Offset 0x6
1387 ///
1388 typedef struct {
1389 ///
1390 /// The type of memory that is associated with the channel.
1391 ///
1392 EFI_MEMORY_CHANNEL_TYPE MemoryChannelType;
1393 ///
1394 /// The maximum load that is supported by the channel.
1395 ///
1396 UINT8 MemoryChannelMaximumLoad;
1397 ///
1398 /// The number of memory devices on this channel.
1399 ///
1400 UINT8 MemoryChannelDeviceCount;
1401 } EFI_MEMORY_CHANNEL_TYPE_DATA;
1402
1403 #define EFI_MEMORY_CHANNEL_DEVICE_RECORD_NUMBER 0x00000007
1404
1405 ///
1406 /// This data record refers to the memory device that is associated with the memory channel. This data
1407 /// record is a structure.
1408 /// The type definition structure for EFI_MEMORY_CHANNEL_DEVICE_DATA is in SMBIOS 2.3.4,
1409 /// Table 3.3.38, Type 37, with the following offsets:
1410 /// - Offset 0x7
1411 /// - Offset 0x8
1412 ///
1413 typedef struct {
1414 ///
1415 /// A number between one and MemoryChannelDeviceCount plus an arbitrary base.
1416 ///
1417 UINT8 DeviceId;
1418 ///
1419 /// The Link of the associated memory device. See Memory Device (Type 17) for
1420 /// memory devices.
1421 ///
1422 EFI_INTER_LINK_DATA DeviceLink;
1423 ///
1424 /// The number of load units that this device consumes.
1425 ///
1426 UINT8 MemoryChannelDeviceLoad;
1427 } EFI_MEMORY_CHANNEL_DEVICE_DATA;
1428
1429 //
1430 // Memory. Controller Information - SMBIOS Type 5
1431 //
1432 ///
1433 /// Inconsistent with specification here:
1434 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1435 /// It's introduced for SmBios 2.6 type 5.
1436 ///
1437 #define EFI_MEMORY_CONTROLLER_INFORMATION_RECORD_NUMBER 0x00000008
1438
1439 ///
1440 /// Inconsistent with specification here:
1441 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1442 /// It's introduced for SmBios 2.6 type 5.
1443 ///
1444 typedef enum {
1445 EfiErrorDetectingMethodOther = 1,
1446 EfiErrorDetectingMethodUnknown = 2,
1447 EfiErrorDetectingMethodNone = 3,
1448 EfiErrorDetectingMethodParity = 4,
1449 EfiErrorDetectingMethod32Ecc = 5,
1450 EfiErrorDetectingMethod64Ecc = 6,
1451 EfiErrorDetectingMethod128Ecc = 7,
1452 EfiErrorDetectingMethodCrc = 8
1453 } EFI_MEMORY_ERROR_DETECT_METHOD_TYPE;
1454
1455 ///
1456 /// Inconsistent with specification here:
1457 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1458 /// It's introduced for SmBios 2.6 type 5.
1459 ///
1460 typedef struct {
1461 UINT8 Other :1;
1462 UINT8 Unknown :1;
1463 UINT8 None :1;
1464 UINT8 SingleBitErrorCorrect :1;
1465 UINT8 DoubleBitErrorCorrect :1;
1466 UINT8 ErrorScrubbing :1;
1467 UINT8 Reserved :2;
1468 } EFI_MEMORY_ERROR_CORRECT_CAPABILITY;
1469
1470 ///
1471 /// Inconsistent with specification here:
1472 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1473 /// It's introduced for SmBios 2.6 type 5.
1474 ///
1475 typedef enum {
1476 EfiMemoryInterleaveOther = 1,
1477 EfiMemoryInterleaveUnknown = 2,
1478 EfiMemoryInterleaveOneWay = 3,
1479 EfiMemoryInterleaveTwoWay = 4,
1480 EfiMemoryInterleaveFourWay = 5,
1481 EfiMemoryInterleaveEightWay = 6,
1482 EfiMemoryInterleaveSixteenWay = 7
1483 } EFI_MEMORY_SUPPORT_INTERLEAVE_TYPE;
1484
1485 ///
1486 /// Inconsistent with specification here:
1487 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1488 /// It's introduced for SmBios 2.6 type 5.
1489 ///
1490 typedef struct {
1491 UINT16 Other :1;
1492 UINT16 Unknown :1;
1493 UINT16 SeventyNs:1;
1494 UINT16 SixtyNs :1;
1495 UINT16 FiftyNs :1;
1496 UINT16 Reserved :11;
1497 } EFI_MEMORY_SPEED_TYPE;
1498
1499 ///
1500 /// Inconsistent with specification here:
1501 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1502 /// It's introduced for SmBios 2.6 type 5.
1503 ///
1504 typedef struct {
1505 UINT16 Other :1;
1506 UINT16 Unknown :1;
1507 UINT16 Standard :1;
1508 UINT16 FastPageMode:1;
1509 UINT16 EDO :1;
1510 UINT16 Parity :1;
1511 UINT16 ECC :1;
1512 UINT16 SIMM :1;
1513 UINT16 DIMM :1;
1514 UINT16 BurstEdo :1;
1515 UINT16 SDRAM :1;
1516 UINT16 Reserved :5;
1517 } EFI_MEMORY_SUPPORTED_TYPE;
1518
1519 ///
1520 /// Inconsistent with specification here:
1521 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1522 /// It's introduced for SmBios 2.6 type 5.
1523 ///
1524 typedef struct {
1525 UINT8 Five :1;
1526 UINT8 Three :1;
1527 UINT8 Two :1;
1528 UINT8 Reserved:5;
1529 } EFI_MEMORY_MODULE_VOLTAGE_TYPE;
1530
1531 ///
1532 /// EFI_MEMORY_CONTROLLER_INFORMATION is obsolete
1533 /// Use EFI_MEMORY_CONTROLLER_INFORMATION_DATA instead
1534 ///
1535 /// Inconsistent with specification here:
1536 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1537 /// It's introduced for SmBios 2.6 type 5.
1538 ///
1539 typedef struct {
1540 EFI_MEMORY_ERROR_DETECT_METHOD_TYPE ErrorDetectingMethod;
1541 EFI_MEMORY_ERROR_CORRECT_CAPABILITY ErrorCorrectingCapability;
1542 EFI_MEMORY_SUPPORT_INTERLEAVE_TYPE MemorySupportedInterleave;
1543 EFI_MEMORY_SUPPORT_INTERLEAVE_TYPE MemoryCurrentInterleave;
1544 UINT8 MaxMemoryModuleSize;
1545 EFI_MEMORY_SPEED_TYPE MemorySpeedType;
1546 EFI_MEMORY_SUPPORTED_TYPE MemorySupportedType;
1547 EFI_MEMORY_MODULE_VOLTAGE_TYPE MemoryModuleVoltage;
1548 UINT8 NumberofMemorySlot;
1549 EFI_MEMORY_ERROR_CORRECT_CAPABILITY EnabledCorrectingCapability;
1550 UINT16 *MemoryModuleConfigHandles;
1551 } EFI_MEMORY_CONTROLLER_INFORMATION;
1552
1553 ///
1554 /// Inconsistent with specification here:
1555 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1556 /// It's introduced for SmBios 2.6 type 5.
1557 ///
1558 typedef struct {
1559 EFI_MEMORY_ERROR_DETECT_METHOD_TYPE ErrorDetectingMethod;
1560 EFI_MEMORY_ERROR_CORRECT_CAPABILITY ErrorCorrectingCapability;
1561 EFI_MEMORY_SUPPORT_INTERLEAVE_TYPE MemorySupportedInterleave;
1562 EFI_MEMORY_SUPPORT_INTERLEAVE_TYPE MemoryCurrentInterleave;
1563 UINT8 MaxMemoryModuleSize;
1564 EFI_MEMORY_SPEED_TYPE MemorySpeedType;
1565 EFI_MEMORY_SUPPORTED_TYPE MemorySupportedType;
1566 EFI_MEMORY_MODULE_VOLTAGE_TYPE MemoryModuleVoltage;
1567 UINT8 NumberofMemorySlot;
1568 EFI_MEMORY_ERROR_CORRECT_CAPABILITY EnabledCorrectingCapability;
1569 EFI_INTER_LINK_DATA MemoryModuleConfig[1];
1570 } EFI_MEMORY_CONTROLLER_INFORMATION_DATA;
1571
1572 ///
1573 /// Memory. Error Information - SMBIOS Type 18
1574 ///
1575 /// Inconsistent with specification here:
1576 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1577 /// It's introduced for SmBios 2.6 type 18.
1578 ///
1579 #define EFI_MEMORY_32BIT_ERROR_INFORMATION_RECORD_NUMBER 0x00000009
1580 ///
1581 /// Inconsistent with specification here:
1582 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1583 /// It's introduced for SmBios 2.6 type 18.
1584 ///
1585 typedef enum {
1586 EfiMemoryErrorOther = 1,
1587 EfiMemoryErrorUnknown = 2,
1588 EfiMemoryErrorOk = 3,
1589 EfiMemoryErrorBadRead = 4,
1590 EfiMemoryErrorParity = 5,
1591 EfiMemoryErrorSigleBit = 6,
1592 EfiMemoryErrorDoubleBit = 7,
1593 EfiMemoryErrorMultiBit = 8,
1594 EfiMemoryErrorNibble = 9,
1595 EfiMemoryErrorChecksum = 10,
1596 EfiMemoryErrorCrc = 11,
1597 EfiMemoryErrorCorrectSingleBit = 12,
1598 EfiMemoryErrorCorrected = 13,
1599 EfiMemoryErrorUnCorrectable = 14
1600 } EFI_MEMORY_ERROR_TYPE;
1601 ///
1602 /// Inconsistent with specification here:
1603 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1604 /// It's introduced for SmBios 2.6 type 18.
1605 ///
1606 typedef enum {
1607 EfiMemoryGranularityOther = 1,
1608 EfiMemoryGranularityOtherUnknown = 2,
1609 EfiMemoryGranularityDeviceLevel = 3,
1610 EfiMemoryGranularityMemPartitionLevel = 4
1611 } EFI_MEMORY_ERROR_GRANULARITY_TYPE;
1612 ///
1613 /// Inconsistent with specification here:
1614 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1615 /// It's introduced for SmBios 2.6 type 18.
1616 ///
1617 typedef enum {
1618 EfiMemoryErrorOperationOther = 1,
1619 EfiMemoryErrorOperationUnknown = 2,
1620 EfiMemoryErrorOperationRead = 3,
1621 EfiMemoryErrorOperationWrite = 4,
1622 EfiMemoryErrorOperationPartialWrite = 5
1623 } EFI_MEMORY_ERROR_OPERATION_TYPE;
1624 ///
1625 /// Inconsistent with specification here:
1626 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1627 /// It's introduced for SmBios 2.6 type 18.
1628 ///
1629 typedef struct {
1630 EFI_MEMORY_ERROR_TYPE MemoryErrorType;
1631 EFI_MEMORY_ERROR_GRANULARITY_TYPE MemoryErrorGranularity;
1632 EFI_MEMORY_ERROR_OPERATION_TYPE MemoryErrorOperation;
1633 UINT32 VendorSyndrome;
1634 UINT32 MemoryArrayErrorAddress;
1635 UINT32 DeviceErrorAddress;
1636 UINT32 DeviceErrorResolution;
1637 } EFI_MEMORY_32BIT_ERROR_INFORMATION;
1638
1639 ///
1640 /// Memory. Error Information - SMBIOS Type 33.
1641 ///
1642 /// Inconsistent with specification here:
1643 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1644 /// It's introduced for SmBios 2.6 type 33.
1645 ///
1646 #define EFI_MEMORY_64BIT_ERROR_INFORMATION_RECORD_NUMBER 0x0000000A
1647
1648 ///
1649 /// Inconsistent with specification here:
1650 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1651 /// It's introduced for SmBios 2.6 type 33.
1652 ///
1653 typedef struct {
1654 EFI_MEMORY_ERROR_TYPE MemoryErrorType;
1655 EFI_MEMORY_ERROR_GRANULARITY_TYPE MemoryErrorGranularity;
1656 EFI_MEMORY_ERROR_OPERATION_TYPE MemoryErrorOperation;
1657 UINT32 VendorSyndrome;
1658 UINT64 MemoryArrayErrorAddress;
1659 UINT64 DeviceErrorAddress;
1660 UINT32 DeviceErrorResolution;
1661 } EFI_MEMORY_64BIT_ERROR_INFORMATION;
1662
1663 ///
1664 /// Inconsistent with specification here:
1665 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1666 /// It is implementation-specific to simplify the code logic.
1667 ///
1668 typedef union _EFI_MEMORY_SUBCLASS_RECORDS {
1669 EFI_MEMORY_SIZE_DATA SizeData;
1670 EFI_MEMORY_ARRAY_LOCATION_DATA ArrayLocationData;
1671 EFI_MEMORY_ARRAY_LINK_DATA ArrayLink;
1672 EFI_MEMORY_ARRAY_START_ADDRESS_DATA ArrayStartAddress;
1673 EFI_MEMORY_DEVICE_START_ADDRESS_DATA DeviceStartAddress;
1674 EFI_MEMORY_CHANNEL_TYPE_DATA ChannelTypeData;
1675 EFI_MEMORY_CHANNEL_DEVICE_DATA ChannelDeviceData;
1676 EFI_MEMORY_CONTROLLER_INFORMATION MemoryControllerInfo;
1677 EFI_MEMORY_32BIT_ERROR_INFORMATION Memory32bitErrorInfo;
1678 EFI_MEMORY_64BIT_ERROR_INFORMATION Memory64bitErrorInfo;
1679 } EFI_MEMORY_SUBCLASS_RECORDS;
1680
1681 typedef struct {
1682 EFI_SUBCLASS_TYPE1_HEADER Header;
1683 EFI_MEMORY_SUBCLASS_RECORDS Record;
1684 } EFI_MEMORY_SUBCLASS_DRIVER_DATA;
1685
1686 #define EFI_MISC_SUBCLASS_VERSION 0x0100
1687
1688 #pragma pack(1)
1689
1690 //
1691 // Last PCI Bus Number
1692 //
1693 #define EFI_MISC_LAST_PCI_BUS_RECORD_NUMBER 0x00000001
1694
1695 typedef struct {
1696 UINT8 LastPciBus;
1697 } EFI_MISC_LAST_PCI_BUS_DATA;
1698
1699 //
1700 // Misc. BIOS Vendor - SMBIOS Type 0
1701 //
1702 #define EFI_MISC_BIOS_VENDOR_RECORD_NUMBER 0x00000002
1703
1704 typedef struct {
1705 UINT64 Reserved1 :2;
1706 UINT64 Unknown :1;
1707 UINT64 BiosCharacteristicsNotSupported :1;
1708 UINT64 IsaIsSupported :1;
1709 UINT64 McaIsSupported :1;
1710 UINT64 EisaIsSupported :1;
1711 UINT64 PciIsSupported :1;
1712 UINT64 PcmciaIsSupported :1;
1713 UINT64 PlugAndPlayIsSupported :1;
1714 UINT64 ApmIsSupported :1;
1715 UINT64 BiosIsUpgradable :1;
1716 UINT64 BiosShadowingAllowed :1;
1717 UINT64 VlVesaIsSupported :1;
1718 UINT64 EscdSupportIsAvailable :1;
1719 UINT64 BootFromCdIsSupported :1;
1720 UINT64 SelectableBootIsSupported :1;
1721 UINT64 RomBiosIsSocketed :1;
1722 UINT64 BootFromPcmciaIsSupported :1;
1723 UINT64 EDDSpecificationIsSupported :1;
1724 UINT64 JapaneseNecFloppyIsSupported :1;
1725 UINT64 JapaneseToshibaFloppyIsSupported :1;
1726 UINT64 Floppy525_360IsSupported :1;
1727 UINT64 Floppy525_12IsSupported :1;
1728 UINT64 Floppy35_720IsSupported :1;
1729 UINT64 Floppy35_288IsSupported :1;
1730 UINT64 PrintScreenIsSupported :1;
1731 UINT64 Keyboard8042IsSupported :1;
1732 UINT64 SerialIsSupported :1;
1733 UINT64 PrinterIsSupported :1;
1734 UINT64 CgaMonoIsSupported :1;
1735 UINT64 NecPc98 :1;
1736 UINT64 AcpiIsSupported :1;
1737 UINT64 UsbLegacyIsSupported :1;
1738 UINT64 AgpIsSupported :1;
1739 UINT64 I20BootIsSupported :1;
1740 UINT64 Ls120BootIsSupported :1;
1741 UINT64 AtapiZipDriveBootIsSupported :1;
1742 UINT64 Boot1394IsSupported :1;
1743 UINT64 SmartBatteryIsSupported :1;
1744 UINT64 BiosBootSpecIsSupported :1;
1745 UINT64 FunctionKeyNetworkBootIsSupported :1;
1746 UINT64 Reserved :22;
1747 } EFI_MISC_BIOS_CHARACTERISTICS;
1748
1749 typedef struct {
1750 UINT64 BiosReserved :16;
1751 UINT64 SystemReserved:16;
1752 UINT64 Reserved :32;
1753 } EFI_MISC_BIOS_CHARACTERISTICS_EXTENSION;
1754
1755 typedef struct {
1756 STRING_REF BiosVendor;
1757 STRING_REF BiosVersion;
1758 STRING_REF BiosReleaseDate;
1759 EFI_PHYSICAL_ADDRESS BiosStartingAddress;
1760 EFI_EXP_BASE2_DATA BiosPhysicalDeviceSize;
1761 EFI_MISC_BIOS_CHARACTERISTICS BiosCharacteristics1;
1762 EFI_MISC_BIOS_CHARACTERISTICS_EXTENSION
1763 BiosCharacteristics2;
1764 ///
1765 /// Inconsistent with specification here:
1766 /// In MiscSubclass specification 0.9, this data structure and corrsponding fields are NOT defined.
1767 /// It's introduced for SmBios 2.6 specification type 0.
1768 ///
1769 UINT8 BiosMajorRelease;
1770 ///
1771 /// Inconsistent with specification here:
1772 /// In MiscSubclass specification 0.9, this data structure and corrsponding fields are NOT defined.
1773 /// It's introduced for SmBios 2.6 specification type 0.
1774 ///
1775 UINT8 BiosMinorRelease;
1776 ///
1777 /// Inconsistent with specification here:
1778 /// In MiscSubclass specification 0.9, this data structure and corrsponding fields are NOT defined.
1779 /// It's introduced for SmBios 2.6 specification type 0.
1780 ///
1781 UINT8 BiosEmbeddedFirmwareMajorRelease;
1782 ///
1783 /// Inconsistent with specification here:
1784 /// In MiscSubclass specification 0.9, this data structure and corrsponding fields are NOT defined.
1785 /// It's introduced for SmBios 2.6 specification type 0.
1786 ///
1787 UINT8 BiosEmbeddedFirmwareMinorRelease;
1788 } EFI_MISC_BIOS_VENDOR_DATA;
1789
1790 //
1791 // Misc. System Manufacturer - SMBIOS Type 1
1792 //
1793 #define EFI_MISC_SYSTEM_MANUFACTURER_RECORD_NUMBER 0x00000003
1794
1795 typedef enum {
1796 EfiSystemWakeupTypeReserved = 0,
1797 EfiSystemWakeupTypeOther = 1,
1798 EfiSystemWakeupTypeUnknown = 2,
1799 EfiSystemWakeupTypeApmTimer = 3,
1800 EfiSystemWakeupTypeModemRing = 4,
1801 EfiSystemWakeupTypeLanRemote = 5,
1802 EfiSystemWakeupTypePowerSwitch = 6,
1803 EfiSystemWakeupTypePciPme = 7,
1804 EfiSystemWakeupTypeAcPowerRestored = 8
1805 } EFI_MISC_SYSTEM_WAKEUP_TYPE;
1806
1807 typedef struct {
1808 STRING_REF SystemManufacturer;
1809 STRING_REF SystemProductName;
1810 STRING_REF SystemVersion;
1811 STRING_REF SystemSerialNumber;
1812 EFI_GUID SystemUuid;
1813 EFI_MISC_SYSTEM_WAKEUP_TYPE SystemWakeupType;
1814 ///
1815 /// Inconsistent with specification here:
1816 /// In MiscSubclass specification 0.9, this data structure and corrsponding fields are NOT defined.
1817 /// It's introduced for SmBios 2.6 specification type 1.
1818 ///
1819 STRING_REF SystemSKUNumber;
1820 ///
1821 /// Inconsistent with specification here:
1822 /// In MiscSubclass specification 0.9, this data structure and corrsponding fields are NOT defined.
1823 /// It's introduced for SmBios 2.6 specification type 1.
1824 ///
1825 STRING_REF SystemFamily;
1826 } EFI_MISC_SYSTEM_MANUFACTURER_DATA;
1827
1828 //
1829 // Misc. Base Board Manufacturer - SMBIOS Type 2
1830 //
1831 #define EFI_MISC_BASE_BOARD_MANUFACTURER_RECORD_NUMBER 0x00000004
1832
1833 typedef struct {
1834 UINT32 Motherboard :1;
1835 UINT32 RequiresDaughterCard :1;
1836 UINT32 Removable :1;
1837 UINT32 Replaceable :1;
1838 UINT32 HotSwappable :1;
1839 UINT32 Reserved :27;
1840 } EFI_BASE_BOARD_FEATURE_FLAGS;
1841
1842 typedef enum {
1843 EfiBaseBoardTypeUnknown = 1,
1844 EfiBaseBoardTypeOther = 2,
1845 EfiBaseBoardTypeServerBlade = 3,
1846 EfiBaseBoardTypeConnectivitySwitch = 4,
1847 EfiBaseBoardTypeSystemManagementModule = 5,
1848 EfiBaseBoardTypeProcessorModule = 6,
1849 EfiBaseBoardTypeIOModule = 7,
1850 EfiBaseBoardTypeMemoryModule = 8,
1851 EfiBaseBoardTypeDaughterBoard = 9,
1852 EfiBaseBoardTypeMotherBoard = 0xA,
1853 EfiBaseBoardTypeProcessorMemoryModule = 0xB,
1854 EfiBaseBoardTypeProcessorIOModule = 0xC,
1855 EfiBaseBoardTypeInterconnectBoard = 0xD
1856 } EFI_BASE_BOARD_TYPE;
1857
1858 typedef struct {
1859 STRING_REF BaseBoardManufacturer;
1860 STRING_REF BaseBoardProductName;
1861 STRING_REF BaseBoardVersion;
1862 STRING_REF BaseBoardSerialNumber;
1863 STRING_REF BaseBoardAssetTag;
1864 STRING_REF BaseBoardChassisLocation;
1865 EFI_BASE_BOARD_FEATURE_FLAGS BaseBoardFeatureFlags;
1866 EFI_BASE_BOARD_TYPE BaseBoardType;
1867 EFI_INTER_LINK_DATA BaseBoardChassisLink;
1868 UINT32 BaseBoardNumberLinks;
1869 EFI_INTER_LINK_DATA LinkN;
1870 } EFI_MISC_BASE_BOARD_MANUFACTURER_DATA;
1871
1872 //
1873 // Misc. System/Chassis Enclosure - SMBIOS Type 3
1874 //
1875 #define EFI_MISC_CHASSIS_MANUFACTURER_RECORD_NUMBER 0x00000005
1876
1877 typedef enum {
1878 EfiMiscChassisTypeOther = 0x1,
1879 EfiMiscChassisTypeUnknown = 0x2,
1880 EfiMiscChassisTypeDeskTop = 0x3,
1881 EfiMiscChassisTypeLowProfileDesktop = 0x4,
1882 EfiMiscChassisTypePizzaBox = 0x5,
1883 EfiMiscChassisTypeMiniTower = 0x6,
1884 EfiMiscChassisTypeTower = 0x7,
1885 EfiMiscChassisTypePortable = 0x8,
1886 EfiMiscChassisTypeLapTop = 0x9,
1887 EfiMiscChassisTypeNotebook = 0xA,
1888 EfiMiscChassisTypeHandHeld = 0xB,
1889 EfiMiscChassisTypeDockingStation = 0xC,
1890 EfiMiscChassisTypeAllInOne = 0xD,
1891 EfiMiscChassisTypeSubNotebook = 0xE,
1892 EfiMiscChassisTypeSpaceSaving = 0xF,
1893 EfiMiscChassisTypeLunchBox = 0x10,
1894 EfiMiscChassisTypeMainServerChassis = 0x11,
1895 EfiMiscChassisTypeExpansionChassis = 0x12,
1896 EfiMiscChassisTypeSubChassis = 0x13,
1897 EfiMiscChassisTypeBusExpansionChassis = 0x14,
1898 EfiMiscChassisTypePeripheralChassis = 0x15,
1899 EfiMiscChassisTypeRaidChassis = 0x16,
1900 EfiMiscChassisTypeRackMountChassis = 0x17,
1901 EfiMiscChassisTypeSealedCasePc = 0x18,
1902 EfiMiscChassisMultiSystemChassis = 0x19
1903 } EFI_MISC_CHASSIS_TYPE;
1904
1905 typedef struct {
1906 ///
1907 /// Inconsistent with specification here:
1908 /// In MiscSubclass 0.9 specification, it has the incorrect field name "EFI_MISC_CHASSIS_TYPE".
1909 /// Change it to "ChassisType" to pass build.
1910 ///
1911 UINT32 ChassisType :16;
1912 UINT32 ChassisLockPresent:1;
1913 UINT32 Reserved :15;
1914 } EFI_MISC_CHASSIS_STATUS;
1915
1916 typedef enum {
1917 EfiChassisStateOther = 0x01,
1918 EfiChassisStateUnknown = 0x02,
1919 EfiChassisStateSafe = 0x03,
1920 EfiChassisStateWarning = 0x04,
1921 EfiChassisStateCritical = 0x05,
1922 EfiChassisStateNonRecoverable = 0x06
1923 } EFI_MISC_CHASSIS_STATE;
1924
1925 typedef enum {
1926 EfiChassisSecurityStatusOther = 0x01,
1927 EfiChassisSecurityStatusUnknown = 0x02,
1928 EfiChassisSecurityStatusNone = 0x03,
1929 EfiChassisSecurityStatusExternalInterfaceLockedOut = 0x04,
1930 EfiChassisSecurityStatusExternalInterfaceLockedEnabled = 0x05
1931 } EFI_MISC_CHASSIS_SECURITY_STATE;
1932
1933 typedef struct {
1934 UINT32 RecordType :1;
1935 UINT32 Type :7;
1936 UINT32 Reserved :24;
1937 } EFI_MISC_ELEMENT_TYPE;
1938
1939 typedef struct {
1940 EFI_MISC_ELEMENT_TYPE ChassisElementType;
1941 EFI_INTER_LINK_DATA ChassisElementStructure;
1942 EFI_BASE_BOARD_TYPE ChassisBaseBoard;
1943 UINT32 ChassisElementMinimum;
1944 UINT32 ChassisElementMaximum;
1945 } EFI_MISC_ELEMENTS;
1946
1947 typedef struct {
1948 STRING_REF ChassisManufacturer;
1949 STRING_REF ChassisVersion;
1950 STRING_REF ChassisSerialNumber;
1951 STRING_REF ChassisAssetTag;
1952 EFI_MISC_CHASSIS_STATUS ChassisType;
1953 EFI_MISC_CHASSIS_STATE ChassisBootupState;
1954 EFI_MISC_CHASSIS_STATE ChassisPowerSupplyState;
1955 EFI_MISC_CHASSIS_STATE ChassisThermalState;
1956 EFI_MISC_CHASSIS_SECURITY_STATE ChassisSecurityState;
1957 UINT32 ChassisOemDefined;
1958 UINT32 ChassisHeight;
1959 UINT32 ChassisNumberPowerCords;
1960 UINT32 ChassisElementCount;
1961 UINT32 ChassisElementRecordLength;
1962 EFI_MISC_ELEMENTS ChassisElements;
1963 } EFI_MISC_CHASSIS_MANUFACTURER_DATA;
1964
1965 //
1966 // Misc. Port Connector Information - SMBIOS Type 8
1967 //
1968 #define EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR_RECORD_NUMBER 0x00000006
1969
1970 typedef enum {
1971 EfiPortConnectorTypeNone = 0x00,
1972 EfiPortConnectorTypeCentronics = 0x01,
1973 EfiPortConnectorTypeMiniCentronics = 0x02,
1974 EfiPortConnectorTypeProprietary = 0x03,
1975 EfiPortConnectorTypeDB25Male = 0x04,
1976 EfiPortConnectorTypeDB25Female = 0x05,
1977 EfiPortConnectorTypeDB15Male = 0x06,
1978 EfiPortConnectorTypeDB15Female = 0x07,
1979 EfiPortConnectorTypeDB9Male = 0x08,
1980 EfiPortConnectorTypeDB9Female = 0x09,
1981 EfiPortConnectorTypeRJ11 = 0x0A,
1982 EfiPortConnectorTypeRJ45 = 0x0B,
1983 EfiPortConnectorType50PinMiniScsi = 0x0C,
1984 EfiPortConnectorTypeMiniDin = 0x0D,
1985 EfiPortConnectorTypeMicriDin = 0x0E,
1986 EfiPortConnectorTypePS2 = 0x0F,
1987 EfiPortConnectorTypeInfrared = 0x10,
1988 EfiPortConnectorTypeHpHil = 0x11,
1989 EfiPortConnectorTypeUsb = 0x12,
1990 EfiPortConnectorTypeSsaScsi = 0x13,
1991 EfiPortConnectorTypeCircularDin8Male = 0x14,
1992 EfiPortConnectorTypeCircularDin8Female = 0x15,
1993 EfiPortConnectorTypeOnboardIde = 0x16,
1994 EfiPortConnectorTypeOnboardFloppy = 0x17,
1995 EfiPortConnectorType9PinDualInline = 0x18,
1996 EfiPortConnectorType25PinDualInline = 0x19,
1997 EfiPortConnectorType50PinDualInline = 0x1A,
1998 EfiPortConnectorType68PinDualInline = 0x1B,
1999 EfiPortConnectorTypeOnboardSoundInput = 0x1C,
2000 EfiPortConnectorTypeMiniCentronicsType14 = 0x1D,
2001 EfiPortConnectorTypeMiniCentronicsType26 = 0x1E,
2002 EfiPortConnectorTypeHeadPhoneMiniJack = 0x1F,
2003 EfiPortConnectorTypeBNC = 0x20,
2004 EfiPortConnectorType1394 = 0x21,
2005 EfiPortConnectorTypePC98 = 0xA0,
2006 EfiPortConnectorTypePC98Hireso = 0xA1,
2007 EfiPortConnectorTypePCH98 = 0xA2,
2008 EfiPortConnectorTypePC98Note = 0xA3,
2009 EfiPortConnectorTypePC98Full = 0xA4,
2010 EfiPortConnectorTypeOther = 0xFF
2011 } EFI_MISC_PORT_CONNECTOR_TYPE;
2012
2013 typedef enum {
2014 EfiPortTypeNone = 0x00,
2015 EfiPortTypeParallelXtAtCompatible = 0x01,
2016 EfiPortTypeParallelPortPs2 = 0x02,
2017 EfiPortTypeParallelPortEcp = 0x03,
2018 EfiPortTypeParallelPortEpp = 0x04,
2019 EfiPortTypeParallelPortEcpEpp = 0x05,
2020 EfiPortTypeSerialXtAtCompatible = 0x06,
2021 EfiPortTypeSerial16450Compatible = 0x07,
2022 EfiPortTypeSerial16550Compatible = 0x08,
2023 EfiPortTypeSerial16550ACompatible = 0x09,
2024 EfiPortTypeScsi = 0x0A,
2025 EfiPortTypeMidi = 0x0B,
2026 EfiPortTypeJoyStick = 0x0C,
2027 EfiPortTypeKeyboard = 0x0D,
2028 EfiPortTypeMouse = 0x0E,
2029 EfiPortTypeSsaScsi = 0x0F,
2030 EfiPortTypeUsb = 0x10,
2031 EfiPortTypeFireWire = 0x11,
2032 EfiPortTypePcmciaTypeI = 0x12,
2033 EfiPortTypePcmciaTypeII = 0x13,
2034 EfiPortTypePcmciaTypeIII = 0x14,
2035 EfiPortTypeCardBus = 0x15,
2036 EfiPortTypeAccessBusPort = 0x16,
2037 EfiPortTypeScsiII = 0x17,
2038 EfiPortTypeScsiWide = 0x18,
2039 EfiPortTypePC98 = 0x19,
2040 EfiPortTypePC98Hireso = 0x1A,
2041 EfiPortTypePCH98 = 0x1B,
2042 EfiPortTypeVideoPort = 0x1C,
2043 EfiPortTypeAudioPort = 0x1D,
2044 EfiPortTypeModemPort = 0x1E,
2045 EfiPortTypeNetworkPort = 0x1F,
2046 EfiPortType8251Compatible = 0xA0,
2047 EfiPortType8251FifoCompatible = 0xA1,
2048 EfiPortTypeOther = 0xFF
2049 } EFI_MISC_PORT_TYPE;
2050
2051 typedef struct {
2052 STRING_REF PortInternalConnectorDesignator;
2053 STRING_REF PortExternalConnectorDesignator;
2054 EFI_MISC_PORT_CONNECTOR_TYPE PortInternalConnectorType;
2055 EFI_MISC_PORT_CONNECTOR_TYPE PortExternalConnectorType;
2056 EFI_MISC_PORT_TYPE PortType;
2057 ///
2058 /// Inconsistent with specification here:
2059 /// In MiscSubclass specification 0.9, this type of field is defined as EFI_DEVICE_PATH_PROTOCOL,
2060 /// which causes the implementation some complexity. Keep it unchanged for backward
2061 /// compatibility.
2062 ///
2063 EFI_MISC_PORT_DEVICE_PATH PortPath;
2064 } EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR_DATA;
2065
2066 //
2067 // Misc. System Slots - SMBIOS Type 9
2068 //
2069 #define EFI_MISC_SYSTEM_SLOT_DESIGNATION_RECORD_NUMBER 0x00000007
2070
2071 typedef enum {
2072 EfiSlotTypeOther = 0x01,
2073 EfiSlotTypeUnknown = 0x02,
2074 EfiSlotTypeIsa = 0x03,
2075 EfiSlotTypeMca = 0x04,
2076 EfiSlotTypeEisa = 0x05,
2077 EfiSlotTypePci = 0x06,
2078 EfiSlotTypePcmcia = 0x07,
2079 EfiSlotTypeVlVesa = 0x08,
2080 EfiSlotTypeProprietary = 0x09,
2081 EfiSlotTypeProcessorCardSlot = 0x0A,
2082 EfiSlotTypeProprietaryMemoryCardSlot = 0x0B,
2083 EfiSlotTypeIORiserCardSlot = 0x0C,
2084 EfiSlotTypeNuBus = 0x0D,
2085 EfiSlotTypePci66MhzCapable = 0x0E,
2086 EfiSlotTypeAgp = 0x0F,
2087 ///
2088 /// Inconsistent with specification here:
2089 /// In MiscSubclass specification 0.9, its naming should be EfiSlotTypeAgp2X
2090 /// rather than EfiSlotTypeApg2X.
2091 ///
2092 EfiSlotTypeAgp2X = 0x10,
2093 EfiSlotTypeAgp4X = 0x11,
2094 EfiSlotTypePciX = 0x12,
2095 EfiSlotTypeAgp8x = 0x13,
2096 EfiSlotTypePC98C20 = 0xA0,
2097 EfiSlotTypePC98C24 = 0xA1,
2098 EfiSlotTypePC98E = 0xA2,
2099 EfiSlotTypePC98LocalBus = 0xA3,
2100 EfiSlotTypePC98Card = 0xA4,
2101 ///
2102 /// Inconsistent with specification here:
2103 /// In MiscSubclass specification 0.9, these fields aren't defined.
2104 /// They're introduced for SmBios 2.6 specification type 9.
2105 ///
2106 EfiSlotTypePciExpress = 0xA5,
2107 EfiSlotTypePciExpressX1 = 0xA6,
2108 EfiSlotTypePciExpressX2 = 0xA7,
2109 EfiSlotTypePciExpressX4 = 0xA8,
2110 EfiSlotTypePciExpressX8 = 0xA9,
2111 EfiSlotTypePciExpressX16 = 0xAA
2112 } EFI_MISC_SLOT_TYPE;
2113
2114 typedef enum {
2115 EfiSlotDataBusWidthOther = 0x01,
2116 EfiSlotDataBusWidthUnknown = 0x02,
2117 EfiSlotDataBusWidth8Bit = 0x03,
2118 EfiSlotDataBusWidth16Bit = 0x04,
2119 EfiSlotDataBusWidth32Bit = 0x05,
2120 EfiSlotDataBusWidth64Bit = 0x06,
2121 EfiSlotDataBusWidth128Bit = 0x07,
2122 ///
2123 /// Inconsistent with specification here:
2124 /// In MiscSubclass specification 0.9, these fields aren't defined.
2125 /// They're introduced for SmBios 2.6 specification type 9.
2126 ///
2127 EfiSlotDataBusWidth1xOrx1 = 0x8,
2128 EfiSlotDataBusWidth2xOrx2 = 0x9,
2129 EfiSlotDataBusWidth4xOrx4 = 0xA,
2130 EfiSlotDataBusWidth8xOrx8 = 0xB,
2131 EfiSlotDataBusWidth12xOrx12 = 0xC,
2132 EfiSlotDataBusWidth16xOrx16 = 0xD,
2133 EfiSlotDataBusWidth32xOrx32 = 0xE
2134 } EFI_MISC_SLOT_DATA_BUS_WIDTH;
2135
2136 typedef enum {
2137 EfiSlotUsageOther = 1,
2138 EfiSlotUsageUnknown = 2,
2139 EfiSlotUsageAvailable = 3,
2140 EfiSlotUsageInUse = 4
2141 } EFI_MISC_SLOT_USAGE;
2142
2143 typedef enum {
2144 EfiSlotLengthOther = 1,
2145 EfiSlotLengthUnknown = 2,
2146 EfiSlotLengthShort = 3,
2147 EfiSlotLengthLong = 4
2148 } EFI_MISC_SLOT_LENGTH;
2149
2150 typedef struct {
2151 UINT32 CharacteristicsUnknown :1;
2152 UINT32 Provides50Volts :1;
2153 UINT32 Provides33Volts :1;
2154 UINT32 SharedSlot :1;
2155 UINT32 PcCard16Supported :1;
2156 UINT32 CardBusSupported :1;
2157 UINT32 ZoomVideoSupported :1;
2158 UINT32 ModemRingResumeSupported:1;
2159 UINT32 PmeSignalSupported :1;
2160 UINT32 HotPlugDevicesSupported :1;
2161 UINT32 SmbusSignalSupported :1;
2162 UINT32 Reserved :21;
2163 } EFI_MISC_SLOT_CHARACTERISTICS;
2164
2165 typedef struct {
2166 STRING_REF SlotDesignation;
2167 EFI_MISC_SLOT_TYPE SlotType;
2168 EFI_MISC_SLOT_DATA_BUS_WIDTH SlotDataBusWidth;
2169 EFI_MISC_SLOT_USAGE SlotUsage;
2170 EFI_MISC_SLOT_LENGTH SlotLength;
2171 UINT16 SlotId;
2172 EFI_MISC_SLOT_CHARACTERISTICS SlotCharacteristics;
2173 EFI_DEVICE_PATH_PROTOCOL SlotDevicePath;
2174 } EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA;
2175
2176 //
2177 // Misc. Onboard Device - SMBIOS Type 10
2178 //
2179 #define EFI_MISC_ONBOARD_DEVICE_RECORD_NUMBER 0x00000008
2180
2181 typedef enum {
2182 EfiOnBoardDeviceTypeOther = 1,
2183 EfiOnBoardDeviceTypeUnknown = 2,
2184 EfiOnBoardDeviceTypeVideo = 3,
2185 EfiOnBoardDeviceTypeScsiController = 4,
2186 EfiOnBoardDeviceTypeEthernet = 5,
2187 EfiOnBoardDeviceTypeTokenRing = 6,
2188 EfiOnBoardDeviceTypeSound = 7
2189 } EFI_MISC_ONBOARD_DEVICE_TYPE;
2190
2191 typedef struct {
2192 UINT32 DeviceType :16;
2193 UINT32 DeviceEnabled :1;
2194 UINT32 Reserved :15;
2195 } EFI_MISC_ONBOARD_DEVICE_STATUS;
2196
2197 typedef struct {
2198 STRING_REF OnBoardDeviceDescription;
2199 ///
2200 /// Inconsistent with specification here:
2201 /// In MiscSubclass specification 0.9, the name is OnBoardDeviceType.
2202 /// Keep it unchanged for backward compatibilty.
2203 ///
2204 EFI_MISC_ONBOARD_DEVICE_STATUS OnBoardDeviceStatus;
2205 EFI_DEVICE_PATH_PROTOCOL OnBoardDevicePath;
2206 } EFI_MISC_ONBOARD_DEVICE_DATA;
2207
2208 //
2209 // Misc. BIOS Language Information - SMBIOS Type 11
2210 //
2211 #define EFI_MISC_OEM_STRING_RECORD_NUMBER 0x00000009
2212
2213 typedef struct {
2214 STRING_REF OemStringRef[1];
2215 } EFI_MISC_OEM_STRING_DATA;
2216
2217 //
2218 // Misc. System Options - SMBIOS Type 12
2219 //
2220 typedef struct {
2221 STRING_REF SystemOptionStringRef[1];
2222 } EFI_MISC_SYSTEM_OPTION_STRING_DATA;
2223
2224 #define EFI_MISC_SYSTEM_OPTION_STRING_RECORD_NUMBER 0x0000000A
2225
2226 //
2227 // Misc. Number of Installable Languages - SMBIOS Type 13
2228 //
2229 #define EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES_RECORD_NUMBER 0x0000000B
2230
2231 typedef struct {
2232 UINT32 AbbreviatedLanguageFormat :1;
2233 UINT32 Reserved :31;
2234 } EFI_MISC_LANGUAGE_FLAGS;
2235
2236 typedef struct {
2237 UINT16 NumberOfInstallableLanguages;
2238 EFI_MISC_LANGUAGE_FLAGS LanguageFlags;
2239 UINT16 CurrentLanguageNumber;
2240 } EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES_DATA;
2241
2242 //
2243 // Misc. System Language String
2244 //
2245 #define EFI_MISC_SYSTEM_LANGUAGE_STRING_RECORD_NUMBER 0x0000000C
2246
2247 typedef struct {
2248 UINT16 LanguageId;
2249 STRING_REF SystemLanguageString;
2250 } EFI_MISC_SYSTEM_LANGUAGE_STRING_DATA;
2251
2252 //
2253 // Group Associations - SMBIOS Type 14
2254 //
2255 #define EFI_MISC_GROUP_NAME_RECORD_NUMBER 0x0000000D
2256
2257 typedef struct {
2258 STRING_REF GroupName;
2259 UINT16 NumberGroupItems;
2260 UINT16 GroupId;
2261 } EFI_MISC_GROUP_NAME_DATA;
2262
2263 //
2264 // Group Item Set Element
2265 //
2266 #define EFI_MISC_GROUP_ITEM_SET_RECORD_NUMBER 0x0000000E
2267
2268 typedef struct {
2269 EFI_GUID SubClass;
2270 EFI_INTER_LINK_DATA GroupLink;
2271 UINT16 GroupId;
2272 UINT16 GroupElementId;
2273 } EFI_MISC_GROUP_ITEM_SET_DATA;
2274
2275 //
2276 // Misc. Pointing Device Type - SMBIOS Type 21
2277 //
2278 #define EFI_MISC_POINTING_DEVICE_TYPE_RECORD_NUMBER 0x0000000F
2279
2280 typedef enum {
2281 EfiPointingDeviceTypeOther = 0x01,
2282 EfiPointingDeviceTypeUnknown = 0x02,
2283 EfiPointingDeviceTypeMouse = 0x03,
2284 EfiPointingDeviceTypeTrackBall = 0x04,
2285 EfiPointingDeviceTypeTrackPoint = 0x05,
2286 EfiPointingDeviceTypeGlidePoint = 0x06,
2287 EfiPointingDeviceTouchPad = 0x07,
2288 EfiPointingDeviceTouchScreen = 0x08,
2289 EfiPointingDeviceOpticalSensor = 0x09
2290 } EFI_MISC_POINTING_DEVICE_TYPE;
2291
2292 typedef enum {
2293 EfiPointingDeviceInterfaceOther = 0x01,
2294 EfiPointingDeviceInterfaceUnknown = 0x02,
2295 EfiPointingDeviceInterfaceSerial = 0x03,
2296 EfiPointingDeviceInterfacePs2 = 0x04,
2297 EfiPointingDeviceInterfaceInfrared = 0x05,
2298 EfiPointingDeviceInterfaceHpHil = 0x06,
2299 EfiPointingDeviceInterfaceBusMouse = 0x07,
2300 EfiPointingDeviceInterfaceADB = 0x08,
2301 EfiPointingDeviceInterfaceBusMouseDB9 = 0xA0,
2302 EfiPointingDeviceInterfaceBusMouseMicroDin = 0xA1,
2303 EfiPointingDeviceInterfaceUsb = 0xA2
2304 } EFI_MISC_POINTING_DEVICE_INTERFACE;
2305
2306 typedef struct {
2307 EFI_MISC_POINTING_DEVICE_TYPE PointingDeviceType;
2308 EFI_MISC_POINTING_DEVICE_INTERFACE PointingDeviceInterface;
2309 UINT16 NumberPointingDeviceButtons;
2310 EFI_DEVICE_PATH_PROTOCOL PointingDevicePath;
2311 } EFI_MISC_POINTING_DEVICE_TYPE_DATA;
2312
2313 //
2314 // Portable Battery - SMBIOS Type 22
2315 //
2316 ///
2317 /// Inconsistent with specification here:
2318 /// In MiscSubclass specification 0.9, the name is EFI_MISC_BATTERY_LOCATION_RECORD_NUMBER.
2319 /// Keep it unchanged for backward compatibilty.
2320 ///
2321 #define EFI_MISC_PORTABLE_BATTERY_RECORD_NUMBER 0x00000010
2322
2323 ///
2324 /// Inconsistent with specification here:
2325 /// In MiscSubclass specification 0.9, the structure name is EFI_MISC_BATTERY_DEVICE_CHEMISTRY.
2326 /// And all field namings are also different with specification.
2327 /// Keep it unchanged for backward compatibilty.
2328 ///
2329 typedef enum {
2330 EfiPortableBatteryDeviceChemistryOther = 1,
2331 EfiPortableBatteryDeviceChemistryUnknown = 2,
2332 EfiPortableBatteryDeviceChemistryLeadAcid = 3,
2333 EfiPortableBatteryDeviceChemistryNickelCadmium = 4,
2334 EfiPortableBatteryDeviceChemistryNickelMetalHydride = 5,
2335 EfiPortableBatteryDeviceChemistryLithiumIon = 6,
2336 EfiPortableBatteryDeviceChemistryZincAir = 7,
2337 EfiPortableBatteryDeviceChemistryLithiumPolymer = 8
2338 } EFI_MISC_PORTABLE_BATTERY_DEVICE_CHEMISTRY;
2339
2340 ///
2341 /// Inconsistent with specification here:
2342 /// In MiscSubclass specification 0.9, the structure name is EFI_MISC_BATTERY_LOCATION_DATA.
2343 /// Also, the name and the order of the fields vary with specifications.
2344 /// Keep it unchanged for backward compatibilty.
2345 ///
2346 typedef struct {
2347 STRING_REF Location;
2348 STRING_REF Manufacturer;
2349 STRING_REF ManufactureDate;
2350 STRING_REF SerialNumber;
2351 STRING_REF DeviceName;
2352 EFI_MISC_PORTABLE_BATTERY_DEVICE_CHEMISTRY
2353 DeviceChemistry;
2354 UINT16 DesignCapacity;
2355 UINT16 DesignVoltage;
2356 STRING_REF SBDSVersionNumber;
2357 UINT8 MaximumError;
2358 UINT16 SBDSSerialNumber;
2359 UINT16 SBDSManufactureDate;
2360 STRING_REF SBDSDeviceChemistry;
2361 UINT8 DesignCapacityMultiplier;
2362 UINT32 OEMSpecific;
2363 UINT8 BatteryNumber; // Temporary
2364 BOOLEAN Valid; // Is entry valid - Temporary
2365 } EFI_MISC_PORTABLE_BATTERY;
2366
2367
2368 //
2369 // Misc. Reset Capabilities - SMBIOS Type 23
2370 //
2371 #define EFI_MISC_RESET_CAPABILITIES_RECORD_NUMBER 0x00000011
2372
2373 typedef struct {
2374 UINT32 Status :1;
2375 UINT32 BootOption :2;
2376 UINT32 BootOptionOnLimit :2;
2377 UINT32 WatchdogTimerPresent:1;
2378 UINT32 Reserved :26;
2379 } EFI_MISC_RESET_CAPABILITIES_TYPE;
2380
2381 typedef struct {
2382 EFI_MISC_RESET_CAPABILITIES_TYPE ResetCapabilities;
2383 UINT16 ResetCount;
2384 UINT16 ResetLimit;
2385 UINT16 ResetTimerInterval;
2386 UINT16 ResetTimeout;
2387 } EFI_MISC_RESET_CAPABILITIES;
2388
2389 typedef struct {
2390 EFI_MISC_RESET_CAPABILITIES ResetCapabilities;
2391 UINT16 ResetCount;
2392 UINT16 ResetLimit;
2393 UINT16 ResetTimerInterval;
2394 UINT16 ResetTimeout;
2395 } EFI_MISC_RESET_CAPABILITIES_DATA;
2396
2397 //
2398 // Misc. Hardware Security - SMBIOS Type 24
2399 //
2400 #define EFI_MISC_HARDWARE_SECURITY_SETTINGS_DATA_RECORD_NUMBER 0x00000012
2401
2402 ///
2403 /// Inconsistent with specification here:
2404 /// The MiscSubclass specification 0.9 only mentions the possible value of each field in
2405 /// EFI_MISC_HARDWARE_SECURITY_SETTINGS.
2406 /// It's implementation-specific in order to to simplify the code logic.
2407 ///
2408 typedef enum {
2409 EfiHardwareSecurityStatusDisabled = 0,
2410 EfiHardwareSecurityStatusEnabled = 1,
2411 EfiHardwareSecurityStatusNotImplemented = 2,
2412 EfiHardwareSecurityStatusUnknown = 3
2413 } EFI_MISC_HARDWARE_SECURITY_STATUS;
2414
2415 typedef struct {
2416 UINT32 FrontPanelResetStatus :2;
2417 UINT32 AdministratorPasswordStatus :2;
2418 UINT32 KeyboardPasswordStatus :2;
2419 UINT32 PowerOnPasswordStatus :2;
2420 UINT32 Reserved :24;
2421 } EFI_MISC_HARDWARE_SECURITY_SETTINGS;
2422
2423 typedef struct {
2424 EFI_MISC_HARDWARE_SECURITY_SETTINGS HardwareSecuritySettings;
2425 } EFI_MISC_HARDWARE_SECURITY_SETTINGS_DATA;
2426
2427 //
2428 // System Power Controls - SMBIOS Type 25
2429 //
2430 #define EFI_MISC_SCHEDULED_POWER_ON_MONTH_RECORD_NUMBER 0x00000013
2431
2432 typedef struct {
2433 UINT16 ScheduledPoweronMonth;
2434 UINT16 ScheduledPoweronDayOfMonth;
2435 UINT16 ScheduledPoweronHour;
2436 UINT16 ScheduledPoweronMinute;
2437 UINT16 ScheduledPoweronSecond;
2438 } EFI_MISC_SCHEDULED_POWER_ON_MONTH_DATA;
2439
2440 //
2441 // Voltage Probe - SMBIOS Type 26
2442 //
2443 #define EFI_MISC_VOLTAGE_PROBE_DESCRIPTION_RECORD_NUMBER 0x00000014
2444
2445 typedef struct {
2446 UINT32 VoltageProbeSite :5;
2447 UINT32 VoltageProbeStatus :3;
2448 UINT32 Reserved :24;
2449 } EFI_MISC_VOLTAGE_PROBE_LOCATION;
2450
2451 typedef struct {
2452 STRING_REF VoltageProbeDescription;
2453 EFI_MISC_VOLTAGE_PROBE_LOCATION VoltageProbeLocation;
2454 EFI_EXP_BASE10_DATA VoltageProbeMaximumValue;
2455 EFI_EXP_BASE10_DATA VoltageProbeMinimumValue;
2456 EFI_EXP_BASE10_DATA VoltageProbeResolution;
2457 EFI_EXP_BASE10_DATA VoltageProbeTolerance;
2458 EFI_EXP_BASE10_DATA VoltageProbeAccuracy;
2459 EFI_EXP_BASE10_DATA VoltageProbeNominalValue;
2460 EFI_EXP_BASE10_DATA MDLowerNoncriticalThreshold;
2461 EFI_EXP_BASE10_DATA MDUpperNoncriticalThreshold;
2462 EFI_EXP_BASE10_DATA MDLowerCriticalThreshold;
2463 EFI_EXP_BASE10_DATA MDUpperCriticalThreshold;
2464 EFI_EXP_BASE10_DATA MDLowerNonrecoverableThreshold;
2465 EFI_EXP_BASE10_DATA MDUpperNonrecoverableThreshold;
2466 UINT32 VoltageProbeOemDefined;
2467 } EFI_MISC_VOLTAGE_PROBE_DESCRIPTION_DATA;
2468
2469 //
2470 // Cooling Device - SMBIOS Type 27
2471 //
2472 #define EFI_MISC_COOLING_DEVICE_TEMP_LINK_RECORD_NUMBER 0x00000015
2473
2474 typedef struct {
2475 UINT32 CoolingDevice :5;
2476 UINT32 CoolingDeviceStatus :3;
2477 UINT32 Reserved :24;
2478 } EFI_MISC_COOLING_DEVICE_TYPE;
2479
2480 typedef struct {
2481 EFI_MISC_COOLING_DEVICE_TYPE CoolingDeviceType;
2482 EFI_INTER_LINK_DATA CoolingDeviceTemperatureLink;
2483 UINT8 CoolingDeviceUnitGroup;
2484 UINT16 CoolingDeviceNominalSpeed;
2485 UINT32 CoolingDeviceOemDefined;
2486 } EFI_MISC_COOLING_DEVICE_TEMP_LINK_DATA;
2487
2488 //
2489 // Temperature Probe - SMBIOS Type 28
2490 //
2491 #define EFI_MISC_TEMPERATURE_PROBE_DESCRIPTION_RECORD_NUMBER 0x00000016
2492
2493 typedef struct {
2494 UINT32 TemperatureProbeSite :5;
2495 UINT32 TemperatureProbeStatus :3;
2496 UINT32 Reserved :24;
2497 } EFI_MISC_TEMPERATURE_PROBE_LOCATION;
2498
2499 typedef struct {
2500 STRING_REF TemperatureProbeDescription;
2501 EFI_MISC_TEMPERATURE_PROBE_LOCATION
2502 TemperatureProbeLocation;
2503 ///
2504 /// Inconsistent with specification here:
2505 /// MiscSubclass 0.9 specification defines the fields type as EFI_EXP_BASE10_DATA.
2506 /// In fact, they should be UINT16 type because they refer to 16bit width data.
2507 /// Keeping this inconsistency for backward compatibility.
2508 ///
2509 UINT16 TemperatureProbeMaximumValue;
2510 UINT16 TemperatureProbeMinimumValue;
2511 UINT16 TemperatureProbeResolution;
2512 UINT16 TemperatureProbeTolerance;
2513 UINT16 TemperatureProbeAccuracy;
2514 UINT16 TemperatureProbeNominalValue;
2515 UINT16 MDLowerNoncriticalThreshold;
2516 UINT16 MDUpperNoncriticalThreshold;
2517 UINT16 MDLowerCriticalThreshold;
2518 UINT16 MDUpperCriticalThreshold;
2519 UINT16 MDLowerNonrecoverableThreshold;
2520 UINT16 MDUpperNonrecoverableThreshold;
2521 UINT32 TemperatureProbeOemDefined;
2522 } EFI_MISC_TEMPERATURE_PROBE_DESCRIPTION_DATA;
2523
2524 //
2525 // Electrical Current Probe - SMBIOS Type 29
2526 //
2527
2528 #define EFI_MISC_ELECTRICAL_CURRENT_PROBE_DESCRIPTION_RECORD_NUMBER 0x00000017
2529
2530 typedef struct {
2531 UINT32 ElectricalCurrentProbeSite :5;
2532 UINT32 ElectricalCurrentProbeStatus :3;
2533 UINT32 Reserved :24;
2534 } EFI_MISC_ELECTRICAL_CURRENT_PROBE_LOCATION;
2535
2536 typedef struct {
2537 STRING_REF ElectricalCurrentProbeDescription;
2538 EFI_MISC_ELECTRICAL_CURRENT_PROBE_LOCATION
2539 ElectricalCurrentProbeLocation;
2540 EFI_EXP_BASE10_DATA ElectricalCurrentProbeMaximumValue;
2541 EFI_EXP_BASE10_DATA ElectricalCurrentProbeMinimumValue;
2542 EFI_EXP_BASE10_DATA ElectricalCurrentProbeResolution;
2543 EFI_EXP_BASE10_DATA ElectricalCurrentProbeTolerance;
2544 EFI_EXP_BASE10_DATA ElectricalCurrentProbeAccuracy;
2545 EFI_EXP_BASE10_DATA ElectricalCurrentProbeNominalValue;
2546 EFI_EXP_BASE10_DATA MDLowerNoncriticalThreshold;
2547 EFI_EXP_BASE10_DATA MDUpperNoncriticalThreshold;
2548 EFI_EXP_BASE10_DATA MDLowerCriticalThreshold;
2549 EFI_EXP_BASE10_DATA MDUpperCriticalThreshold;
2550 EFI_EXP_BASE10_DATA MDLowerNonrecoverableThreshold;
2551 EFI_EXP_BASE10_DATA MDUpperNonrecoverableThreshold;
2552 UINT32 ElectricalCurrentProbeOemDefined;
2553 } EFI_MISC_ELECTRICAL_CURRENT_PROBE_DESCRIPTION_DATA;
2554
2555 //
2556 // Out-of-Band Remote Access - SMBIOS Type 30
2557 //
2558
2559 #define EFI_MISC_REMOTE_ACCESS_MANUFACTURER_DESCRIPTION_RECORD_NUMBER 0x00000018
2560
2561 typedef struct {
2562 UINT32 InboundConnectionEnabled :1;
2563 UINT32 OutboundConnectionEnabled :1;
2564 UINT32 Reserved :30;
2565 } EFI_MISC_REMOTE_ACCESS_CONNECTIONS;
2566
2567 typedef struct {
2568 STRING_REF RemoteAccessManufacturerNameDescription;
2569 EFI_MISC_REMOTE_ACCESS_CONNECTIONS RemoteAccessConnections;
2570 } EFI_MISC_REMOTE_ACCESS_MANUFACTURER_DESCRIPTION_DATA;
2571
2572 //
2573 // Misc. BIS Entry Point - SMBIOS Type 31
2574 //
2575 #define EFI_MISC_BIS_ENTRY_POINT_RECORD_NUMBER 0x00000019
2576
2577 typedef struct {
2578 EFI_PHYSICAL_ADDRESS BisEntryPoint;
2579 } EFI_MISC_BIS_ENTRY_POINT_DATA;
2580
2581 //
2582 // Misc. Boot Information - SMBIOS Type 32
2583 //
2584 #define EFI_MISC_BOOT_INFORMATION_STATUS_RECORD_NUMBER 0x0000001A
2585
2586 ///
2587 /// Inconsistent with specification here:
2588 /// In MiscSubclass specification 0.9, the structure name is EFI_MISC_BOOT_INFORMATION_STATUS_TYPE.
2589 /// Keep it unchanged for backward compatibilty.
2590 ///
2591 typedef enum {
2592 EfiBootInformationStatusNoError = 0x00,
2593 EfiBootInformationStatusNoBootableMedia = 0x01,
2594 EfiBootInformationStatusNormalOSFailedLoading = 0x02,
2595 EfiBootInformationStatusFirmwareDetectedFailure = 0x03,
2596 EfiBootInformationStatusOSDetectedFailure = 0x04,
2597 EfiBootInformationStatusUserRequestedBoot = 0x05,
2598 EfiBootInformationStatusSystemSecurityViolation = 0x06,
2599 EfiBootInformationStatusPreviousRequestedImage = 0x07,
2600 EfiBootInformationStatusWatchdogTimerExpired = 0x08,
2601 EfiBootInformationStatusStartReserved = 0x09,
2602 EfiBootInformationStatusStartOemSpecific = 0x80,
2603 EfiBootInformationStatusStartProductSpecific = 0xC0
2604 } EFI_MISC_BOOT_INFORMATION_STATUS_DATA_TYPE;
2605
2606 typedef struct {
2607 ///
2608 /// Inconsistent with specification here:
2609 /// In MiscSubclass specification 0.9, the field name is EFI_MISC_BOOT_INFORMATION_STATUS_TYPE.
2610 /// Keep it unchanged for backward compatibilty.
2611 ///
2612 EFI_MISC_BOOT_INFORMATION_STATUS_DATA_TYPE BootInformationStatus;
2613 UINT8 BootInformationData[9];
2614 } EFI_MISC_BOOT_INFORMATION_STATUS_DATA;
2615
2616 //
2617 // Management Device - SMBIOS Type 34
2618 //
2619 #define EFI_MISC_MANAGEMENT_DEVICE_DESCRIPTION_RECORD_NUMBER 0x0000001B
2620
2621 typedef enum {
2622 EfiManagementDeviceTypeOther = 0x01,
2623 EfiManagementDeviceTypeUnknown = 0x02,
2624 EfiManagementDeviceTypeLm75 = 0x03,
2625 EfiManagementDeviceTypeLm78 = 0x04,
2626 EfiManagementDeviceTypeLm79 = 0x05,
2627 EfiManagementDeviceTypeLm80 = 0x06,
2628 EfiManagementDeviceTypeLm81 = 0x07,
2629 EfiManagementDeviceTypeAdm9240 = 0x08,
2630 EfiManagementDeviceTypeDs1780 = 0x09,
2631 EfiManagementDeviceTypeMaxim1617 = 0x0A,
2632 EfiManagementDeviceTypeGl518Sm = 0x0B,
2633 EfiManagementDeviceTypeW83781D = 0x0C,
2634 EfiManagementDeviceTypeHt82H791 = 0x0D
2635 } EFI_MISC_MANAGEMENT_DEVICE_TYPE;
2636
2637 typedef enum {
2638 EfiManagementDeviceAddressTypeOther = 1,
2639 EfiManagementDeviceAddressTypeUnknown = 2,
2640 EfiManagementDeviceAddressTypeIOPort = 3,
2641 EfiManagementDeviceAddressTypeMemory = 4,
2642 EfiManagementDeviceAddressTypeSmbus = 5
2643 } EFI_MISC_MANAGEMENT_DEVICE_ADDRESS_TYPE;
2644
2645 typedef struct {
2646 STRING_REF ManagementDeviceDescription;
2647 EFI_MISC_MANAGEMENT_DEVICE_TYPE ManagementDeviceType;
2648 UINTN ManagementDeviceAddress;
2649 EFI_MISC_MANAGEMENT_DEVICE_ADDRESS_TYPE
2650 ManagementDeviceAddressType;
2651 } EFI_MISC_MANAGEMENT_DEVICE_DESCRIPTION_DATA;
2652
2653 //
2654 // Management Device Component - SMBIOS Type 35
2655 //
2656
2657 #define EFI_MISC_MANAGEMENT_DEVICE_COMPONENT_DESCRIPTION_RECORD_NUMBER 0x0000001C
2658
2659 typedef struct {
2660 STRING_REF ManagementDeviceComponentDescription;
2661 EFI_INTER_LINK_DATA ManagementDeviceLink;
2662 EFI_INTER_LINK_DATA ManagementDeviceComponentLink;
2663 ///
2664 /// Inconsistent with specification here:
2665 /// In MiscSubclass specification 0.9, this field is NOT defined.
2666 /// It's introduced for SmBios 2.6 specification type 35.
2667 ///
2668 EFI_INTER_LINK_DATA ManagementDeviceThresholdLink;
2669 ///
2670 /// Inconsistent with specification here:
2671 /// In MiscSubclass specification 0.9, this field is NOT defined.
2672 /// It's implementation-specific to simplify the code logic.
2673 ///
2674 UINT8 ComponentType;
2675 } EFI_MISC_MANAGEMENT_DEVICE_COMPONENT_DESCRIPTION_DATA;
2676
2677 //
2678 // IPMI Data Record - SMBIOS Type 38
2679 //
2680 typedef enum {
2681 EfiIpmiOther = 0,
2682 EfiIpmiKcs = 1,
2683 EfiIpmiSmic = 2,
2684 EfiIpmiBt = 3
2685 } EFI_MISC_IPMI_INTERFACE_TYPE;
2686
2687 typedef struct {
2688 UINT16 IpmiSpecLeastSignificantDigit:4;
2689 UINT16 IpmiSpecMostSignificantDigit: 4;
2690 UINT16 Reserved: 8;
2691 } EFI_MISC_IPMI_SPECIFICATION_REVISION;
2692
2693 typedef struct {
2694 EFI_MISC_IPMI_INTERFACE_TYPE IpmiInterfaceType;
2695 EFI_MISC_IPMI_SPECIFICATION_REVISION
2696 IpmiSpecificationRevision;
2697 UINT16 IpmiI2CSlaveAddress;
2698 UINT16 IpmiNvDeviceAddress;
2699 UINT64 IpmiBaseAddress;
2700 EFI_DEVICE_PATH_PROTOCOL IpmiDevicePath;
2701 } EFI_MISC_IPMI_INTERFACE_TYPE_DATA;
2702
2703 #define EFI_MISC_IPMI_INTERFACE_TYPE_RECORD_NUMBER 0x0000001D
2704 ///
2705 /// The definition above is *NOT* defined in MiscSubclass specifications 0.9.
2706 /// It's defined for backward compatibility.
2707 ///
2708 #define EFI_MISC_IPMI_INTERFACE_TYPE_DATA_RECORD_NUMBER EFI_MISC_IPMI_INTERFACE_TYPE_RECORD_NUMBER
2709
2710 ///
2711 /// System Power supply Record - SMBIOS Type 39
2712 ///
2713 /// Inconsistent with specification here:
2714 /// In MiscSubclass specification 0.9, the type of all fields are UINT32.
2715 /// Keep it unchanged for backward compatibilty.
2716 ///
2717 typedef struct {
2718 UINT16 PowerSupplyHotReplaceable:1;
2719 UINT16 PowerSupplyPresent :1;
2720 UINT16 PowerSupplyUnplugged :1;
2721 UINT16 InputVoltageRangeSwitch :4;
2722 UINT16 PowerSupplyStatus :3;
2723 UINT16 PowerSupplyType :4;
2724 UINT16 Reserved :2;
2725 } EFI_MISC_POWER_SUPPLY_CHARACTERISTICS;
2726
2727 ///
2728 /// Inconsistent with specification here:
2729 /// In MiscSubclass specification 0.9, the structure name is EFI_MISC_POWER_SUPPLY_UNIT_GROUP_DATA.
2730 /// Keep it unchanged for backward compatibilty.
2731 ///
2732 typedef struct {
2733 UINT16 PowerUnitGroup;
2734 STRING_REF PowerSupplyLocation;
2735 STRING_REF PowerSupplyDeviceName;
2736 STRING_REF PowerSupplyManufacturer;
2737 STRING_REF PowerSupplySerialNumber;
2738 STRING_REF PowerSupplyAssetTagNumber;
2739 STRING_REF PowerSupplyModelPartNumber;
2740 STRING_REF PowerSupplyRevisionLevel;
2741 UINT16 PowerSupplyMaxPowerCapacity;
2742 EFI_MISC_POWER_SUPPLY_CHARACTERISTICS PowerSupplyCharacteristics;
2743 EFI_INTER_LINK_DATA PowerSupplyInputVoltageProbeLink;
2744 EFI_INTER_LINK_DATA PowerSupplyCoolingDeviceLink;
2745 EFI_INTER_LINK_DATA PowerSupplyInputCurrentProbeLink;
2746 } EFI_MISC_SYSTEM_POWER_SUPPLY_DATA;
2747
2748 #define EFI_MISC_SYSTEM_POWER_SUPPLY_RECORD_NUMBER 0x0000001E
2749
2750 ///
2751 /// OEM Data Record - SMBIOS Type 0x80-0xFF
2752 ///
2753 /// Inconsistent with specification here:
2754 /// In MiscSubclass specification 0.9, the structure name is EFI_SMBIOS_STRUCTURE_HDR.
2755 /// Due to this, the structure is commonly used by vendors to construct SmBios type 0x80~0xFF table,
2756 /// Keep it unchanged for backward compatibilty.
2757 ///
2758 typedef struct {
2759 UINT8 Type;
2760 UINT8 Length;
2761 UINT16 Handle;
2762 } SMBIOS_STRUCTURE_HDR;
2763
2764 typedef struct {
2765 ///
2766 /// Inconsistent with specification here:
2767 /// In MiscSubclass specification 0.9, the field name is EFI_SMBIOS_STRUCTURE_HDR.
2768 /// Keep it unchanged for backward compatibilty.
2769 ///
2770 SMBIOS_STRUCTURE_HDR Header;
2771 UINT8 RawData[1];
2772 } EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION_DATA;
2773
2774 #define EFI_MISC_SMBIOS_STRUCT_ENCAP_RECORD_NUMBER 0x0000001F
2775
2776 ///
2777 /// Misc. System Event Log - SMBIOS Type 15
2778 ///
2779 /// Inconsistent with specification here:
2780 /// In MiscSubclass specification 0.9, the following data structures are NOT defined.
2781 /// It's introduced for SmBios 2.6 specification type 15.
2782 ///
2783 #define EFI_MISC_SYSTEM_EVENT_LOG_RECORD_NUMBER 0x00000020
2784
2785 ///
2786 /// Inconsistent with specification here:
2787 /// In MiscSubclass specification 0.9, the following data structures are NOT defined.
2788 /// It's introduced for SmBios 2.6 specification type 15.
2789 ///
2790 typedef struct {
2791 UINT16 LogAreaLength;
2792 UINT16 LogHeaderStartOffset;
2793 UINT16 LogDataStartOffset;
2794 UINT8 AccessMethod;
2795 UINT8 LogStatus;
2796 UINT32 LogChangeToken;
2797 UINT32 AccessMethodAddress;
2798 UINT8 LogHeaderFormat;
2799 UINT8 NumberOfSupportedLogType;
2800 UINT8 LengthOfLogDescriptor;
2801 } EFI_MISC_SYSTEM_EVENT_LOG_DATA;
2802
2803 //
2804 // Access Method.
2805 // 0x00~0x04: as following definition
2806 // 0x05~0x7f: Available for future assignment.
2807 // 0x80~0xff: BIOS Vendor/OEM-specific.
2808 //
2809 #define ACCESS_INDEXIO_1INDEX8BIT_DATA8BIT 0x00
2810 #define ACCESS_INDEXIO_2INDEX8BIT_DATA8BIT 0X01
2811 #define ACCESS_INDEXIO_1INDEX16BIT_DATA8BIT 0X02
2812 #define ACCESS_MEMORY_MAPPED 0x03
2813 #define ACCESS_GPNV 0x04
2814
2815 ///
2816 /// Management Device Threshold Data Record - SMBIOS Type 36
2817 ///
2818 /// Inconsistent with specification here:
2819 /// In MiscSubclass specification 0.9, the following data structures are NOT defined.
2820 /// It's introduced for SmBios 2.6 specification type 36.
2821 ///
2822 #define EFI_MISC_MANAGEMENT_DEVICE_THRESHOLD_RECORD_NUMBER 0x00000021
2823 ///
2824 /// Inconsistent with specification here:
2825 /// In MiscSubclass specification 0.9, the following data structures are NOT defined.
2826 /// It's introduced for SmBios 2.6 specification type 36.
2827 ///
2828 typedef struct {
2829 UINT16 LowerThresNonCritical;
2830 UINT16 UpperThresNonCritical;
2831 UINT16 LowerThresCritical;
2832 UINT16 UpperThresCritical;
2833 UINT16 LowerThresNonRecover;
2834 UINT16 UpperThresNonRecover;
2835 } EFI_MISC_MANAGEMENT_DEVICE_THRESHOLD;
2836
2837 //
2838 // Declare the following strutures alias to use them more conviniently.
2839 //
2840 typedef EFI_MISC_LAST_PCI_BUS_DATA EFI_MISC_LAST_PCI_BUS;
2841 typedef EFI_MISC_BIOS_VENDOR_DATA EFI_MISC_BIOS_VENDOR;
2842 typedef EFI_MISC_SYSTEM_MANUFACTURER_DATA EFI_MISC_SYSTEM_MANUFACTURER;
2843 typedef EFI_MISC_BASE_BOARD_MANUFACTURER_DATA EFI_MISC_BASE_BOARD_MANUFACTURER;
2844 typedef EFI_MISC_CHASSIS_MANUFACTURER_DATA EFI_MISC_CHASSIS_MANUFACTURER;
2845 typedef EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR_DATA EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR;
2846 typedef EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA EFI_MISC_SYSTEM_SLOT_DESIGNATION;
2847 typedef EFI_MISC_ONBOARD_DEVICE_DATA EFI_MISC_ONBOARD_DEVICE;
2848 typedef EFI_MISC_POINTING_DEVICE_TYPE_DATA EFI_MISC_ONBOARD_DEVICE_TYPE_DATA;
2849 typedef EFI_MISC_OEM_STRING_DATA EFI_MISC_OEM_STRING;
2850 typedef EFI_MISC_SYSTEM_OPTION_STRING_DATA EFI_MISC_SYSTEM_OPTION_STRING;
2851 typedef EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES_DATA EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES;
2852 typedef EFI_MISC_SYSTEM_LANGUAGE_STRING_DATA EFI_MISC_SYSTEM_LANGUAGE_STRING;
2853 typedef EFI_MISC_SYSTEM_EVENT_LOG_DATA EFI_MISC_SYSTEM_EVENT_LOG;
2854 typedef EFI_MISC_BIS_ENTRY_POINT_DATA EFI_MISC_BIS_ENTRY_POINT;
2855 typedef EFI_MISC_BOOT_INFORMATION_STATUS_DATA EFI_MISC_BOOT_INFORMATION_STATUS;
2856 typedef EFI_MISC_SYSTEM_POWER_SUPPLY_DATA EFI_MISC_SYSTEM_POWER_SUPPLY;
2857 typedef EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION_DATA EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION;
2858 typedef EFI_MISC_SCHEDULED_POWER_ON_MONTH_DATA EFI_MISC_SCHEDULED_POWER_ON_MONTH;
2859 typedef EFI_MISC_VOLTAGE_PROBE_DESCRIPTION_DATA EFI_MISC_VOLTAGE_PROBE_DESCRIPTION;
2860 typedef EFI_MISC_COOLING_DEVICE_TEMP_LINK_DATA EFI_MISC_COOLING_DEVICE_TEMP_LINK;
2861 typedef EFI_MISC_TEMPERATURE_PROBE_DESCRIPTION_DATA EFI_MISC_TEMPERATURE_PROBE_DESCRIPTION;
2862 typedef EFI_MISC_REMOTE_ACCESS_MANUFACTURER_DESCRIPTION_DATA
2863 EFI_MISC_REMOTE_ACCESS_MANUFACTURER_DESCRIPTION;
2864 typedef EFI_MISC_MANAGEMENT_DEVICE_DESCRIPTION_DATA EFI_MISC_MANAGEMENT_DEVICE_DESCRIPTION;
2865 typedef EFI_MISC_ELECTRICAL_CURRENT_PROBE_DESCRIPTION_DATA EFI_MISC_ELECTRICAL_CURRENT_PROBE_DESCRIPTION;
2866 typedef EFI_MISC_MANAGEMENT_DEVICE_COMPONENT_DESCRIPTION_DATA
2867 EFI_MISC_MANAGEMENT_DEVICE_COMPONENT_DESCRIPTION;
2868
2869 ///
2870 /// Inconsistent with specification here:
2871 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
2872 /// It is implementation-specific to simplify the code logic.
2873 ///
2874 typedef union {
2875 EFI_MISC_LAST_PCI_BUS_DATA LastPciBus;
2876 EFI_MISC_BIOS_VENDOR_DATA MiscBiosVendor;
2877 EFI_MISC_SYSTEM_MANUFACTURER_DATA MiscSystemManufacturer;
2878 EFI_MISC_BASE_BOARD_MANUFACTURER_DATA MiscBaseBoardManufacturer;
2879 EFI_MISC_CHASSIS_MANUFACTURER_DATA MiscChassisManufacturer;
2880 EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR_DATA MiscPortInternalConnectorDesignator;
2881 EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA MiscSystemSlotDesignation;
2882 EFI_MISC_ONBOARD_DEVICE_DATA MiscOnboardDevice;
2883 EFI_MISC_OEM_STRING_DATA MiscOemString;
2884 EFI_MISC_SYSTEM_OPTION_STRING_DATA MiscOptionString;
2885 EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES_DATA NumberOfInstallableLanguages;
2886 EFI_MISC_SYSTEM_LANGUAGE_STRING_DATA MiscSystemLanguageString;
2887 EFI_MISC_SYSTEM_EVENT_LOG_DATA MiscSystemEventLog;
2888 EFI_MISC_GROUP_NAME_DATA MiscGroupNameData;
2889 EFI_MISC_GROUP_ITEM_SET_DATA MiscGroupItemSetData;
2890 EFI_MISC_POINTING_DEVICE_TYPE_DATA MiscPointingDeviceTypeData;
2891 EFI_MISC_RESET_CAPABILITIES_DATA MiscResetCapablilitiesData;
2892 EFI_MISC_HARDWARE_SECURITY_SETTINGS_DATA MiscHardwareSecuritySettingsData;
2893 EFI_MISC_SCHEDULED_POWER_ON_MONTH_DATA MiscScheduledPowerOnMonthData;
2894 EFI_MISC_VOLTAGE_PROBE_DESCRIPTION_DATA MiscVoltagePorbeDescriptionData;
2895 EFI_MISC_COOLING_DEVICE_TEMP_LINK_DATA MiscCoolingDeviceTempLinkData;
2896 EFI_MISC_TEMPERATURE_PROBE_DESCRIPTION_DATA MiscTemperatureProbeDescriptionData;
2897 EFI_MISC_ELECTRICAL_CURRENT_PROBE_DESCRIPTION_DATA MiscElectricalCurrentProbeDescriptionData;
2898 EFI_MISC_REMOTE_ACCESS_MANUFACTURER_DESCRIPTION_DATA
2899 MiscRemoteAccessManufacturerDescriptionData;
2900 EFI_MISC_BIS_ENTRY_POINT_DATA MiscBisEntryPoint;
2901 EFI_MISC_BOOT_INFORMATION_STATUS_DATA MiscBootInformationStatus;
2902 EFI_MISC_MANAGEMENT_DEVICE_DESCRIPTION_DATA MiscMangementDeviceDescriptionData;
2903 EFI_MISC_MANAGEMENT_DEVICE_COMPONENT_DESCRIPTION_DATA
2904 MiscmangementDeviceComponentDescriptionData;
2905 EFI_MISC_IPMI_INTERFACE_TYPE_DATA MiscIpmiInterfaceTypeData;
2906 EFI_MISC_SYSTEM_POWER_SUPPLY_DATA MiscPowerSupplyInfo;
2907 EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION_DATA MiscSmbiosStructEncapsulation;
2908 EFI_MISC_MANAGEMENT_DEVICE_THRESHOLD MiscManagementDeviceThreshold;
2909 } EFI_MISC_SUBCLASS_RECORDS;
2910
2911 ///
2912 /// Inconsistent with specification here:
2913 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
2914 /// It is implementation-specific to simplify the code logic.
2915 ///
2916 typedef struct {
2917 EFI_SUBCLASS_TYPE1_HEADER Header;
2918 EFI_MISC_SUBCLASS_RECORDS Record;
2919 } EFI_MISC_SUBCLASS_DRIVER_DATA;
2920 #pragma pack()
2921
2922 ///
2923 /// Inconsistent with specification here:
2924 /// In DataHubSubclass specification 0.9 page 16, the following symbol is NOT defined.
2925 /// But value is meaningful, 0 means Reserved.
2926 ///
2927 #define EFI_SUBCLASS_INSTANCE_RESERVED 0
2928 ///
2929 /// Inconsistent with specification here:
2930 /// In DataHubSubclass specification 0.9 page 16, the following symbol is NOT defined.
2931 /// But value is meaningful, -1 means Not Applicable.
2932 ///
2933 #define EFI_SUBCLASS_INSTANCE_NON_APPLICABLE 0xFFFF
2934
2935 #endif