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