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