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