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 - 2017, 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"
281 TABLE_ITEM SystemEnclosureStatusTable
[] = {
308 TABLE_ITEM SESecurityStatusTable
[] = {
323 L
" External interface locked out"
327 L
" External interface enabled"
331 TABLE_ITEM ProcessorTypeTable
[] = {
342 L
" Central Processor"
358 TABLE_ITEM ProcessorUpgradeTable
[] = {
377 L
"Replaceable Piggy Back"
585 TABLE_ITEM ProcessorCharacteristicsTable
[] = {
604 L
" Execute Protection"
608 L
" Enhanced Virtualization"
612 L
" Power/Performance Control"
617 TABLE_ITEM McErrorDetectMethodTable
[] = {
652 TABLE_ITEM McErrorCorrectCapabilityTable
[] = {
667 L
"Single Bit Error Correcting"
671 L
"Double Bit Error Correcting"
679 TABLE_ITEM McInterleaveSupportTable
[] = {
690 L
"One Way Interleave"
694 L
"Two Way Interleave"
698 L
"Four Way Interleave"
702 L
"Eight Way Interleave"
706 L
"Sixteen Way Interleave"
710 TABLE_ITEM McMemorySpeedsTable
[] = {
733 TABLE_ITEM MemoryModuleVoltageTable
[] = {
748 TABLE_ITEM MmMemoryTypeTable
[] = {
795 TABLE_ITEM MmErrorStatusTable
[] = {
798 L
" Uncorrectable errors received"
802 L
" Correctable errors received"
806 L
" Error Status obtained from the event log"
810 TABLE_ITEM CacheSRAMTypeTable
[] = {
841 TABLE_ITEM CacheErrCorrectingTypeTable
[] = {
868 TABLE_ITEM CacheSystemCacheTypeTable
[] = {
891 TABLE_ITEM CacheAssociativityTable
[] = {
906 L
"2-way Set-Associative"
910 L
"4-way Set-Associative"
918 L
"8-way Set-Associative"
922 L
"16-way Set-Associative"
926 L
"12-way Set-Associative"
930 L
"24-way Set-Associative"
934 L
"32-way Set-Associative"
938 L
"48-way Set-Associative"
942 L
"64-way Set-Associative"
946 L
"20-way Set-Associative"
950 TABLE_ITEM PortConnectorTypeTable
[] = {
1033 L
"Circular DIN-8 male"
1037 L
"Circular DIN-8 female"
1049 L
"9 Pin Dual Inline (pin 10 cut)"
1053 L
"25 Pin Dual Inline (pin 26 cut)"
1057 L
"50 Pin Dual Inline"
1061 L
"68 Pin Dual Inline"
1065 L
"On Board Sound Input from CD-ROM"
1069 L
"Mini-Centronics Type-14"
1073 L
"Mini-Centronics Type-26"
1077 L
"Mini-jack (headphones)"
1089 L
"SAS/SATA Plug Receptacle"
1117 TABLE_ITEM PortTypeTable
[] = {
1124 L
"Parallel Port XT/AT Compatible"
1128 L
"Parallel Port PS/2"
1132 L
"Parallel Port ECP"
1136 L
"Parallel Port EPP"
1140 L
"Parallel Port ECP/EPP"
1144 L
"Serial Port XT/AT Compatible"
1148 L
"Serial Port 16450 Compatible"
1152 L
"Serial Port 16550 Compatible"
1156 L
"Serial Port 16550A Compatible"
1188 L
"FireWire (IEEE P1394)"
1260 L
"8251 FIFO Compatible"
1268 TABLE_ITEM SystemSlotTypeTable
[] = {
1307 L
"Processor Card Slot"
1311 L
"Proprietary Memory Card Slot"
1315 L
"I/O Riser Card Slot"
1323 L
"PCI - 66MHz Capable"
1347 L
"M.2 Socket 1-DP (Mechanical Key A)"
1351 L
"M.2 Socket 1-SD (Mechanical Key E)"
1355 L
"M.2 Socket 2 (Mechanical Key B)"
1359 L
"M.2 Socket 3 (Mechanical Key M)"
1371 L
"MXM Type III (standard connector)"
1375 L
"MXM Type III (HE connector)"
1391 L
"PCI Express Gen 2 SFF-8639"
1395 L
"PCI Express Gen 3 SFF-8639"
1399 L
"PCI Express Mini 52-pin (CEM spec. 2.0) with bottom-side keep-outs"
1403 L
"PCI Express Mini 52-pin (CEM spec. 2.0) without bottom-side keep-outs"
1407 L
"PCI Express Mini 76-pin (CEM spec. 2.0) Corresponds to Display-Mini card"
1455 L
"PCI Express Gen 2"
1459 L
"PCI Express Gen 2 X1"
1463 L
"PCI Express Gen 2 X2"
1467 L
"PCI Express Gen 2 X4"
1471 L
"PCI Express Gen 2 X8"
1475 L
"PCI Express Gen 2 X16"
1479 L
"PCI Express Gen 3"
1483 L
"PCI Express Gen 3 X1"
1487 L
"PCI Express Gen 3 X2"
1491 L
"PCI Express Gen 3 X4"
1495 L
"PCI Express Gen 3 X8"
1499 L
"PCI Express Gen 3 X16"
1503 TABLE_ITEM SystemSlotDataBusWidthTable
[] = {
1562 TABLE_ITEM SystemSlotCurrentUsageTable
[] = {
1581 TABLE_ITEM SystemSlotLengthTable
[] = {
1600 TABLE_ITEM SlotCharacteristics1Table
[] = {
1603 L
" Characteristics Unknown"
1607 L
" Provides 5.0 Volts"
1611 L
" Provides 3.3 Volts"
1615 L
" Slot's opening is shared with another slot, e.g. PCI/EISA shared slot."
1620 L
" PC Card slot supports PC Card-16"
1624 L
" PC Card slot supports CardBus"
1628 L
" PC Card slot supports Zoom Video "
1632 L
" PC Card slot supports Modem Ring Resume "
1636 TABLE_ITEM SlotCharacteristics2Table
[] = {
1639 L
" PCI slot supports Power Management Enable (PME#) signal"
1643 L
" Slot supports hot-plug devices"
1647 L
" PCI slot supports SMBus signal"
1651 TABLE_ITEM OnboardDeviceTypesTable
[] = {
1694 TABLE_ITEM SELTypesTable
[] = {
1701 L
" Single-bit ECC memory error"
1705 L
" Multi-bit ECC memory error"
1709 L
" Parity memory error"
1717 L
" I/O Channel Check"
1725 L
" POST Memory Resize"
1733 L
" PCI Parity Error"
1737 L
" PCI System Error"
1745 L
" EISA FailSafe Timer time-out"
1749 L
" Correctable memory log disabled"
1753 L
" Logging disabled for a specific Event Type"
1761 L
" System Limit Exceeded"
1765 L
" Asynchronous hardware timer expired and issued a system reset"
1769 L
" System configuration information"
1773 L
" Hard-disk information"
1777 L
" System reconfigured"
1781 L
" Uncorrectable CPU-complex error"
1785 L
" Log Area Reset/Cleared"
1793 L
" Unused by SMBIOS specification"
1797 L
" System and OEM specified"
1805 TABLE_ITEM SELVarDataFormatTypeTable
[] = {
1820 L
" Multiple-Event Handle "
1824 L
" POST Results Bitmap "
1831 L
" System Management Type"
1838 L
" Multiple-Event System Management Type "
1850 TABLE_ITEM PostResultsBitmapDw1Table
[] = {
1853 L
" Channel 2 Timer error "
1857 L
" Master PIC (8259 #1) error "
1861 L
" Slave PIC (8259 #2) error "
1865 L
" CMOS Battery Failure "
1869 L
" CMOS System Options Not Set "
1873 L
" CMOS Checksum Error "
1877 L
" CMOS Configuration Error "
1881 L
" Mouse and Keyboard Swapped "
1885 L
" Keyboard Locked "
1889 L
" Keyboard Not Functional "
1893 L
" Keyboard Controller Not Functional "
1897 L
" CMOS Memory Size Different "
1901 L
" Memory Decreased in Size "
1905 L
" Cache Memory Error "
1909 L
" Floppy Drive 0 Error "
1913 L
" Floppy Drive 1 Error "
1917 L
" Floppy Controller Failure "
1921 L
" Number of ATA Drives Reduced Error "
1925 L
" CMOS Time Not Set "
1929 L
" DDC Monitor Configuration Change "
1933 L
" Reserved, set to 0 "
1937 L
" Reserved, set to 0 "
1941 L
" Reserved, set to 0 "
1945 L
" Reserved, set to 0 "
1949 L
" Second DWORD has valid data "
1953 L
" Reserved, set to 0 "
1957 L
" Reserved, set to 0 "
1961 L
" Reserved, set to 0 "
1965 L
" Normally 0; available for OEM assignment "
1969 L
" Normally 0; available for OEM assignment "
1973 L
" Normally 0; available for OEM assignment "
1977 L
" Normally 0; available for OEM assignment "
1981 TABLE_ITEM PostResultsBitmapDw2Table
[] = {
1984 L
" Normally 0; available for OEM assignment "
1988 L
" Normally 0; available for OEM assignment "
1992 L
" Normally 0; available for OEM assignment "
1996 L
" Normally 0; available for OEM assignment "
2000 L
" Normally 0; available for OEM assignment "
2004 L
" Normally 0; available for OEM assignment "
2008 L
" Normally 0; available for OEM assignment "
2012 L
" PCI Memory Conflict "
2016 L
" PCI I/O Conflict "
2020 L
" PCI IRQ Conflict "
2024 L
" PNP Memory Conflict "
2028 L
" PNP 32 bit Memory Conflict "
2032 L
" PNP I/O Conflict "
2036 L
" PNP IRQ Conflict "
2040 L
" PNP DMA Conflict "
2044 L
" Bad PNP Serial ID Checksum "
2048 L
" Bad PNP Resource Data Checksum "
2052 L
" Static Resource Conflict "
2056 L
" NVRAM Checksum Error, NVRAM Cleared "
2060 L
" System Board Device Resource Conflict "
2064 L
" Primary Output Device Not Found "
2068 L
" Primary Input Device Not Found "
2072 L
" Primary Boot Device Not Found "
2076 L
" NVRAM Cleared By Jumper "
2080 L
" NVRAM Data Invalid, NVRAM Cleared "
2084 L
" FDC Resource Conflict "
2088 L
" Primary ATA Controller Resource Conflict "
2092 L
" Secondary ATA Controller Resource Conflict "
2096 L
" Parallel Port Resource Conflict "
2100 L
" Serial Port 1 Resource Conflict "
2104 L
" Serial Port 2 Resource Conflict "
2108 L
" Audio Resource Conflict "
2112 TABLE_ITEM SELSysManagementTypesTable
[] = {
2115 L
" +2.5V Out of range, #2 "
2119 L
" +3.3V Out of range "
2123 L
" +5V Out of range "
2127 L
" -5V Out of range "
2131 L
" +12V Out of range "
2135 L
" -12V Out of range "
2139 L
" Reserved for future out-of-range voltage levels "
2143 L
" System board temperature out of range "
2147 L
" Processor #1 temperature out of range "
2151 L
" Processor #2 temperature out of range "
2155 L
" Processor #3 temperature out of range "
2159 L
" Processor #4 temperature out of range "
2163 L
" Reserved for future out-of-range temperatures"
2167 L
" Fan n (n = 0 to 7) Out of range "
2171 L
" Reserved for future assignment via this specification "
2175 L
" Chassis secure switch activated "
2179 TABLE_ITEM PMALocationTable
[] = {
2190 L
" System board or motherboard"
2198 L
" EISA add-on card"
2210 L
" PCMCIA add-on card"
2214 L
" Proprietary add-on card"
2222 L
" PC-98/C20 add-on card"
2226 L
" PC-98/C24 add-on card"
2230 L
" PC-98/E add-on card"
2234 L
" PC-98/Local bus add-on card"
2238 TABLE_ITEM PMAUseTable
[] = {
2261 L
" Non-volatile RAM"
2269 TABLE_ITEM PMAErrorCorrectionTypesTable
[] = {
2300 TABLE_ITEM MemoryDeviceFormFactorTable
[] = {
2331 L
" Proprietary Card"
2363 TABLE_ITEM MemoryDeviceTypeTable
[] = {
2474 TABLE_ITEM MemoryDeviceTypeDetailTable
[] = {
2525 L
" Registered(Buffered)"
2529 L
" Unbuffered(Unregistered)"
2533 TABLE_ITEM MemoryErrorTypeTable
[] = {
2556 L
" Single-bit error"
2560 L
" Double-bit error"
2580 L
" Corrected single-bit error"
2588 L
" Uncorrectable error"
2592 TABLE_ITEM MemoryErrorGranularityTable
[] = {
2607 L
" Memory partition level"
2611 TABLE_ITEM MemoryErrorOperationTable
[] = {
2634 TABLE_ITEM PointingDeviceTypeTable
[] = {
2665 TABLE_ITEM PointingDeviceInterfaceTable
[] = {
2696 L
" ADB(Apple Desktop Bus"
2704 L
" Bus mouse mirco-DIN"
2712 TABLE_ITEM PBDeviceChemistryTable
[] = {
2731 L
" Nickel metal hydride "
2743 L
" Lithium Polymer "
2747 TABLE_ITEM VPLocationTable
[] = {
2770 L
" Non-recoverable "
2774 TABLE_ITEM VPStatusTable
[] = {
2797 L
" System Management Module "
2809 L
" Processor Module "
2821 TABLE_ITEM CoolingDeviceStatusTable
[] = {
2844 L
" Non-recoverable "
2848 TABLE_ITEM CoolingDeviceTypeTable
[] = {
2863 L
" Centrifugal Blower "
2875 L
" Power Supply Fan "
2883 L
" Integrated Refrigeration "
2891 L
" Passive Cooling "
2895 TABLE_ITEM TemperatureProbeStatusTable
[] = {
2918 L
" Non-recoverable "
2922 TABLE_ITEM TemperatureProbeLocTable
[] = {
2945 L
" System Management Module "
2957 L
" Processor Module "
2969 TABLE_ITEM ECPStatusTable
[] = {
2992 L
" Non-recoverable "
2996 TABLE_ITEM ECPLocTable
[] = {
3019 L
" System Management Module "
3031 L
" Processor Module "
3043 TABLE_ITEM MDTypeTable
[] = {
3054 L
" National Semiconductor LM75 "
3058 L
" National Semiconductor LM78 "
3062 L
" National Semiconductor LM79 "
3066 L
" National Semiconductor LM80 "
3070 L
" National Semiconductor LM81 "
3074 L
" Analog Devices ADM9240 "
3078 L
" Dallas Semiconductor DS1780 "
3086 L
" Genesys GL518SM "
3090 L
" Winbond W83781D "
3094 L
" Holtek HT82H791 "
3098 TABLE_ITEM MDAddressTypeTable
[] = {
3121 TABLE_ITEM MemoryChannelTypeTable
[] = {
3140 TABLE_ITEM IPMIDIBMCInterfaceTypeTable
[] = {
3147 L
" KCS: Keyboard Controller Style "
3151 L
" SMIC: Server Management Interface Chip "
3155 L
" BT: Block Transfer "
3159 L
" Reserved for future assignment by this specification "
3163 TABLE_ITEM MCHostInterfaceTypeTable
[] = {
3166 L
" MCTP Host Interface "
3170 L
" Network Host Interface "
3179 TABLE_ITEM StructureTypeInfoTable
[] = {
3182 L
" BIOS Information"
3186 L
" System Information"
3190 L
" Base Board Information"
3194 L
" System Enclosure"
3198 L
" Processor Information"
3202 L
" Memory Controller Information "
3206 L
" Memory Module Information "
3210 L
" Cache Information "
3214 L
" Port Connector Information "
3222 L
" On Board Devices Information "
3230 L
" System Configuration Options "
3234 L
" BIOS Language Information "
3238 L
" Group Associations "
3242 L
" System Event Log "
3246 L
" Physical Memory Array "
3254 L
" 32-bit Memory Error Information "
3258 L
" Memory Array Mapped Address "
3262 L
" Memory Device Mapped Address "
3266 L
" Built-in Pointing Device "
3270 L
" Portable Battery "
3278 L
" Hardware Security "
3282 L
" System Power Controls "
3294 L
" Temperature Probe "
3298 L
" Electrical Current Probe "
3302 L
" Out-of-Band Remote Access "
3306 L
" Boot Integrity Services (BIS) Entry Point"
3310 L
" System Boot Information "
3314 L
" 64-bit Memory Error Information "
3318 L
" Management Device "
3322 L
" Management Device Component "
3326 L
" Management Device Threshold Data "
3334 L
" IPMI Device Information "
3338 L
" System Power Supply"
3342 L
" Additional Information"
3346 L
" Onboard Devices Extended Information"
3350 L
" Management Controller Host Interface"
3368 Given a table and a Key, return the responding info.
3371 Table[Index].Key is change from UINT8 to UINT16,
3372 in order to deal with "0xaa - 0xbb".
3375 DisplaySELVariableDataFormatTypes(UINT8 Type, UINT8 Option)
3378 Now define Key = 0x7F07, that is to say: High = 0x7F, Low = 0x07.
3379 Then all the Key Value between Low and High gets the same string
3382 @param[in] Table The begin address of table.
3383 @param[in] Number The number of table items.
3384 @param[in] Key The query Key.
3385 @param[in, out] Info Input as empty buffer; output as data buffer.
3386 @param[in] InfoLen The max number of characters for Info.
3388 @return the found Key and Info is valid.
3389 @retval QUERY_TABLE_UNFOUND and Info should be NULL.
3393 IN TABLE_ITEM
*Table
,
3396 IN OUT CHAR16
*Info
,
3402 // High byte and Low byte of word
3407 for (Index
= 0; Index
< Number
; Index
++) {
3408 High
= (UINT8
) (Table
[Index
].Key
>> 8);
3409 Low
= (UINT8
) (Table
[Index
].Key
& 0x00FF);
3412 // Check if Key is in the range
3413 // or if Key == Value in the table
3415 if ((High
> Low
&& Key
>= Low
&& Key
<= High
)
3416 || (Table
[Index
].Key
== Key
)) {
3417 StrnCpyS (Info
, InfoLen
, Table
[Index
].Info
, InfoLen
- 1);
3418 StrnCatS (Info
, InfoLen
, L
"\n", InfoLen
- 1 - StrLen(Info
));
3423 StrCpyS (Info
, InfoLen
, L
"Undefined Value\n");
3424 return QUERY_TABLE_UNFOUND
;
3428 Given a table of bit info and a Key, return the responding info to the Key.
3430 @param[in] Table Point to a table which maintains a map of 'bit' to 'message'.
3431 @param[in] Number Number of table items.
3432 @param[in] Bits The Key of query the bit map information.
3436 IN TABLE_ITEM
*Table
,
3442 // Get certain bit of 'Value':
3444 #define BIT(Value, bit) ((Value) & ((UINT32) 1) << (bit))
3446 // Clear certain bit of 'Value':
3448 #define CLR_BIT(Value, bit) ((Value) -= (BIT (Value, bit)))
3457 // query the table and print information
3459 for (Index
= 0; Index
< Number
; Index
++) {
3460 if (BIT (Value
, Table
[Index
].Key
) != 0) {
3463 // If it is not first info, print the separator first.
3467 Print (Table
[Index
].Info
);
3471 // clear the bit, for reserved bits test
3473 CLR_BIT (Value
, Table
[Index
].Key
);
3478 // There is no any info if FirstInfo is still TRUE.
3481 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_NO_INFO
), gShellDebug1HiiHandle
);
3485 ShellPrintHiiEx(-1,-1,NULL
,
3486 STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_BITS_SET
),
3487 gShellDebug1HiiHandle
,
3495 // //////////////////////////////////////////////////////////////////
3497 // Following uses QueryTable functions to simplify the coding.
3498 // QueryTable(), PrintBitsInfo()
3501 #define PRINT_TABLE_ITEM(Table, Key) \
3505 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3506 ZeroMem (Info, sizeof (Info)); \
3507 QueryTable (Table, Num, Key, Info, sizeof(Info)/sizeof(Info[0])); \
3511 #define PRINT_BITS_INFO(Table, bits) \
3514 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3515 PrintBitsInfo (Table, Num, (UINT32) bits); \
3519 Display System Information (Type 1) Type.
3521 @param[in] Type The key of the structure.
3522 @param[in] Option The optional information.
3525 DisplaySystemWakeupType (
3530 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_WAKEUP_TYPE
), gShellDebug1HiiHandle
);
3531 PRINT_INFO_OPTION (Type
, Option
);
3532 PRINT_TABLE_ITEM (SystemWakeupTypeTable
, Type
);
3536 Display Base Board (Type 2) Feature Flags.
3538 @param[in] FeatureFlags The key of the structure.
3539 @param[in] Option The optional information.
3542 DisplayBaseBoardFeatureFlags (
3543 IN UINT8 FeatureFlags
,
3547 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_FEATURE_FLAGS
), gShellDebug1HiiHandle
);
3548 PRINT_INFO_OPTION (FeatureFlags
, Option
);
3549 PRINT_BITS_INFO (BaseBoardFeatureFlagsTable
, FeatureFlags
);
3553 Display Base Board (Type 2) Board Type.
3555 @param[in] Type The key of the structure.
3556 @param[in] Option The optional information.
3559 DisplayBaseBoardBoardType(
3564 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_BOARD_TYPE
), gShellDebug1HiiHandle
);
3565 PRINT_INFO_OPTION (Type
, Option
);
3566 PRINT_TABLE_ITEM (BaseBoardBoardTypeTable
, Type
);
3570 Display System Enclosure (Type 3) Enclosure Type.
3572 @param[in] Type The key of the structure.
3573 @param[in] Option The optional information.
3576 DisplaySystemEnclosureType (
3581 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_TYPE
), gShellDebug1HiiHandle
);
3582 PRINT_INFO_OPTION (Type
, Option
);
3584 // query table and print info
3586 PRINT_TABLE_ITEM (SystemEnclosureTypeTable
, Type
);
3588 if (BIT (Type
, 7) != 0) {
3589 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CHASSIS_LOCK_PRESENT
), gShellDebug1HiiHandle
);
3594 Display System Enclosure (Type 3) Enclosure Status.
3596 @param[in] Status The key of the structure.
3597 @param[in] Option The optional information.
3600 DisplaySystemEnclosureStatus (
3605 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_STATUS
), gShellDebug1HiiHandle
);
3606 PRINT_INFO_OPTION (Status
, Option
);
3607 PRINT_TABLE_ITEM (SystemEnclosureStatusTable
, Status
);
3611 Display System Enclosure (Type 3) Security Status.
3613 @param[in] Status The key of the structure.
3614 @param[in] Option The optional information.
3617 DisplaySESecurityStatus (
3622 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_SECURITY
), gShellDebug1HiiHandle
);
3623 PRINT_INFO_OPTION (Status
, Option
);
3624 PRINT_TABLE_ITEM (SESecurityStatusTable
, Status
);
3628 Display Processor Information (Type 4) Type.
3630 @param[in] Type The key of the structure.
3631 @param[in] Option The optional information.
3634 DisplayProcessorType (
3639 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_TYPE
), gShellDebug1HiiHandle
);
3640 PRINT_INFO_OPTION (Type
, Option
);
3641 PRINT_TABLE_ITEM (ProcessorTypeTable
, Type
);
3645 Display Processor Information (Type 4) Upgrade.
3647 @param[in] Upgrade The key of the structure.
3648 @param[in] Option The optional information.
3651 DisplayProcessorUpgrade (
3656 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_UPDATE
), gShellDebug1HiiHandle
);
3657 PRINT_INFO_OPTION (Upgrade
, Option
);
3658 PRINT_TABLE_ITEM (ProcessorUpgradeTable
, Upgrade
);
3662 Display Processor Information (Type 4) Characteristics.
3664 @param[in] Type The key of the structure.
3665 @param[in] Option The optional information.
3668 DisplayProcessorCharacteristics (
3673 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_CHARACTERISTICS
), gShellDebug1HiiHandle
);
3674 PRINT_INFO_OPTION (Type
, Option
);
3675 PRINT_BITS_INFO (ProcessorCharacteristicsTable
, Type
);
3679 Display Memory Controller Information (Type 5) method.
3681 @param[in] Method The key of the structure.
3682 @param[in] Option The optional information.
3685 DisplayMcErrorDetectMethod (
3690 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DETECTMETHOD
), gShellDebug1HiiHandle
);
3691 PRINT_INFO_OPTION (Method
, Option
);
3692 PRINT_TABLE_ITEM (McErrorDetectMethodTable
, Method
);
3696 Display Memory Controller Information (Type 5) Capability.
3698 @param[in] Capability The key of the structure.
3699 @param[in] Option The optional information.
3702 DisplayMcErrorCorrectCapability (
3703 IN UINT8 Capability
,
3707 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CORRECT_CAPABILITY
), gShellDebug1HiiHandle
);
3708 PRINT_INFO_OPTION (Capability
, Option
);
3709 PRINT_BITS_INFO (McErrorCorrectCapabilityTable
, Capability
);
3713 Display Memory Controller Information (Type 5) Support.
3715 @param[in] Support The key of the structure.
3716 @param[in] Option The optional information.
3719 DisplayMcInterleaveSupport (
3724 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_INTERLEAVE_SUPPORT
), gShellDebug1HiiHandle
);
3725 PRINT_INFO_OPTION (Support
, Option
);
3726 PRINT_TABLE_ITEM (McInterleaveSupportTable
, Support
);
3730 Display Memory Controller Information (Type 5) speeds.
3732 @param[in] Speed The key of the structure.
3733 @param[in] Option The optional information.
3736 DisplayMcMemorySpeeds (
3741 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MEMORY_SPEED
), gShellDebug1HiiHandle
);
3742 PRINT_INFO_OPTION (Speed
, Option
);
3743 PRINT_BITS_INFO (McMemorySpeedsTable
, Speed
);
3747 Display Memory Controller Information (Type 5) voltage.
3749 @param[in] Voltage The key of the structure.
3750 @param[in] Option The optional information.
3753 DisplayMemoryModuleVoltage (
3758 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_REQUIRED_VOLTAGES
), gShellDebug1HiiHandle
);
3759 PRINT_INFO_OPTION (Voltage
, Option
);
3760 PRINT_BITS_INFO (MemoryModuleVoltageTable
, Voltage
);
3764 Display Memory Module Information (Type 6) type.
3766 @param[in] Type The key of the structure.
3767 @param[in] Option The optional information.
3770 DisplayMmMemoryType (
3775 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_TYPE
), gShellDebug1HiiHandle
);
3776 PRINT_INFO_OPTION (Type
, Option
);
3777 PRINT_BITS_INFO (MmMemoryTypeTable
, Type
);
3781 Display Memory Module Information (Type 6) status.
3783 @param[in] Status The key of the structure.
3784 @param[in] Option The optional information.
3787 DisplayMmErrorStatus (
3792 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_ERROR_STATUS
), gShellDebug1HiiHandle
);
3793 PRINT_INFO_OPTION (Status
, Option
);
3794 PRINT_BITS_INFO (MmErrorStatusTable
, Status
);
3798 Display Cache Information (Type 7) SRAM Type.
3800 @param[in] Type The key of the structure.
3801 @param[in] Option The optional information.
3804 DisplayCacheSRAMType (
3809 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SRAM_TYPE
), gShellDebug1HiiHandle
);
3810 PRINT_INFO_OPTION ((UINT8
) Type
, Option
);
3811 PRINT_BITS_INFO (CacheSRAMTypeTable
, (UINT8
) Type
);
3815 Display Cache Information (Type 7) correcting Type.
3817 @param[in] Type The key of the structure.
3818 @param[in] Option The optional information.
3821 DisplayCacheErrCorrectingType (
3826 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ERROR_CORRECTING
), gShellDebug1HiiHandle
);
3827 PRINT_INFO_OPTION (Type
, Option
);
3828 PRINT_TABLE_ITEM (CacheErrCorrectingTypeTable
, Type
);
3832 Display Cache Information (Type 7) Type.
3834 @param[in] Type The key of the structure.
3835 @param[in] Option The optional information.
3838 DisplayCacheSystemCacheType (
3843 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SYSTEM_TYPE
), gShellDebug1HiiHandle
);
3844 PRINT_INFO_OPTION (Type
, Option
);
3845 PRINT_TABLE_ITEM (CacheSystemCacheTypeTable
, Type
);
3849 Display Cache Information (Type 7) Associativity.
3851 @param[in] Associativity The key of the structure.
3852 @param[in] Option The optional information.
3855 DisplayCacheAssociativity (
3856 IN UINT8 Associativity
,
3860 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ASSOCIATIVITY
), gShellDebug1HiiHandle
);
3861 PRINT_INFO_OPTION (Associativity
, Option
);
3862 PRINT_TABLE_ITEM (CacheAssociativityTable
, Associativity
);
3866 Display Port Connector Information (Type 8) type.
3868 @param[in] Type The key of the structure.
3869 @param[in] Option The optional information.
3872 DisplayPortConnectorType (
3877 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_CONNECTOR_TYPE
), gShellDebug1HiiHandle
);
3878 PRINT_INFO_OPTION (Type
, Option
);
3879 PRINT_TABLE_ITEM (PortConnectorTypeTable
, Type
);
3883 Display Port Connector Information (Type 8) port type.
3885 @param[in] Type The key of the structure.
3886 @param[in] Option The optional information.
3894 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_TYPE
), gShellDebug1HiiHandle
);
3895 PRINT_INFO_OPTION (Type
, Option
);
3896 PRINT_TABLE_ITEM (PortTypeTable
, Type
);
3900 Display System Slots (Type 9) slot type.
3902 @param[in] Type The key of the structure.
3903 @param[in] Option The optional information.
3906 DisplaySystemSlotType (
3911 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_TYPE
), gShellDebug1HiiHandle
);
3912 PRINT_INFO_OPTION (Type
, Option
);
3913 PRINT_TABLE_ITEM (SystemSlotTypeTable
, Type
);
3917 Display System Slots (Type 9) data bus width.
3919 @param[in] Width The key of the structure.
3920 @param[in] Option The optional information.
3923 DisplaySystemSlotDataBusWidth (
3928 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_DATA
), gShellDebug1HiiHandle
);
3929 PRINT_INFO_OPTION (Width
, Option
);
3930 PRINT_TABLE_ITEM (SystemSlotDataBusWidthTable
, Width
);
3934 Display System Slots (Type 9) usage information.
3936 @param[in] Usage The key of the structure.
3937 @param[in] Option The optional information.
3940 DisplaySystemSlotCurrentUsage (
3945 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_CURRENT_USAGE
), gShellDebug1HiiHandle
);
3946 PRINT_INFO_OPTION (Usage
, Option
);
3947 PRINT_TABLE_ITEM (SystemSlotCurrentUsageTable
, Usage
);
3951 Display System Slots (Type 9) slot length.
3953 @param[in] Length The key of the structure.
3954 @param[in] Option The optional information.
3957 DisplaySystemSlotLength (
3962 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_LENGTH
), gShellDebug1HiiHandle
);
3963 PRINT_INFO_OPTION (Length
, Option
);
3964 PRINT_TABLE_ITEM (SystemSlotLengthTable
, Length
);
3968 Display System Slots (Type 9) characteristics.
3970 @param[in] Chara1 The key of the structure.
3971 @param[in] Option The optional information.
3974 DisplaySlotCharacteristics1 (
3979 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS
), gShellDebug1HiiHandle
);
3980 PRINT_INFO_OPTION (Chara1
, Option
);
3981 PRINT_BITS_INFO (SlotCharacteristics1Table
, Chara1
);
3985 Display System Slots (Type 9) characteristics.
3987 @param[in] Chara2 The key of the structure.
3988 @param[in] Option The optional information.
3991 DisplaySlotCharacteristics2 (
3996 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS_2
), gShellDebug1HiiHandle
);
3997 PRINT_INFO_OPTION (Chara2
, Option
);
3998 PRINT_BITS_INFO (SlotCharacteristics2Table
, Chara2
);
4002 Display On Board Devices Information (Type 10) types.
4004 @param[in] Type The key of the structure.
4005 @param[in] Option The optional information.
4008 DisplayOnboardDeviceTypes (
4013 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ONBOARD_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4014 PRINT_INFO_OPTION (Type
, Option
);
4015 PRINT_TABLE_ITEM (OnboardDeviceTypesTable
, Type
);
4019 Display System Event Log (Type 15) types.
4021 @param[in] Type The key of the structure.
4022 @param[in] Option The optional information.
4030 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_EVENT_LOG_TYPE
), gShellDebug1HiiHandle
);
4031 PRINT_INFO_OPTION (Type
, Option
);
4032 PRINT_TABLE_ITEM (SELTypesTable
, Type
);
4036 Display System Event Log (Type 15) format type.
4038 @param[in] Type The key of the structure.
4039 @param[in] Option The optional information.
4042 DisplaySELVarDataFormatType (
4047 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_EVENT_LOG_VAR_DATA_FORMAT
), gShellDebug1HiiHandle
);
4048 PRINT_INFO_OPTION (Type
, Option
);
4049 PRINT_TABLE_ITEM (SELVarDataFormatTypeTable
, Type
);
4053 Display System Event Log (Type 15) dw1.
4055 @param[in] Key The key of the structure.
4056 @param[in] Option The optional information.
4059 DisplayPostResultsBitmapDw1 (
4064 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_BITMAP
), gShellDebug1HiiHandle
);
4065 PRINT_INFO_OPTION (Key
, Option
);
4066 PRINT_BITS_INFO (PostResultsBitmapDw1Table
, Key
);
4070 Display System Event Log (Type 15) dw2.
4072 @param[in] Key The key of the structure.
4073 @param[in] Option The optional information.
4076 DisplayPostResultsBitmapDw2 (
4081 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_SECOND_DWORD
), gShellDebug1HiiHandle
);
4082 PRINT_INFO_OPTION (Key
, Option
);
4083 PRINT_BITS_INFO (PostResultsBitmapDw2Table
, Key
);
4087 Display System Event Log (Type 15) type.
4089 @param[in] SMType The key of the structure.
4090 @param[in] Option The optional information.
4093 DisplaySELSysManagementTypes (
4100 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_TYPES
), gShellDebug1HiiHandle
);
4101 PRINT_INFO_OPTION (SMType
, Option
);
4104 // Deal with wide range Value
4106 if (SMType
>= 0x80000000) {
4107 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_OEM_ASSIGNED
), gShellDebug1HiiHandle
);
4108 } else if (SMType
>= 0x00020000) {
4109 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
4110 } else if (SMType
>= 0x00010000) {
4111 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_PROBE
), gShellDebug1HiiHandle
);
4112 } else if (SMType
>= 0x31) {
4113 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
4116 // Deal with One byte data
4118 Temp
= (UINT8
) (SMType
& 0x3F);
4119 PRINT_TABLE_ITEM (SELSysManagementTypesTable
, Temp
);
4124 Display Physical Memory Array (Type 16) Location.
4126 @param[in] Location The key of the structure.
4127 @param[in] Option The optional information.
4130 DisplayPMALocation (
4135 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_LOCATION
), gShellDebug1HiiHandle
);
4136 PRINT_INFO_OPTION (Location
, Option
);
4137 PRINT_TABLE_ITEM (PMALocationTable
, Location
);
4141 Display Physical Memory Array (Type 16) Use.
4143 @param[in] Use The key of the structure.
4144 @param[in] Option The optional information.
4152 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_USE
), gShellDebug1HiiHandle
);
4153 PRINT_INFO_OPTION (Use
, Option
);
4154 PRINT_TABLE_ITEM (PMAUseTable
, Use
);
4158 Display Physical Memory Array (Type 16) Types.
4160 @param[in] Type The key of the structure.
4161 @param[in] Option The optional information.
4164 DisplayPMAErrorCorrectionTypes (
4169 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_ERROR
), gShellDebug1HiiHandle
);
4170 PRINT_INFO_OPTION (Type
, Option
);
4171 PRINT_TABLE_ITEM (PMAErrorCorrectionTypesTable
, Type
);
4175 Display Memory Device (Type 17) form factor.
4177 @param[in] FormFactor The key of the structure.
4178 @param[in] Option The optional information.
4181 DisplayMemoryDeviceFormFactor (
4182 IN UINT8 FormFactor
,
4186 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_FORM_FACTOR
), gShellDebug1HiiHandle
);
4187 PRINT_INFO_OPTION (FormFactor
, Option
);
4188 PRINT_TABLE_ITEM (MemoryDeviceFormFactorTable
, FormFactor
);
4192 Display Memory Device (Type 17) type.
4194 @param[in] Type The key of the structure.
4195 @param[in] Option The optional information.
4198 DisplayMemoryDeviceType (
4203 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4204 PRINT_INFO_OPTION (Type
, Option
);
4205 PRINT_TABLE_ITEM (MemoryDeviceTypeTable
, Type
);
4209 Display Memory Device (Type 17) details.
4211 @param[in] Para The key of the structure.
4212 @param[in] Option The optional information.
4215 DisplayMemoryDeviceTypeDetail (
4220 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE_DETAIL
), gShellDebug1HiiHandle
);
4221 PRINT_INFO_OPTION (Para
, Option
);
4222 PRINT_BITS_INFO (MemoryDeviceTypeDetailTable
, Para
);
4226 Display 32-bit Memory Error Information (Type 18) type.
4228 @param[in] ErrorType The key of the structure.
4229 @param[in] Option The optional information.
4232 DisplayMemoryErrorType (
4237 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_INFO
), gShellDebug1HiiHandle
);
4238 PRINT_INFO_OPTION (ErrorType
, Option
);
4239 PRINT_TABLE_ITEM (MemoryErrorTypeTable
, ErrorType
);
4243 Display 32-bit Memory Error Information (Type 18) error granularity.
4245 @param[in] Granularity The key of the structure.
4246 @param[in] Option The optional information.
4249 DisplayMemoryErrorGranularity (
4250 IN UINT8 Granularity
,
4254 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_GRANULARITY
), gShellDebug1HiiHandle
);
4255 PRINT_INFO_OPTION (Granularity
, Option
);
4256 PRINT_TABLE_ITEM (MemoryErrorGranularityTable
, Granularity
);
4260 Display 32-bit Memory Error Information (Type 18) error information.
4262 @param[in] Operation The key of the structure.
4263 @param[in] Option The optional information.
4266 DisplayMemoryErrorOperation (
4271 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_OP
), gShellDebug1HiiHandle
);
4272 PRINT_INFO_OPTION (Operation
, Option
);
4273 PRINT_TABLE_ITEM (MemoryErrorOperationTable
, Operation
);
4277 Display Built-in Pointing Device (Type 21) type information.
4279 @param[in] Type The key of the structure.
4280 @param[in] Option The optional information.
4283 DisplayPointingDeviceType (
4288 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4289 PRINT_INFO_OPTION (Type
, Option
);
4290 PRINT_TABLE_ITEM (PointingDeviceTypeTable
, Type
);
4294 Display Built-in Pointing Device (Type 21) information.
4296 @param[in] Interface The key of the structure.
4297 @param[in] Option The optional information.
4300 DisplayPointingDeviceInterface (
4305 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_INTERFACE
), gShellDebug1HiiHandle
);
4306 PRINT_INFO_OPTION (Interface
, Option
);
4307 PRINT_TABLE_ITEM (PointingDeviceInterfaceTable
, Interface
);
4311 Display Portable Battery (Type 22) information.
4313 @param[in] Key The key of the structure.
4314 @param[in] Option The optional information.
4317 DisplayPBDeviceChemistry (
4322 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORTABLE_BATT_DEV_CHEM
), gShellDebug1HiiHandle
);
4323 PRINT_INFO_OPTION (Key
, Option
);
4324 PRINT_TABLE_ITEM (PBDeviceChemistryTable
, Key
);
4328 Display Voltage Probe (Type 26) location information.
4330 @param[in] Key The key of the structure.
4331 @param[in] Option The optional information.
4341 Loc
= (UINT8
) ((Key
& 0xE0) >> 5);
4342 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4343 PRINT_INFO_OPTION (Loc
, Option
);
4344 PRINT_TABLE_ITEM (VPLocationTable
, Loc
);
4348 Display Voltage Probe (Type 26) status ype information.
4350 @param[in] Key The key of the structure.
4351 @param[in] Option The optional information.
4361 Status
= (UINT8
) (Key
& 0x1F);
4362 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_STATUS
), gShellDebug1HiiHandle
);
4363 PRINT_INFO_OPTION (Status
, Option
);
4364 PRINT_TABLE_ITEM (VPStatusTable
, Status
);
4368 Display Cooling (Type 27) status information.
4370 @param[in] Key The key of the structure.
4371 @param[in] Option The optional information.
4374 DisplayCoolingDeviceStatus (
4381 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4382 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_STATUS
), gShellDebug1HiiHandle
);
4383 PRINT_INFO_OPTION (Status
, Option
);
4384 PRINT_TABLE_ITEM (CoolingDeviceStatusTable
, Status
);
4388 Display Cooling (Type 27) type information.
4390 @param[in] Key The key of the structure.
4391 @param[in] Option The optional information.
4394 DisplayCoolingDeviceType (
4401 Type
= (UINT8
) (Key
& 0x1F);
4402 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_TYPE
), gShellDebug1HiiHandle
);
4403 PRINT_INFO_OPTION (Type
, Option
);
4404 PRINT_TABLE_ITEM (CoolingDeviceTypeTable
, Type
);
4408 Display Temperature Probe (Type 28) status information.
4410 @param[in] Key The key of the structure.
4411 @param[in] Option The optional information.
4414 DisplayTemperatureProbeStatus (
4421 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4422 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_TEMP_PROBE
), gShellDebug1HiiHandle
);
4423 PRINT_INFO_OPTION (Status
, Option
);
4424 PRINT_TABLE_ITEM (TemperatureProbeStatusTable
, Status
);
4428 Display Temperature Probe (Type 28) location information.
4430 @param[in] Key The key of the structure.
4431 @param[in] Option The optional information.
4434 DisplayTemperatureProbeLoc (
4441 Loc
= (UINT8
) (Key
& 0x1F);
4442 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4443 PRINT_INFO_OPTION (Loc
, Option
);
4444 PRINT_TABLE_ITEM (TemperatureProbeLocTable
, Loc
);
4448 Display Electrical Current Probe (Type 29) status information.
4450 @param[in] Key The key of the structure.
4451 @param[in] Option The optional information.
4461 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4462 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_STATUS
), gShellDebug1HiiHandle
);
4463 PRINT_INFO_OPTION (Status
, Option
);
4464 PRINT_TABLE_ITEM (ECPStatusTable
, Status
);
4468 Display Type 29 information.
4470 @param[in] Key The key of the structure.
4471 @param[in] Option The optional information.
4481 Loc
= (UINT8
) (Key
& 0x1F);
4482 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_LOC
), gShellDebug1HiiHandle
);
4483 PRINT_INFO_OPTION (Loc
, Option
);
4484 PRINT_TABLE_ITEM (ECPLocTable
, Loc
);
4488 Display Management Device (Type 34) Type.
4490 @param[in] Key The key of the structure.
4491 @param[in] Option The optional information.
4499 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_TYPE
), gShellDebug1HiiHandle
);
4500 PRINT_INFO_OPTION (Key
, Option
);
4501 PRINT_TABLE_ITEM (MDTypeTable
, Key
);
4505 Display Management Device (Type 34) Address Type.
4507 @param[in] Key The key of the structure.
4508 @param[in] Option The optional information.
4511 DisplayMDAddressType (
4516 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_ADDR_TYPE
), gShellDebug1HiiHandle
);
4517 PRINT_INFO_OPTION (Key
, Option
);
4518 PRINT_TABLE_ITEM (MDAddressTypeTable
, Key
);
4522 Display Memory Channel (Type 37) information.
4524 @param[in] Key The key of the structure.
4525 @param[in] Option The optional information.
4528 DisplayMemoryChannelType (
4533 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CHANNEL_TYPE
), gShellDebug1HiiHandle
);
4534 PRINT_INFO_OPTION (Key
, Option
);
4535 PRINT_TABLE_ITEM (MemoryChannelTypeTable
, Key
);
4539 Display IPMI Device Information (Type 38) information.
4541 @param[in] Key The key of the structure.
4542 @param[in] Option The optional information.
4545 DisplayIPMIDIBMCInterfaceType (
4550 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BMC_INTERFACE_TYPE
), gShellDebug1HiiHandle
);
4551 PRINT_INFO_OPTION (Key
, Option
);
4552 PRINT_TABLE_ITEM (IPMIDIBMCInterfaceTypeTable
, Key
);
4556 Display Management Controller Host Interface (Type 42) information.
4558 @param[in] Key The key of the structure.
4559 @param[in] Option The optional information.
4562 DisplayMCHostInterfaceType (
4567 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MC_HOST_INTERFACE_TYPE
), gShellDebug1HiiHandle
);
4568 PRINT_INFO_OPTION (Key
, Option
);
4569 PRINT_TABLE_ITEM (MCHostInterfaceTypeTable
, Key
);
4573 Display the structure type information.
4575 @param[in] Key The key of the structure.
4576 @param[in] Option The optional information.
4579 DisplayStructureTypeInfo (
4587 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_STRUCT_TYPE
), gShellDebug1HiiHandle
);
4588 PRINT_INFO_OPTION (Key
, Option
);
4589 PRINT_TABLE_ITEM (StructureTypeInfoTable
, Key
);