]>
git.proxmox.com Git - mirror_edk2.git/blob - ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.h
adacc41cf3cd50e9b47c7a39f4d340ac6c31a5e0
2 Build a table, each item is (key, info) pair.
3 and give a interface of query a string out of a table.
5 Copyright (c) 2005 - 2010, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #ifndef _SMBIOS_QUERY_TABLE_H
17 #define _SMBIOS_QUERY_TABLE_H
19 #define QUERY_TABLE_UNFOUND 0xFF
21 typedef struct TABLE_ITEM
{
27 // Print info by option
29 #define PRINT_INFO_OPTION(Value, Option) \
31 if (Option == SHOW_NONE) { \
34 if (Option < SHOW_DETAIL) { \
35 Print (L"0x%x\n", Value); \
56 // Display the element detail information
59 DisplayStructureTypeInfo (
65 // System Information (Type 1)
68 DisplaySystemWakeupType (
74 // System Enclosure (Type 3)
77 DisplaySystemEnclosureType (
82 DisplaySystemEnclosureStatus (
87 DisplaySESecurityStatus (
93 // Processor Information (Type 4)
96 DisplayProcessorType (
101 DisplayProcessorUpgrade (
107 // Memory Controller Information (Type 5)
110 DisplayMcErrorDetectMethod (
115 DisplayMcErrorCorrectCapability (
120 DisplayMcInterleaveSupport (
125 DisplayMcMemorySpeeds (
130 DisplayMemoryModuleVoltage (
136 // Memory Module Information (Type 6)
139 DisplayMmMemoryType (
144 DisplayMmErrorStatus (
150 // Cache Information (Type 7)
153 DisplayCacheSRAMType (
158 DisplayCacheErrCorrectingType (
163 DisplayCacheSystemCacheType (
168 DisplayCacheAssociativity (
174 // Port Connector Information (Type 8)
177 DisplayPortConnectorType (
188 // System Slots (Type 9)
191 DisplaySystemSlotType (
196 DisplaySystemSlotDataBusWidth (
201 DisplaySystemSlotCurrentUsage (
206 DisplaySystemSlotLength (
211 DisplaySlotCharacteristics1 (
216 DisplaySlotCharacteristics2 (
222 // On Board Devices Information (Type 10)
225 DisplayOnboardDeviceTypes (
231 // System Event Log (Type 15)
239 DisplaySELVarDataFormatType (
244 DisplayPostResultsBitmapDw1 (
249 DisplayPostResultsBitmapDw2 (
254 DisplaySELSysManagementTypes (
260 // Physical Memory Array (Type 16)
273 DisplayPMAErrorCorrectionTypes (
279 // Memory Device (Type 17)
282 DisplayMemoryDeviceFormFactor (
287 DisplayMemoryDeviceType (
292 DisplayMemoryDeviceTypeDetail (
298 // 32-bit Memory Error Information (Type 18)
301 DisplayMemoryErrorType (
306 DisplayMemoryErrorGranularity (
311 DisplayMemoryErrorOperation (
317 // Memory Array Mapped Address (Type 19)
318 // Memory Device Mapped Address (Type 20)
320 // Built-in Pointing Device (Type 21)
323 DisplayPointingDeviceType (
328 DisplayPointingDeviceInterface (
334 // Portable Battery (Type 22)
337 DisplayPBDeviceChemistry (
343 // Voltage Probe (Type 26)
357 // Voltage Probe (Type 27)
360 DisplayCoolingDeviceStatus (
365 DisplayCoolingDeviceType (
371 // Temperature Probe (Type 28)
374 DisplayTemperatureProbeStatus (
379 DisplayTemperatureProbeLoc (
385 // Electrical Current Probe (Type 29)
399 // Management Device (Type 34)
407 DisplayMDAddressType (
413 // Memory Channel (Type 37)
416 DisplayMemoryChannelType (
422 // IPMI Device Information (Type 38)
425 DisplayIPMIDIBMCInterfaceType (