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 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"
3204 Given a table and a Key, return the responding info.
3207 Table[Index].Key is change from UINT8 to UINT16,
3208 in order to deal with "0xaa - 0xbb".
3211 DisplaySELVariableDataFormatTypes(UINT8 Type, UINT8 Option)
3214 Now define Key = 0x7F07, that is to say: High = 0x7F, Low = 0x07.
3215 Then all the Key Value between Low and High gets the same string
3218 @param[in] Table The begin address of table.
3219 @param[in] Number The number of table items.
3220 @param[in] Key The query Key.
3221 @param[in, out] Info Input as empty buffer; output as data buffer.
3222 @param[in] InfoLen The max number of characters for Info.
3224 @return the found Key and Info is valid.
3225 @retval QUERY_TABLE_UNFOUND and Info should be NULL.
3229 IN TABLE_ITEM
*Table
,
3232 IN OUT CHAR16
*Info
,
3238 // High byte and Low byte of word
3243 for (Index
= 0; Index
< Number
; Index
++) {
3244 High
= (UINT8
) (Table
[Index
].Key
>> 8);
3245 Low
= (UINT8
) (Table
[Index
].Key
& 0x00FF);
3248 // Check if Key is in the range
3249 // or if Key == Value in the table
3251 if ((High
> Low
&& Key
>= Low
&& Key
<= High
)
3252 || (Table
[Index
].Key
== Key
)) {
3253 StrnCpyS (Info
, InfoLen
, Table
[Index
].Info
, InfoLen
- 1);
3254 StrnCatS (Info
, InfoLen
, L
"\n", InfoLen
- 1 - StrLen(Info
));
3259 StrCpyS (Info
, InfoLen
, L
"Undefined Value\n");
3260 return QUERY_TABLE_UNFOUND
;
3264 Given a table of bit info and a Key, return the responding info to the Key.
3266 @param[in] Table Point to a table which maintains a map of 'bit' to 'message'.
3267 @param[in] Number Number of table items.
3268 @param[in] Bits The Key of query the bit map information.
3272 IN TABLE_ITEM
*Table
,
3278 // Get certain bit of 'Value':
3280 #define BIT(Value, bit) ((Value) & ((UINT32) 1) << (bit))
3282 // Clear certain bit of 'Value':
3284 #define CLR_BIT(Value, bit) ((Value) -= (BIT (Value, bit)))
3293 // query the table and print information
3295 for (Index
= 0; Index
< Number
; Index
++) {
3296 if (BIT (Value
, Table
[Index
].Key
) != 0) {
3297 Print (Table
[Index
].Info
);
3302 // clear the bit, for reserved bits test
3304 CLR_BIT (Value
, Table
[Index
].Key
);
3309 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_NO_INFO
), gShellDebug1HiiHandle
);
3313 ShellPrintHiiEx(-1,-1,NULL
,
3314 STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_BITS_SET
),
3315 gShellDebug1HiiHandle
,
3323 // //////////////////////////////////////////////////////////////////
3325 // Following uses QueryTable functions to simplify the coding.
3326 // QueryTable(), PrintBitsInfo()
3329 #define PRINT_TABLE_ITEM(Table, Key) \
3333 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3334 ZeroMem (Info, sizeof (Info)); \
3335 QueryTable (Table, Num, Key, Info, sizeof(Info)/sizeof(Info[0])); \
3339 #define PRINT_BITS_INFO(Table, bits) \
3342 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3343 PrintBitsInfo (Table, Num, (UINT32) bits); \
3347 Display System Information (Type 1) Type.
3349 @param[in] Type The key of the structure.
3350 @param[in] Option The optional information.
3353 DisplaySystemWakeupType (
3358 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_WAKEUP_TYPE
), gShellDebug1HiiHandle
);
3359 PRINT_INFO_OPTION (Type
, Option
);
3360 PRINT_TABLE_ITEM (SystemWakeupTypeTable
, Type
);
3364 Display Base Board (Type 2) Feature Flags.
3366 @param[in] FeatureFlags The key of the structure.
3367 @param[in] Option The optional information.
3370 DisplayBaseBoardFeatureFlags (
3371 IN UINT8 FeatureFlags
,
3375 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_FEATURE_FLAGS
), gShellDebug1HiiHandle
);
3376 PRINT_INFO_OPTION (FeatureFlags
, Option
);
3377 PRINT_BITS_INFO (BaseBoardFeatureFlagsTable
, FeatureFlags
);
3381 Display Base Board (Type 2) Board Type.
3383 @param[in] Type The key of the structure.
3384 @param[in] Option The optional information.
3387 DisplayBaseBoardBoardType(
3392 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_BOARD_TYPE
), gShellDebug1HiiHandle
);
3393 PRINT_INFO_OPTION (Type
, Option
);
3394 PRINT_TABLE_ITEM (BaseBoardBoardTypeTable
, Type
);
3398 Display System Enclosure (Type 3) Enclosure Type.
3400 @param[in] Type The key of the structure.
3401 @param[in] Option The optional information.
3404 DisplaySystemEnclosureType (
3409 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_TYPE
), gShellDebug1HiiHandle
);
3410 PRINT_INFO_OPTION (Type
, Option
);
3412 // query table and print info
3414 PRINT_TABLE_ITEM (SystemEnclosureTypeTable
, Type
);
3416 if (BIT (Type
, 7) != 0) {
3417 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CHASSIS_LOCK_PRESENT
), gShellDebug1HiiHandle
);
3422 Display System Enclosure (Type 3) Enclosure Status.
3424 @param[in] Status The key of the structure.
3425 @param[in] Option The optional information.
3428 DisplaySystemEnclosureStatus (
3433 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_STATUS
), gShellDebug1HiiHandle
);
3434 PRINT_INFO_OPTION (Status
, Option
);
3435 PRINT_TABLE_ITEM (SystemEnclosureStatusTable
, Status
);
3439 Display System Enclosure (Type 3) Security Status.
3441 @param[in] Status The key of the structure.
3442 @param[in] Option The optional information.
3445 DisplaySESecurityStatus (
3450 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_SECURITY
), gShellDebug1HiiHandle
);
3451 PRINT_INFO_OPTION (Status
, Option
);
3452 PRINT_TABLE_ITEM (SESecurityStatusTable
, Status
);
3456 Display Processor Information (Type 4) Type.
3458 @param[in] Type The key of the structure.
3459 @param[in] Option The optional information.
3462 DisplayProcessorType (
3467 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_TYPE
), gShellDebug1HiiHandle
);
3468 PRINT_INFO_OPTION (Type
, Option
);
3469 PRINT_TABLE_ITEM (ProcessorTypeTable
, Type
);
3473 Display Processor Information (Type 4) Upgrade.
3475 @param[in] Upgrade The key of the structure.
3476 @param[in] Option The optional information.
3479 DisplayProcessorUpgrade (
3484 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_UPDATE
), gShellDebug1HiiHandle
);
3485 PRINT_INFO_OPTION (Upgrade
, Option
);
3486 PRINT_TABLE_ITEM (ProcessorUpgradeTable
, Upgrade
);
3490 Display Processor Information (Type 4) Characteristics.
3492 @param[in] Type The key of the structure.
3493 @param[in] Option The optional information.
3496 DisplayProcessorCharacteristics (
3501 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_CHARACTERISTICS
), gShellDebug1HiiHandle
);
3502 PRINT_INFO_OPTION (Type
, Option
);
3503 PRINT_BITS_INFO (ProcessorCharacteristicsTable
, Type
);
3507 Display Memory Controller Information (Type 5) method.
3509 @param[in] Method The key of the structure.
3510 @param[in] Option The optional information.
3513 DisplayMcErrorDetectMethod (
3518 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DETECTMETHOD
), gShellDebug1HiiHandle
);
3519 PRINT_INFO_OPTION (Method
, Option
);
3520 PRINT_TABLE_ITEM (McErrorDetectMethodTable
, Method
);
3524 Display Memory Controller Information (Type 5) Capability.
3526 @param[in] Capability The key of the structure.
3527 @param[in] Option The optional information.
3530 DisplayMcErrorCorrectCapability (
3531 IN UINT8 Capability
,
3535 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CORRECT_CAPABILITY
), gShellDebug1HiiHandle
);
3536 PRINT_INFO_OPTION (Capability
, Option
);
3537 PRINT_BITS_INFO (McErrorCorrectCapabilityTable
, Capability
);
3541 Display Memory Controller Information (Type 5) Support.
3543 @param[in] Support The key of the structure.
3544 @param[in] Option The optional information.
3547 DisplayMcInterleaveSupport (
3552 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_INTERLEAVE_SUPPORT
), gShellDebug1HiiHandle
);
3553 PRINT_INFO_OPTION (Support
, Option
);
3554 PRINT_TABLE_ITEM (McInterleaveSupportTable
, Support
);
3558 Display Memory Controller Information (Type 5) speeds.
3560 @param[in] Speed The key of the structure.
3561 @param[in] Option The optional information.
3564 DisplayMcMemorySpeeds (
3569 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MEMORY_SPEED
), gShellDebug1HiiHandle
);
3570 PRINT_INFO_OPTION (Speed
, Option
);
3571 PRINT_BITS_INFO (McMemorySpeedsTable
, Speed
);
3575 Display Memory Controller Information (Type 5) voltage.
3577 @param[in] Voltage The key of the structure.
3578 @param[in] Option The optional information.
3581 DisplayMemoryModuleVoltage (
3586 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_REQUIRED_VOLTAGES
), gShellDebug1HiiHandle
);
3587 PRINT_INFO_OPTION (Voltage
, Option
);
3588 PRINT_BITS_INFO (MemoryModuleVoltageTable
, Voltage
);
3592 Display Memory Module Information (Type 6) type.
3594 @param[in] Type The key of the structure.
3595 @param[in] Option The optional information.
3598 DisplayMmMemoryType (
3603 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_TYPE
), gShellDebug1HiiHandle
);
3604 PRINT_INFO_OPTION (Type
, Option
);
3605 PRINT_BITS_INFO (MmMemoryTypeTable
, Type
);
3609 Display Memory Module Information (Type 6) status.
3611 @param[in] Status The key of the structure.
3612 @param[in] Option The optional information.
3615 DisplayMmErrorStatus (
3620 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_ERROR_STATUS
), gShellDebug1HiiHandle
);
3621 PRINT_INFO_OPTION (Status
, Option
);
3622 PRINT_BITS_INFO (MmErrorStatusTable
, Status
);
3626 Display Cache Information (Type 7) SRAM Type.
3628 @param[in] Type The key of the structure.
3629 @param[in] Option The optional information.
3632 DisplayCacheSRAMType (
3637 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SRAM_TYPE
), gShellDebug1HiiHandle
);
3638 PRINT_INFO_OPTION ((UINT8
) Type
, Option
);
3639 PRINT_BITS_INFO (CacheSRAMTypeTable
, (UINT8
) Type
);
3643 Display Cache Information (Type 7) correcting Type.
3645 @param[in] Type The key of the structure.
3646 @param[in] Option The optional information.
3649 DisplayCacheErrCorrectingType (
3654 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ERROR_CORRECTING
), gShellDebug1HiiHandle
);
3655 PRINT_INFO_OPTION (Type
, Option
);
3656 PRINT_TABLE_ITEM (CacheErrCorrectingTypeTable
, Type
);
3660 Display Cache Information (Type 7) Type.
3662 @param[in] Type The key of the structure.
3663 @param[in] Option The optional information.
3666 DisplayCacheSystemCacheType (
3671 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SYSTEM_TYPE
), gShellDebug1HiiHandle
);
3672 PRINT_INFO_OPTION (Type
, Option
);
3673 PRINT_TABLE_ITEM (CacheSystemCacheTypeTable
, Type
);
3677 Display Cache Information (Type 7) Associativity.
3679 @param[in] Associativity The key of the structure.
3680 @param[in] Option The optional information.
3683 DisplayCacheAssociativity (
3684 IN UINT8 Associativity
,
3688 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ASSOCIATIVITY
), gShellDebug1HiiHandle
);
3689 PRINT_INFO_OPTION (Associativity
, Option
);
3690 PRINT_TABLE_ITEM (CacheAssociativityTable
, Associativity
);
3694 Display Port Connector Information (Type 8) type.
3696 @param[in] Type The key of the structure.
3697 @param[in] Option The optional information.
3700 DisplayPortConnectorType (
3705 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_CONNECTOR_TYPE
), gShellDebug1HiiHandle
);
3706 PRINT_INFO_OPTION (Type
, Option
);
3707 PRINT_TABLE_ITEM (PortConnectorTypeTable
, Type
);
3711 Display Port Connector Information (Type 8) port type.
3713 @param[in] Type The key of the structure.
3714 @param[in] Option The optional information.
3722 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_TYPE
), gShellDebug1HiiHandle
);
3723 PRINT_INFO_OPTION (Type
, Option
);
3724 PRINT_TABLE_ITEM (PortTypeTable
, Type
);
3728 Display System Slots (Type 9) slot type.
3730 @param[in] Type The key of the structure.
3731 @param[in] Option The optional information.
3734 DisplaySystemSlotType (
3739 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_TYPE
), gShellDebug1HiiHandle
);
3740 PRINT_INFO_OPTION (Type
, Option
);
3741 PRINT_TABLE_ITEM (SystemSlotTypeTable
, Type
);
3745 Display System Slots (Type 9) data bus width.
3747 @param[in] Width The key of the structure.
3748 @param[in] Option The optional information.
3751 DisplaySystemSlotDataBusWidth (
3756 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_DATA
), gShellDebug1HiiHandle
);
3757 PRINT_INFO_OPTION (Width
, Option
);
3758 PRINT_TABLE_ITEM (SystemSlotDataBusWidthTable
, Width
);
3762 Display System Slots (Type 9) usage information.
3764 @param[in] Usage The key of the structure.
3765 @param[in] Option The optional information.
3768 DisplaySystemSlotCurrentUsage (
3773 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_CURRENT_USAGE
), gShellDebug1HiiHandle
);
3774 PRINT_INFO_OPTION (Usage
, Option
);
3775 PRINT_TABLE_ITEM (SystemSlotCurrentUsageTable
, Usage
);
3779 Display System Slots (Type 9) slot length.
3781 @param[in] Length The key of the structure.
3782 @param[in] Option The optional information.
3785 DisplaySystemSlotLength (
3790 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_LENGTH
), gShellDebug1HiiHandle
);
3791 PRINT_INFO_OPTION (Length
, Option
);
3792 PRINT_TABLE_ITEM (SystemSlotLengthTable
, Length
);
3796 Display System Slots (Type 9) characteristics.
3798 @param[in] Chara1 The key of the structure.
3799 @param[in] Option The optional information.
3802 DisplaySlotCharacteristics1 (
3807 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS
), gShellDebug1HiiHandle
);
3808 PRINT_INFO_OPTION (Chara1
, Option
);
3809 PRINT_BITS_INFO (SlotCharacteristics1Table
, Chara1
);
3813 Display System Slots (Type 9) characteristics.
3815 @param[in] Chara2 The key of the structure.
3816 @param[in] Option The optional information.
3819 DisplaySlotCharacteristics2 (
3824 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS_2
), gShellDebug1HiiHandle
);
3825 PRINT_INFO_OPTION (Chara2
, Option
);
3826 PRINT_BITS_INFO (SlotCharacteristics2Table
, Chara2
);
3830 Display On Board Devices Information (Type 10) types.
3832 @param[in] Type The key of the structure.
3833 @param[in] Option The optional information.
3836 DisplayOnboardDeviceTypes (
3841 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ONBOARD_DEVICE_TYPE
), gShellDebug1HiiHandle
);
3842 PRINT_INFO_OPTION (Type
, Option
);
3843 PRINT_TABLE_ITEM (OnboardDeviceTypesTable
, Type
);
3847 Display System Event Log (Type 15) types.
3849 @param[in] Type The key of the structure.
3850 @param[in] Option The optional information.
3858 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_EVENT_LOG_TYPE
), gShellDebug1HiiHandle
);
3859 PRINT_INFO_OPTION (Type
, Option
);
3860 PRINT_TABLE_ITEM (SELTypesTable
, Type
);
3864 Display System Event Log (Type 15) format type.
3866 @param[in] Type The key of the structure.
3867 @param[in] Option The optional information.
3870 DisplaySELVarDataFormatType (
3875 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_EVENT_LOG_VAR_DATA_FORMAT
), gShellDebug1HiiHandle
);
3876 PRINT_INFO_OPTION (Type
, Option
);
3877 PRINT_TABLE_ITEM (SELVarDataFormatTypeTable
, Type
);
3881 Display System Event Log (Type 15) dw1.
3883 @param[in] Key The key of the structure.
3884 @param[in] Option The optional information.
3887 DisplayPostResultsBitmapDw1 (
3892 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_BITMAP
), gShellDebug1HiiHandle
);
3893 PRINT_INFO_OPTION (Key
, Option
);
3894 PRINT_BITS_INFO (PostResultsBitmapDw1Table
, Key
);
3898 Display System Event Log (Type 15) dw2.
3900 @param[in] Key The key of the structure.
3901 @param[in] Option The optional information.
3904 DisplayPostResultsBitmapDw2 (
3909 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_SECOND_DWORD
), gShellDebug1HiiHandle
);
3910 PRINT_INFO_OPTION (Key
, Option
);
3911 PRINT_BITS_INFO (PostResultsBitmapDw2Table
, Key
);
3915 Display System Event Log (Type 15) type.
3917 @param[in] SMType The key of the structure.
3918 @param[in] Option The optional information.
3921 DisplaySELSysManagementTypes (
3928 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_TYPES
), gShellDebug1HiiHandle
);
3929 PRINT_INFO_OPTION (SMType
, Option
);
3932 // Deal with wide range Value
3934 if (SMType
>= 0x80000000) {
3935 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_OEM_ASSIGNED
), gShellDebug1HiiHandle
);
3936 } else if (SMType
>= 0x00020000) {
3937 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
3938 } else if (SMType
>= 0x00010000) {
3939 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_PROBE
), gShellDebug1HiiHandle
);
3940 } else if (SMType
>= 0x31) {
3941 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
3944 // Deal with One byte data
3946 Temp
= (UINT8
) (SMType
& 0x3F);
3947 PRINT_TABLE_ITEM (SELSysManagementTypesTable
, Temp
);
3952 Display Physical Memory Array (Type 16) Location.
3954 @param[in] Location The key of the structure.
3955 @param[in] Option The optional information.
3958 DisplayPMALocation (
3963 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_LOCATION
), gShellDebug1HiiHandle
);
3964 PRINT_INFO_OPTION (Location
, Option
);
3965 PRINT_TABLE_ITEM (PMALocationTable
, Location
);
3969 Display Physical Memory Array (Type 16) Use.
3971 @param[in] Use The key of the structure.
3972 @param[in] Option The optional information.
3980 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_USE
), gShellDebug1HiiHandle
);
3981 PRINT_INFO_OPTION (Use
, Option
);
3982 PRINT_TABLE_ITEM (PMAUseTable
, Use
);
3986 Display Physical Memory Array (Type 16) Types.
3988 @param[in] Type The key of the structure.
3989 @param[in] Option The optional information.
3992 DisplayPMAErrorCorrectionTypes (
3997 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_ERROR
), gShellDebug1HiiHandle
);
3998 PRINT_INFO_OPTION (Type
, Option
);
3999 PRINT_TABLE_ITEM (PMAErrorCorrectionTypesTable
, Type
);
4003 Display Memory Device (Type 17) form factor.
4005 @param[in] FormFactor The key of the structure.
4006 @param[in] Option The optional information.
4009 DisplayMemoryDeviceFormFactor (
4010 IN UINT8 FormFactor
,
4014 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_FORM_FACTOR
), gShellDebug1HiiHandle
);
4015 PRINT_INFO_OPTION (FormFactor
, Option
);
4016 PRINT_TABLE_ITEM (MemoryDeviceFormFactorTable
, FormFactor
);
4020 Display Memory Device (Type 17) type.
4022 @param[in] Type The key of the structure.
4023 @param[in] Option The optional information.
4026 DisplayMemoryDeviceType (
4031 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4032 PRINT_INFO_OPTION (Type
, Option
);
4033 PRINT_TABLE_ITEM (MemoryDeviceTypeTable
, Type
);
4037 Display Memory Device (Type 17) details.
4039 @param[in] Para The key of the structure.
4040 @param[in] Option The optional information.
4043 DisplayMemoryDeviceTypeDetail (
4048 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE_DETAIL
), gShellDebug1HiiHandle
);
4049 PRINT_INFO_OPTION (Para
, Option
);
4050 PRINT_BITS_INFO (MemoryDeviceTypeDetailTable
, Para
);
4054 Display 32-bit Memory Error Information (Type 18) type.
4056 @param[in] ErrorType The key of the structure.
4057 @param[in] Option The optional information.
4060 DisplayMemoryErrorType (
4065 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_INFO
), gShellDebug1HiiHandle
);
4066 PRINT_INFO_OPTION (ErrorType
, Option
);
4067 PRINT_TABLE_ITEM (MemoryErrorTypeTable
, ErrorType
);
4071 Display 32-bit Memory Error Information (Type 18) error granularity.
4073 @param[in] Granularity The key of the structure.
4074 @param[in] Option The optional information.
4077 DisplayMemoryErrorGranularity (
4078 IN UINT8 Granularity
,
4082 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_GRANULARITY
), gShellDebug1HiiHandle
);
4083 PRINT_INFO_OPTION (Granularity
, Option
);
4084 PRINT_TABLE_ITEM (MemoryErrorGranularityTable
, Granularity
);
4088 Display 32-bit Memory Error Information (Type 18) error information.
4090 @param[in] Operation The key of the structure.
4091 @param[in] Option The optional information.
4094 DisplayMemoryErrorOperation (
4099 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_OP
), gShellDebug1HiiHandle
);
4100 PRINT_INFO_OPTION (Operation
, Option
);
4101 PRINT_TABLE_ITEM (MemoryErrorOperationTable
, Operation
);
4105 Display Built-in Pointing Device (Type 21) type information.
4107 @param[in] Type The key of the structure.
4108 @param[in] Option The optional information.
4111 DisplayPointingDeviceType (
4116 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4117 PRINT_INFO_OPTION (Type
, Option
);
4118 PRINT_TABLE_ITEM (PointingDeviceTypeTable
, Type
);
4122 Display Built-in Pointing Device (Type 21) information.
4124 @param[in] Interface The key of the structure.
4125 @param[in] Option The optional information.
4128 DisplayPointingDeviceInterface (
4133 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_INTERFACE
), gShellDebug1HiiHandle
);
4134 PRINT_INFO_OPTION (Interface
, Option
);
4135 PRINT_TABLE_ITEM (PointingDeviceInterfaceTable
, Interface
);
4139 Display Portable Battery (Type 22) information.
4141 @param[in] Key The key of the structure.
4142 @param[in] Option The optional information.
4145 DisplayPBDeviceChemistry (
4150 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORTABLE_BATT_DEV_CHEM
), gShellDebug1HiiHandle
);
4151 PRINT_INFO_OPTION (Key
, Option
);
4152 PRINT_TABLE_ITEM (PBDeviceChemistryTable
, Key
);
4156 Display Voltage Probe (Type 26) location information.
4158 @param[in] Key The key of the structure.
4159 @param[in] Option The optional information.
4169 Loc
= (UINT8
) ((Key
& 0xE0) >> 5);
4170 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4171 PRINT_INFO_OPTION (Loc
, Option
);
4172 PRINT_TABLE_ITEM (VPLocationTable
, Loc
);
4176 Display Voltage Probe (Type 26) status ype information.
4178 @param[in] Key The key of the structure.
4179 @param[in] Option The optional information.
4189 Status
= (UINT8
) (Key
& 0x1F);
4190 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_STATUS
), gShellDebug1HiiHandle
);
4191 PRINT_INFO_OPTION (Status
, Option
);
4192 PRINT_TABLE_ITEM (VPStatusTable
, Status
);
4196 Display Cooling (Type 27) status information.
4198 @param[in] Key The key of the structure.
4199 @param[in] Option The optional information.
4202 DisplayCoolingDeviceStatus (
4209 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4210 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_STATUS
), gShellDebug1HiiHandle
);
4211 PRINT_INFO_OPTION (Status
, Option
);
4212 PRINT_TABLE_ITEM (CoolingDeviceStatusTable
, Status
);
4216 Display Cooling (Type 27) type information.
4218 @param[in] Key The key of the structure.
4219 @param[in] Option The optional information.
4222 DisplayCoolingDeviceType (
4229 Type
= (UINT8
) (Key
& 0x1F);
4230 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_TYPE
), gShellDebug1HiiHandle
);
4231 PRINT_INFO_OPTION (Type
, Option
);
4232 PRINT_TABLE_ITEM (CoolingDeviceTypeTable
, Type
);
4236 Display Temperature Probe (Type 28) status information.
4238 @param[in] Key The key of the structure.
4239 @param[in] Option The optional information.
4242 DisplayTemperatureProbeStatus (
4249 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4250 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_TEMP_PROBE
), gShellDebug1HiiHandle
);
4251 PRINT_INFO_OPTION (Status
, Option
);
4252 PRINT_TABLE_ITEM (TemperatureProbeStatusTable
, Status
);
4256 Display Temperature Probe (Type 28) location information.
4258 @param[in] Key The key of the structure.
4259 @param[in] Option The optional information.
4262 DisplayTemperatureProbeLoc (
4269 Loc
= (UINT8
) (Key
& 0x1F);
4270 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4271 PRINT_INFO_OPTION (Loc
, Option
);
4272 PRINT_TABLE_ITEM (TemperatureProbeLocTable
, Loc
);
4276 Display Electrical Current Probe (Type 29) status information.
4278 @param[in] Key The key of the structure.
4279 @param[in] Option The optional information.
4289 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4290 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_STATUS
), gShellDebug1HiiHandle
);
4291 PRINT_INFO_OPTION (Status
, Option
);
4292 PRINT_TABLE_ITEM (ECPStatusTable
, Status
);
4296 Display Type 29 information.
4298 @param[in] Key The key of the structure.
4299 @param[in] Option The optional information.
4309 Loc
= (UINT8
) (Key
& 0x1F);
4310 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_LOC
), gShellDebug1HiiHandle
);
4311 PRINT_INFO_OPTION (Loc
, Option
);
4312 PRINT_TABLE_ITEM (ECPLocTable
, Loc
);
4316 Display Management Device (Type 34) Type.
4318 @param[in] Key The key of the structure.
4319 @param[in] Option The optional information.
4327 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_TYPE
), gShellDebug1HiiHandle
);
4328 PRINT_INFO_OPTION (Key
, Option
);
4329 PRINT_TABLE_ITEM (MDTypeTable
, Key
);
4333 Display Management Device (Type 34) Address Type.
4335 @param[in] Key The key of the structure.
4336 @param[in] Option The optional information.
4339 DisplayMDAddressType (
4344 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_ADDR_TYPE
), gShellDebug1HiiHandle
);
4345 PRINT_INFO_OPTION (Key
, Option
);
4346 PRINT_TABLE_ITEM (MDAddressTypeTable
, Key
);
4350 Display Memory Channel (Type 37) information.
4352 @param[in] Key The key of the structure.
4353 @param[in] Option The optional information.
4356 DisplayMemoryChannelType (
4361 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CHANNEL_TYPE
), gShellDebug1HiiHandle
);
4362 PRINT_INFO_OPTION (Key
, Option
);
4363 PRINT_TABLE_ITEM (MemoryChannelTypeTable
, Key
);
4367 Display IPMI Device Information (Type 38) information.
4369 @param[in] Key The key of the structure.
4370 @param[in] Option The optional information.
4373 DisplayIPMIDIBMCInterfaceType (
4378 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BMC_INTERFACE_TYPE
), gShellDebug1HiiHandle
);
4379 PRINT_INFO_OPTION (Key
, Option
);
4380 PRINT_TABLE_ITEM (IPMIDIBMCInterfaceTypeTable
, Key
);
4384 Display the structure type information.
4386 @param[in] Key The key of the structure.
4387 @param[in] Option The optional information.
4390 DisplayStructureTypeInfo (
4398 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_STRUCT_TYPE
), gShellDebug1HiiHandle
);
4399 PRINT_INFO_OPTION (Key
, Option
);
4400 PRINT_TABLE_ITEM (StructureTypeInfoTable
, Key
);