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 - 2015, Intel Corporation. All rights reserved.<BR>
6 (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP<BR>
7 This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 #include "../UefiShellDebug1CommandsLib.h"
18 #include "QueryTable.h"
19 #include "PrintInfo.h"
21 TABLE_ITEM SystemWakeupTypeTable
[] = {
56 TABLE_ITEM BaseBoardFeatureFlagsTable
[] = {
63 L
" Requires at least one daughter board or auxiliary card"
79 TABLE_ITEM BaseBoardBoardTypeTable
[] = {
94 L
" Connectivity Switch"
98 L
" System Management Module"
122 L
" Processor/Memory Module"
126 L
" Processor/IO Module"
130 L
" Interconnect Board"
134 TABLE_ITEM SystemEnclosureTypeTable
[] = {
149 L
" Low Profile Desktop"
197 L
" Main Server Chassis"
201 L
" Expansion Chassis"
213 L
" Bus Expansion Chassis"
217 L
" Peripheral Chassis"
225 L
" Rack Mount Chassis"
233 L
" Multi-system Chassis"
253 TABLE_ITEM SystemEnclosureStatusTable
[] = {
280 TABLE_ITEM SESecurityStatusTable
[] = {
295 L
" External interface locked out"
299 L
" External interface enabled"
303 TABLE_ITEM ProcessorTypeTable
[] = {
314 L
" Central Processor"
330 TABLE_ITEM ProcessorUpgradeTable
[] = {
349 L
"Replaceable Piggy Back"
509 TABLE_ITEM ProcessorCharacteristicsTable
[] = {
528 L
" Execute Protection"
532 L
" Enhanced Virtualization"
536 L
" Power/Performance Control"
541 TABLE_ITEM McErrorDetectMethodTable
[] = {
576 TABLE_ITEM McErrorCorrectCapabilityTable
[] = {
591 L
"Single Bit Error Correcting"
595 L
"Double Bit Error Correcting"
603 TABLE_ITEM McInterleaveSupportTable
[] = {
614 L
"One Way Interleave"
618 L
"Two Way Interleave"
622 L
"Four Way Interleave"
626 L
"Eight Way Interleave"
630 L
"Sixteen Way Interleave"
634 TABLE_ITEM McMemorySpeedsTable
[] = {
657 TABLE_ITEM MemoryModuleVoltageTable
[] = {
672 TABLE_ITEM MmMemoryTypeTable
[] = {
719 TABLE_ITEM MmErrorStatusTable
[] = {
722 L
" Uncorrectable errors received"
726 L
" Correctable errors received"
730 L
" Error Status obtained from the event log"
734 TABLE_ITEM CacheSRAMTypeTable
[] = {
765 TABLE_ITEM CacheErrCorrectingTypeTable
[] = {
792 TABLE_ITEM CacheSystemCacheTypeTable
[] = {
815 TABLE_ITEM CacheAssociativityTable
[] = {
830 L
"2-way Set-Associative"
834 L
"4-way Set-Associative"
842 L
"8-way Set-Associative"
846 L
"16-way Set-Associative"
850 L
"12-way Set-Associative"
854 L
"24-way Set-Associative"
858 L
"32-way Set-Associative"
862 L
"48-way Set-Associative"
866 L
"64-way Set-Associative"
870 L
"20-way Set-Associative"
874 TABLE_ITEM PortConnectorTypeTable
[] = {
957 L
"Circular DIN-8 male"
961 L
"Circular DIN-8 female"
973 L
"9 Pin Dual Inline (pin 10 cut)"
977 L
"25 Pin Dual Inline (pin 26 cut)"
981 L
"50 Pin Dual Inline"
985 L
"68 Pin Dual Inline"
989 L
"On Board Sound Input from CD-ROM"
993 L
"Mini-Centronics Type-14"
997 L
"Mini-Centronics Type-26"
1001 L
"Mini-jack (headphones)"
1013 L
"SAS/SATA Plug Receptacle"
1041 TABLE_ITEM PortTypeTable
[] = {
1048 L
"Parallel Port XT/AT Compatible"
1052 L
"Parallel Port PS/2"
1056 L
"Parallel Port ECP"
1060 L
"Parallel Port EPP"
1064 L
"Parallel Port ECP/EPP"
1068 L
"Serial Port XT/AT Compatible"
1072 L
"Serial Port 16450 Compatible"
1076 L
"Serial Port 16550 Compatible"
1080 L
"Serial Port 16550A Compatible"
1112 L
"FireWire (IEEE P1394)"
1184 L
"8251 FIFO Compatible"
1192 TABLE_ITEM SystemSlotTypeTable
[] = {
1231 L
"Processor Card Slot"
1235 L
"Proprietary Memory Card Slot"
1239 L
"I/O Riser Card Slot"
1247 L
"PCI - 66MHz Capable"
1311 L
"PCI Express Gen 2"
1315 L
"PCI Express Gen 2 X1"
1319 L
"PCI Express Gen 2 X2"
1323 L
"PCI Express Gen 2 X4"
1327 L
"PCI Express Gen 2 X8"
1331 L
"PCI Express Gen 2 X16"
1335 L
"PCI Express Gen 3"
1339 L
"PCI Express Gen 3 X1"
1343 L
"PCI Express Gen 3 X2"
1347 L
"PCI Express Gen 3 X4"
1351 L
"PCI Express Gen 3 X8"
1355 L
"PCI Express Gen 3 X16"
1359 TABLE_ITEM SystemSlotDataBusWidthTable
[] = {
1418 TABLE_ITEM SystemSlotCurrentUsageTable
[] = {
1437 TABLE_ITEM SystemSlotLengthTable
[] = {
1456 TABLE_ITEM SlotCharacteristics1Table
[] = {
1459 L
" Characteristics Unknown"
1463 L
" Provides 5.0 Volts"
1467 L
" Provides 3.3 Volts"
1471 L
" Slot's opening is shared with another slot, e.g. PCI/EISA shared slot."
1476 L
" PC Card slot supports PC Card-16"
1480 L
" PC Card slot supports CardBus"
1484 L
" PC Card slot supports Zoom Video "
1488 L
" PC Card slot supports Modem Ring Resume "
1492 TABLE_ITEM SlotCharacteristics2Table
[] = {
1495 L
" PCI slot supports Power Management Enable (PME#) signal"
1499 L
" Slot supports hot-plug devices"
1503 L
" PCI slot supports SMBus signal"
1507 TABLE_ITEM OnboardDeviceTypesTable
[] = {
1550 TABLE_ITEM SELTypesTable
[] = {
1557 L
" Single-bit ECC memory error"
1561 L
" Multi-bit ECC memory error"
1565 L
" Parity memory error"
1573 L
" I/O Channel Check"
1581 L
" POST Memory Resize"
1589 L
" PCI Parity Error"
1593 L
" PCI System Error"
1601 L
" EISA FailSafe Timer time-out"
1605 L
" Correctable memory log disabled"
1609 L
" Logging disabled for a specific Event Type"
1617 L
" System Limit Exceeded"
1621 L
" Asynchronous hardware timer expired and issued a system reset"
1625 L
" System configuration information"
1629 L
" Hard-disk information"
1633 L
" System reconfigured"
1637 L
" Uncorrectable CPU-complex error"
1641 L
" Log Area Reset/Cleared"
1649 L
" Unused by SMBIOS specification"
1653 L
" System and OEM specified"
1661 TABLE_ITEM SELVarDataFormatTypeTable
[] = {
1676 L
" Multiple-Event Handle "
1680 L
" POST Results Bitmap "
1687 L
" System Management Type"
1694 L
" Multiple-Event System Management Type "
1706 TABLE_ITEM PostResultsBitmapDw1Table
[] = {
1709 L
" Channel 2 Timer error "
1713 L
" Master PIC (8259 #1) error "
1717 L
" Slave PIC (8259 #2) error "
1721 L
" CMOS Battery Failure "
1725 L
" CMOS System Options Not Set "
1729 L
" CMOS Checksum Error "
1733 L
" CMOS Configuration Error "
1737 L
" Mouse and Keyboard Swapped "
1741 L
" Keyboard Locked "
1745 L
" Keyboard Not Functional "
1749 L
" Keyboard Controller Not Functional "
1753 L
" CMOS Memory Size Different "
1757 L
" Memory Decreased in Size "
1761 L
" Cache Memory Error "
1765 L
" Floppy Drive 0 Error "
1769 L
" Floppy Drive 1 Error "
1773 L
" Floppy Controller Failure "
1777 L
" Number of ATA Drives Reduced Error "
1781 L
" CMOS Time Not Set "
1785 L
" DDC Monitor Configuration Change "
1789 L
" Reserved, set to 0 "
1793 L
" Reserved, set to 0 "
1797 L
" Reserved, set to 0 "
1801 L
" Reserved, set to 0 "
1805 L
" Second DWORD has valid data "
1809 L
" Reserved, set to 0 "
1813 L
" Reserved, set to 0 "
1817 L
" Reserved, set to 0 "
1821 L
" Normally 0; available for OEM assignment "
1825 L
" Normally 0; available for OEM assignment "
1829 L
" Normally 0; available for OEM assignment "
1833 L
" Normally 0; available for OEM assignment "
1837 TABLE_ITEM PostResultsBitmapDw2Table
[] = {
1840 L
" Normally 0; available for OEM assignment "
1844 L
" Normally 0; available for OEM assignment "
1848 L
" Normally 0; available for OEM assignment "
1852 L
" Normally 0; available for OEM assignment "
1856 L
" Normally 0; available for OEM assignment "
1860 L
" Normally 0; available for OEM assignment "
1864 L
" Normally 0; available for OEM assignment "
1868 L
" PCI Memory Conflict "
1872 L
" PCI I/O Conflict "
1876 L
" PCI IRQ Conflict "
1880 L
" PNP Memory Conflict "
1884 L
" PNP 32 bit Memory Conflict "
1888 L
" PNP I/O Conflict "
1892 L
" PNP IRQ Conflict "
1896 L
" PNP DMA Conflict "
1900 L
" Bad PNP Serial ID Checksum "
1904 L
" Bad PNP Resource Data Checksum "
1908 L
" Static Resource Conflict "
1912 L
" NVRAM Checksum Error, NVRAM Cleared "
1916 L
" System Board Device Resource Conflict "
1920 L
" Primary Output Device Not Found "
1924 L
" Primary Input Device Not Found "
1928 L
" Primary Boot Device Not Found "
1932 L
" NVRAM Cleared By Jumper "
1936 L
" NVRAM Data Invalid, NVRAM Cleared "
1940 L
" FDC Resource Conflict "
1944 L
" Primary ATA Controller Resource Conflict "
1948 L
" Secondary ATA Controller Resource Conflict "
1952 L
" Parallel Port Resource Conflict "
1956 L
" Serial Port 1 Resource Conflict "
1960 L
" Serial Port 2 Resource Conflict "
1964 L
" Audio Resource Conflict "
1968 TABLE_ITEM SELSysManagementTypesTable
[] = {
1971 L
" +2.5V Out of range, #2 "
1975 L
" +3.3V Out of range "
1979 L
" +5V Out of range "
1983 L
" -5V Out of range "
1987 L
" +12V Out of range "
1991 L
" -12V Out of range "
1995 L
" Reserved for future out-of-range voltage levels "
1999 L
" System board temperature out of range "
2003 L
" Processor #1 temperature out of range "
2007 L
" Processor #2 temperature out of range "
2011 L
" Processor #3 temperature out of range "
2015 L
" Processor #4 temperature out of range "
2019 L
" Reserved for future out-of-range temperatures"
2023 L
" Fan n (n = 0 to 7) Out of range "
2027 L
" Reserved for future assignment via this specification "
2031 L
" Chassis secure switch activated "
2035 TABLE_ITEM PMALocationTable
[] = {
2046 L
" System board or motherboard"
2054 L
" EISA add-on card"
2066 L
" PCMCIA add-on card"
2070 L
" Proprietary add-on card"
2078 L
" PC-98/C20 add-on card"
2082 L
" PC-98/C24 add-on card"
2086 L
" PC-98/E add-on card"
2090 L
" PC-98/Local bus add-on card"
2094 TABLE_ITEM PMAUseTable
[] = {
2117 L
" Non-volatile RAM"
2125 TABLE_ITEM PMAErrorCorrectionTypesTable
[] = {
2156 TABLE_ITEM MemoryDeviceFormFactorTable
[] = {
2187 L
" Proprietary Card"
2219 TABLE_ITEM MemoryDeviceTypeTable
[] = {
2330 TABLE_ITEM MemoryDeviceTypeDetailTable
[] = {
2381 L
" Registered(Buffered)"
2385 L
" Unbuffered(Unregistered)"
2389 TABLE_ITEM MemoryErrorTypeTable
[] = {
2412 L
" Single-bit error"
2416 L
" Double-bit error"
2436 L
" Corrected single-bit error"
2444 L
" Uncorrectable error"
2448 TABLE_ITEM MemoryErrorGranularityTable
[] = {
2463 L
" Memory partition level"
2467 TABLE_ITEM MemoryErrorOperationTable
[] = {
2490 TABLE_ITEM PointingDeviceTypeTable
[] = {
2521 TABLE_ITEM PointingDeviceInterfaceTable
[] = {
2552 L
" ADB(Apple Desktop Bus"
2560 L
" Bus mouse mirco-DIN"
2568 TABLE_ITEM PBDeviceChemistryTable
[] = {
2587 L
" Nickel metal hydride "
2599 L
" Lithium Polymer "
2603 TABLE_ITEM VPLocationTable
[] = {
2626 L
" Non-recoverable "
2630 TABLE_ITEM VPStatusTable
[] = {
2653 L
" System Management Module "
2665 L
" Processor Module "
2677 TABLE_ITEM CoolingDeviceStatusTable
[] = {
2700 L
" Non-recoverable "
2704 TABLE_ITEM CoolingDeviceTypeTable
[] = {
2719 L
" Centrifugal Blower "
2731 L
" Power Supply Fan "
2739 L
" Integrated Refrigeration "
2747 L
" Passive Cooling "
2751 TABLE_ITEM TemperatureProbeStatusTable
[] = {
2774 L
" Non-recoverable "
2778 TABLE_ITEM TemperatureProbeLocTable
[] = {
2801 L
" System Management Module "
2813 L
" Processor Module "
2825 TABLE_ITEM ECPStatusTable
[] = {
2848 L
" Non-recoverable "
2852 TABLE_ITEM ECPLocTable
[] = {
2875 L
" System Management Module "
2887 L
" Processor Module "
2899 TABLE_ITEM MDTypeTable
[] = {
2910 L
" National Semiconductor LM75 "
2914 L
" National Semiconductor LM78 "
2918 L
" National Semiconductor LM79 "
2922 L
" National Semiconductor LM80 "
2926 L
" National Semiconductor LM81 "
2930 L
" Analog Devices ADM9240 "
2934 L
" Dallas Semiconductor DS1780 "
2942 L
" Genesys GL518SM "
2946 L
" Winbond W83781D "
2950 L
" Holtek HT82H791 "
2954 TABLE_ITEM MDAddressTypeTable
[] = {
2977 TABLE_ITEM MemoryChannelTypeTable
[] = {
2996 TABLE_ITEM IPMIDIBMCInterfaceTypeTable
[] = {
3003 L
" KCS: Keyboard Controller Style "
3007 L
" SMIC: Server Management Interface Chip "
3011 L
" BT: Block Transfer "
3015 L
" Reserved for future assignment by this specification "
3019 TABLE_ITEM StructureTypeInfoTable
[] = {
3022 L
" BIOS Information"
3026 L
" System Information"
3030 L
" Base Board Information"
3034 L
" System Enclosure"
3038 L
" Processor Information"
3042 L
" Memory Controller Information "
3046 L
" Memory Module Information "
3050 L
" Cache Information "
3054 L
" Port Connector Information "
3062 L
" On Board Devices Information "
3070 L
" System Configuration Options "
3074 L
" BIOS Language Information "
3078 L
" Group Associations "
3082 L
" System Event Log "
3086 L
" Physical Memory Array "
3094 L
" 32-bit Memory Error Information "
3098 L
" Memory Array Mapped Address "
3102 L
" Memory Device Mapped Address "
3106 L
" Built-in Pointing Device "
3110 L
" Portable Battery "
3118 L
" Hardware Security "
3122 L
" System Power Controls "
3134 L
" Temperature Probe "
3138 L
" Electrical Current Probe "
3142 L
" Out-of-Band Remote Access "
3146 L
" Boot Integrity Services (BIS) Entry Point"
3150 L
" System Boot Information "
3154 L
" 64-bit Memory Error Information "
3158 L
" Management Device "
3162 L
" Management Device Component "
3166 L
" Management Device Threshold Data "
3174 L
" IPMI Device Information "
3178 L
" System Power Supply"
3182 L
" Additional Information"
3186 L
" Onboard Devices Extended Information"
3190 L
" Management Controller Host Interface"
3208 Given a table and a Key, return the responding info.
3211 Table[Index].Key is change from UINT8 to UINT16,
3212 in order to deal with "0xaa - 0xbb".
3215 DisplaySELVariableDataFormatTypes(UINT8 Type, UINT8 Option)
3218 Now define Key = 0x7F07, that is to say: High = 0x7F, Low = 0x07.
3219 Then all the Key Value between Low and High gets the same string
3222 @param[in] Table The begin address of table.
3223 @param[in] Number The number of table items.
3224 @param[in] Key The query Key.
3225 @param[in, out] Info Input as empty buffer; output as data buffer.
3226 @param[in] InfoLen The max number of characters for Info.
3228 @return the found Key and Info is valid.
3229 @retval QUERY_TABLE_UNFOUND and Info should be NULL.
3233 IN TABLE_ITEM
*Table
,
3236 IN OUT CHAR16
*Info
,
3242 // High byte and Low byte of word
3247 for (Index
= 0; Index
< Number
; Index
++) {
3248 High
= (UINT8
) (Table
[Index
].Key
>> 8);
3249 Low
= (UINT8
) (Table
[Index
].Key
& 0x00FF);
3252 // Check if Key is in the range
3253 // or if Key == Value in the table
3255 if ((High
> Low
&& Key
>= Low
&& Key
<= High
)
3256 || (Table
[Index
].Key
== Key
)) {
3257 StrnCpyS (Info
, InfoLen
, Table
[Index
].Info
, InfoLen
- 1);
3258 StrnCatS (Info
, InfoLen
, L
"\n", InfoLen
- 1 - StrLen(Info
));
3263 StrCpyS (Info
, InfoLen
, L
"Undefined Value\n");
3264 return QUERY_TABLE_UNFOUND
;
3268 Given a table of bit info and a Key, return the responding info to the Key.
3270 @param[in] Table Point to a table which maintains a map of 'bit' to 'message'.
3271 @param[in] Number Number of table items.
3272 @param[in] Bits The Key of query the bit map information.
3276 IN TABLE_ITEM
*Table
,
3282 // Get certain bit of 'Value':
3284 #define BIT(Value, bit) ((Value) & ((UINT32) 1) << (bit))
3286 // Clear certain bit of 'Value':
3288 #define CLR_BIT(Value, bit) ((Value) -= (BIT (Value, bit)))
3297 // query the table and print information
3299 for (Index
= 0; Index
< Number
; Index
++) {
3300 if (BIT (Value
, Table
[Index
].Key
) != 0) {
3301 Print (Table
[Index
].Info
);
3306 // clear the bit, for reserved bits test
3308 CLR_BIT (Value
, Table
[Index
].Key
);
3313 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_NO_INFO
), gShellDebug1HiiHandle
);
3317 ShellPrintHiiEx(-1,-1,NULL
,
3318 STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_BITS_SET
),
3319 gShellDebug1HiiHandle
,
3327 // //////////////////////////////////////////////////////////////////
3329 // Following uses QueryTable functions to simplify the coding.
3330 // QueryTable(), PrintBitsInfo()
3333 #define PRINT_TABLE_ITEM(Table, Key) \
3337 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3338 ZeroMem (Info, sizeof (Info)); \
3339 QueryTable (Table, Num, Key, Info, sizeof(Info)/sizeof(Info[0])); \
3343 #define PRINT_BITS_INFO(Table, bits) \
3346 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3347 PrintBitsInfo (Table, Num, (UINT32) bits); \
3351 Display System Information (Type 1) Type.
3353 @param[in] Type The key of the structure.
3354 @param[in] Option The optional information.
3357 DisplaySystemWakeupType (
3362 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_WAKEUP_TYPE
), gShellDebug1HiiHandle
);
3363 PRINT_INFO_OPTION (Type
, Option
);
3364 PRINT_TABLE_ITEM (SystemWakeupTypeTable
, Type
);
3368 Display Base Board (Type 2) Feature Flags.
3370 @param[in] FeatureFlags The key of the structure.
3371 @param[in] Option The optional information.
3374 DisplayBaseBoardFeatureFlags (
3375 IN UINT8 FeatureFlags
,
3379 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_FEATURE_FLAGS
), gShellDebug1HiiHandle
);
3380 PRINT_INFO_OPTION (FeatureFlags
, Option
);
3381 PRINT_BITS_INFO (BaseBoardFeatureFlagsTable
, FeatureFlags
);
3385 Display Base Board (Type 2) Board Type.
3387 @param[in] Type The key of the structure.
3388 @param[in] Option The optional information.
3391 DisplayBaseBoardBoardType(
3396 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_BOARD_TYPE
), gShellDebug1HiiHandle
);
3397 PRINT_INFO_OPTION (Type
, Option
);
3398 PRINT_TABLE_ITEM (BaseBoardBoardTypeTable
, Type
);
3402 Display System Enclosure (Type 3) Enclosure Type.
3404 @param[in] Type The key of the structure.
3405 @param[in] Option The optional information.
3408 DisplaySystemEnclosureType (
3413 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_TYPE
), gShellDebug1HiiHandle
);
3414 PRINT_INFO_OPTION (Type
, Option
);
3416 // query table and print info
3418 PRINT_TABLE_ITEM (SystemEnclosureTypeTable
, Type
);
3420 if (BIT (Type
, 7) != 0) {
3421 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CHASSIS_LOCK_PRESENT
), gShellDebug1HiiHandle
);
3426 Display System Enclosure (Type 3) Enclosure Status.
3428 @param[in] Status The key of the structure.
3429 @param[in] Option The optional information.
3432 DisplaySystemEnclosureStatus (
3437 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_STATUS
), gShellDebug1HiiHandle
);
3438 PRINT_INFO_OPTION (Status
, Option
);
3439 PRINT_TABLE_ITEM (SystemEnclosureStatusTable
, Status
);
3443 Display System Enclosure (Type 3) Security Status.
3445 @param[in] Status The key of the structure.
3446 @param[in] Option The optional information.
3449 DisplaySESecurityStatus (
3454 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_SECURITY
), gShellDebug1HiiHandle
);
3455 PRINT_INFO_OPTION (Status
, Option
);
3456 PRINT_TABLE_ITEM (SESecurityStatusTable
, Status
);
3460 Display Processor Information (Type 4) Type.
3462 @param[in] Type The key of the structure.
3463 @param[in] Option The optional information.
3466 DisplayProcessorType (
3471 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_TYPE
), gShellDebug1HiiHandle
);
3472 PRINT_INFO_OPTION (Type
, Option
);
3473 PRINT_TABLE_ITEM (ProcessorTypeTable
, Type
);
3477 Display Processor Information (Type 4) Upgrade.
3479 @param[in] Upgrade The key of the structure.
3480 @param[in] Option The optional information.
3483 DisplayProcessorUpgrade (
3488 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_UPDATE
), gShellDebug1HiiHandle
);
3489 PRINT_INFO_OPTION (Upgrade
, Option
);
3490 PRINT_TABLE_ITEM (ProcessorUpgradeTable
, Upgrade
);
3494 Display Processor Information (Type 4) Characteristics.
3496 @param[in] Type The key of the structure.
3497 @param[in] Option The optional information.
3500 DisplayProcessorCharacteristics (
3505 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_CHARACTERISTICS
), gShellDebug1HiiHandle
);
3506 PRINT_INFO_OPTION (Type
, Option
);
3507 PRINT_BITS_INFO (ProcessorCharacteristicsTable
, Type
);
3511 Display Memory Controller Information (Type 5) method.
3513 @param[in] Method The key of the structure.
3514 @param[in] Option The optional information.
3517 DisplayMcErrorDetectMethod (
3522 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DETECTMETHOD
), gShellDebug1HiiHandle
);
3523 PRINT_INFO_OPTION (Method
, Option
);
3524 PRINT_TABLE_ITEM (McErrorDetectMethodTable
, Method
);
3528 Display Memory Controller Information (Type 5) Capability.
3530 @param[in] Capability The key of the structure.
3531 @param[in] Option The optional information.
3534 DisplayMcErrorCorrectCapability (
3535 IN UINT8 Capability
,
3539 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CORRECT_CAPABILITY
), gShellDebug1HiiHandle
);
3540 PRINT_INFO_OPTION (Capability
, Option
);
3541 PRINT_BITS_INFO (McErrorCorrectCapabilityTable
, Capability
);
3545 Display Memory Controller Information (Type 5) Support.
3547 @param[in] Support The key of the structure.
3548 @param[in] Option The optional information.
3551 DisplayMcInterleaveSupport (
3556 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_INTERLEAVE_SUPPORT
), gShellDebug1HiiHandle
);
3557 PRINT_INFO_OPTION (Support
, Option
);
3558 PRINT_TABLE_ITEM (McInterleaveSupportTable
, Support
);
3562 Display Memory Controller Information (Type 5) speeds.
3564 @param[in] Speed The key of the structure.
3565 @param[in] Option The optional information.
3568 DisplayMcMemorySpeeds (
3573 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MEMORY_SPEED
), gShellDebug1HiiHandle
);
3574 PRINT_INFO_OPTION (Speed
, Option
);
3575 PRINT_BITS_INFO (McMemorySpeedsTable
, Speed
);
3579 Display Memory Controller Information (Type 5) voltage.
3581 @param[in] Voltage The key of the structure.
3582 @param[in] Option The optional information.
3585 DisplayMemoryModuleVoltage (
3590 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_REQUIRED_VOLTAGES
), gShellDebug1HiiHandle
);
3591 PRINT_INFO_OPTION (Voltage
, Option
);
3592 PRINT_BITS_INFO (MemoryModuleVoltageTable
, Voltage
);
3596 Display Memory Module Information (Type 6) type.
3598 @param[in] Type The key of the structure.
3599 @param[in] Option The optional information.
3602 DisplayMmMemoryType (
3607 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_TYPE
), gShellDebug1HiiHandle
);
3608 PRINT_INFO_OPTION (Type
, Option
);
3609 PRINT_BITS_INFO (MmMemoryTypeTable
, Type
);
3613 Display Memory Module Information (Type 6) status.
3615 @param[in] Status The key of the structure.
3616 @param[in] Option The optional information.
3619 DisplayMmErrorStatus (
3624 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_ERROR_STATUS
), gShellDebug1HiiHandle
);
3625 PRINT_INFO_OPTION (Status
, Option
);
3626 PRINT_BITS_INFO (MmErrorStatusTable
, Status
);
3630 Display Cache Information (Type 7) SRAM Type.
3632 @param[in] Type The key of the structure.
3633 @param[in] Option The optional information.
3636 DisplayCacheSRAMType (
3641 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SRAM_TYPE
), gShellDebug1HiiHandle
);
3642 PRINT_INFO_OPTION ((UINT8
) Type
, Option
);
3643 PRINT_BITS_INFO (CacheSRAMTypeTable
, (UINT8
) Type
);
3647 Display Cache Information (Type 7) correcting Type.
3649 @param[in] Type The key of the structure.
3650 @param[in] Option The optional information.
3653 DisplayCacheErrCorrectingType (
3658 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ERROR_CORRECTING
), gShellDebug1HiiHandle
);
3659 PRINT_INFO_OPTION (Type
, Option
);
3660 PRINT_TABLE_ITEM (CacheErrCorrectingTypeTable
, Type
);
3664 Display Cache Information (Type 7) Type.
3666 @param[in] Type The key of the structure.
3667 @param[in] Option The optional information.
3670 DisplayCacheSystemCacheType (
3675 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SYSTEM_TYPE
), gShellDebug1HiiHandle
);
3676 PRINT_INFO_OPTION (Type
, Option
);
3677 PRINT_TABLE_ITEM (CacheSystemCacheTypeTable
, Type
);
3681 Display Cache Information (Type 7) Associativity.
3683 @param[in] Associativity The key of the structure.
3684 @param[in] Option The optional information.
3687 DisplayCacheAssociativity (
3688 IN UINT8 Associativity
,
3692 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ASSOCIATIVITY
), gShellDebug1HiiHandle
);
3693 PRINT_INFO_OPTION (Associativity
, Option
);
3694 PRINT_TABLE_ITEM (CacheAssociativityTable
, Associativity
);
3698 Display Port Connector Information (Type 8) type.
3700 @param[in] Type The key of the structure.
3701 @param[in] Option The optional information.
3704 DisplayPortConnectorType (
3709 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_CONNECTOR_TYPE
), gShellDebug1HiiHandle
);
3710 PRINT_INFO_OPTION (Type
, Option
);
3711 PRINT_TABLE_ITEM (PortConnectorTypeTable
, Type
);
3715 Display Port Connector Information (Type 8) port type.
3717 @param[in] Type The key of the structure.
3718 @param[in] Option The optional information.
3726 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_TYPE
), gShellDebug1HiiHandle
);
3727 PRINT_INFO_OPTION (Type
, Option
);
3728 PRINT_TABLE_ITEM (PortTypeTable
, Type
);
3732 Display System Slots (Type 9) slot type.
3734 @param[in] Type The key of the structure.
3735 @param[in] Option The optional information.
3738 DisplaySystemSlotType (
3743 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_TYPE
), gShellDebug1HiiHandle
);
3744 PRINT_INFO_OPTION (Type
, Option
);
3745 PRINT_TABLE_ITEM (SystemSlotTypeTable
, Type
);
3749 Display System Slots (Type 9) data bus width.
3751 @param[in] Width The key of the structure.
3752 @param[in] Option The optional information.
3755 DisplaySystemSlotDataBusWidth (
3760 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_DATA
), gShellDebug1HiiHandle
);
3761 PRINT_INFO_OPTION (Width
, Option
);
3762 PRINT_TABLE_ITEM (SystemSlotDataBusWidthTable
, Width
);
3766 Display System Slots (Type 9) usage information.
3768 @param[in] Usage The key of the structure.
3769 @param[in] Option The optional information.
3772 DisplaySystemSlotCurrentUsage (
3777 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_CURRENT_USAGE
), gShellDebug1HiiHandle
);
3778 PRINT_INFO_OPTION (Usage
, Option
);
3779 PRINT_TABLE_ITEM (SystemSlotCurrentUsageTable
, Usage
);
3783 Display System Slots (Type 9) slot length.
3785 @param[in] Length The key of the structure.
3786 @param[in] Option The optional information.
3789 DisplaySystemSlotLength (
3794 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_LENGTH
), gShellDebug1HiiHandle
);
3795 PRINT_INFO_OPTION (Length
, Option
);
3796 PRINT_TABLE_ITEM (SystemSlotLengthTable
, Length
);
3800 Display System Slots (Type 9) characteristics.
3802 @param[in] Chara1 The key of the structure.
3803 @param[in] Option The optional information.
3806 DisplaySlotCharacteristics1 (
3811 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS
), gShellDebug1HiiHandle
);
3812 PRINT_INFO_OPTION (Chara1
, Option
);
3813 PRINT_BITS_INFO (SlotCharacteristics1Table
, Chara1
);
3817 Display System Slots (Type 9) characteristics.
3819 @param[in] Chara2 The key of the structure.
3820 @param[in] Option The optional information.
3823 DisplaySlotCharacteristics2 (
3828 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS_2
), gShellDebug1HiiHandle
);
3829 PRINT_INFO_OPTION (Chara2
, Option
);
3830 PRINT_BITS_INFO (SlotCharacteristics2Table
, Chara2
);
3834 Display On Board Devices Information (Type 10) types.
3836 @param[in] Type The key of the structure.
3837 @param[in] Option The optional information.
3840 DisplayOnboardDeviceTypes (
3845 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ONBOARD_DEVICE_TYPE
), gShellDebug1HiiHandle
);
3846 PRINT_INFO_OPTION (Type
, Option
);
3847 PRINT_TABLE_ITEM (OnboardDeviceTypesTable
, Type
);
3851 Display System Event Log (Type 15) types.
3853 @param[in] Type The key of the structure.
3854 @param[in] Option The optional information.
3862 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_EVENT_LOG_TYPE
), gShellDebug1HiiHandle
);
3863 PRINT_INFO_OPTION (Type
, Option
);
3864 PRINT_TABLE_ITEM (SELTypesTable
, Type
);
3868 Display System Event Log (Type 15) format type.
3870 @param[in] Type The key of the structure.
3871 @param[in] Option The optional information.
3874 DisplaySELVarDataFormatType (
3879 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_EVENT_LOG_VAR_DATA_FORMAT
), gShellDebug1HiiHandle
);
3880 PRINT_INFO_OPTION (Type
, Option
);
3881 PRINT_TABLE_ITEM (SELVarDataFormatTypeTable
, Type
);
3885 Display System Event Log (Type 15) dw1.
3887 @param[in] Key The key of the structure.
3888 @param[in] Option The optional information.
3891 DisplayPostResultsBitmapDw1 (
3896 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_BITMAP
), gShellDebug1HiiHandle
);
3897 PRINT_INFO_OPTION (Key
, Option
);
3898 PRINT_BITS_INFO (PostResultsBitmapDw1Table
, Key
);
3902 Display System Event Log (Type 15) dw2.
3904 @param[in] Key The key of the structure.
3905 @param[in] Option The optional information.
3908 DisplayPostResultsBitmapDw2 (
3913 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_SECOND_DWORD
), gShellDebug1HiiHandle
);
3914 PRINT_INFO_OPTION (Key
, Option
);
3915 PRINT_BITS_INFO (PostResultsBitmapDw2Table
, Key
);
3919 Display System Event Log (Type 15) type.
3921 @param[in] SMType The key of the structure.
3922 @param[in] Option The optional information.
3925 DisplaySELSysManagementTypes (
3932 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_TYPES
), gShellDebug1HiiHandle
);
3933 PRINT_INFO_OPTION (SMType
, Option
);
3936 // Deal with wide range Value
3938 if (SMType
>= 0x80000000) {
3939 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_OEM_ASSIGNED
), gShellDebug1HiiHandle
);
3940 } else if (SMType
>= 0x00020000) {
3941 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
3942 } else if (SMType
>= 0x00010000) {
3943 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_PROBE
), gShellDebug1HiiHandle
);
3944 } else if (SMType
>= 0x31) {
3945 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
3948 // Deal with One byte data
3950 Temp
= (UINT8
) (SMType
& 0x3F);
3951 PRINT_TABLE_ITEM (SELSysManagementTypesTable
, Temp
);
3956 Display Physical Memory Array (Type 16) Location.
3958 @param[in] Location The key of the structure.
3959 @param[in] Option The optional information.
3962 DisplayPMALocation (
3967 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_LOCATION
), gShellDebug1HiiHandle
);
3968 PRINT_INFO_OPTION (Location
, Option
);
3969 PRINT_TABLE_ITEM (PMALocationTable
, Location
);
3973 Display Physical Memory Array (Type 16) Use.
3975 @param[in] Use The key of the structure.
3976 @param[in] Option The optional information.
3984 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_USE
), gShellDebug1HiiHandle
);
3985 PRINT_INFO_OPTION (Use
, Option
);
3986 PRINT_TABLE_ITEM (PMAUseTable
, Use
);
3990 Display Physical Memory Array (Type 16) Types.
3992 @param[in] Type The key of the structure.
3993 @param[in] Option The optional information.
3996 DisplayPMAErrorCorrectionTypes (
4001 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_ERROR
), gShellDebug1HiiHandle
);
4002 PRINT_INFO_OPTION (Type
, Option
);
4003 PRINT_TABLE_ITEM (PMAErrorCorrectionTypesTable
, Type
);
4007 Display Memory Device (Type 17) form factor.
4009 @param[in] FormFactor The key of the structure.
4010 @param[in] Option The optional information.
4013 DisplayMemoryDeviceFormFactor (
4014 IN UINT8 FormFactor
,
4018 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_FORM_FACTOR
), gShellDebug1HiiHandle
);
4019 PRINT_INFO_OPTION (FormFactor
, Option
);
4020 PRINT_TABLE_ITEM (MemoryDeviceFormFactorTable
, FormFactor
);
4024 Display Memory Device (Type 17) type.
4026 @param[in] Type The key of the structure.
4027 @param[in] Option The optional information.
4030 DisplayMemoryDeviceType (
4035 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4036 PRINT_INFO_OPTION (Type
, Option
);
4037 PRINT_TABLE_ITEM (MemoryDeviceTypeTable
, Type
);
4041 Display Memory Device (Type 17) details.
4043 @param[in] Para The key of the structure.
4044 @param[in] Option The optional information.
4047 DisplayMemoryDeviceTypeDetail (
4052 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE_DETAIL
), gShellDebug1HiiHandle
);
4053 PRINT_INFO_OPTION (Para
, Option
);
4054 PRINT_BITS_INFO (MemoryDeviceTypeDetailTable
, Para
);
4058 Display 32-bit Memory Error Information (Type 18) type.
4060 @param[in] ErrorType The key of the structure.
4061 @param[in] Option The optional information.
4064 DisplayMemoryErrorType (
4069 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_INFO
), gShellDebug1HiiHandle
);
4070 PRINT_INFO_OPTION (ErrorType
, Option
);
4071 PRINT_TABLE_ITEM (MemoryErrorTypeTable
, ErrorType
);
4075 Display 32-bit Memory Error Information (Type 18) error granularity.
4077 @param[in] Granularity The key of the structure.
4078 @param[in] Option The optional information.
4081 DisplayMemoryErrorGranularity (
4082 IN UINT8 Granularity
,
4086 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_GRANULARITY
), gShellDebug1HiiHandle
);
4087 PRINT_INFO_OPTION (Granularity
, Option
);
4088 PRINT_TABLE_ITEM (MemoryErrorGranularityTable
, Granularity
);
4092 Display 32-bit Memory Error Information (Type 18) error information.
4094 @param[in] Operation The key of the structure.
4095 @param[in] Option The optional information.
4098 DisplayMemoryErrorOperation (
4103 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_OP
), gShellDebug1HiiHandle
);
4104 PRINT_INFO_OPTION (Operation
, Option
);
4105 PRINT_TABLE_ITEM (MemoryErrorOperationTable
, Operation
);
4109 Display Built-in Pointing Device (Type 21) type information.
4111 @param[in] Type The key of the structure.
4112 @param[in] Option The optional information.
4115 DisplayPointingDeviceType (
4120 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4121 PRINT_INFO_OPTION (Type
, Option
);
4122 PRINT_TABLE_ITEM (PointingDeviceTypeTable
, Type
);
4126 Display Built-in Pointing Device (Type 21) information.
4128 @param[in] Interface The key of the structure.
4129 @param[in] Option The optional information.
4132 DisplayPointingDeviceInterface (
4137 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_INTERFACE
), gShellDebug1HiiHandle
);
4138 PRINT_INFO_OPTION (Interface
, Option
);
4139 PRINT_TABLE_ITEM (PointingDeviceInterfaceTable
, Interface
);
4143 Display Portable Battery (Type 22) information.
4145 @param[in] Key The key of the structure.
4146 @param[in] Option The optional information.
4149 DisplayPBDeviceChemistry (
4154 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORTABLE_BATT_DEV_CHEM
), gShellDebug1HiiHandle
);
4155 PRINT_INFO_OPTION (Key
, Option
);
4156 PRINT_TABLE_ITEM (PBDeviceChemistryTable
, Key
);
4160 Display Voltage Probe (Type 26) location information.
4162 @param[in] Key The key of the structure.
4163 @param[in] Option The optional information.
4173 Loc
= (UINT8
) ((Key
& 0xE0) >> 5);
4174 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4175 PRINT_INFO_OPTION (Loc
, Option
);
4176 PRINT_TABLE_ITEM (VPLocationTable
, Loc
);
4180 Display Voltage Probe (Type 26) status ype information.
4182 @param[in] Key The key of the structure.
4183 @param[in] Option The optional information.
4193 Status
= (UINT8
) (Key
& 0x1F);
4194 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_STATUS
), gShellDebug1HiiHandle
);
4195 PRINT_INFO_OPTION (Status
, Option
);
4196 PRINT_TABLE_ITEM (VPStatusTable
, Status
);
4200 Display Cooling (Type 27) status information.
4202 @param[in] Key The key of the structure.
4203 @param[in] Option The optional information.
4206 DisplayCoolingDeviceStatus (
4213 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4214 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_STATUS
), gShellDebug1HiiHandle
);
4215 PRINT_INFO_OPTION (Status
, Option
);
4216 PRINT_TABLE_ITEM (CoolingDeviceStatusTable
, Status
);
4220 Display Cooling (Type 27) type information.
4222 @param[in] Key The key of the structure.
4223 @param[in] Option The optional information.
4226 DisplayCoolingDeviceType (
4233 Type
= (UINT8
) (Key
& 0x1F);
4234 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_TYPE
), gShellDebug1HiiHandle
);
4235 PRINT_INFO_OPTION (Type
, Option
);
4236 PRINT_TABLE_ITEM (CoolingDeviceTypeTable
, Type
);
4240 Display Temperature Probe (Type 28) status information.
4242 @param[in] Key The key of the structure.
4243 @param[in] Option The optional information.
4246 DisplayTemperatureProbeStatus (
4253 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4254 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_TEMP_PROBE
), gShellDebug1HiiHandle
);
4255 PRINT_INFO_OPTION (Status
, Option
);
4256 PRINT_TABLE_ITEM (TemperatureProbeStatusTable
, Status
);
4260 Display Temperature Probe (Type 28) location information.
4262 @param[in] Key The key of the structure.
4263 @param[in] Option The optional information.
4266 DisplayTemperatureProbeLoc (
4273 Loc
= (UINT8
) (Key
& 0x1F);
4274 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4275 PRINT_INFO_OPTION (Loc
, Option
);
4276 PRINT_TABLE_ITEM (TemperatureProbeLocTable
, Loc
);
4280 Display Electrical Current Probe (Type 29) status information.
4282 @param[in] Key The key of the structure.
4283 @param[in] Option The optional information.
4293 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4294 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_STATUS
), gShellDebug1HiiHandle
);
4295 PRINT_INFO_OPTION (Status
, Option
);
4296 PRINT_TABLE_ITEM (ECPStatusTable
, Status
);
4300 Display Type 29 information.
4302 @param[in] Key The key of the structure.
4303 @param[in] Option The optional information.
4313 Loc
= (UINT8
) (Key
& 0x1F);
4314 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_LOC
), gShellDebug1HiiHandle
);
4315 PRINT_INFO_OPTION (Loc
, Option
);
4316 PRINT_TABLE_ITEM (ECPLocTable
, Loc
);
4320 Display Management Device (Type 34) Type.
4322 @param[in] Key The key of the structure.
4323 @param[in] Option The optional information.
4331 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_TYPE
), gShellDebug1HiiHandle
);
4332 PRINT_INFO_OPTION (Key
, Option
);
4333 PRINT_TABLE_ITEM (MDTypeTable
, Key
);
4337 Display Management Device (Type 34) Address Type.
4339 @param[in] Key The key of the structure.
4340 @param[in] Option The optional information.
4343 DisplayMDAddressType (
4348 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_ADDR_TYPE
), gShellDebug1HiiHandle
);
4349 PRINT_INFO_OPTION (Key
, Option
);
4350 PRINT_TABLE_ITEM (MDAddressTypeTable
, Key
);
4354 Display Memory Channel (Type 37) information.
4356 @param[in] Key The key of the structure.
4357 @param[in] Option The optional information.
4360 DisplayMemoryChannelType (
4365 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CHANNEL_TYPE
), gShellDebug1HiiHandle
);
4366 PRINT_INFO_OPTION (Key
, Option
);
4367 PRINT_TABLE_ITEM (MemoryChannelTypeTable
, Key
);
4371 Display IPMI Device Information (Type 38) information.
4373 @param[in] Key The key of the structure.
4374 @param[in] Option The optional information.
4377 DisplayIPMIDIBMCInterfaceType (
4382 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BMC_INTERFACE_TYPE
), gShellDebug1HiiHandle
);
4383 PRINT_INFO_OPTION (Key
, Option
);
4384 PRINT_TABLE_ITEM (IPMIDIBMCInterfaceTypeTable
, Key
);
4388 Display the structure type information.
4390 @param[in] Key The key of the structure.
4391 @param[in] Option The optional information.
4394 DisplayStructureTypeInfo (
4402 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_STRUCT_TYPE
), gShellDebug1HiiHandle
);
4403 PRINT_INFO_OPTION (Key
, Option
);
4404 PRINT_TABLE_ITEM (StructureTypeInfoTable
, Key
);