]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkPkg/Include/Guid/DataHubRecords.h
Add missing data record for Type 4.
[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 - 2010, 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 UINT32 Asynchronous :1;
863 UINT32 Synchronous :1;
864 UINT32 Reserved :25;
865 } EFI_CACHE_SRAM_TYPE_DATA;
866
867 typedef EFI_CACHE_SRAM_TYPE_DATA EFI_CACHE_SRAM_INSTALL_DATA;
868
869 typedef enum {
870 EfiCacheErrorOther = 1,
871 EfiCacheErrorUnknown = 2,
872 EfiCacheErrorNone = 3,
873 EfiCacheErrorParity = 4,
874 EfiCacheErrorSingleBit = 5,
875 EfiCacheErrorMultiBit = 6
876 } EFI_CACHE_ERROR_TYPE_DATA;
877
878 typedef enum {
879 EfiCacheTypeOther = 1,
880 EfiCacheTypeUnknown = 2,
881 EfiCacheTypeInstruction = 3,
882 EfiCacheTypeData = 4,
883 EfiCacheTypeUnified = 5
884 } EFI_CACHE_TYPE_DATA;
885
886 typedef enum {
887 EfiCacheAssociativityOther = 1,
888 EfiCacheAssociativityUnknown = 2,
889 EfiCacheAssociativityDirectMapped = 3,
890 EfiCacheAssociativity2Way = 4,
891 EfiCacheAssociativity4Way = 5,
892 EfiCacheAssociativityFully = 6,
893 EfiCacheAssociativity8Way = 7,
894 EfiCacheAssociativity16Way = 8
895 } EFI_CACHE_ASSOCIATIVITY_DATA;
896
897 ///
898 /// Inconsistent with specification here:
899 /// In CacheSubclass 0.9 specification. It defines the field type as UINT16.
900 /// In fact, it should be UINT32 type because it refers to a 32bit width data.
901 ///
902 typedef struct {
903 UINT32 Level :3;
904 UINT32 Socketed :1;
905 UINT32 Reserved2 :1;
906 UINT32 Location :2;
907 UINT32 Enable :1;
908 UINT32 OperationalMode :2;
909 UINT32 Reserved1 :22;
910 } EFI_CACHE_CONFIGURATION_DATA;
911
912 #define EFI_CACHE_L1 1
913 #define EFI_CACHE_L2 2
914 #define EFI_CACHE_L3 3
915 #define EFI_CACHE_L4 4
916 #define EFI_CACHE_LMAX EFI_CACHE_L4
917
918 #define EFI_CACHE_SOCKETED 1
919 #define EFI_CACHE_NOT_SOCKETED 0
920
921 typedef enum {
922 EfiCacheInternal = 0,
923 EfiCacheExternal = 1,
924 EfiCacheReserved = 2,
925 EfiCacheUnknown = 3
926 } EFI_CACHE_LOCATION;
927
928 #define EFI_CACHE_ENABLED 1
929 #define EFI_CACHE_DISABLED 0
930
931 typedef enum {
932 EfiCacheWriteThrough = 0,
933 EfiCacheWriteBack = 1,
934 EfiCacheDynamicMode = 2,
935 EfiCacheUnknownMode = 3
936 } EFI_CACHE_OPERATIONAL_MODE;
937
938
939 ///
940 /// Inconsistent with specification here:
941 /// In CacheSubclass specification 0.9, the enumeration type data structure is NOT defined.
942 /// The equivalent in specification is
943 /// #define EFI_CACHE_SIZE_RECORD_NUMBER 0x00000001
944 /// #define EFI_CACHE_MAXIMUM_SIZE_RECORD_NUMBER 0x00000002
945 /// #define EFI_CACHE_SPEED_RECORD_NUMBER 0x00000003
946 /// #define EFI_CACHE_SOCKET_RECORD_NUMBER 0x00000004
947 /// #define EFI_CACHE_SRAM_SUPPORT_RECORD_NUMBER 0x00000005
948 /// #define EFI_CACHE_SRAM_INSTALL_RECORD_NUMBER 0x00000006
949 /// #define EFI_CACHE_ERROR_SUPPORT_RECORD_NUMBER 0x00000007
950 /// #define EFI_CACHE_TYPE_RECORD_NUMBER 0x00000008
951 /// #define EFI_CACHE_ASSOCIATIVITY_RECORD_NUMBER 0x00000009
952 /// #define EFI_CACHE_CONFIGURATION_RECORD_NUMBER 0x0000000A
953 /// Keep the definition unchanged for backward compatibility.
954 ///
955 typedef enum {
956 CacheSizeRecordType = 1,
957 MaximumSizeCacheRecordType = 2,
958 CacheSpeedRecordType = 3,
959 CacheSocketRecordType = 4,
960 CacheSramTypeRecordType = 5,
961 CacheInstalledSramTypeRecordType = 6,
962 CacheErrorTypeRecordType = 7,
963 CacheTypeRecordType = 8,
964 CacheAssociativityRecordType = 9,
965 CacheConfigRecordType = 10
966 } EFI_CACHE_VARIABLE_RECORD_TYPE;
967
968 ///
969 /// Inconsistent with specification here:
970 /// In CacheSubclass specification 0.9, the union type data structure is NOT defined.
971 /// It's implementation-specific to simplify the code logic.
972 ///
973 typedef union {
974 EFI_CACHE_SIZE_DATA CacheSize;
975 EFI_MAXIMUM_CACHE_SIZE_DATA MaximumCacheSize;
976 EFI_CACHE_SPEED_DATA CacheSpeed;
977 EFI_CACHE_SOCKET_DATA CacheSocket;
978 EFI_CACHE_SRAM_TYPE_DATA CacheSramType;
979 EFI_CACHE_SRAM_TYPE_DATA CacheInstalledSramType;
980 EFI_CACHE_ERROR_TYPE_DATA CacheErrorType;
981 EFI_CACHE_TYPE_DATA CacheType;
982 EFI_CACHE_ASSOCIATIVITY_DATA CacheAssociativity;
983 EFI_CACHE_CONFIGURATION_DATA CacheConfig;
984 EFI_CACHE_ASSOCIATION_DATA CacheAssociation;
985 } EFI_CACHE_VARIABLE_RECORD;
986
987 typedef struct {
988 EFI_SUBCLASS_TYPE1_HEADER DataRecordHeader;
989 EFI_CACHE_VARIABLE_RECORD VariableRecord;
990 } EFI_CACHE_DATA_RECORD;
991
992 #define EFI_MEMORY_SUBCLASS_VERSION 0x0100
993 #define EFI_MEMORY_SIZE_RECORD_NUMBER 0x00000001
994
995 typedef enum _EFI_MEMORY_REGION_TYPE {
996 EfiMemoryRegionMemory = 0x01,
997 EfiMemoryRegionReserved = 0x02,
998 EfiMemoryRegionAcpi = 0x03,
999 EfiMemoryRegionNvs = 0x04
1000 } EFI_MEMORY_REGION_TYPE;
1001
1002 ///
1003 /// This data record refers to the size of a memory region. The regions that are
1004 /// described can refer to physical memory, memory-mapped I/O, or reserved BIOS memory regions.
1005 /// The unit of measurement of this data record is in bytes.
1006 ///
1007 typedef struct {
1008 ///
1009 /// A zero-based value that indicates which processor(s) can access the memory region.
1010 /// A value of 0xFFFF indicates the region is accessible by all processors.
1011 ///
1012 UINT32 ProcessorNumber;
1013 ///
1014 /// A zero-based value that indicates the starting bus that can access the memory region.
1015 ///
1016 UINT16 StartBusNumber;
1017 ///
1018 /// A zero-based value that indicates the ending bus that can access the memory region.
1019 /// A value of 0xFF for a PCI system indicates the region is accessible by all buses and
1020 /// is global in scope. An example of the EndBusNumber not being 0xFF is a system
1021 /// with two or more peer-to-host PCI bridges.
1022 ///
1023 UINT16 EndBusNumber;
1024 ///
1025 /// The type of memory region from the operating system's point of view.
1026 /// MemoryRegionType values are equivalent to the legacy INT 15 AX = E820 BIOS
1027 /// command values.
1028 ///
1029 EFI_MEMORY_REGION_TYPE MemoryRegionType;
1030 ///
1031 /// The size of the memory region in bytes.
1032 ///
1033 EFI_EXP_BASE2_DATA MemorySize;
1034 ///
1035 /// The starting physical address of the memory region.
1036 ///
1037 EFI_PHYSICAL_ADDRESS MemoryStartAddress;
1038 } EFI_MEMORY_SIZE_DATA;
1039
1040
1041 #define EFI_MEMORY_ARRAY_LOCATION_RECORD_NUMBER 0x00000002
1042
1043 typedef enum _EFI_MEMORY_ARRAY_LOCATION {
1044 EfiMemoryArrayLocationOther = 0x01,
1045 EfiMemoryArrayLocationUnknown = 0x02,
1046 EfiMemoryArrayLocationSystemBoard = 0x03,
1047 EfiMemoryArrayLocationIsaAddonCard = 0x04,
1048 EfiMemoryArrayLocationEisaAddonCard = 0x05,
1049 EfiMemoryArrayLocationPciAddonCard = 0x06,
1050 EfiMemoryArrayLocationMcaAddonCard = 0x07,
1051 EfiMemoryArrayLocationPcmciaAddonCard = 0x08,
1052 EfiMemoryArrayLocationProprietaryAddonCard = 0x09,
1053 EfiMemoryArrayLocationNuBus = 0x0A,
1054 EfiMemoryArrayLocationPc98C20AddonCard = 0xA0,
1055 EfiMemoryArrayLocationPc98C24AddonCard = 0xA1,
1056 EfiMemoryArrayLocationPc98EAddonCard = 0xA2,
1057 EfiMemoryArrayLocationPc98LocalBusAddonCard = 0xA3
1058 } EFI_MEMORY_ARRAY_LOCATION;
1059
1060 typedef enum _EFI_MEMORY_ARRAY_USE {
1061 EfiMemoryArrayUseOther = 0x01,
1062 EfiMemoryArrayUseUnknown = 0x02,
1063 EfiMemoryArrayUseSystemMemory = 0x03,
1064 EfiMemoryArrayUseVideoMemory = 0x04,
1065 EfiMemoryArrayUseFlashMemory = 0x05,
1066 EfiMemoryArrayUseNonVolatileRam = 0x06,
1067 EfiMemoryArrayUseCacheMemory = 0x07
1068 } EFI_MEMORY_ARRAY_USE;
1069
1070 typedef enum _EFI_MEMORY_ERROR_CORRECTION {
1071 EfiMemoryErrorCorrectionOther = 0x01,
1072 EfiMemoryErrorCorrectionUnknown = 0x02,
1073 EfiMemoryErrorCorrectionNone = 0x03,
1074 EfiMemoryErrorCorrectionParity = 0x04,
1075 EfiMemoryErrorCorrectionSingleBitEcc = 0x05,
1076 EfiMemoryErrorCorrectionMultiBitEcc = 0x06,
1077 EfiMemoryErrorCorrectionCrc = 0x07
1078 } EFI_MEMORY_ERROR_CORRECTION;
1079
1080 ///
1081 /// This data record refers to the physical memory array. This data record is a structure.
1082 /// The type definition structure for EFI_MEMORY_ARRAY_LOCATION_DATA is in SMBIOS 2.3.4:
1083 /// - Table 3.3.17.1, Type 16, Offset 0x4
1084 /// - Table 3.3.17.2, Type 16, Offset 0x5
1085 /// - Table 3.3.17.3, Type 16, with the following offsets:
1086 /// -- Offset 0x6
1087 /// -- Offset 0x7
1088 /// -- Offset 0xB
1089 /// -- Offset 0xD
1090 ///
1091 typedef struct {
1092 ///
1093 /// The physical location of the memory array.
1094 ///
1095 EFI_MEMORY_ARRAY_LOCATION MemoryArrayLocation;
1096 ///
1097 /// The memory array usage.
1098 ///
1099 EFI_MEMORY_ARRAY_USE MemoryArrayUse;
1100 ///
1101 /// The primary error correction or detection supported by this memory array.
1102 ///
1103 EFI_MEMORY_ERROR_CORRECTION MemoryErrorCorrection;
1104 ///
1105 /// The maximum memory capacity size in kilobytes. If capacity is unknown, then
1106 /// values of MaximumMemoryCapacity.Value = 0x00 and
1107 /// MaximumMemoryCapacity.Exponent = 0x8000 are used.
1108 ///
1109 EFI_EXP_BASE2_DATA MaximumMemoryCapacity;
1110 ///
1111 /// The number of memory slots or sockets that are available for memory devices
1112 /// in this array.
1113 ///
1114 UINT16 NumberMemoryDevices;
1115 } EFI_MEMORY_ARRAY_LOCATION_DATA;
1116
1117
1118 #define EFI_MEMORY_ARRAY_LINK_RECORD_NUMBER 0x00000003
1119
1120 typedef enum _EFI_MEMORY_FORM_FACTOR {
1121 EfiMemoryFormFactorOther = 0x01,
1122 EfiMemoryFormFactorUnknown = 0x02,
1123 EfiMemoryFormFactorSimm = 0x03,
1124 EfiMemoryFormFactorSip = 0x04,
1125 EfiMemoryFormFactorChip = 0x05,
1126 EfiMemoryFormFactorDip = 0x06,
1127 EfiMemoryFormFactorZip = 0x07,
1128 EfiMemoryFormFactorProprietaryCard = 0x08,
1129 EfiMemoryFormFactorDimm = 0x09,
1130 EfiMemoryFormFactorTsop = 0x0A,
1131 EfiMemoryFormFactorRowOfChips = 0x0B,
1132 EfiMemoryFormFactorRimm = 0x0C,
1133 EfiMemoryFormFactorSodimm = 0x0D,
1134 EfiMemoryFormFactorSrimm = 0x0E,
1135 ///
1136 /// Inconsistent with specification here:
1137 /// This field is NOT defined in MemSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
1138 ///
1139 EfiMemoryFormFactorFbDimm = 0x0F
1140 } EFI_MEMORY_FORM_FACTOR;
1141
1142 typedef enum _EFI_MEMORY_ARRAY_TYPE {
1143 EfiMemoryTypeOther = 0x01,
1144 EfiMemoryTypeUnknown = 0x02,
1145 EfiMemoryTypeDram = 0x03,
1146 EfiMemoryTypeEdram = 0x04,
1147 EfiMemoryTypeVram = 0x05,
1148 EfiMemoryTypeSram = 0x06,
1149 EfiMemoryTypeRam = 0x07,
1150 EfiMemoryTypeRom = 0x08,
1151 EfiMemoryTypeFlash = 0x09,
1152 EfiMemoryTypeEeprom = 0x0A,
1153 EfiMemoryTypeFeprom = 0x0B,
1154 EfiMemoryTypeEprom = 0x0C,
1155 EfiMemoryTypeCdram = 0x0D,
1156 EfiMemoryType3Dram = 0x0E,
1157 EfiMemoryTypeSdram = 0x0F,
1158 EfiMemoryTypeSgram = 0x10,
1159 EfiMemoryTypeRdram = 0x11,
1160 EfiMemoryTypeDdr = 0x12,
1161 ///
1162 /// Inconsistent with specification here:
1163 /// This field is NOT defined in MemSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
1164 ///
1165 EfiMemoryTypeDdr2 = 0x13,
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 EfiMemoryTypeDdr2FbDimm = 0x14
1171 } EFI_MEMORY_ARRAY_TYPE;
1172
1173 typedef struct {
1174 UINT32 Reserved :1;
1175 UINT32 Other :1;
1176 UINT32 Unknown :1;
1177 UINT32 FastPaged :1;
1178 UINT32 StaticColumn :1;
1179 UINT32 PseudoStatic :1;
1180 UINT32 Rambus :1;
1181 UINT32 Synchronous :1;
1182 UINT32 Cmos :1;
1183 UINT32 Edo :1;
1184 UINT32 WindowDram :1;
1185 UINT32 CacheDram :1;
1186 UINT32 Nonvolatile :1;
1187 UINT32 Reserved1 :19;
1188 } EFI_MEMORY_TYPE_DETAIL;
1189
1190 typedef enum {
1191 EfiMemoryStateEnabled = 0,
1192 EfiMemoryStateUnknown = 1,
1193 EfiMemoryStateUnsupported = 2,
1194 EfiMemoryStateError = 3,
1195 EfiMemoryStateAbsent = 4,
1196 EfiMemoryStateDisabled = 5,
1197 ///
1198 /// Inconsistent with specification here:
1199 /// This field is NOT defined in MemSubClass specification 0.9. It's introduced for SMBIOS2.6 specification.
1200 ///
1201 EfiMemoryStatePartial = 6
1202 } EFI_MEMORY_STATE;
1203
1204 ///
1205 /// This data record describes a memory device. This data record is a structure.
1206 /// The type definition structure for EFI_MEMORY_ARRAY_LINK_DATA is in SMBIOS 2.3.4.
1207 ///
1208 typedef struct {
1209 ///
1210 /// A string that identifies the physically labeled socket or board position where the
1211 /// memory device is located.
1212 ///
1213 STRING_REF MemoryDeviceLocator;
1214 ///
1215 /// A string denoting the physically labeled bank where the memory device is located.
1216 ///
1217 STRING_REF MemoryBankLocator;
1218 ///
1219 /// A string denoting the memory manufacturer.
1220 ///
1221 STRING_REF MemoryManufacturer;
1222 ///
1223 /// A string denoting the serial number of the memory device.
1224 ///
1225 STRING_REF MemorySerialNumber;
1226 ///
1227 /// The asset tag of the memory device.
1228 ///
1229 STRING_REF MemoryAssetTag;
1230 ///
1231 /// A string denoting the part number of the memory device.
1232 ///
1233 STRING_REF MemoryPartNumber;
1234 ///
1235 /// A link to a memory array structure set.
1236 ///
1237 EFI_INTER_LINK_DATA MemoryArrayLink;
1238 ///
1239 /// A link to a memory array structure set.
1240 ///
1241 EFI_INTER_LINK_DATA MemorySubArrayLink;
1242 ///
1243 /// The total width in bits of this memory device. If there are no error correcting bits,
1244 /// then the total width equals the data width. If the width is unknown, then set the field
1245 /// to 0xFFFF.
1246 ///
1247 UINT16 MemoryTotalWidth;
1248 ///
1249 /// The data width in bits of the memory device. A data width of 0x00 and a total width
1250 /// of 0x08 indicate that the device is used solely for error correction.
1251 ///
1252 UINT16 MemoryDataWidth;
1253 ///
1254 /// The size in bytes of the memory device. A value of 0x00 denotes that no device is
1255 /// installed, while a value of all Fs denotes that the size is not known.
1256 ///
1257 EFI_EXP_BASE2_DATA MemoryDeviceSize;
1258 ///
1259 /// The form factor of the memory device.
1260 ///
1261 EFI_MEMORY_FORM_FACTOR MemoryFormFactor;
1262 ///
1263 /// A memory device set that must be populated with all devices of the same type and
1264 /// size. A value of 0x00 indicates that the device is not part of any set. A value of 0xFF
1265 /// indicates that the attribute is unknown. Any other value denotes the set number.
1266 ///
1267 UINT8 MemoryDeviceSet;
1268 ///
1269 /// The memory type in the socket.
1270 ///
1271 EFI_MEMORY_ARRAY_TYPE MemoryType;
1272 ///
1273 /// The memory type details.
1274 ///
1275 EFI_MEMORY_TYPE_DETAIL MemoryTypeDetail;
1276 ///
1277 /// The memory speed in megahertz (MHz). A value of 0x00 denotes that
1278 /// the speed is unknown.
1279 /// Inconsistent with specification here:
1280 /// In MemSubclass specification 0.9, the naming is MemoryTypeSpeed.
1281 /// Keep it unchanged for backward compatibilty.
1282 ///
1283 EFI_EXP_BASE10_DATA MemorySpeed;
1284 ///
1285 /// The memory state.
1286 ///
1287 EFI_MEMORY_STATE MemoryState;
1288 } EFI_MEMORY_ARRAY_LINK_DATA;
1289
1290
1291 #define EFI_MEMORY_ARRAY_START_ADDRESS_RECORD_NUMBER 0x00000004
1292
1293 ///
1294 /// This data record refers to a specified physical memory array associated with
1295 /// a given memory range.
1296 ///
1297 typedef struct {
1298 ///
1299 /// The starting physical address in bytes of memory mapped to a specified physical
1300 /// memory array.
1301 ///
1302 EFI_PHYSICAL_ADDRESS MemoryArrayStartAddress;
1303 ///
1304 /// The last physical address in bytes of memory mapped to a specified physical memory
1305 /// array.
1306 ///
1307 EFI_PHYSICAL_ADDRESS MemoryArrayEndAddress;
1308 ///
1309 /// See Physical Memory Array (Type 16) for physical memory array structures.
1310 ///
1311 EFI_INTER_LINK_DATA PhysicalMemoryArrayLink;
1312 ///
1313 /// The number of memory devices that form a single row of memory for the address
1314 /// partition.
1315 ///
1316 UINT16 MemoryArrayPartitionWidth;
1317 } EFI_MEMORY_ARRAY_START_ADDRESS_DATA;
1318
1319
1320 #define EFI_MEMORY_DEVICE_START_ADDRESS_RECORD_NUMBER 0x00000005
1321
1322 ///
1323 /// This data record refers to a physical memory device that is associated with
1324 /// a given memory range.
1325 ///
1326 typedef struct {
1327 ///
1328 /// The starting physical address that is associated with the device.
1329 ///
1330 EFI_PHYSICAL_ADDRESS MemoryDeviceStartAddress;
1331 ///
1332 /// The ending physical address that is associated with the device.
1333 ///
1334 EFI_PHYSICAL_ADDRESS MemoryDeviceEndAddress;
1335 ///
1336 /// A link to the memory device data structure.
1337 ///
1338 EFI_INTER_LINK_DATA PhysicalMemoryDeviceLink;
1339 ///
1340 /// A link to the memory array data structure.
1341 ///
1342 EFI_INTER_LINK_DATA PhysicalMemoryArrayLink;
1343 ///
1344 /// The position of the memory device in a row. A value of 0x00 is reserved and a value
1345 /// of 0xFF indicates that the position is unknown.
1346 ///
1347 UINT8 MemoryDevicePartitionRowPosition;
1348 ///
1349 /// The position of the device in an interleave.
1350 ///
1351 UINT8 MemoryDeviceInterleavePosition;
1352 ///
1353 /// The maximum number of consecutive rows from the device that are accessed in a
1354 /// single interleave transfer. A value of 0x00 indicates that the device is not interleaved
1355 /// and a value of 0xFF indicates that the interleave configuration is unknown.
1356 ///
1357 UINT8 MemoryDeviceInterleaveDataDepth;
1358 } EFI_MEMORY_DEVICE_START_ADDRESS_DATA;
1359
1360
1361 //
1362 // Memory. Channel Device Type - SMBIOS Type 37
1363 //
1364
1365 #define EFI_MEMORY_CHANNEL_TYPE_RECORD_NUMBER 0x00000006
1366
1367 typedef enum _EFI_MEMORY_CHANNEL_TYPE {
1368 EfiMemoryChannelTypeOther = 1,
1369 EfiMemoryChannelTypeUnknown = 2,
1370 EfiMemoryChannelTypeRambus = 3,
1371 EfiMemoryChannelTypeSyncLink = 4
1372 } EFI_MEMORY_CHANNEL_TYPE;
1373
1374 ///
1375 /// This data record refers the type of memory that is associated with the channel. This data record is a
1376 /// structure.
1377 /// The type definition structure for EFI_MEMORY_CHANNEL_TYPE_DATA is in SMBIOS 2.3.4,
1378 /// Table 3.3.38, Type 37, with the following offsets:
1379 /// - Offset 0x4
1380 /// - Offset 0x5
1381 /// - Offset 0x6
1382 ///
1383 typedef struct {
1384 ///
1385 /// The type of memory that is associated with the channel.
1386 ///
1387 EFI_MEMORY_CHANNEL_TYPE MemoryChannelType;
1388 ///
1389 /// The maximum load that is supported by the channel.
1390 ///
1391 UINT8 MemoryChannelMaximumLoad;
1392 ///
1393 /// The number of memory devices on this channel.
1394 ///
1395 UINT8 MemoryChannelDeviceCount;
1396 } EFI_MEMORY_CHANNEL_TYPE_DATA;
1397
1398 #define EFI_MEMORY_CHANNEL_DEVICE_RECORD_NUMBER 0x00000007
1399
1400 ///
1401 /// This data record refers to the memory device that is associated with the memory channel. This data
1402 /// record is a structure.
1403 /// The type definition structure for EFI_MEMORY_CHANNEL_DEVICE_DATA is in SMBIOS 2.3.4,
1404 /// Table 3.3.38, Type 37, with the following offsets:
1405 /// - Offset 0x7
1406 /// - Offset 0x8
1407 ///
1408 typedef struct {
1409 ///
1410 /// A number between one and MemoryChannelDeviceCount plus an arbitrary base.
1411 ///
1412 UINT8 DeviceId;
1413 ///
1414 /// The Link of the associated memory device. See Memory Device (Type 17) for
1415 /// memory devices.
1416 ///
1417 EFI_INTER_LINK_DATA DeviceLink;
1418 ///
1419 /// The number of load units that this device consumes.
1420 ///
1421 UINT8 MemoryChannelDeviceLoad;
1422 } EFI_MEMORY_CHANNEL_DEVICE_DATA;
1423
1424 //
1425 // Memory. Controller Information - SMBIOS Type 5
1426 //
1427 ///
1428 /// Inconsistent with specification here:
1429 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1430 /// It's introduced for SmBios 2.6 type 5.
1431 ///
1432 #define EFI_MEMORY_CONTROLLER_INFORMATION_RECORD_NUMBER 0x00000008
1433
1434 ///
1435 /// Inconsistent with specification here:
1436 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1437 /// It's introduced for SmBios 2.6 type 5.
1438 ///
1439 typedef enum {
1440 EfiErrorDetectingMethodOther = 1,
1441 EfiErrorDetectingMethodUnknown = 2,
1442 EfiErrorDetectingMethodNone = 3,
1443 EfiErrorDetectingMethodParity = 4,
1444 EfiErrorDetectingMethod32Ecc = 5,
1445 EfiErrorDetectingMethod64Ecc = 6,
1446 EfiErrorDetectingMethod128Ecc = 7,
1447 EfiErrorDetectingMethodCrc = 8
1448 } EFI_MEMORY_ERROR_DETECT_METHOD_TYPE;
1449
1450 ///
1451 /// Inconsistent with specification here:
1452 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1453 /// It's introduced for SmBios 2.6 type 5.
1454 ///
1455 typedef struct {
1456 UINT8 Other :1;
1457 UINT8 Unknown :1;
1458 UINT8 None :1;
1459 UINT8 SingleBitErrorCorrect :1;
1460 UINT8 DoubleBitErrorCorrect :1;
1461 UINT8 ErrorScrubbing :1;
1462 UINT8 Reserved :2;
1463 } EFI_MEMORY_ERROR_CORRECT_CAPABILITY;
1464
1465 ///
1466 /// Inconsistent with specification here:
1467 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1468 /// It's introduced for SmBios 2.6 type 5.
1469 ///
1470 typedef enum {
1471 EfiMemoryInterleaveOther = 1,
1472 EfiMemoryInterleaveUnknown = 2,
1473 EfiMemoryInterleaveOneWay = 3,
1474 EfiMemoryInterleaveTwoWay = 4,
1475 EfiMemoryInterleaveFourWay = 5,
1476 EfiMemoryInterleaveEightWay = 6,
1477 EfiMemoryInterleaveSixteenWay = 7
1478 } EFI_MEMORY_SUPPORT_INTERLEAVE_TYPE;
1479
1480 ///
1481 /// Inconsistent with specification here:
1482 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1483 /// It's introduced for SmBios 2.6 type 5.
1484 ///
1485 typedef struct {
1486 UINT16 Other :1;
1487 UINT16 Unknown :1;
1488 UINT16 SeventyNs:1;
1489 UINT16 SixtyNs :1;
1490 UINT16 FiftyNs :1;
1491 UINT16 Reserved :11;
1492 } EFI_MEMORY_SPEED_TYPE;
1493
1494 ///
1495 /// Inconsistent with specification here:
1496 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1497 /// It's introduced for SmBios 2.6 type 5.
1498 ///
1499 typedef struct {
1500 UINT16 Other :1;
1501 UINT16 Unknown :1;
1502 UINT16 Standard :1;
1503 UINT16 FastPageMode:1;
1504 UINT16 EDO :1;
1505 UINT16 Parity :1;
1506 UINT16 ECC :1;
1507 UINT16 SIMM :1;
1508 UINT16 DIMM :1;
1509 UINT16 BurstEdo :1;
1510 UINT16 SDRAM :1;
1511 UINT16 Reserved :5;
1512 } EFI_MEMORY_SUPPORTED_TYPE;
1513
1514 ///
1515 /// Inconsistent with specification here:
1516 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1517 /// It's introduced for SmBios 2.6 type 5.
1518 ///
1519 typedef struct {
1520 UINT8 Five :1;
1521 UINT8 Three :1;
1522 UINT8 Two :1;
1523 UINT8 Reserved:5;
1524 } EFI_MEMORY_MODULE_VOLTAGE_TYPE;
1525
1526 ///
1527 /// EFI_MEMORY_CONTROLLER_INFORMATION is obsolete
1528 /// Use EFI_MEMORY_CONTROLLER_INFORMATION_DATA instead
1529 ///
1530 /// Inconsistent with specification here:
1531 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1532 /// It's introduced for SmBios 2.6 type 5.
1533 ///
1534 typedef struct {
1535 EFI_MEMORY_ERROR_DETECT_METHOD_TYPE ErrorDetectingMethod;
1536 EFI_MEMORY_ERROR_CORRECT_CAPABILITY ErrorCorrectingCapability;
1537 EFI_MEMORY_SUPPORT_INTERLEAVE_TYPE MemorySupportedInterleave;
1538 EFI_MEMORY_SUPPORT_INTERLEAVE_TYPE MemoryCurrentInterleave;
1539 UINT8 MaxMemoryModuleSize;
1540 EFI_MEMORY_SPEED_TYPE MemorySpeedType;
1541 EFI_MEMORY_SUPPORTED_TYPE MemorySupportedType;
1542 EFI_MEMORY_MODULE_VOLTAGE_TYPE MemoryModuleVoltage;
1543 UINT8 NumberofMemorySlot;
1544 EFI_MEMORY_ERROR_CORRECT_CAPABILITY EnabledCorrectingCapability;
1545 UINT16 *MemoryModuleConfigHandles;
1546 } EFI_MEMORY_CONTROLLER_INFORMATION;
1547
1548 ///
1549 /// Inconsistent with specification here:
1550 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1551 /// It's introduced for SmBios 2.6 type 5.
1552 ///
1553 typedef struct {
1554 EFI_MEMORY_ERROR_DETECT_METHOD_TYPE ErrorDetectingMethod;
1555 EFI_MEMORY_ERROR_CORRECT_CAPABILITY ErrorCorrectingCapability;
1556 EFI_MEMORY_SUPPORT_INTERLEAVE_TYPE MemorySupportedInterleave;
1557 EFI_MEMORY_SUPPORT_INTERLEAVE_TYPE MemoryCurrentInterleave;
1558 UINT8 MaxMemoryModuleSize;
1559 EFI_MEMORY_SPEED_TYPE MemorySpeedType;
1560 EFI_MEMORY_SUPPORTED_TYPE MemorySupportedType;
1561 EFI_MEMORY_MODULE_VOLTAGE_TYPE MemoryModuleVoltage;
1562 UINT8 NumberofMemorySlot;
1563 EFI_MEMORY_ERROR_CORRECT_CAPABILITY EnabledCorrectingCapability;
1564 EFI_INTER_LINK_DATA MemoryModuleConfig[1];
1565 } EFI_MEMORY_CONTROLLER_INFORMATION_DATA;
1566
1567 ///
1568 /// Memory. Error Information - SMBIOS Type 18
1569 ///
1570 /// Inconsistent with specification here:
1571 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1572 /// It's introduced for SmBios 2.6 type 18.
1573 ///
1574 #define EFI_MEMORY_32BIT_ERROR_INFORMATION_RECORD_NUMBER 0x00000009
1575 ///
1576 /// Inconsistent with specification here:
1577 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1578 /// It's introduced for SmBios 2.6 type 18.
1579 ///
1580 typedef enum {
1581 EfiMemoryErrorOther = 1,
1582 EfiMemoryErrorUnknown = 2,
1583 EfiMemoryErrorOk = 3,
1584 EfiMemoryErrorBadRead = 4,
1585 EfiMemoryErrorParity = 5,
1586 EfiMemoryErrorSigleBit = 6,
1587 EfiMemoryErrorDoubleBit = 7,
1588 EfiMemoryErrorMultiBit = 8,
1589 EfiMemoryErrorNibble = 9,
1590 EfiMemoryErrorChecksum = 10,
1591 EfiMemoryErrorCrc = 11,
1592 EfiMemoryErrorCorrectSingleBit = 12,
1593 EfiMemoryErrorCorrected = 13,
1594 EfiMemoryErrorUnCorrectable = 14
1595 } EFI_MEMORY_ERROR_TYPE;
1596 ///
1597 /// Inconsistent with specification here:
1598 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1599 /// It's introduced for SmBios 2.6 type 18.
1600 ///
1601 typedef enum {
1602 EfiMemoryGranularityOther = 1,
1603 EfiMemoryGranularityOtherUnknown = 2,
1604 EfiMemoryGranularityDeviceLevel = 3,
1605 EfiMemoryGranularityMemPartitionLevel = 4
1606 } EFI_MEMORY_ERROR_GRANULARITY_TYPE;
1607 ///
1608 /// Inconsistent with specification here:
1609 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1610 /// It's introduced for SmBios 2.6 type 18.
1611 ///
1612 typedef enum {
1613 EfiMemoryErrorOperationOther = 1,
1614 EfiMemoryErrorOperationUnknown = 2,
1615 EfiMemoryErrorOperationRead = 3,
1616 EfiMemoryErrorOperationWrite = 4,
1617 EfiMemoryErrorOperationPartialWrite = 5
1618 } EFI_MEMORY_ERROR_OPERATION_TYPE;
1619 ///
1620 /// Inconsistent with specification here:
1621 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1622 /// It's introduced for SmBios 2.6 type 18.
1623 ///
1624 typedef struct {
1625 EFI_MEMORY_ERROR_TYPE MemoryErrorType;
1626 EFI_MEMORY_ERROR_GRANULARITY_TYPE MemoryErrorGranularity;
1627 EFI_MEMORY_ERROR_OPERATION_TYPE MemoryErrorOperation;
1628 UINT32 VendorSyndrome;
1629 UINT32 MemoryArrayErrorAddress;
1630 UINT32 DeviceErrorAddress;
1631 UINT32 DeviceErrorResolution;
1632 } EFI_MEMORY_32BIT_ERROR_INFORMATION;
1633
1634 ///
1635 /// Memory. Error Information - SMBIOS Type 33.
1636 ///
1637 /// Inconsistent with specification here:
1638 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1639 /// It's introduced for SmBios 2.6 type 33.
1640 ///
1641 #define EFI_MEMORY_64BIT_ERROR_INFORMATION_RECORD_NUMBER 0x0000000A
1642
1643 ///
1644 /// Inconsistent with specification here:
1645 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1646 /// It's introduced for SmBios 2.6 type 33.
1647 ///
1648 typedef struct {
1649 EFI_MEMORY_ERROR_TYPE MemoryErrorType;
1650 EFI_MEMORY_ERROR_GRANULARITY_TYPE MemoryErrorGranularity;
1651 EFI_MEMORY_ERROR_OPERATION_TYPE MemoryErrorOperation;
1652 UINT32 VendorSyndrome;
1653 UINT64 MemoryArrayErrorAddress;
1654 UINT64 DeviceErrorAddress;
1655 UINT32 DeviceErrorResolution;
1656 } EFI_MEMORY_64BIT_ERROR_INFORMATION;
1657
1658 ///
1659 /// Inconsistent with specification here:
1660 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
1661 /// It is implementation-specific to simplify the code logic.
1662 ///
1663 typedef union _EFI_MEMORY_SUBCLASS_RECORDS {
1664 EFI_MEMORY_SIZE_DATA SizeData;
1665 EFI_MEMORY_ARRAY_LOCATION_DATA ArrayLocationData;
1666 EFI_MEMORY_ARRAY_LINK_DATA ArrayLink;
1667 EFI_MEMORY_ARRAY_START_ADDRESS_DATA ArrayStartAddress;
1668 EFI_MEMORY_DEVICE_START_ADDRESS_DATA DeviceStartAddress;
1669 EFI_MEMORY_CHANNEL_TYPE_DATA ChannelTypeData;
1670 EFI_MEMORY_CHANNEL_DEVICE_DATA ChannelDeviceData;
1671 EFI_MEMORY_CONTROLLER_INFORMATION MemoryControllerInfo;
1672 EFI_MEMORY_32BIT_ERROR_INFORMATION Memory32bitErrorInfo;
1673 EFI_MEMORY_64BIT_ERROR_INFORMATION Memory64bitErrorInfo;
1674 } EFI_MEMORY_SUBCLASS_RECORDS;
1675
1676 typedef struct {
1677 EFI_SUBCLASS_TYPE1_HEADER Header;
1678 EFI_MEMORY_SUBCLASS_RECORDS Record;
1679 } EFI_MEMORY_SUBCLASS_DRIVER_DATA;
1680
1681 #define EFI_MISC_SUBCLASS_VERSION 0x0100
1682
1683 #pragma pack(1)
1684
1685 //
1686 // Last PCI Bus Number
1687 //
1688 #define EFI_MISC_LAST_PCI_BUS_RECORD_NUMBER 0x00000001
1689
1690 typedef struct {
1691 UINT8 LastPciBus;
1692 } EFI_MISC_LAST_PCI_BUS_DATA;
1693
1694 //
1695 // Misc. BIOS Vendor - SMBIOS Type 0
1696 //
1697 #define EFI_MISC_BIOS_VENDOR_RECORD_NUMBER 0x00000002
1698
1699 typedef struct {
1700 UINT64 Reserved1 :2;
1701 UINT64 Unknown :1;
1702 UINT64 BiosCharacteristicsNotSupported :1;
1703 UINT64 IsaIsSupported :1;
1704 UINT64 McaIsSupported :1;
1705 UINT64 EisaIsSupported :1;
1706 UINT64 PciIsSupported :1;
1707 UINT64 PcmciaIsSupported :1;
1708 UINT64 PlugAndPlayIsSupported :1;
1709 UINT64 ApmIsSupported :1;
1710 UINT64 BiosIsUpgradable :1;
1711 UINT64 BiosShadowingAllowed :1;
1712 UINT64 VlVesaIsSupported :1;
1713 UINT64 EscdSupportIsAvailable :1;
1714 UINT64 BootFromCdIsSupported :1;
1715 UINT64 SelectableBootIsSupported :1;
1716 UINT64 RomBiosIsSocketed :1;
1717 UINT64 BootFromPcmciaIsSupported :1;
1718 UINT64 EDDSpecificationIsSupported :1;
1719 UINT64 JapaneseNecFloppyIsSupported :1;
1720 UINT64 JapaneseToshibaFloppyIsSupported :1;
1721 UINT64 Floppy525_360IsSupported :1;
1722 UINT64 Floppy525_12IsSupported :1;
1723 UINT64 Floppy35_720IsSupported :1;
1724 UINT64 Floppy35_288IsSupported :1;
1725 UINT64 PrintScreenIsSupported :1;
1726 UINT64 Keyboard8042IsSupported :1;
1727 UINT64 SerialIsSupported :1;
1728 UINT64 PrinterIsSupported :1;
1729 UINT64 CgaMonoIsSupported :1;
1730 UINT64 NecPc98 :1;
1731 UINT64 AcpiIsSupported :1;
1732 UINT64 UsbLegacyIsSupported :1;
1733 UINT64 AgpIsSupported :1;
1734 UINT64 I20BootIsSupported :1;
1735 UINT64 Ls120BootIsSupported :1;
1736 UINT64 AtapiZipDriveBootIsSupported :1;
1737 UINT64 Boot1394IsSupported :1;
1738 UINT64 SmartBatteryIsSupported :1;
1739 UINT64 BiosBootSpecIsSupported :1;
1740 UINT64 FunctionKeyNetworkBootIsSupported :1;
1741 UINT64 Reserved :22;
1742 } EFI_MISC_BIOS_CHARACTERISTICS;
1743
1744 typedef struct {
1745 UINT64 BiosReserved :16;
1746 UINT64 SystemReserved:16;
1747 UINT64 Reserved :32;
1748 } EFI_MISC_BIOS_CHARACTERISTICS_EXTENSION;
1749
1750 typedef struct {
1751 STRING_REF BiosVendor;
1752 STRING_REF BiosVersion;
1753 STRING_REF BiosReleaseDate;
1754 EFI_PHYSICAL_ADDRESS BiosStartingAddress;
1755 EFI_EXP_BASE2_DATA BiosPhysicalDeviceSize;
1756 EFI_MISC_BIOS_CHARACTERISTICS BiosCharacteristics1;
1757 EFI_MISC_BIOS_CHARACTERISTICS_EXTENSION
1758 BiosCharacteristics2;
1759 ///
1760 /// Inconsistent with specification here:
1761 /// In MiscSubclass specification 0.9, this data structure and corrsponding fields are NOT defined.
1762 /// It's introduced for SmBios 2.6 specification type 0.
1763 ///
1764 UINT8 BiosMajorRelease;
1765 ///
1766 /// Inconsistent with specification here:
1767 /// In MiscSubclass specification 0.9, this data structure and corrsponding fields are NOT defined.
1768 /// It's introduced for SmBios 2.6 specification type 0.
1769 ///
1770 UINT8 BiosMinorRelease;
1771 ///
1772 /// Inconsistent with specification here:
1773 /// In MiscSubclass specification 0.9, this data structure and corrsponding fields are NOT defined.
1774 /// It's introduced for SmBios 2.6 specification type 0.
1775 ///
1776 UINT8 BiosEmbeddedFirmwareMajorRelease;
1777 ///
1778 /// Inconsistent with specification here:
1779 /// In MiscSubclass specification 0.9, this data structure and corrsponding fields are NOT defined.
1780 /// It's introduced for SmBios 2.6 specification type 0.
1781 ///
1782 UINT8 BiosEmbeddedFirmwareMinorRelease;
1783 } EFI_MISC_BIOS_VENDOR_DATA;
1784
1785 //
1786 // Misc. System Manufacturer - SMBIOS Type 1
1787 //
1788 #define EFI_MISC_SYSTEM_MANUFACTURER_RECORD_NUMBER 0x00000003
1789
1790 typedef enum {
1791 EfiSystemWakeupTypeReserved = 0,
1792 EfiSystemWakeupTypeOther = 1,
1793 EfiSystemWakeupTypeUnknown = 2,
1794 EfiSystemWakeupTypeApmTimer = 3,
1795 EfiSystemWakeupTypeModemRing = 4,
1796 EfiSystemWakeupTypeLanRemote = 5,
1797 EfiSystemWakeupTypePowerSwitch = 6,
1798 EfiSystemWakeupTypePciPme = 7,
1799 EfiSystemWakeupTypeAcPowerRestored = 8
1800 } EFI_MISC_SYSTEM_WAKEUP_TYPE;
1801
1802 typedef struct {
1803 STRING_REF SystemManufacturer;
1804 STRING_REF SystemProductName;
1805 STRING_REF SystemVersion;
1806 STRING_REF SystemSerialNumber;
1807 EFI_GUID SystemUuid;
1808 EFI_MISC_SYSTEM_WAKEUP_TYPE SystemWakeupType;
1809 ///
1810 /// Inconsistent with specification here:
1811 /// In MiscSubclass specification 0.9, this data structure and corrsponding fields are NOT defined.
1812 /// It's introduced for SmBios 2.6 specification type 1.
1813 ///
1814 STRING_REF SystemSKUNumber;
1815 ///
1816 /// Inconsistent with specification here:
1817 /// In MiscSubclass specification 0.9, this data structure and corrsponding fields are NOT defined.
1818 /// It's introduced for SmBios 2.6 specification type 1.
1819 ///
1820 STRING_REF SystemFamily;
1821 } EFI_MISC_SYSTEM_MANUFACTURER_DATA;
1822
1823 //
1824 // Misc. Base Board Manufacturer - SMBIOS Type 2
1825 //
1826 #define EFI_MISC_BASE_BOARD_MANUFACTURER_RECORD_NUMBER 0x00000004
1827
1828 typedef struct {
1829 UINT32 Motherboard :1;
1830 UINT32 RequiresDaughterCard :1;
1831 UINT32 Removable :1;
1832 UINT32 Replaceable :1;
1833 UINT32 HotSwappable :1;
1834 UINT32 Reserved :27;
1835 } EFI_BASE_BOARD_FEATURE_FLAGS;
1836
1837 typedef enum {
1838 EfiBaseBoardTypeUnknown = 1,
1839 EfiBaseBoardTypeOther = 2,
1840 EfiBaseBoardTypeServerBlade = 3,
1841 EfiBaseBoardTypeConnectivitySwitch = 4,
1842 EfiBaseBoardTypeSystemManagementModule = 5,
1843 EfiBaseBoardTypeProcessorModule = 6,
1844 EfiBaseBoardTypeIOModule = 7,
1845 EfiBaseBoardTypeMemoryModule = 8,
1846 EfiBaseBoardTypeDaughterBoard = 9,
1847 EfiBaseBoardTypeMotherBoard = 0xA,
1848 EfiBaseBoardTypeProcessorMemoryModule = 0xB,
1849 EfiBaseBoardTypeProcessorIOModule = 0xC,
1850 EfiBaseBoardTypeInterconnectBoard = 0xD
1851 } EFI_BASE_BOARD_TYPE;
1852
1853 typedef struct {
1854 STRING_REF BaseBoardManufacturer;
1855 STRING_REF BaseBoardProductName;
1856 STRING_REF BaseBoardVersion;
1857 STRING_REF BaseBoardSerialNumber;
1858 STRING_REF BaseBoardAssetTag;
1859 STRING_REF BaseBoardChassisLocation;
1860 EFI_BASE_BOARD_FEATURE_FLAGS BaseBoardFeatureFlags;
1861 EFI_BASE_BOARD_TYPE BaseBoardType;
1862 EFI_INTER_LINK_DATA BaseBoardChassisLink;
1863 UINT32 BaseBoardNumberLinks;
1864 EFI_INTER_LINK_DATA LinkN;
1865 } EFI_MISC_BASE_BOARD_MANUFACTURER_DATA;
1866
1867 //
1868 // Misc. System/Chassis Enclosure - SMBIOS Type 3
1869 //
1870 #define EFI_MISC_CHASSIS_MANUFACTURER_RECORD_NUMBER 0x00000005
1871
1872 typedef enum {
1873 EfiMiscChassisTypeOther = 0x1,
1874 EfiMiscChassisTypeUnknown = 0x2,
1875 EfiMiscChassisTypeDeskTop = 0x3,
1876 EfiMiscChassisTypeLowProfileDesktop = 0x4,
1877 EfiMiscChassisTypePizzaBox = 0x5,
1878 EfiMiscChassisTypeMiniTower = 0x6,
1879 EfiMiscChassisTypeTower = 0x7,
1880 EfiMiscChassisTypePortable = 0x8,
1881 EfiMiscChassisTypeLapTop = 0x9,
1882 EfiMiscChassisTypeNotebook = 0xA,
1883 EfiMiscChassisTypeHandHeld = 0xB,
1884 EfiMiscChassisTypeDockingStation = 0xC,
1885 EfiMiscChassisTypeAllInOne = 0xD,
1886 EfiMiscChassisTypeSubNotebook = 0xE,
1887 EfiMiscChassisTypeSpaceSaving = 0xF,
1888 EfiMiscChassisTypeLunchBox = 0x10,
1889 EfiMiscChassisTypeMainServerChassis = 0x11,
1890 EfiMiscChassisTypeExpansionChassis = 0x12,
1891 EfiMiscChassisTypeSubChassis = 0x13,
1892 EfiMiscChassisTypeBusExpansionChassis = 0x14,
1893 EfiMiscChassisTypePeripheralChassis = 0x15,
1894 EfiMiscChassisTypeRaidChassis = 0x16,
1895 EfiMiscChassisTypeRackMountChassis = 0x17,
1896 EfiMiscChassisTypeSealedCasePc = 0x18,
1897 EfiMiscChassisMultiSystemChassis = 0x19
1898 } EFI_MISC_CHASSIS_TYPE;
1899
1900 typedef struct {
1901 ///
1902 /// Inconsistent with specification here:
1903 /// In MiscSubclass 0.9 specification, it has the incorrect field name "EFI_MISC_CHASSIS_TYPE".
1904 /// Change it to "ChassisType" to pass build.
1905 ///
1906 UINT32 ChassisType :16;
1907 UINT32 ChassisLockPresent:1;
1908 UINT32 Reserved :15;
1909 } EFI_MISC_CHASSIS_STATUS;
1910
1911 typedef enum {
1912 EfiChassisStateOther = 0x01,
1913 EfiChassisStateUnknown = 0x02,
1914 EfiChassisStateSafe = 0x03,
1915 EfiChassisStateWarning = 0x04,
1916 EfiChassisStateCritical = 0x05,
1917 EfiChassisStateNonRecoverable = 0x06
1918 } EFI_MISC_CHASSIS_STATE;
1919
1920 typedef enum {
1921 EfiChassisSecurityStatusOther = 0x01,
1922 EfiChassisSecurityStatusUnknown = 0x02,
1923 EfiChassisSecurityStatusNone = 0x03,
1924 EfiChassisSecurityStatusExternalInterfaceLockedOut = 0x04,
1925 EfiChassisSecurityStatusExternalInterfaceLockedEnabled = 0x05
1926 } EFI_MISC_CHASSIS_SECURITY_STATE;
1927
1928 typedef struct {
1929 UINT32 RecordType :1;
1930 UINT32 Type :7;
1931 UINT32 Reserved :24;
1932 } EFI_MISC_ELEMENT_TYPE;
1933
1934 typedef struct {
1935 EFI_MISC_ELEMENT_TYPE ChassisElementType;
1936 EFI_INTER_LINK_DATA ChassisElementStructure;
1937 EFI_BASE_BOARD_TYPE ChassisBaseBoard;
1938 UINT32 ChassisElementMinimum;
1939 UINT32 ChassisElementMaximum;
1940 } EFI_MISC_ELEMENTS;
1941
1942 typedef struct {
1943 STRING_REF ChassisManufacturer;
1944 STRING_REF ChassisVersion;
1945 STRING_REF ChassisSerialNumber;
1946 STRING_REF ChassisAssetTag;
1947 EFI_MISC_CHASSIS_STATUS ChassisType;
1948 EFI_MISC_CHASSIS_STATE ChassisBootupState;
1949 EFI_MISC_CHASSIS_STATE ChassisPowerSupplyState;
1950 EFI_MISC_CHASSIS_STATE ChassisThermalState;
1951 EFI_MISC_CHASSIS_SECURITY_STATE ChassisSecurityState;
1952 UINT32 ChassisOemDefined;
1953 UINT32 ChassisHeight;
1954 UINT32 ChassisNumberPowerCords;
1955 UINT32 ChassisElementCount;
1956 UINT32 ChassisElementRecordLength;
1957 EFI_MISC_ELEMENTS ChassisElements;
1958 } EFI_MISC_CHASSIS_MANUFACTURER_DATA;
1959
1960 //
1961 // Misc. Port Connector Information - SMBIOS Type 8
1962 //
1963 #define EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR_RECORD_NUMBER 0x00000006
1964
1965 typedef enum {
1966 EfiPortConnectorTypeNone = 0x00,
1967 EfiPortConnectorTypeCentronics = 0x01,
1968 EfiPortConnectorTypeMiniCentronics = 0x02,
1969 EfiPortConnectorTypeProprietary = 0x03,
1970 EfiPortConnectorTypeDB25Male = 0x04,
1971 EfiPortConnectorTypeDB25Female = 0x05,
1972 EfiPortConnectorTypeDB15Male = 0x06,
1973 EfiPortConnectorTypeDB15Female = 0x07,
1974 EfiPortConnectorTypeDB9Male = 0x08,
1975 EfiPortConnectorTypeDB9Female = 0x09,
1976 EfiPortConnectorTypeRJ11 = 0x0A,
1977 EfiPortConnectorTypeRJ45 = 0x0B,
1978 EfiPortConnectorType50PinMiniScsi = 0x0C,
1979 EfiPortConnectorTypeMiniDin = 0x0D,
1980 EfiPortConnectorTypeMicriDin = 0x0E,
1981 EfiPortConnectorTypePS2 = 0x0F,
1982 EfiPortConnectorTypeInfrared = 0x10,
1983 EfiPortConnectorTypeHpHil = 0x11,
1984 EfiPortConnectorTypeUsb = 0x12,
1985 EfiPortConnectorTypeSsaScsi = 0x13,
1986 EfiPortConnectorTypeCircularDin8Male = 0x14,
1987 EfiPortConnectorTypeCircularDin8Female = 0x15,
1988 EfiPortConnectorTypeOnboardIde = 0x16,
1989 EfiPortConnectorTypeOnboardFloppy = 0x17,
1990 EfiPortConnectorType9PinDualInline = 0x18,
1991 EfiPortConnectorType25PinDualInline = 0x19,
1992 EfiPortConnectorType50PinDualInline = 0x1A,
1993 EfiPortConnectorType68PinDualInline = 0x1B,
1994 EfiPortConnectorTypeOnboardSoundInput = 0x1C,
1995 EfiPortConnectorTypeMiniCentronicsType14 = 0x1D,
1996 EfiPortConnectorTypeMiniCentronicsType26 = 0x1E,
1997 EfiPortConnectorTypeHeadPhoneMiniJack = 0x1F,
1998 EfiPortConnectorTypeBNC = 0x20,
1999 EfiPortConnectorType1394 = 0x21,
2000 EfiPortConnectorTypePC98 = 0xA0,
2001 EfiPortConnectorTypePC98Hireso = 0xA1,
2002 EfiPortConnectorTypePCH98 = 0xA2,
2003 EfiPortConnectorTypePC98Note = 0xA3,
2004 EfiPortConnectorTypePC98Full = 0xA4,
2005 EfiPortConnectorTypeOther = 0xFF
2006 } EFI_MISC_PORT_CONNECTOR_TYPE;
2007
2008 typedef enum {
2009 EfiPortTypeNone = 0x00,
2010 EfiPortTypeParallelXtAtCompatible = 0x01,
2011 EfiPortTypeParallelPortPs2 = 0x02,
2012 EfiPortTypeParallelPortEcp = 0x03,
2013 EfiPortTypeParallelPortEpp = 0x04,
2014 EfiPortTypeParallelPortEcpEpp = 0x05,
2015 EfiPortTypeSerialXtAtCompatible = 0x06,
2016 EfiPortTypeSerial16450Compatible = 0x07,
2017 EfiPortTypeSerial16550Compatible = 0x08,
2018 EfiPortTypeSerial16550ACompatible = 0x09,
2019 EfiPortTypeScsi = 0x0A,
2020 EfiPortTypeMidi = 0x0B,
2021 EfiPortTypeJoyStick = 0x0C,
2022 EfiPortTypeKeyboard = 0x0D,
2023 EfiPortTypeMouse = 0x0E,
2024 EfiPortTypeSsaScsi = 0x0F,
2025 EfiPortTypeUsb = 0x10,
2026 EfiPortTypeFireWire = 0x11,
2027 EfiPortTypePcmciaTypeI = 0x12,
2028 EfiPortTypePcmciaTypeII = 0x13,
2029 EfiPortTypePcmciaTypeIII = 0x14,
2030 EfiPortTypeCardBus = 0x15,
2031 EfiPortTypeAccessBusPort = 0x16,
2032 EfiPortTypeScsiII = 0x17,
2033 EfiPortTypeScsiWide = 0x18,
2034 EfiPortTypePC98 = 0x19,
2035 EfiPortTypePC98Hireso = 0x1A,
2036 EfiPortTypePCH98 = 0x1B,
2037 EfiPortTypeVideoPort = 0x1C,
2038 EfiPortTypeAudioPort = 0x1D,
2039 EfiPortTypeModemPort = 0x1E,
2040 EfiPortTypeNetworkPort = 0x1F,
2041 EfiPortType8251Compatible = 0xA0,
2042 EfiPortType8251FifoCompatible = 0xA1,
2043 EfiPortTypeOther = 0xFF
2044 } EFI_MISC_PORT_TYPE;
2045
2046 typedef struct {
2047 STRING_REF PortInternalConnectorDesignator;
2048 STRING_REF PortExternalConnectorDesignator;
2049 EFI_MISC_PORT_CONNECTOR_TYPE PortInternalConnectorType;
2050 EFI_MISC_PORT_CONNECTOR_TYPE PortExternalConnectorType;
2051 EFI_MISC_PORT_TYPE PortType;
2052 ///
2053 /// Inconsistent with specification here:
2054 /// In MiscSubclass specification 0.9, this type of field is defined as EFI_DEVICE_PATH_PROTOCOL,
2055 /// which causes the implementation some complexity. Keep it unchanged for backward
2056 /// compatibility.
2057 ///
2058 EFI_MISC_PORT_DEVICE_PATH PortPath;
2059 } EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR_DATA;
2060
2061 //
2062 // Misc. System Slots - SMBIOS Type 9
2063 //
2064 #define EFI_MISC_SYSTEM_SLOT_DESIGNATION_RECORD_NUMBER 0x00000007
2065
2066 typedef enum {
2067 EfiSlotTypeOther = 0x01,
2068 EfiSlotTypeUnknown = 0x02,
2069 EfiSlotTypeIsa = 0x03,
2070 EfiSlotTypeMca = 0x04,
2071 EfiSlotTypeEisa = 0x05,
2072 EfiSlotTypePci = 0x06,
2073 EfiSlotTypePcmcia = 0x07,
2074 EfiSlotTypeVlVesa = 0x08,
2075 EfiSlotTypeProprietary = 0x09,
2076 EfiSlotTypeProcessorCardSlot = 0x0A,
2077 EfiSlotTypeProprietaryMemoryCardSlot = 0x0B,
2078 EfiSlotTypeIORiserCardSlot = 0x0C,
2079 EfiSlotTypeNuBus = 0x0D,
2080 EfiSlotTypePci66MhzCapable = 0x0E,
2081 EfiSlotTypeAgp = 0x0F,
2082 ///
2083 /// Inconsistent with specification here:
2084 /// In MiscSubclass specification 0.9, its naming should be EfiSlotTypeAgp2X
2085 /// rather than EfiSlotTypeApg2X.
2086 ///
2087 EfiSlotTypeAgp2X = 0x10,
2088 EfiSlotTypeAgp4X = 0x11,
2089 EfiSlotTypePciX = 0x12,
2090 EfiSlotTypeAgp8x = 0x13,
2091 EfiSlotTypePC98C20 = 0xA0,
2092 EfiSlotTypePC98C24 = 0xA1,
2093 EfiSlotTypePC98E = 0xA2,
2094 EfiSlotTypePC98LocalBus = 0xA3,
2095 EfiSlotTypePC98Card = 0xA4,
2096 ///
2097 /// Inconsistent with specification here:
2098 /// In MiscSubclass specification 0.9, this field isn't defined.
2099 /// It's introduced for SmBios 2.6 specification type 9.
2100 ///
2101 EfiSlotTypePciExpress = 0xA5
2102 } EFI_MISC_SLOT_TYPE;
2103
2104 typedef enum {
2105 EfiSlotDataBusWidthOther = 0x01,
2106 EfiSlotDataBusWidthUnknown = 0x02,
2107 EfiSlotDataBusWidth8Bit = 0x03,
2108 EfiSlotDataBusWidth16Bit = 0x04,
2109 EfiSlotDataBusWidth32Bit = 0x05,
2110 EfiSlotDataBusWidth64Bit = 0x06,
2111 EfiSlotDataBusWidth128Bit = 0x07
2112 } EFI_MISC_SLOT_DATA_BUS_WIDTH;
2113
2114 typedef enum {
2115 EfiSlotUsageOther = 1,
2116 EfiSlotUsageUnknown = 2,
2117 EfiSlotUsageAvailable = 3,
2118 EfiSlotUsageInUse = 4
2119 } EFI_MISC_SLOT_USAGE;
2120
2121 typedef enum {
2122 EfiSlotLengthOther = 1,
2123 EfiSlotLengthUnknown = 2,
2124 EfiSlotLengthShort = 3,
2125 EfiSlotLengthLong = 4
2126 } EFI_MISC_SLOT_LENGTH;
2127
2128 typedef struct {
2129 UINT32 CharacteristicsUnknown :1;
2130 UINT32 Provides50Volts :1;
2131 UINT32 Provides33Volts :1;
2132 UINT32 SharedSlot :1;
2133 UINT32 PcCard16Supported :1;
2134 UINT32 CardBusSupported :1;
2135 UINT32 ZoomVideoSupported :1;
2136 UINT32 ModemRingResumeSupported:1;
2137 UINT32 PmeSignalSupported :1;
2138 UINT32 HotPlugDevicesSupported :1;
2139 UINT32 SmbusSignalSupported :1;
2140 UINT32 Reserved :21;
2141 } EFI_MISC_SLOT_CHARACTERISTICS;
2142
2143 typedef struct {
2144 STRING_REF SlotDesignation;
2145 EFI_MISC_SLOT_TYPE SlotType;
2146 EFI_MISC_SLOT_DATA_BUS_WIDTH SlotDataBusWidth;
2147 EFI_MISC_SLOT_USAGE SlotUsage;
2148 EFI_MISC_SLOT_LENGTH SlotLength;
2149 UINT16 SlotId;
2150 EFI_MISC_SLOT_CHARACTERISTICS SlotCharacteristics;
2151 EFI_DEVICE_PATH_PROTOCOL SlotDevicePath;
2152 } EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA;
2153
2154 //
2155 // Misc. Onboard Device - SMBIOS Type 10
2156 //
2157 #define EFI_MISC_ONBOARD_DEVICE_RECORD_NUMBER 0x00000008
2158
2159 typedef enum {
2160 EfiOnBoardDeviceTypeOther = 1,
2161 EfiOnBoardDeviceTypeUnknown = 2,
2162 EfiOnBoardDeviceTypeVideo = 3,
2163 EfiOnBoardDeviceTypeScsiController = 4,
2164 EfiOnBoardDeviceTypeEthernet = 5,
2165 EfiOnBoardDeviceTypeTokenRing = 6,
2166 EfiOnBoardDeviceTypeSound = 7
2167 } EFI_MISC_ONBOARD_DEVICE_TYPE;
2168
2169 typedef struct {
2170 UINT32 DeviceType :16;
2171 UINT32 DeviceEnabled :1;
2172 UINT32 Reserved :15;
2173 } EFI_MISC_ONBOARD_DEVICE_STATUS;
2174
2175 typedef struct {
2176 STRING_REF OnBoardDeviceDescription;
2177 ///
2178 /// Inconsistent with specification here:
2179 /// In MiscSubclass specification 0.9, the name is OnBoardDeviceType.
2180 /// Keep it unchanged for backward compatibilty.
2181 ///
2182 EFI_MISC_ONBOARD_DEVICE_STATUS OnBoardDeviceStatus;
2183 EFI_DEVICE_PATH_PROTOCOL OnBoardDevicePath;
2184 } EFI_MISC_ONBOARD_DEVICE_DATA;
2185
2186 //
2187 // Misc. BIOS Language Information - SMBIOS Type 11
2188 //
2189 #define EFI_MISC_OEM_STRING_RECORD_NUMBER 0x00000009
2190
2191 typedef struct {
2192 STRING_REF OemStringRef[1];
2193 } EFI_MISC_OEM_STRING_DATA;
2194
2195 //
2196 // Misc. System Options - SMBIOS Type 12
2197 //
2198 typedef struct {
2199 STRING_REF SystemOptionStringRef[1];
2200 } EFI_MISC_SYSTEM_OPTION_STRING_DATA;
2201
2202 #define EFI_MISC_SYSTEM_OPTION_STRING_RECORD_NUMBER 0x0000000A
2203
2204 //
2205 // Misc. Number of Installable Languages - SMBIOS Type 13
2206 //
2207 #define EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES_RECORD_NUMBER 0x0000000B
2208
2209 typedef struct {
2210 UINT32 AbbreviatedLanguageFormat :1;
2211 UINT32 Reserved :31;
2212 } EFI_MISC_LANGUAGE_FLAGS;
2213
2214 typedef struct {
2215 UINT16 NumberOfInstallableLanguages;
2216 EFI_MISC_LANGUAGE_FLAGS LanguageFlags;
2217 UINT16 CurrentLanguageNumber;
2218 } EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES_DATA;
2219
2220 //
2221 // Misc. System Language String
2222 //
2223 #define EFI_MISC_SYSTEM_LANGUAGE_STRING_RECORD_NUMBER 0x0000000C
2224
2225 typedef struct {
2226 UINT16 LanguageId;
2227 STRING_REF SystemLanguageString;
2228 } EFI_MISC_SYSTEM_LANGUAGE_STRING_DATA;
2229
2230 //
2231 // Group Associations - SMBIOS Type 14
2232 //
2233 #define EFI_MISC_GROUP_NAME_RECORD_NUMBER 0x0000000D
2234
2235 typedef struct {
2236 STRING_REF GroupName;
2237 UINT16 NumberGroupItems;
2238 UINT16 GroupId;
2239 } EFI_MISC_GROUP_NAME_DATA;
2240
2241 //
2242 // Group Item Set Element
2243 //
2244 #define EFI_MISC_GROUP_ITEM_SET_RECORD_NUMBER 0x0000000E
2245
2246 typedef struct {
2247 EFI_GUID SubClass;
2248 EFI_INTER_LINK_DATA GroupLink;
2249 UINT16 GroupId;
2250 UINT16 GroupElementId;
2251 } EFI_MISC_GROUP_ITEM_SET_DATA;
2252
2253 //
2254 // Misc. Pointing Device Type - SMBIOS Type 21
2255 //
2256 #define EFI_MISC_POINTING_DEVICE_TYPE_RECORD_NUMBER 0x0000000F
2257
2258 typedef enum {
2259 EfiPointingDeviceTypeOther = 0x01,
2260 EfiPointingDeviceTypeUnknown = 0x02,
2261 EfiPointingDeviceTypeMouse = 0x03,
2262 EfiPointingDeviceTypeTrackBall = 0x04,
2263 EfiPointingDeviceTypeTrackPoint = 0x05,
2264 EfiPointingDeviceTypeGlidePoint = 0x06,
2265 EfiPointingDeviceTouchPad = 0x07,
2266 EfiPointingDeviceTouchScreen = 0x08,
2267 EfiPointingDeviceOpticalSensor = 0x09
2268 } EFI_MISC_POINTING_DEVICE_TYPE;
2269
2270 typedef enum {
2271 EfiPointingDeviceInterfaceOther = 0x01,
2272 EfiPointingDeviceInterfaceUnknown = 0x02,
2273 EfiPointingDeviceInterfaceSerial = 0x03,
2274 EfiPointingDeviceInterfacePs2 = 0x04,
2275 EfiPointingDeviceInterfaceInfrared = 0x05,
2276 EfiPointingDeviceInterfaceHpHil = 0x06,
2277 EfiPointingDeviceInterfaceBusMouse = 0x07,
2278 EfiPointingDeviceInterfaceADB = 0x08,
2279 EfiPointingDeviceInterfaceBusMouseDB9 = 0xA0,
2280 EfiPointingDeviceInterfaceBusMouseMicroDin = 0xA1,
2281 EfiPointingDeviceInterfaceUsb = 0xA2
2282 } EFI_MISC_POINTING_DEVICE_INTERFACE;
2283
2284 typedef struct {
2285 EFI_MISC_POINTING_DEVICE_TYPE PointingDeviceType;
2286 EFI_MISC_POINTING_DEVICE_INTERFACE PointingDeviceInterface;
2287 UINT16 NumberPointingDeviceButtons;
2288 EFI_DEVICE_PATH_PROTOCOL PointingDevicePath;
2289 } EFI_MISC_POINTING_DEVICE_TYPE_DATA;
2290
2291 //
2292 // Portable Battery - SMBIOS Type 22
2293 //
2294 ///
2295 /// Inconsistent with specification here:
2296 /// In MiscSubclass specification 0.9, the name is EFI_MISC_BATTERY_LOCATION_RECORD_NUMBER.
2297 /// Keep it unchanged for backward compatibilty.
2298 ///
2299 #define EFI_MISC_PORTABLE_BATTERY_RECORD_NUMBER 0x00000010
2300
2301 ///
2302 /// Inconsistent with specification here:
2303 /// In MiscSubclass specification 0.9, the structure name is EFI_MISC_BATTERY_DEVICE_CHEMISTRY.
2304 /// And all field namings are also different with specification.
2305 /// Keep it unchanged for backward compatibilty.
2306 ///
2307 typedef enum {
2308 EfiPortableBatteryDeviceChemistryOther = 1,
2309 EfiPortableBatteryDeviceChemistryUnknown = 2,
2310 EfiPortableBatteryDeviceChemistryLeadAcid = 3,
2311 EfiPortableBatteryDeviceChemistryNickelCadmium = 4,
2312 EfiPortableBatteryDeviceChemistryNickelMetalHydride = 5,
2313 EfiPortableBatteryDeviceChemistryLithiumIon = 6,
2314 EfiPortableBatteryDeviceChemistryZincAir = 7,
2315 EfiPortableBatteryDeviceChemistryLithiumPolymer = 8
2316 } EFI_MISC_PORTABLE_BATTERY_DEVICE_CHEMISTRY;
2317
2318 ///
2319 /// Inconsistent with specification here:
2320 /// In MiscSubclass specification 0.9, the structure name is EFI_MISC_BATTERY_LOCATION_DATA.
2321 /// Also, the name and the order of the fields vary with specifications.
2322 /// Keep it unchanged for backward compatibilty.
2323 ///
2324 typedef struct {
2325 STRING_REF Location;
2326 STRING_REF Manufacturer;
2327 STRING_REF ManufactureDate;
2328 STRING_REF SerialNumber;
2329 STRING_REF DeviceName;
2330 EFI_MISC_PORTABLE_BATTERY_DEVICE_CHEMISTRY
2331 DeviceChemistry;
2332 UINT16 DesignCapacity;
2333 UINT16 DesignVoltage;
2334 STRING_REF SBDSVersionNumber;
2335 UINT8 MaximumError;
2336 UINT16 SBDSSerialNumber;
2337 UINT16 SBDSManufactureDate;
2338 STRING_REF SBDSDeviceChemistry;
2339 UINT8 DesignCapacityMultiplier;
2340 UINT32 OEMSpecific;
2341 UINT8 BatteryNumber; // Temporary
2342 BOOLEAN Valid; // Is entry valid - Temporary
2343 } EFI_MISC_PORTABLE_BATTERY;
2344
2345
2346 //
2347 // Misc. Reset Capabilities - SMBIOS Type 23
2348 //
2349 #define EFI_MISC_RESET_CAPABILITIES_RECORD_NUMBER 0x00000011
2350
2351 typedef struct {
2352 UINT32 Status :1;
2353 UINT32 BootOption :2;
2354 UINT32 BootOptionOnLimit :2;
2355 UINT32 WatchdogTimerPresent:1;
2356 UINT32 Reserved :26;
2357 } EFI_MISC_RESET_CAPABILITIES_TYPE;
2358
2359 typedef struct {
2360 EFI_MISC_RESET_CAPABILITIES_TYPE ResetCapabilities;
2361 UINT16 ResetCount;
2362 UINT16 ResetLimit;
2363 UINT16 ResetTimerInterval;
2364 UINT16 ResetTimeout;
2365 } EFI_MISC_RESET_CAPABILITIES;
2366
2367 typedef struct {
2368 EFI_MISC_RESET_CAPABILITIES ResetCapabilities;
2369 UINT16 ResetCount;
2370 UINT16 ResetLimit;
2371 UINT16 ResetTimerInterval;
2372 UINT16 ResetTimeout;
2373 } EFI_MISC_RESET_CAPABILITIES_DATA;
2374
2375 //
2376 // Misc. Hardware Security - SMBIOS Type 24
2377 //
2378 #define EFI_MISC_HARDWARE_SECURITY_SETTINGS_DATA_RECORD_NUMBER 0x00000012
2379
2380 ///
2381 /// Inconsistent with specification here:
2382 /// The MiscSubclass specification 0.9 only mentions the possible value of each field in
2383 /// EFI_MISC_HARDWARE_SECURITY_SETTINGS.
2384 /// It's implementation-specific in order to to simplify the code logic.
2385 ///
2386 typedef enum {
2387 EfiHardwareSecurityStatusDisabled = 0,
2388 EfiHardwareSecurityStatusEnabled = 1,
2389 EfiHardwareSecurityStatusNotImplemented = 2,
2390 EfiHardwareSecurityStatusUnknown = 3
2391 } EFI_MISC_HARDWARE_SECURITY_STATUS;
2392
2393 typedef struct {
2394 UINT32 FrontPanelResetStatus :2;
2395 UINT32 AdministratorPasswordStatus :2;
2396 UINT32 KeyboardPasswordStatus :2;
2397 UINT32 PowerOnPasswordStatus :2;
2398 UINT32 Reserved :24;
2399 } EFI_MISC_HARDWARE_SECURITY_SETTINGS;
2400
2401 typedef struct {
2402 EFI_MISC_HARDWARE_SECURITY_SETTINGS HardwareSecuritySettings;
2403 } EFI_MISC_HARDWARE_SECURITY_SETTINGS_DATA;
2404
2405 //
2406 // System Power Controls - SMBIOS Type 25
2407 //
2408 #define EFI_MISC_SCHEDULED_POWER_ON_MONTH_RECORD_NUMBER 0x00000013
2409
2410 typedef struct {
2411 UINT16 ScheduledPoweronMonth;
2412 UINT16 ScheduledPoweronDayOfMonth;
2413 UINT16 ScheduledPoweronHour;
2414 UINT16 ScheduledPoweronMinute;
2415 UINT16 ScheduledPoweronSecond;
2416 } EFI_MISC_SCHEDULED_POWER_ON_MONTH_DATA;
2417
2418 //
2419 // Voltage Probe - SMBIOS Type 26
2420 //
2421 #define EFI_MISC_VOLTAGE_PROBE_DESCRIPTION_RECORD_NUMBER 0x00000014
2422
2423 typedef struct {
2424 UINT32 VoltageProbeSite :5;
2425 UINT32 VoltageProbeStatus :3;
2426 UINT32 Reserved :24;
2427 } EFI_MISC_VOLTAGE_PROBE_LOCATION;
2428
2429 typedef struct {
2430 STRING_REF VoltageProbeDescription;
2431 EFI_MISC_VOLTAGE_PROBE_LOCATION VoltageProbeLocation;
2432 EFI_EXP_BASE10_DATA VoltageProbeMaximumValue;
2433 EFI_EXP_BASE10_DATA VoltageProbeMinimumValue;
2434 EFI_EXP_BASE10_DATA VoltageProbeResolution;
2435 EFI_EXP_BASE10_DATA VoltageProbeTolerance;
2436 EFI_EXP_BASE10_DATA VoltageProbeAccuracy;
2437 EFI_EXP_BASE10_DATA VoltageProbeNominalValue;
2438 EFI_EXP_BASE10_DATA MDLowerNoncriticalThreshold;
2439 EFI_EXP_BASE10_DATA MDUpperNoncriticalThreshold;
2440 EFI_EXP_BASE10_DATA MDLowerCriticalThreshold;
2441 EFI_EXP_BASE10_DATA MDUpperCriticalThreshold;
2442 EFI_EXP_BASE10_DATA MDLowerNonrecoverableThreshold;
2443 EFI_EXP_BASE10_DATA MDUpperNonrecoverableThreshold;
2444 UINT32 VoltageProbeOemDefined;
2445 } EFI_MISC_VOLTAGE_PROBE_DESCRIPTION_DATA;
2446
2447 //
2448 // Cooling Device - SMBIOS Type 27
2449 //
2450 #define EFI_MISC_COOLING_DEVICE_TEMP_LINK_RECORD_NUMBER 0x00000015
2451
2452 typedef struct {
2453 UINT32 CoolingDevice :5;
2454 UINT32 CoolingDeviceStatus :3;
2455 UINT32 Reserved :24;
2456 } EFI_MISC_COOLING_DEVICE_TYPE;
2457
2458 typedef struct {
2459 EFI_MISC_COOLING_DEVICE_TYPE CoolingDeviceType;
2460 EFI_INTER_LINK_DATA CoolingDeviceTemperatureLink;
2461 UINT16 CoolingDeviceUnitGroup;
2462 EFI_EXP_BASE10_DATA CoolingDeviceNominalSpeed;
2463 UINT32 CoolingDeviceOemDefined;
2464 } EFI_MISC_COOLING_DEVICE_TEMP_LINK_DATA;
2465
2466 //
2467 // Temperature Probe - SMBIOS Type 28
2468 //
2469 #define EFI_MISC_TEMPERATURE_PROBE_DESCRIPTION_RECORD_NUMBER 0x00000016
2470
2471 typedef struct {
2472 UINT32 TemperatureProbeSite :5;
2473 UINT32 TemperatureProbeStatus :3;
2474 UINT32 Reserved :24;
2475 } EFI_MISC_TEMPERATURE_PROBE_LOCATION;
2476
2477 typedef struct {
2478 STRING_REF TemperatureProbeDescription;
2479 EFI_MISC_TEMPERATURE_PROBE_LOCATION
2480 TemperatureProbeLocation;
2481 EFI_EXP_BASE10_DATA TemperatureProbeMaximumValue;
2482 EFI_EXP_BASE10_DATA TemperatureProbeMinimumValue;
2483 EFI_EXP_BASE10_DATA TemperatureProbeResolution;
2484 EFI_EXP_BASE10_DATA TemperatureProbeTolerance;
2485 EFI_EXP_BASE10_DATA TemperatureProbeAccuracy;
2486 EFI_EXP_BASE10_DATA TemperatureProbeNominalValue;
2487 EFI_EXP_BASE10_DATA MDLowerNoncriticalThreshold;
2488 EFI_EXP_BASE10_DATA MDUpperNoncriticalThreshold;
2489 EFI_EXP_BASE10_DATA MDLowerCriticalThreshold;
2490 EFI_EXP_BASE10_DATA MDUpperCriticalThreshold;
2491 EFI_EXP_BASE10_DATA MDLowerNonrecoverableThreshold;
2492 EFI_EXP_BASE10_DATA MDUpperNonrecoverableThreshold;
2493 UINT32 TemperatureProbeOemDefined;
2494 } EFI_MISC_TEMPERATURE_PROBE_DESCRIPTION_DATA;
2495
2496 //
2497 // Electrical Current Probe - SMBIOS Type 29
2498 //
2499
2500 #define EFI_MISC_ELECTRICAL_CURRENT_PROBE_DESCRIPTION_RECORD_NUMBER 0x00000017
2501
2502 typedef struct {
2503 UINT32 ElectricalCurrentProbeSite :5;
2504 UINT32 ElectricalCurrentProbeStatus :3;
2505 UINT32 Reserved :24;
2506 } EFI_MISC_ELECTRICAL_CURRENT_PROBE_LOCATION;
2507
2508 typedef struct {
2509 STRING_REF ElectricalCurrentProbeDescription;
2510 EFI_MISC_ELECTRICAL_CURRENT_PROBE_LOCATION
2511 ElectricalCurrentProbeLocation;
2512 EFI_EXP_BASE10_DATA ElectricalCurrentProbeMaximumValue;
2513 EFI_EXP_BASE10_DATA ElectricalCurrentProbeMinimumValue;
2514 EFI_EXP_BASE10_DATA ElectricalCurrentProbeResolution;
2515 EFI_EXP_BASE10_DATA ElectricalCurrentProbeTolerance;
2516 EFI_EXP_BASE10_DATA ElectricalCurrentProbeAccuracy;
2517 EFI_EXP_BASE10_DATA ElectricalCurrentProbeNominalValue;
2518 EFI_EXP_BASE10_DATA MDLowerNoncriticalThreshold;
2519 EFI_EXP_BASE10_DATA MDUpperNoncriticalThreshold;
2520 EFI_EXP_BASE10_DATA MDLowerCriticalThreshold;
2521 EFI_EXP_BASE10_DATA MDUpperCriticalThreshold;
2522 EFI_EXP_BASE10_DATA MDLowerNonrecoverableThreshold;
2523 EFI_EXP_BASE10_DATA MDUpperNonrecoverableThreshold;
2524 UINT32 ElectricalCurrentProbeOemDefined;
2525 } EFI_MISC_ELECTRICAL_CURRENT_PROBE_DESCRIPTION_DATA;
2526
2527 //
2528 // Out-of-Band Remote Access - SMBIOS Type 30
2529 //
2530
2531 #define EFI_MISC_REMOTE_ACCESS_MANUFACTURER_DESCRIPTION_RECORD_NUMBER 0x00000018
2532
2533 typedef struct {
2534 UINT32 InboundConnectionEnabled :1;
2535 UINT32 OutboundConnectionEnabled :1;
2536 UINT32 Reserved :30;
2537 } EFI_MISC_REMOTE_ACCESS_CONNECTIONS;
2538
2539 typedef struct {
2540 STRING_REF RemoteAccessManufacturerNameDescription;
2541 EFI_MISC_REMOTE_ACCESS_CONNECTIONS RemoteAccessConnections;
2542 } EFI_MISC_REMOTE_ACCESS_MANUFACTURER_DESCRIPTION_DATA;
2543
2544 //
2545 // Misc. BIS Entry Point - SMBIOS Type 31
2546 //
2547 #define EFI_MISC_BIS_ENTRY_POINT_RECORD_NUMBER 0x00000019
2548
2549 typedef struct {
2550 EFI_PHYSICAL_ADDRESS BisEntryPoint;
2551 } EFI_MISC_BIS_ENTRY_POINT_DATA;
2552
2553 //
2554 // Misc. Boot Information - SMBIOS Type 32
2555 //
2556 #define EFI_MISC_BOOT_INFORMATION_STATUS_RECORD_NUMBER 0x0000001A
2557
2558 ///
2559 /// Inconsistent with specification here:
2560 /// In MiscSubclass specification 0.9, the structure name is EFI_MISC_BOOT_INFORMATION_STATUS_TYPE.
2561 /// Keep it unchanged for backward compatibilty.
2562 ///
2563 typedef enum {
2564 EfiBootInformationStatusNoError = 0x00,
2565 EfiBootInformationStatusNoBootableMedia = 0x01,
2566 EfiBootInformationStatusNormalOSFailedLoading = 0x02,
2567 EfiBootInformationStatusFirmwareDetectedFailure = 0x03,
2568 EfiBootInformationStatusOSDetectedFailure = 0x04,
2569 EfiBootInformationStatusUserRequestedBoot = 0x05,
2570 EfiBootInformationStatusSystemSecurityViolation = 0x06,
2571 EfiBootInformationStatusPreviousRequestedImage = 0x07,
2572 EfiBootInformationStatusWatchdogTimerExpired = 0x08,
2573 EfiBootInformationStatusStartReserved = 0x09,
2574 EfiBootInformationStatusStartOemSpecific = 0x80,
2575 EfiBootInformationStatusStartProductSpecific = 0xC0
2576 } EFI_MISC_BOOT_INFORMATION_STATUS_DATA_TYPE;
2577
2578 typedef struct {
2579 ///
2580 /// Inconsistent with specification here:
2581 /// In MiscSubclass specification 0.9, the field name is EFI_MISC_BOOT_INFORMATION_STATUS_TYPE.
2582 /// Keep it unchanged for backward compatibilty.
2583 ///
2584 EFI_MISC_BOOT_INFORMATION_STATUS_DATA_TYPE BootInformationStatus;
2585 UINT8 BootInformationData[9];
2586 } EFI_MISC_BOOT_INFORMATION_STATUS_DATA;
2587
2588 //
2589 // Management Device - SMBIOS Type 34
2590 //
2591 #define EFI_MISC_MANAGEMENT_DEVICE_DESCRIPTION_RECORD_NUMBER 0x0000001B
2592
2593 typedef enum {
2594 EfiManagementDeviceTypeOther = 0x01,
2595 EfiManagementDeviceTypeUnknown = 0x02,
2596 EfiManagementDeviceTypeLm75 = 0x03,
2597 EfiManagementDeviceTypeLm78 = 0x04,
2598 EfiManagementDeviceTypeLm79 = 0x05,
2599 EfiManagementDeviceTypeLm80 = 0x06,
2600 EfiManagementDeviceTypeLm81 = 0x07,
2601 EfiManagementDeviceTypeAdm9240 = 0x08,
2602 EfiManagementDeviceTypeDs1780 = 0x09,
2603 EfiManagementDeviceTypeMaxim1617 = 0x0A,
2604 EfiManagementDeviceTypeGl518Sm = 0x0B,
2605 EfiManagementDeviceTypeW83781D = 0x0C,
2606 EfiManagementDeviceTypeHt82H791 = 0x0D
2607 } EFI_MISC_MANAGEMENT_DEVICE_TYPE;
2608
2609 typedef enum {
2610 EfiManagementDeviceAddressTypeOther = 1,
2611 EfiManagementDeviceAddressTypeUnknown = 2,
2612 EfiManagementDeviceAddressTypeIOPort = 3,
2613 EfiManagementDeviceAddressTypeMemory = 4,
2614 EfiManagementDeviceAddressTypeSmbus = 5
2615 } EFI_MISC_MANAGEMENT_DEVICE_ADDRESS_TYPE;
2616
2617 typedef struct {
2618 STRING_REF ManagementDeviceDescription;
2619 EFI_MISC_MANAGEMENT_DEVICE_TYPE ManagementDeviceType;
2620 UINTN ManagementDeviceAddress;
2621 EFI_MISC_MANAGEMENT_DEVICE_ADDRESS_TYPE
2622 ManagementDeviceAddressType;
2623 } EFI_MISC_MANAGEMENT_DEVICE_DESCRIPTION_DATA;
2624
2625 //
2626 // Management Device Component - SMBIOS Type 35
2627 //
2628
2629 #define EFI_MISC_MANAGEMENT_DEVICE_COMPONENT_DESCRIPTION_RECORD_NUMBER 0x0000001C
2630
2631 typedef struct {
2632 STRING_REF ManagementDeviceComponentDescription;
2633 EFI_INTER_LINK_DATA ManagementDeviceLink;
2634 EFI_INTER_LINK_DATA ManagementDeviceComponentLink;
2635 ///
2636 /// Inconsistent with specification here:
2637 /// In MiscSubclass specification 0.9, this field is NOT defined.
2638 /// It's introduced for SmBios 2.6 specification type 35.
2639 ///
2640 EFI_INTER_LINK_DATA ManagementDeviceThresholdLink;
2641 } EFI_MISC_MANAGEMENT_DEVICE_COMPONENT_DESCRIPTION_DATA;
2642
2643 //
2644 // IPMI Data Record - SMBIOS Type 38
2645 //
2646 typedef enum {
2647 EfiIpmiOther = 0,
2648 EfiIpmiKcs = 1,
2649 EfiIpmiSmic = 2,
2650 EfiIpmiBt = 3
2651 } EFI_MISC_IPMI_INTERFACE_TYPE;
2652
2653 typedef struct {
2654 UINT16 IpmiSpecLeastSignificantDigit:4;
2655 UINT16 IpmiSpecMostSignificantDigit: 4;
2656 UINT16 Reserved: 8;
2657 } EFI_MISC_IPMI_SPECIFICATION_REVISION;
2658
2659 typedef struct {
2660 EFI_MISC_IPMI_INTERFACE_TYPE IpmiInterfaceType;
2661 EFI_MISC_IPMI_SPECIFICATION_REVISION
2662 IpmiSpecificationRevision;
2663 UINT16 IpmiI2CSlaveAddress;
2664 UINT16 IpmiNvDeviceAddress;
2665 UINT64 IpmiBaseAddress;
2666 EFI_DEVICE_PATH_PROTOCOL IpmiDevicePath;
2667 } EFI_MISC_IPMI_INTERFACE_TYPE_DATA;
2668
2669 #define EFI_MISC_IPMI_INTERFACE_TYPE_RECORD_NUMBER 0x0000001D
2670
2671 ///
2672 /// System Power supply Record - SMBIOS Type 39
2673 ///
2674 /// Inconsistent with specification here:
2675 /// In MiscSubclass specification 0.9, the type of all fields are UINT32.
2676 /// Keep it unchanged for backward compatibilty.
2677 ///
2678 typedef struct {
2679 UINT16 PowerSupplyHotReplaceable:1;
2680 UINT16 PowerSupplyPresent :1;
2681 UINT16 PowerSupplyUnplugged :1;
2682 UINT16 InputVoltageRangeSwitch :4;
2683 UINT16 PowerSupplyStatus :3;
2684 UINT16 PowerSupplyType :4;
2685 UINT16 Reserved :2;
2686 } EFI_MISC_POWER_SUPPLY_CHARACTERISTICS;
2687
2688 ///
2689 /// Inconsistent with specification here:
2690 /// In MiscSubclass specification 0.9, the structure name is EFI_MISC_POWER_SUPPLY_UNIT_GROUP_DATA.
2691 /// Keep it unchanged for backward compatibilty.
2692 ///
2693 typedef struct {
2694 UINT16 PowerUnitGroup;
2695 STRING_REF PowerSupplyLocation;
2696 STRING_REF PowerSupplyDeviceName;
2697 STRING_REF PowerSupplyManufacturer;
2698 STRING_REF PowerSupplySerialNumber;
2699 STRING_REF PowerSupplyAssetTagNumber;
2700 STRING_REF PowerSupplyModelPartNumber;
2701 STRING_REF PowerSupplyRevisionLevel;
2702 UINT16 PowerSupplyMaxPowerCapacity;
2703 EFI_MISC_POWER_SUPPLY_CHARACTERISTICS PowerSupplyCharacteristics;
2704 EFI_INTER_LINK_DATA PowerSupplyInputVoltageProbeLink;
2705 EFI_INTER_LINK_DATA PowerSupplyCoolingDeviceLink;
2706 EFI_INTER_LINK_DATA PowerSupplyInputCurrentProbeLink;
2707 } EFI_MISC_SYSTEM_POWER_SUPPLY_DATA;
2708
2709 #define EFI_MISC_SYSTEM_POWER_SUPPLY_RECORD_NUMBER 0x0000001E
2710
2711 ///
2712 /// OEM Data Record - SMBIOS Type 0x80-0xFF
2713 ///
2714 /// Inconsistent with specification here:
2715 /// In MiscSubclass specification 0.9, the structure name is EFI_SMBIOS_STRUCTURE_HDR.
2716 /// Due to this, the structure is commonly used by vendors to construct SmBios type 0x80~0xFF table,
2717 /// Keep it unchanged for backward compatibilty.
2718 ///
2719 typedef struct {
2720 UINT8 Type;
2721 UINT8 Length;
2722 UINT16 Handle;
2723 } SMBIOS_STRUCTURE_HDR;
2724
2725 typedef struct {
2726 ///
2727 /// Inconsistent with specification here:
2728 /// In MiscSubclass specification 0.9, the field name is EFI_SMBIOS_STRUCTURE_HDR.
2729 /// Keep it unchanged for backward compatibilty.
2730 ///
2731 SMBIOS_STRUCTURE_HDR Header;
2732 UINT8 RawData[1];
2733 } EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION_DATA;
2734
2735 #define EFI_MISC_SMBIOS_STRUCT_ENCAP_RECORD_NUMBER 0x0000001F
2736
2737 ///
2738 /// Misc. System Event Log - SMBIOS Type 15
2739 ///
2740 /// Inconsistent with specification here:
2741 /// In MiscSubclass specification 0.9, the following data structures are NOT defined.
2742 /// It's introduced for SmBios 2.6 specification type 15.
2743 ///
2744 #define EFI_MISC_SYSTEM_EVENT_LOG_RECORD_NUMBER 0x00000020
2745
2746 ///
2747 /// Inconsistent with specification here:
2748 /// In MiscSubclass specification 0.9, the following data structures are NOT defined.
2749 /// It's introduced for SmBios 2.6 specification type 15.
2750 ///
2751 typedef struct {
2752 UINT16 LogAreaLength;
2753 UINT16 LogHeaderStartOffset;
2754 UINT16 LogDataStartOffset;
2755 UINT8 AccessMethod;
2756 UINT8 LogStatus;
2757 UINT32 LogChangeToken;
2758 UINT32 AccessMethodAddress;
2759 UINT8 LogHeaderFormat;
2760 UINT8 NumberOfSupportedLogType;
2761 UINT8 LengthOfLogDescriptor;
2762 } EFI_MISC_SYSTEM_EVENT_LOG_DATA;
2763
2764 //
2765 // Access Method.
2766 // 0x00~0x04: as following definition
2767 // 0x05~0x7f: Available for future assignment.
2768 // 0x80~0xff: BIOS Vendor/OEM-specific.
2769 //
2770 #define ACCESS_INDEXIO_1INDEX8BIT_DATA8BIT 0x00
2771 #define ACCESS_INDEXIO_2INDEX8BIT_DATA8BIT 0X01
2772 #define ACCESS_INDEXIO_1INDEX16BIT_DATA8BIT 0X02
2773 #define ACCESS_MEMORY_MAPPED 0x03
2774 #define ACCESS_GPNV 0x04
2775
2776 ///
2777 /// Management Device Threshold Data Record - SMBIOS Type 36
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 36.
2782 ///
2783 #define EFI_MISC_MANAGEMENT_DEVICE_THRESHOLD_RECORD_NUMBER 0x00000021
2784 ///
2785 /// Inconsistent with specification here:
2786 /// In MiscSubclass specification 0.9, the following data structures are NOT defined.
2787 /// It's introduced for SmBios 2.6 specification type 36.
2788 ///
2789 typedef struct {
2790 UINT16 LowerThresNonCritical;
2791 UINT16 UpperThresNonCritical;
2792 UINT16 LowerThresCritical;
2793 UINT16 UpperThresCritical;
2794 UINT16 LowerThresNonRecover;
2795 UINT16 UpperThresNonRecover;
2796 } EFI_MISC_MANAGEMENT_DEVICE_THRESHOLD;
2797
2798 //
2799 // Declare the following strutures alias to use them more conviniently.
2800 //
2801 typedef EFI_MISC_LAST_PCI_BUS_DATA EFI_MISC_LAST_PCI_BUS;
2802 typedef EFI_MISC_BIOS_VENDOR_DATA EFI_MISC_BIOS_VENDOR;
2803 typedef EFI_MISC_SYSTEM_MANUFACTURER_DATA EFI_MISC_SYSTEM_MANUFACTURER;
2804 typedef EFI_MISC_BASE_BOARD_MANUFACTURER_DATA EFI_MISC_BASE_BOARD_MANUFACTURER;
2805 typedef EFI_MISC_CHASSIS_MANUFACTURER_DATA EFI_MISC_CHASSIS_MANUFACTURER;
2806 typedef EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR_DATA EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR;
2807 typedef EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA EFI_MISC_SYSTEM_SLOT_DESIGNATION;
2808 typedef EFI_MISC_ONBOARD_DEVICE_DATA EFI_MISC_ONBOARD_DEVICE;
2809 typedef EFI_MISC_POINTING_DEVICE_TYPE_DATA EFI_MISC_ONBOARD_DEVICE_TYPE_DATA;
2810 typedef EFI_MISC_OEM_STRING_DATA EFI_MISC_OEM_STRING;
2811 typedef EFI_MISC_SYSTEM_OPTION_STRING_DATA EFI_MISC_SYSTEM_OPTION_STRING;
2812 typedef EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES_DATA EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES;
2813 typedef EFI_MISC_SYSTEM_LANGUAGE_STRING_DATA EFI_MISC_SYSTEM_LANGUAGE_STRING;
2814 typedef EFI_MISC_SYSTEM_EVENT_LOG_DATA EFI_MISC_SYSTEM_EVENT_LOG;
2815 typedef EFI_MISC_BIS_ENTRY_POINT_DATA EFI_MISC_BIS_ENTRY_POINT;
2816 typedef EFI_MISC_BOOT_INFORMATION_STATUS_DATA EFI_MISC_BOOT_INFORMATION_STATUS;
2817 typedef EFI_MISC_SYSTEM_POWER_SUPPLY_DATA EFI_MISC_SYSTEM_POWER_SUPPLY;
2818 typedef EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION_DATA EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION;
2819 typedef EFI_MISC_SCHEDULED_POWER_ON_MONTH_DATA EFI_MISC_SCHEDULED_POWER_ON_MONTH;
2820 typedef EFI_MISC_VOLTAGE_PROBE_DESCRIPTION_DATA EFI_MISC_VOLTAGE_PROBE_DESCRIPTION;
2821 typedef EFI_MISC_COOLING_DEVICE_TEMP_LINK_DATA EFI_MISC_COOLING_DEVICE_TEMP_LINK;
2822 typedef EFI_MISC_TEMPERATURE_PROBE_DESCRIPTION_DATA EFI_MISC_TEMPERATURE_PROBE_DESCRIPTION;
2823 typedef EFI_MISC_REMOTE_ACCESS_MANUFACTURER_DESCRIPTION_DATA
2824 EFI_MISC_REMOTE_ACCESS_MANUFACTURER_DESCRIPTION;
2825 typedef EFI_MISC_MANAGEMENT_DEVICE_DESCRIPTION_DATA EFI_MISC_MANAGEMENT_DEVICE_DESCRIPTION;
2826 typedef EFI_MISC_ELECTRICAL_CURRENT_PROBE_DESCRIPTION_DATA EFI_MISC_ELECTRICAL_CURRENT_PROBE_DESCRIPTION;
2827
2828 ///
2829 /// Inconsistent with specification here:
2830 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
2831 /// It is implementation-specific to simplify the code logic.
2832 ///
2833 typedef union {
2834 EFI_MISC_LAST_PCI_BUS_DATA LastPciBus;
2835 EFI_MISC_BIOS_VENDOR_DATA MiscBiosVendor;
2836 EFI_MISC_SYSTEM_MANUFACTURER_DATA MiscSystemManufacturer;
2837 EFI_MISC_BASE_BOARD_MANUFACTURER_DATA MiscBaseBoardManufacturer;
2838 EFI_MISC_CHASSIS_MANUFACTURER_DATA MiscChassisManufacturer;
2839 EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR_DATA MiscPortInternalConnectorDesignator;
2840 EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA MiscSystemSlotDesignation;
2841 EFI_MISC_ONBOARD_DEVICE_DATA MiscOnboardDevice;
2842 EFI_MISC_OEM_STRING_DATA MiscOemString;
2843 EFI_MISC_SYSTEM_OPTION_STRING_DATA MiscOptionString;
2844 EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES_DATA NumberOfInstallableLanguages;
2845 EFI_MISC_SYSTEM_LANGUAGE_STRING_DATA MiscSystemLanguageString;
2846 EFI_MISC_SYSTEM_EVENT_LOG_DATA MiscSystemEventLog;
2847 EFI_MISC_GROUP_NAME_DATA MiscGroupNameData;
2848 EFI_MISC_GROUP_ITEM_SET_DATA MiscGroupItemSetData;
2849 EFI_MISC_POINTING_DEVICE_TYPE_DATA MiscPointingDeviceTypeData;
2850 EFI_MISC_RESET_CAPABILITIES_DATA MiscResetCapablilitiesData;
2851 EFI_MISC_HARDWARE_SECURITY_SETTINGS_DATA MiscHardwareSecuritySettingsData;
2852 EFI_MISC_SCHEDULED_POWER_ON_MONTH_DATA MiscScheduledPowerOnMonthData;
2853 EFI_MISC_VOLTAGE_PROBE_DESCRIPTION_DATA MiscVoltagePorbeDescriptionData;
2854 EFI_MISC_COOLING_DEVICE_TEMP_LINK_DATA MiscCoolingDeviceTempLinkData;
2855 EFI_MISC_TEMPERATURE_PROBE_DESCRIPTION_DATA MiscTemperatureProbeDescriptionData;
2856 EFI_MISC_ELECTRICAL_CURRENT_PROBE_DESCRIPTION_DATA MiscElectricalCurrentProbeDescriptionData;
2857 EFI_MISC_REMOTE_ACCESS_MANUFACTURER_DESCRIPTION_DATA
2858 MiscRemoteAccessManufacturerDescriptionData;
2859 EFI_MISC_BIS_ENTRY_POINT_DATA MiscBisEntryPoint;
2860 EFI_MISC_BOOT_INFORMATION_STATUS_DATA MiscBootInformationStatus;
2861 EFI_MISC_MANAGEMENT_DEVICE_DESCRIPTION_DATA MiscMangementDeviceDescriptionData;
2862 EFI_MISC_MANAGEMENT_DEVICE_COMPONENT_DESCRIPTION_DATA
2863 MiscmangementDeviceComponentDescriptionData;
2864 EFI_MISC_IPMI_INTERFACE_TYPE_DATA MiscIpmiInterfaceTypeData;
2865 EFI_MISC_SYSTEM_POWER_SUPPLY_DATA MiscPowerSupplyInfo;
2866 EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION_DATA MiscSmbiosStructEncapsulation;
2867 EFI_MISC_MANAGEMENT_DEVICE_THRESHOLD MiscManagementDeviceThreshold;
2868 } EFI_MISC_SUBCLASS_RECORDS;
2869
2870 ///
2871 /// Inconsistent with specification here:
2872 /// In MemSubclass specification 0.9, the following data structures are NOT defined.
2873 /// It is implementation-specific to simplify the code logic.
2874 ///
2875 typedef struct {
2876 EFI_SUBCLASS_TYPE1_HEADER Header;
2877 EFI_MISC_SUBCLASS_RECORDS Record;
2878 } EFI_MISC_SUBCLASS_DRIVER_DATA;
2879 #pragma pack()
2880
2881 ///
2882 /// Inconsistent with specification here:
2883 /// In DataHubSubclass specification 0.9 page 16, the following symbol is NOT defined.
2884 /// But value is meaningful, 0 means Reserved.
2885 ///
2886 #define EFI_SUBCLASS_INSTANCE_RESERVED 0
2887 ///
2888 /// Inconsistent with specification here:
2889 /// In DataHubSubclass specification 0.9 page 16, the following symbol is NOT defined.
2890 /// But value is meaningful, -1 means Not Applicable.
2891 ///
2892 #define EFI_SUBCLASS_INSTANCE_NON_APPLICABLE 0xFFFF
2893
2894 #endif