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