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