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 - 2012, 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 #include "../UefiShellDebug1CommandsLib.h"
17 #include "QueryTable.h"
18 #include "PrintInfo.h"
20 TABLE_ITEM SystemWakeupTypeTable
[] = {
55 TABLE_ITEM BaseBoardFeatureFlagsTable
[] = {
62 L
" Requires at least one daughter board or auxiliary card"
78 TABLE_ITEM BaseBoardBoardTypeTable
[] = {
93 L
" Connectivity Switch"
97 L
" System Management Module"
121 L
" Processor/Memory Module"
125 L
" Processor/IO Module"
129 L
" Interconnect Board"
133 TABLE_ITEM SystemEnclosureTypeTable
[] = {
148 L
" Low Profile Desktop"
196 L
" Main Server Chassis"
200 L
" Expansion Chassis"
212 L
" Bus Expansion Chassis"
216 L
" Peripheral Chassis"
224 L
" Rack Mount Chassis"
232 L
" Multi-system Chassis"
252 TABLE_ITEM SystemEnclosureStatusTable
[] = {
279 TABLE_ITEM SESecurityStatusTable
[] = {
294 L
" External interface locked out"
298 L
" External interface enabled"
302 TABLE_ITEM ProcessorTypeTable
[] = {
313 L
" Central Processor"
329 TABLE_ITEM ProcessorUpgradeTable
[] = {
348 L
"Replaceable Piggy Back"
500 TABLE_ITEM ProcessorCharacteristicsTable
[] = {
519 L
" Execute Protection"
523 L
" Enhanced Virtualization"
527 L
" Power/Performance Control"
532 TABLE_ITEM McErrorDetectMethodTable
[] = {
567 TABLE_ITEM McErrorCorrectCapabilityTable
[] = {
582 L
"Single Bit Error Correcting"
586 L
"Double Bit Error Correcting"
594 TABLE_ITEM McInterleaveSupportTable
[] = {
605 L
"One Way Interleave"
609 L
"Two Way Interleave"
613 L
"Four Way Interleave"
617 L
"Eight Way Interleave"
621 L
"Sixteen Way Interleave"
625 TABLE_ITEM McMemorySpeedsTable
[] = {
648 TABLE_ITEM MemoryModuleVoltageTable
[] = {
663 TABLE_ITEM MmMemoryTypeTable
[] = {
710 TABLE_ITEM MmErrorStatusTable
[] = {
713 L
" Uncorrectable errors received"
717 L
" Correctable errors received"
721 L
" Error Status obtained from the event log"
725 TABLE_ITEM CacheSRAMTypeTable
[] = {
756 TABLE_ITEM CacheErrCorrectingTypeTable
[] = {
783 TABLE_ITEM CacheSystemCacheTypeTable
[] = {
806 TABLE_ITEM CacheAssociativityTable
[] = {
821 L
"2-way Set-Associative"
825 L
"4-way Set-Associative"
833 L
"8-way Set-Associative"
837 L
"16-way Set-Associative"
841 L
"12-way Set-Associative"
845 L
"24-way Set-Associative"
849 L
"32-way Set-Associative"
853 L
"48-way Set-Associative"
857 L
"64-way Set-Associative"
861 L
"20-way Set-Associative"
865 TABLE_ITEM PortConnectorTypeTable
[] = {
948 L
"Circular DIN-8 male"
952 L
"Circular DIN-8 female"
964 L
"9 Pin Dual Inline (pin 10 cut)"
968 L
"25 Pin Dual Inline (pin 26 cut)"
972 L
"50 Pin Dual Inline"
976 L
"68 Pin Dual Inline"
980 L
"On Board Sound Input from CD-ROM"
984 L
"Mini-Centronics Type-14"
988 L
"Mini-Centronics Type-26"
992 L
"Mini-jack (headphones)"
1004 L
"SAS/SATA Plug Receptacle"
1032 TABLE_ITEM PortTypeTable
[] = {
1039 L
"Parallel Port XT/AT Compatible"
1043 L
"Parallel Port PS/2"
1047 L
"Parallel Port ECP"
1051 L
"Parallel Port EPP"
1055 L
"Parallel Port ECP/EPP"
1059 L
"Serial Port XT/AT Compatible"
1063 L
"Serial Port 16450 Compatible"
1067 L
"Serial Port 16550 Compatible"
1071 L
"Serial Port 16550A Compatible"
1103 L
"FireWire (IEEE P1394)"
1175 L
"8251 FIFO Compatible"
1183 TABLE_ITEM SystemSlotTypeTable
[] = {
1222 L
"Processor Card Slot"
1226 L
"Proprietary Memory Card Slot"
1230 L
"I/O Riser Card Slot"
1238 L
"PCI - 66MHz Capable"
1302 L
"PCI Express Gen 2"
1306 L
"PCI Express Gen 2 X1"
1310 L
"PCI Express Gen 2 X2"
1314 L
"PCI Express Gen 2 X4"
1318 L
"PCI Express Gen 2 X8"
1322 L
"PCI Express Gen 2 X16"
1326 L
"PCI Express Gen 3"
1330 L
"PCI Express Gen 3 X1"
1334 L
"PCI Express Gen 3 X2"
1338 L
"PCI Express Gen 3 X4"
1342 L
"PCI Express Gen 3 X8"
1346 L
"PCI Express Gen 3 X16"
1350 TABLE_ITEM SystemSlotDataBusWidthTable
[] = {
1409 TABLE_ITEM SystemSlotCurrentUsageTable
[] = {
1428 TABLE_ITEM SystemSlotLengthTable
[] = {
1447 TABLE_ITEM SlotCharacteristics1Table
[] = {
1450 L
" Characteristics Unknown"
1454 L
" Provides 5.0 Volts"
1458 L
" Provides 3.3 Volts"
1462 L
" Slot's opening is shared with another slot, e.g. PCI/EISA shared slot."
1467 L
" PC Card slot supports PC Card-16"
1471 L
" PC Card slot supports CardBus"
1475 L
" PC Card slot supports Zoom Video "
1479 L
" PC Card slot supports Modem Ring Resume "
1483 TABLE_ITEM SlotCharacteristics2Table
[] = {
1486 L
" PCI slot supports Power Management Enable (PME#) signal"
1490 L
" Slot supports hot-plug devices"
1494 L
" PCI slot supports SMBus signal"
1498 TABLE_ITEM OnboardDeviceTypesTable
[] = {
1541 TABLE_ITEM SELTypesTable
[] = {
1548 L
" Single-bit ECC memory error"
1552 L
" Multi-bit ECC memory error"
1556 L
" Parity memory error"
1564 L
" I/O Channel Check"
1572 L
" POST Memory Resize"
1580 L
" PCI Parity Error"
1584 L
" PCI System Error"
1592 L
" EISA FailSafe Timer time-out"
1596 L
" Correctable memory log disabled"
1600 L
" Logging disabled for a specific Event Type"
1608 L
" System Limit Exceeded"
1612 L
" Asynchronous hardware timer expired and issued a system reset"
1616 L
" System configuration information"
1620 L
" Hard-disk information"
1624 L
" System reconfigured"
1628 L
" Uncorrectable CPU-complex error"
1632 L
" Log Area Reset/Cleared"
1640 L
" Unused by SMBIOS specification"
1644 L
" System and OEM specified"
1652 TABLE_ITEM SELVarDataFormatTypeTable
[] = {
1667 L
" Multiple-Event Handle "
1671 L
" POST Results Bitmap "
1678 L
" System Management Type"
1685 L
" Multiple-Event System Management Type "
1697 TABLE_ITEM PostResultsBitmapDw1Table
[] = {
1700 L
" Channel 2 Timer error "
1704 L
" Master PIC (8259 #1) error "
1708 L
" Slave PIC (8259 #2) error "
1712 L
" CMOS Battery Failure "
1716 L
" CMOS System Options Not Set "
1720 L
" CMOS Checksum Error "
1724 L
" CMOS Configuration Error "
1728 L
" Mouse and Keyboard Swapped "
1732 L
" Keyboard Locked "
1736 L
" Keyboard Not Functional "
1740 L
" Keyboard Controller Not Functional "
1744 L
" CMOS Memory Size Different "
1748 L
" Memory Decreased in Size "
1752 L
" Cache Memory Error "
1756 L
" Floppy Drive 0 Error "
1760 L
" Floppy Drive 1 Error "
1764 L
" Floppy Controller Failure "
1768 L
" Number of ATA Drives Reduced Error "
1772 L
" CMOS Time Not Set "
1776 L
" DDC Monitor Configuration Change "
1780 L
" Reserved, set to 0 "
1784 L
" Reserved, set to 0 "
1788 L
" Reserved, set to 0 "
1792 L
" Reserved, set to 0 "
1796 L
" Second DWORD has valid data "
1800 L
" Reserved, set to 0 "
1804 L
" Reserved, set to 0 "
1808 L
" Reserved, set to 0 "
1812 L
" Normally 0; available for OEM assignment "
1816 L
" Normally 0; available for OEM assignment "
1820 L
" Normally 0; available for OEM assignment "
1824 L
" Normally 0; available for OEM assignment "
1828 TABLE_ITEM PostResultsBitmapDw2Table
[] = {
1831 L
" Normally 0; available for OEM assignment "
1835 L
" Normally 0; available for OEM assignment "
1839 L
" Normally 0; available for OEM assignment "
1843 L
" Normally 0; available for OEM assignment "
1847 L
" Normally 0; available for OEM assignment "
1851 L
" Normally 0; available for OEM assignment "
1855 L
" Normally 0; available for OEM assignment "
1859 L
" PCI Memory Conflict "
1863 L
" PCI I/O Conflict "
1867 L
" PCI IRQ Conflict "
1871 L
" PNP Memory Conflict "
1875 L
" PNP 32 bit Memory Conflict "
1879 L
" PNP I/O Conflict "
1883 L
" PNP IRQ Conflict "
1887 L
" PNP DMA Conflict "
1891 L
" Bad PNP Serial ID Checksum "
1895 L
" Bad PNP Resource Data Checksum "
1899 L
" Static Resource Conflict "
1903 L
" NVRAM Checksum Error, NVRAM Cleared "
1907 L
" System Board Device Resource Conflict "
1911 L
" Primary Output Device Not Found "
1915 L
" Primary Input Device Not Found "
1919 L
" Primary Boot Device Not Found "
1923 L
" NVRAM Cleared By Jumper "
1927 L
" NVRAM Data Invalid, NVRAM Cleared "
1931 L
" FDC Resource Conflict "
1935 L
" Primary ATA Controller Resource Conflict "
1939 L
" Secondary ATA Controller Resource Conflict "
1943 L
" Parallel Port Resource Conflict "
1947 L
" Serial Port 1 Resource Conflict "
1951 L
" Serial Port 2 Resource Conflict "
1955 L
" Audio Resource Conflict "
1959 TABLE_ITEM SELSysManagementTypesTable
[] = {
1962 L
" +2.5V Out of range, #2 "
1966 L
" +3.3V Out of range "
1970 L
" +5V Out of range "
1974 L
" -5V Out of range "
1978 L
" +12V Out of range "
1982 L
" -12V Out of range "
1986 L
" Reserved for future out-of-range voltage levels "
1990 L
" System board temperature out of range "
1994 L
" Processor #1 temperature out of range "
1998 L
" Processor #2 temperature out of range "
2002 L
" Processor #3 temperature out of range "
2006 L
" Processor #4 temperature out of range "
2010 L
" Reserved for future out-of-range temperatures"
2014 L
" Fan n (n = 0 to 7) Out of range "
2018 L
" Reserved for future assignment via this specification "
2022 L
" Chassis secure switch activated "
2026 TABLE_ITEM PMALocationTable
[] = {
2037 L
" System board or motherboard"
2045 L
" EISA add-on card"
2057 L
" PCMCIA add-on card"
2061 L
" Proprietary add-on card"
2069 L
" PC-98/C20 add-on card"
2073 L
" PC-98/C24 add-on card"
2077 L
" PC-98/E add-on card"
2081 L
" PC-98/Local bus add-on card"
2085 TABLE_ITEM PMAUseTable
[] = {
2108 L
" Non-volatile RAM"
2116 TABLE_ITEM PMAErrorCorrectionTypesTable
[] = {
2147 TABLE_ITEM MemoryDeviceFormFactorTable
[] = {
2178 L
" Proprietary Card"
2210 TABLE_ITEM MemoryDeviceTypeTable
[] = {
2301 TABLE_ITEM MemoryDeviceTypeDetailTable
[] = {
2352 L
" Registered(Buffered)"
2356 L
" Unbuffered(Unregistered)"
2360 TABLE_ITEM MemoryErrorTypeTable
[] = {
2383 L
" Single-bit error"
2387 L
" Double-bit error"
2407 L
" Corrected single-bit error"
2415 L
" Uncorrectable error"
2419 TABLE_ITEM MemoryErrorGranularityTable
[] = {
2434 L
" Memory partition level"
2438 TABLE_ITEM MemoryErrorOperationTable
[] = {
2461 TABLE_ITEM PointingDeviceTypeTable
[] = {
2492 TABLE_ITEM PointingDeviceInterfaceTable
[] = {
2523 L
" ADB(Apple Desktop Bus"
2531 L
" Bus mouse mirco-DIN"
2539 TABLE_ITEM PBDeviceChemistryTable
[] = {
2558 L
" Nickel metal hydride "
2570 L
" Lithium Polymer "
2574 TABLE_ITEM VPLocationTable
[] = {
2597 L
" Non-recoverable "
2601 TABLE_ITEM VPStatusTable
[] = {
2624 L
" System Management Module "
2636 L
" Processor Module "
2648 TABLE_ITEM CoolingDeviceStatusTable
[] = {
2671 L
" Non-recoverable "
2675 TABLE_ITEM CoolingDeviceTypeTable
[] = {
2690 L
" Centrifugal Blower "
2702 L
" Power Supply Fan "
2710 L
" Integrated Refrigeration "
2718 L
" Passive Cooling "
2722 TABLE_ITEM TemperatureProbeStatusTable
[] = {
2745 L
" Non-recoverable "
2749 TABLE_ITEM TemperatureProbeLocTable
[] = {
2772 L
" System Management Module "
2784 L
" Processor Module "
2796 TABLE_ITEM ECPStatusTable
[] = {
2819 L
" Non-recoverable "
2823 TABLE_ITEM ECPLocTable
[] = {
2846 L
" System Management Module "
2858 L
" Processor Module "
2870 TABLE_ITEM MDTypeTable
[] = {
2881 L
" National Semiconductor LM75 "
2885 L
" National Semiconductor LM78 "
2889 L
" National Semiconductor LM79 "
2893 L
" National Semiconductor LM80 "
2897 L
" National Semiconductor LM81 "
2901 L
" Analog Devices ADM9240 "
2905 L
" Dallas Semiconductor DS1780 "
2913 L
" Genesys GL518SM "
2917 L
" Winbond W83781D "
2921 L
" Holtek HT82H791 "
2925 TABLE_ITEM MDAddressTypeTable
[] = {
2948 TABLE_ITEM MemoryChannelTypeTable
[] = {
2967 TABLE_ITEM IPMIDIBMCInterfaceTypeTable
[] = {
2974 L
" KCS: Keyboard Controller Style "
2978 L
" SMIC: Server Management Interface Chip "
2982 L
" BT: Block Transfer "
2986 L
" Reserved for future assignment by this specification "
2990 TABLE_ITEM StructureTypeInfoTable
[] = {
2993 L
" BIOS Information"
2997 L
" System Information"
3001 L
" Base Board Information"
3005 L
" System Enclosure"
3009 L
" Processor Information"
3013 L
" Memory Controller Information "
3017 L
" Memory Module Information "
3021 L
" Cache Information "
3025 L
" Port Connector Information "
3033 L
" On Board Devices Information "
3041 L
" System Configuration Options "
3045 L
" BIOS Language Information "
3049 L
" Group Associations "
3053 L
" System Event Log "
3057 L
" Physical Memory Array "
3065 L
" 32-bit Memory Error Information "
3069 L
" Memory Array Mapped Address "
3073 L
" Memory Device Mapped Address "
3077 L
" Built-in Pointing Device "
3081 L
" Portable Battery "
3089 L
" Hardware Security "
3093 L
" System Power Controls "
3105 L
" Temperature Probe "
3109 L
" Electrical Current Probe "
3113 L
" Out-of-Band Remote Access "
3117 L
" Boot Integrity Services (BIS) Entry Point"
3121 L
" System Boot Information "
3125 L
" 64-bit Memory Error Information "
3129 L
" Management Device "
3133 L
" Management Device Component "
3137 L
" Management Device Threshold Data "
3145 L
" IPMI Device Information "
3149 L
" System Power Supply"
3153 L
" Additional Information"
3157 L
" Onboard Devices Extended Information"
3161 L
" Management Controller Host Interface"
3175 Given a table and a Key, return the responding info.
3178 Table[Index].Key is change from UINT8 to UINT16,
3179 in order to deal with "0xaa - 0xbb".
3182 DisplaySELVariableDataFormatTypes(UINT8 Type, UINT8 Option)
3185 Now define Key = 0x7F07, that is to say: High = 0x7F, Low = 0x07.
3186 Then all the Key Value between Low and High gets the same string
3189 @param[in] Table The begin address of table.
3190 @param[in] Number The number of table items.
3191 @param[in] Key The query Key.
3192 @param[in, out] Info Input as empty buffer; output as data buffer.
3193 @param[in] InfoLen The max number of characters for Info.
3195 @return the found Key and Info is valid.
3196 @retval QUERY_TABLE_UNFOUND and Info should be NULL.
3200 IN TABLE_ITEM
*Table
,
3203 IN OUT CHAR16
*Info
,
3209 // High byte and Low byte of word
3214 for (Index
= 0; Index
< Number
; Index
++) {
3215 High
= (UINT8
) (Table
[Index
].Key
>> 8);
3216 Low
= (UINT8
) (Table
[Index
].Key
& 0x00FF);
3218 // Check if Key is in the range
3220 if (High
> Low
&& Key
>= Low
&& Key
<= High
) {
3221 StrnCpy (Info
, Table
[Index
].Info
, InfoLen
-1);
3222 StrnCat (Info
, L
"\n", InfoLen
- StrLen(Info
));
3226 // Check if Key == Value in the table
3228 if (Table
[Index
].Key
== Key
) {
3229 StrnCpy (Info
, Table
[Index
].Info
, InfoLen
-1);
3230 StrnCat (Info
, L
"\n", InfoLen
- StrLen(Info
));
3235 StrnCpy (Info
, L
"Undefined Value\n", InfoLen
);
3236 return QUERY_TABLE_UNFOUND
;
3240 Given a table of bit info and a Key, return the responding info to the Key.
3242 @param[in] Table Point to a table which maintains a map of 'bit' to 'message'.
3243 @param[in] Number Number of table items.
3244 @param[in] Bits The Key of query the bit map information.
3248 IN TABLE_ITEM
*Table
,
3254 // Get certain bit of 'Value':
3256 #define BIT(Value, bit) ((Value) & ((UINT32) 1) << (bit))
3258 // Clear certain bit of 'Value':
3260 #define CLR_BIT(Value, bit) ((Value) -= (BIT (Value, bit)))
3269 // query the table and print information
3271 for (Index
= 0; Index
< Number
; Index
++) {
3272 if (BIT (Value
, Table
[Index
].Key
) != 0) {
3273 Print (Table
[Index
].Info
);
3278 // clear the bit, for reserved bits test
3280 CLR_BIT (Value
, Table
[Index
].Key
);
3285 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_NO_INFO
), gShellDebug1HiiHandle
);
3289 ShellPrintHiiEx(-1,-1,NULL
,
3290 STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_BITS_SET
),
3291 gShellDebug1HiiHandle
,
3299 // //////////////////////////////////////////////////////////////////
3301 // Following uses QueryTable functions to simplify the coding.
3302 // QueryTable(), PrintBitsInfo()
3305 #define PRINT_TABLE_ITEM(Table, Key) \
3309 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3310 ZeroMem (Info, sizeof (Info)); \
3311 QueryTable (Table, Num, Key, Info, sizeof(Info)/sizeof(Info[0])); \
3315 #define PRINT_BITS_INFO(Table, bits) \
3318 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3319 PrintBitsInfo (Table, Num, (UINT32) bits); \
3323 Display System Information (Type 1) Type.
3325 @param[in] Type The key of the structure.
3326 @param[in] Option The optional information.
3329 DisplaySystemWakeupType (
3334 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_WAKEUP_TYPE
), gShellDebug1HiiHandle
);
3335 PRINT_INFO_OPTION (Type
, Option
);
3336 PRINT_TABLE_ITEM (SystemWakeupTypeTable
, Type
);
3340 Display Base Board (Type 2) Feature Flags.
3342 @param[in] FeatureFlags The key of the structure.
3343 @param[in] Option The optional information.
3346 DisplayBaseBoardFeatureFlags (
3347 IN UINT8 FeatureFlags
,
3351 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_FEATURE_FLAGS
), gShellDebug1HiiHandle
);
3352 PRINT_INFO_OPTION (FeatureFlags
, Option
);
3353 PRINT_BITS_INFO (BaseBoardFeatureFlagsTable
, FeatureFlags
);
3357 Display Base Board (Type 2) Board Type.
3359 @param[in] Type The key of the structure.
3360 @param[in] Option The optional information.
3363 DisplayBaseBoardBoardType(
3368 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_BOARD_TYPE
), gShellDebug1HiiHandle
);
3369 PRINT_INFO_OPTION (Type
, Option
);
3370 PRINT_TABLE_ITEM (BaseBoardBoardTypeTable
, Type
);
3374 Display System Enclosure (Type 3) Enclosure Type.
3376 @param[in] Type The key of the structure.
3377 @param[in] Option The optional information.
3380 DisplaySystemEnclosureType (
3385 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_TYPE
), gShellDebug1HiiHandle
);
3386 PRINT_INFO_OPTION (Type
, Option
);
3388 // query table and print info
3390 PRINT_TABLE_ITEM (SystemEnclosureTypeTable
, Type
);
3392 if (BIT (Type
, 7) != 0) {
3393 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CHASSIS_LOCK_PRESENT
), gShellDebug1HiiHandle
);
3398 Display System Enclosure (Type 3) Enclosure Status.
3400 @param[in] Status The key of the structure.
3401 @param[in] Option The optional information.
3404 DisplaySystemEnclosureStatus (
3409 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_STATUS
), gShellDebug1HiiHandle
);
3410 PRINT_INFO_OPTION (Status
, Option
);
3411 PRINT_TABLE_ITEM (SystemEnclosureStatusTable
, Status
);
3415 Display System Enclosure (Type 3) Security Status.
3417 @param[in] Status The key of the structure.
3418 @param[in] Option The optional information.
3421 DisplaySESecurityStatus (
3426 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_SECURITY
), gShellDebug1HiiHandle
);
3427 PRINT_INFO_OPTION (Status
, Option
);
3428 PRINT_TABLE_ITEM (SESecurityStatusTable
, Status
);
3432 Display Processor Information (Type 4) Type.
3434 @param[in] Type The key of the structure.
3435 @param[in] Option The optional information.
3438 DisplayProcessorType (
3443 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_TYPE
), gShellDebug1HiiHandle
);
3444 PRINT_INFO_OPTION (Type
, Option
);
3445 PRINT_TABLE_ITEM (ProcessorTypeTable
, Type
);
3449 Display Processor Information (Type 4) Upgrade.
3451 @param[in] Upgrade The key of the structure.
3452 @param[in] Option The optional information.
3455 DisplayProcessorUpgrade (
3460 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_UPDATE
), gShellDebug1HiiHandle
);
3461 PRINT_INFO_OPTION (Upgrade
, Option
);
3462 PRINT_TABLE_ITEM (ProcessorUpgradeTable
, Upgrade
);
3466 Display Processor Information (Type 4) Characteristics.
3468 @param[in] Type The key of the structure.
3469 @param[in] Option The optional information.
3472 DisplayProcessorCharacteristics (
3477 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_CHARACTERISTICS
), gShellDebug1HiiHandle
);
3478 PRINT_INFO_OPTION (Type
, Option
);
3479 PRINT_BITS_INFO (ProcessorCharacteristicsTable
, Type
);
3483 Display Memory Controller Information (Type 5) method.
3485 @param[in] Method The key of the structure.
3486 @param[in] Option The optional information.
3489 DisplayMcErrorDetectMethod (
3494 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DETECTMETHOD
), gShellDebug1HiiHandle
);
3495 PRINT_INFO_OPTION (Method
, Option
);
3496 PRINT_TABLE_ITEM (McErrorDetectMethodTable
, Method
);
3500 Display Memory Controller Information (Type 5) Capability.
3502 @param[in] Capability The key of the structure.
3503 @param[in] Option The optional information.
3506 DisplayMcErrorCorrectCapability (
3507 IN UINT8 Capability
,
3511 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CORRECT_CAPABILITY
), gShellDebug1HiiHandle
);
3512 PRINT_INFO_OPTION (Capability
, Option
);
3513 PRINT_BITS_INFO (McErrorCorrectCapabilityTable
, Capability
);
3517 Display Memory Controller Information (Type 5) Support.
3519 @param[in] Support The key of the structure.
3520 @param[in] Option The optional information.
3523 DisplayMcInterleaveSupport (
3528 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_INTERLEAVE_SUPPORT
), gShellDebug1HiiHandle
);
3529 PRINT_INFO_OPTION (Support
, Option
);
3530 PRINT_TABLE_ITEM (McInterleaveSupportTable
, Support
);
3534 Display Memory Controller Information (Type 5) speeds.
3536 @param[in] Speed The key of the structure.
3537 @param[in] Option The optional information.
3540 DisplayMcMemorySpeeds (
3545 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MEMORY_SPEED
), gShellDebug1HiiHandle
);
3546 PRINT_INFO_OPTION (Speed
, Option
);
3547 PRINT_BITS_INFO (McMemorySpeedsTable
, Speed
);
3551 Display Memory Controller Information (Type 5) voltage.
3553 @param[in] Voltage The key of the structure.
3554 @param[in] Option The optional information.
3557 DisplayMemoryModuleVoltage (
3562 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_REQUIRED_VOLTAGES
), gShellDebug1HiiHandle
);
3563 PRINT_INFO_OPTION (Voltage
, Option
);
3564 PRINT_BITS_INFO (MemoryModuleVoltageTable
, Voltage
);
3568 Display Memory Module Information (Type 6) type.
3570 @param[in] Type The key of the structure.
3571 @param[in] Option The optional information.
3574 DisplayMmMemoryType (
3579 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_TYPE
), gShellDebug1HiiHandle
);
3580 PRINT_INFO_OPTION (Type
, Option
);
3581 PRINT_BITS_INFO (MmMemoryTypeTable
, Type
);
3585 Display Memory Module Information (Type 6) status.
3587 @param[in] Status The key of the structure.
3588 @param[in] Option The optional information.
3591 DisplayMmErrorStatus (
3596 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_ERROR_STATUS
), gShellDebug1HiiHandle
);
3597 PRINT_INFO_OPTION (Status
, Option
);
3598 PRINT_BITS_INFO (MmErrorStatusTable
, Status
);
3602 Display Cache Information (Type 7) SRAM Type.
3604 @param[in] Type The key of the structure.
3605 @param[in] Option The optional information.
3608 DisplayCacheSRAMType (
3613 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SRAM_TYPE
), gShellDebug1HiiHandle
);
3614 PRINT_INFO_OPTION ((UINT8
) Type
, Option
);
3615 PRINT_BITS_INFO (CacheSRAMTypeTable
, (UINT8
) Type
);
3619 Display Cache Information (Type 7) correcting Type.
3621 @param[in] Type The key of the structure.
3622 @param[in] Option The optional information.
3625 DisplayCacheErrCorrectingType (
3630 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ERROR_CORRECTING
), gShellDebug1HiiHandle
);
3631 PRINT_INFO_OPTION (Type
, Option
);
3632 PRINT_TABLE_ITEM (CacheErrCorrectingTypeTable
, Type
);
3636 Display Cache Information (Type 7) Type.
3638 @param[in] Type The key of the structure.
3639 @param[in] Option The optional information.
3642 DisplayCacheSystemCacheType (
3647 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SYSTEM_TYPE
), gShellDebug1HiiHandle
);
3648 PRINT_INFO_OPTION (Type
, Option
);
3649 PRINT_TABLE_ITEM (CacheSystemCacheTypeTable
, Type
);
3653 Display Cache Information (Type 7) Associativity.
3655 @param[in] Associativity The key of the structure.
3656 @param[in] Option The optional information.
3659 DisplayCacheAssociativity (
3660 IN UINT8 Associativity
,
3664 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ASSOCIATIVITY
), gShellDebug1HiiHandle
);
3665 PRINT_INFO_OPTION (Associativity
, Option
);
3666 PRINT_TABLE_ITEM (CacheAssociativityTable
, Associativity
);
3670 Display Port Connector Information (Type 8) type.
3672 @param[in] Type The key of the structure.
3673 @param[in] Option The optional information.
3676 DisplayPortConnectorType (
3681 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_CONNECTOR_TYPE
), gShellDebug1HiiHandle
);
3682 PRINT_INFO_OPTION (Type
, Option
);
3683 PRINT_TABLE_ITEM (PortConnectorTypeTable
, Type
);
3687 Display Port Connector Information (Type 8) port type.
3689 @param[in] Type The key of the structure.
3690 @param[in] Option The optional information.
3698 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_TYPE
), gShellDebug1HiiHandle
);
3699 PRINT_INFO_OPTION (Type
, Option
);
3700 PRINT_TABLE_ITEM (PortTypeTable
, Type
);
3704 Display System Slots (Type 9) slot type.
3706 @param[in] Type The key of the structure.
3707 @param[in] Option The optional information.
3710 DisplaySystemSlotType (
3715 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_TYPE
), gShellDebug1HiiHandle
);
3716 PRINT_INFO_OPTION (Type
, Option
);
3717 PRINT_TABLE_ITEM (SystemSlotTypeTable
, Type
);
3721 Display System Slots (Type 9) data bus width.
3723 @param[in] Width The key of the structure.
3724 @param[in] Option The optional information.
3727 DisplaySystemSlotDataBusWidth (
3732 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_DATA
), gShellDebug1HiiHandle
);
3733 PRINT_INFO_OPTION (Width
, Option
);
3734 PRINT_TABLE_ITEM (SystemSlotDataBusWidthTable
, Width
);
3738 Display System Slots (Type 9) usage information.
3740 @param[in] Usage The key of the structure.
3741 @param[in] Option The optional information.
3744 DisplaySystemSlotCurrentUsage (
3749 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_CURRENT_USAGE
), gShellDebug1HiiHandle
);
3750 PRINT_INFO_OPTION (Usage
, Option
);
3751 PRINT_TABLE_ITEM (SystemSlotCurrentUsageTable
, Usage
);
3755 Display System Slots (Type 9) slot length.
3757 @param[in] Length The key of the structure.
3758 @param[in] Option The optional information.
3761 DisplaySystemSlotLength (
3766 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_LENGTH
), gShellDebug1HiiHandle
);
3767 PRINT_INFO_OPTION (Length
, Option
);
3768 PRINT_TABLE_ITEM (SystemSlotLengthTable
, Length
);
3772 Display System Slots (Type 9) characteristics.
3774 @param[in] Chara1 The key of the structure.
3775 @param[in] Option The optional information.
3778 DisplaySlotCharacteristics1 (
3783 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS
), gShellDebug1HiiHandle
);
3784 PRINT_INFO_OPTION (Chara1
, Option
);
3785 PRINT_BITS_INFO (SlotCharacteristics1Table
, Chara1
);
3789 Display System Slots (Type 9) characteristics.
3791 @param[in] Chara2 The key of the structure.
3792 @param[in] Option The optional information.
3795 DisplaySlotCharacteristics2 (
3800 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS_2
), gShellDebug1HiiHandle
);
3801 PRINT_INFO_OPTION (Chara2
, Option
);
3802 PRINT_BITS_INFO (SlotCharacteristics2Table
, Chara2
);
3806 Display On Board Devices Information (Type 10) types.
3808 @param[in] Type The key of the structure.
3809 @param[in] Option The optional information.
3812 DisplayOnboardDeviceTypes (
3817 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ONBOARD_DEVICE_TYPE
), gShellDebug1HiiHandle
);
3818 PRINT_INFO_OPTION (Type
, Option
);
3819 PRINT_TABLE_ITEM (OnboardDeviceTypesTable
, Type
);
3823 Display System Event Log (Type 15) types.
3825 @param[in] Type The key of the structure.
3826 @param[in] Option The optional information.
3834 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_EVENT_LOG_TYPE
), gShellDebug1HiiHandle
);
3835 PRINT_INFO_OPTION (Type
, Option
);
3836 PRINT_TABLE_ITEM (SELTypesTable
, Type
);
3840 Display System Event Log (Type 15) format type.
3842 @param[in] Type The key of the structure.
3843 @param[in] Option The optional information.
3846 DisplaySELVarDataFormatType (
3851 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_EVENT_LOG_VAR_DATA_FORMAT
), gShellDebug1HiiHandle
);
3852 PRINT_INFO_OPTION (Type
, Option
);
3853 PRINT_TABLE_ITEM (SELVarDataFormatTypeTable
, Type
);
3857 Display System Event Log (Type 15) dw1.
3859 @param[in] Key The key of the structure.
3860 @param[in] Option The optional information.
3863 DisplayPostResultsBitmapDw1 (
3868 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_BITMAP
), gShellDebug1HiiHandle
);
3869 PRINT_INFO_OPTION (Key
, Option
);
3870 PRINT_BITS_INFO (PostResultsBitmapDw1Table
, Key
);
3874 Display System Event Log (Type 15) dw2.
3876 @param[in] Key The key of the structure.
3877 @param[in] Option The optional information.
3880 DisplayPostResultsBitmapDw2 (
3885 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_SECOND_DWORD
), gShellDebug1HiiHandle
);
3886 PRINT_INFO_OPTION (Key
, Option
);
3887 PRINT_BITS_INFO (PostResultsBitmapDw2Table
, Key
);
3891 Display System Event Log (Type 15) type.
3893 @param[in] SMType The key of the structure.
3894 @param[in] Option The optional information.
3897 DisplaySELSysManagementTypes (
3904 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_TYPES
), gShellDebug1HiiHandle
);
3905 PRINT_INFO_OPTION (SMType
, Option
);
3908 // Deal with wide range Value
3910 if (SMType
>= 0x80000000) {
3911 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_OEM_ASSIGNED
), gShellDebug1HiiHandle
);
3912 } else if (SMType
>= 0x00020000) {
3913 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
3914 } else if (SMType
>= 0x00010000) {
3915 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_PROBE
), gShellDebug1HiiHandle
);
3916 } else if (SMType
>= 0x31) {
3917 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
3920 // Deal with One byte data
3922 Temp
= (UINT8
) (SMType
& 0x3F);
3923 PRINT_TABLE_ITEM (SELSysManagementTypesTable
, Temp
);
3928 Display Physical Memory Array (Type 16) Location.
3930 @param[in] Location The key of the structure.
3931 @param[in] Option The optional information.
3934 DisplayPMALocation (
3939 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_LOCATION
), gShellDebug1HiiHandle
);
3940 PRINT_INFO_OPTION (Location
, Option
);
3941 PRINT_TABLE_ITEM (PMALocationTable
, Location
);
3945 Display Physical Memory Array (Type 16) Use.
3947 @param[in] Use The key of the structure.
3948 @param[in] Option The optional information.
3956 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_USE
), gShellDebug1HiiHandle
);
3957 PRINT_INFO_OPTION (Use
, Option
);
3958 PRINT_TABLE_ITEM (PMAUseTable
, Use
);
3962 Display Physical Memory Array (Type 16) Types.
3964 @param[in] Type The key of the structure.
3965 @param[in] Option The optional information.
3968 DisplayPMAErrorCorrectionTypes (
3973 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_ERROR
), gShellDebug1HiiHandle
);
3974 PRINT_INFO_OPTION (Type
, Option
);
3975 PRINT_TABLE_ITEM (PMAErrorCorrectionTypesTable
, Type
);
3979 Display Memory Device (Type 17) form factor.
3981 @param[in] FormFactor The key of the structure.
3982 @param[in] Option The optional information.
3985 DisplayMemoryDeviceFormFactor (
3986 IN UINT8 FormFactor
,
3990 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_FORM_FACTOR
), gShellDebug1HiiHandle
);
3991 PRINT_INFO_OPTION (FormFactor
, Option
);
3992 PRINT_TABLE_ITEM (MemoryDeviceFormFactorTable
, FormFactor
);
3996 Display Memory Device (Type 17) type.
3998 @param[in] Type The key of the structure.
3999 @param[in] Option The optional information.
4002 DisplayMemoryDeviceType (
4007 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4008 PRINT_INFO_OPTION (Type
, Option
);
4009 PRINT_TABLE_ITEM (MemoryDeviceTypeTable
, Type
);
4013 Display Memory Device (Type 17) details.
4015 @param[in] Para The key of the structure.
4016 @param[in] Option The optional information.
4019 DisplayMemoryDeviceTypeDetail (
4024 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE_DETAIL
), gShellDebug1HiiHandle
);
4025 PRINT_INFO_OPTION (Para
, Option
);
4026 PRINT_BITS_INFO (MemoryDeviceTypeDetailTable
, Para
);
4030 Display 32-bit Memory Error Information (Type 18) type.
4032 @param[in] ErrorType The key of the structure.
4033 @param[in] Option The optional information.
4036 DisplayMemoryErrorType (
4041 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_INFO
), gShellDebug1HiiHandle
);
4042 PRINT_INFO_OPTION (ErrorType
, Option
);
4043 PRINT_TABLE_ITEM (MemoryErrorTypeTable
, ErrorType
);
4047 Display 32-bit Memory Error Information (Type 18) error granularity.
4049 @param[in] Granularity The key of the structure.
4050 @param[in] Option The optional information.
4053 DisplayMemoryErrorGranularity (
4054 IN UINT8 Granularity
,
4058 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_GRANULARITY
), gShellDebug1HiiHandle
);
4059 PRINT_INFO_OPTION (Granularity
, Option
);
4060 PRINT_TABLE_ITEM (MemoryErrorGranularityTable
, Granularity
);
4064 Display 32-bit Memory Error Information (Type 18) error information.
4066 @param[in] Operation The key of the structure.
4067 @param[in] Option The optional information.
4070 DisplayMemoryErrorOperation (
4075 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_OP
), gShellDebug1HiiHandle
);
4076 PRINT_INFO_OPTION (Operation
, Option
);
4077 PRINT_TABLE_ITEM (MemoryErrorOperationTable
, Operation
);
4081 Display Built-in Pointing Device (Type 21) type information.
4083 @param[in] Type The key of the structure.
4084 @param[in] Option The optional information.
4087 DisplayPointingDeviceType (
4092 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4093 PRINT_INFO_OPTION (Type
, Option
);
4094 PRINT_TABLE_ITEM (PointingDeviceTypeTable
, Type
);
4098 Display Built-in Pointing Device (Type 21) information.
4100 @param[in] Interface The key of the structure.
4101 @param[in] Option The optional information.
4104 DisplayPointingDeviceInterface (
4109 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_INTERFACE
), gShellDebug1HiiHandle
);
4110 PRINT_INFO_OPTION (Interface
, Option
);
4111 PRINT_TABLE_ITEM (PointingDeviceInterfaceTable
, Interface
);
4115 Display Portable Battery (Type 22) information.
4117 @param[in] Key The key of the structure.
4118 @param[in] Option The optional information.
4121 DisplayPBDeviceChemistry (
4126 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORTABLE_BATT_DEV_CHEM
), gShellDebug1HiiHandle
);
4127 PRINT_INFO_OPTION (Key
, Option
);
4128 PRINT_TABLE_ITEM (PBDeviceChemistryTable
, Key
);
4132 Display Voltage Probe (Type 26) location information.
4134 @param[in] Key The key of the structure.
4135 @param[in] Option The optional information.
4145 Loc
= (UINT8
) ((Key
& 0xE0) >> 5);
4146 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4147 PRINT_INFO_OPTION (Loc
, Option
);
4148 PRINT_TABLE_ITEM (VPLocationTable
, Loc
);
4152 Display Voltage Probe (Type 26) status ype information.
4154 @param[in] Key The key of the structure.
4155 @param[in] Option The optional information.
4165 Status
= (UINT8
) (Key
& 0x1F);
4166 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_STATUS
), gShellDebug1HiiHandle
);
4167 PRINT_INFO_OPTION (Status
, Option
);
4168 PRINT_TABLE_ITEM (VPStatusTable
, Status
);
4172 Display Cooling (Type 27) status information.
4174 @param[in] Key The key of the structure.
4175 @param[in] Option The optional information.
4178 DisplayCoolingDeviceStatus (
4185 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4186 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_STATUS
), gShellDebug1HiiHandle
);
4187 PRINT_INFO_OPTION (Status
, Option
);
4188 PRINT_TABLE_ITEM (CoolingDeviceStatusTable
, Status
);
4192 Display Cooling (Type 27) type information.
4194 @param[in] Key The key of the structure.
4195 @param[in] Option The optional information.
4198 DisplayCoolingDeviceType (
4205 Type
= (UINT8
) (Key
& 0x1F);
4206 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_TYPE
), gShellDebug1HiiHandle
);
4207 PRINT_INFO_OPTION (Type
, Option
);
4208 PRINT_TABLE_ITEM (CoolingDeviceTypeTable
, Type
);
4212 Display Temperature Probe (Type 28) status information.
4214 @param[in] Key The key of the structure.
4215 @param[in] Option The optional information.
4218 DisplayTemperatureProbeStatus (
4225 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4226 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_TEMP_PROBE
), gShellDebug1HiiHandle
);
4227 PRINT_INFO_OPTION (Status
, Option
);
4228 PRINT_TABLE_ITEM (TemperatureProbeStatusTable
, Status
);
4232 Display Temperature Probe (Type 28) location information.
4234 @param[in] Key The key of the structure.
4235 @param[in] Option The optional information.
4238 DisplayTemperatureProbeLoc (
4245 Loc
= (UINT8
) (Key
& 0x1F);
4246 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4247 PRINT_INFO_OPTION (Loc
, Option
);
4248 PRINT_TABLE_ITEM (TemperatureProbeLocTable
, Loc
);
4252 Display Electrical Current Probe (Type 29) status information.
4254 @param[in] Key The key of the structure.
4255 @param[in] Option The optional information.
4265 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4266 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_STATUS
), gShellDebug1HiiHandle
);
4267 PRINT_INFO_OPTION (Status
, Option
);
4268 PRINT_TABLE_ITEM (ECPStatusTable
, Status
);
4272 Display Type 29 information.
4274 @param[in] Key The key of the structure.
4275 @param[in] Option The optional information.
4285 Loc
= (UINT8
) (Key
& 0x1F);
4286 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_LOC
), gShellDebug1HiiHandle
);
4287 PRINT_INFO_OPTION (Loc
, Option
);
4288 PRINT_TABLE_ITEM (ECPLocTable
, Loc
);
4292 Display Management Device (Type 34) Type.
4294 @param[in] Key The key of the structure.
4295 @param[in] Option The optional information.
4303 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_TYPE
), gShellDebug1HiiHandle
);
4304 PRINT_INFO_OPTION (Key
, Option
);
4305 PRINT_TABLE_ITEM (MDTypeTable
, Key
);
4309 Display Management Device (Type 34) Address Type.
4311 @param[in] Key The key of the structure.
4312 @param[in] Option The optional information.
4315 DisplayMDAddressType (
4320 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_ADDR_TYPE
), gShellDebug1HiiHandle
);
4321 PRINT_INFO_OPTION (Key
, Option
);
4322 PRINT_TABLE_ITEM (MDAddressTypeTable
, Key
);
4326 Display Memory Channel (Type 37) information.
4328 @param[in] Key The key of the structure.
4329 @param[in] Option The optional information.
4332 DisplayMemoryChannelType (
4337 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CHANNEL_TYPE
), gShellDebug1HiiHandle
);
4338 PRINT_INFO_OPTION (Key
, Option
);
4339 PRINT_TABLE_ITEM (MemoryChannelTypeTable
, Key
);
4343 Display IPMI Device Information (Type 38) information.
4345 @param[in] Key The key of the structure.
4346 @param[in] Option The optional information.
4349 DisplayIPMIDIBMCInterfaceType (
4354 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BMC_INTERFACE_TYPE
), gShellDebug1HiiHandle
);
4355 PRINT_INFO_OPTION (Key
, Option
);
4356 PRINT_TABLE_ITEM (IPMIDIBMCInterfaceTypeTable
, Key
);
4360 Display the structure type information.
4362 @param[in] Key The key of the structure.
4363 @param[in] Option The optional information.
4366 DisplayStructureTypeInfo (
4374 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_STRUCT_TYPE
), gShellDebug1HiiHandle
);
4375 PRINT_INFO_OPTION (Key
, Option
);
4376 PRINT_TABLE_ITEM (StructureTypeInfoTable
, Key
);