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 - 2019, Intel Corporation. All rights reserved.<BR>
6 (C) Copyright 2016-2019 Hewlett Packard Enterprise Development LP<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #include "UefiShellDebug1CommandsLib.h"
12 #include "QueryTable.h"
13 #include "PrintInfo.h"
15 TABLE_ITEM SystemWakeupTypeTable
[] = {
50 TABLE_ITEM BaseBoardFeatureFlagsTable
[] = {
57 L
" Requires at least one daughter board or auxiliary card"
73 TABLE_ITEM BaseBoardBoardTypeTable
[] = {
88 L
" Connectivity Switch"
92 L
" System Management Module"
116 L
" Processor/Memory Module"
120 L
" Processor/IO Module"
124 L
" Interconnect Board"
128 TABLE_ITEM SystemEnclosureTypeTable
[] = {
143 L
" Low Profile Desktop"
191 L
" Main Server Chassis"
195 L
" Expansion Chassis"
207 L
" Bus Expansion Chassis"
211 L
" Peripheral Chassis"
219 L
" Rack Mount Chassis"
227 L
" Multi-system Chassis"
275 TABLE_ITEM SystemEnclosureStatusTable
[] = {
302 TABLE_ITEM SESecurityStatusTable
[] = {
317 L
" External interface locked out"
321 L
" External interface enabled"
325 TABLE_ITEM ProcessorTypeTable
[] = {
336 L
" Central Processor"
352 TABLE_ITEM ProcessorUpgradeTable
[] = {
371 L
"Replaceable Piggy Back"
595 TABLE_ITEM ProcessorCharacteristicsTable
[] = {
614 L
" Execute Protection"
618 L
" Enhanced Virtualization"
622 L
" Power/Performance Control"
631 TABLE_ITEM McErrorDetectMethodTable
[] = {
666 TABLE_ITEM McErrorCorrectCapabilityTable
[] = {
681 L
"Single Bit Error Correcting"
685 L
"Double Bit Error Correcting"
693 TABLE_ITEM McInterleaveSupportTable
[] = {
704 L
"One Way Interleave"
708 L
"Two Way Interleave"
712 L
"Four Way Interleave"
716 L
"Eight Way Interleave"
720 L
"Sixteen Way Interleave"
724 TABLE_ITEM McMemorySpeedsTable
[] = {
747 TABLE_ITEM MemoryModuleVoltageTable
[] = {
762 TABLE_ITEM MmMemoryTypeTable
[] = {
809 TABLE_ITEM MmErrorStatusTable
[] = {
812 L
" Uncorrectable errors received"
816 L
" Correctable errors received"
820 L
" Error Status obtained from the event log"
824 TABLE_ITEM CacheSRAMTypeTable
[] = {
855 TABLE_ITEM CacheErrCorrectingTypeTable
[] = {
882 TABLE_ITEM CacheSystemCacheTypeTable
[] = {
905 TABLE_ITEM CacheAssociativityTable
[] = {
920 L
"2-way Set-Associative"
924 L
"4-way Set-Associative"
932 L
"8-way Set-Associative"
936 L
"16-way Set-Associative"
940 L
"12-way Set-Associative"
944 L
"24-way Set-Associative"
948 L
"32-way Set-Associative"
952 L
"48-way Set-Associative"
956 L
"64-way Set-Associative"
960 L
"20-way Set-Associative"
964 TABLE_ITEM PortConnectorTypeTable
[] = {
1047 L
"Circular DIN-8 male"
1051 L
"Circular DIN-8 female"
1063 L
"9 Pin Dual Inline (pin 10 cut)"
1067 L
"25 Pin Dual Inline (pin 26 cut)"
1071 L
"50 Pin Dual Inline"
1075 L
"68 Pin Dual Inline"
1079 L
"On Board Sound Input from CD-ROM"
1083 L
"Mini-Centronics Type-14"
1087 L
"Mini-Centronics Type-26"
1091 L
"Mini-jack (headphones)"
1103 L
"SAS/SATA Plug Receptacle"
1107 L
"USB Type-C Receptacle"
1135 TABLE_ITEM PortTypeTable
[] = {
1142 L
"Parallel Port XT/AT Compatible"
1146 L
"Parallel Port PS/2"
1150 L
"Parallel Port ECP"
1154 L
"Parallel Port EPP"
1158 L
"Parallel Port ECP/EPP"
1162 L
"Serial Port XT/AT Compatible"
1166 L
"Serial Port 16450 Compatible"
1170 L
"Serial Port 16550 Compatible"
1174 L
"Serial Port 16550A Compatible"
1206 L
"FireWire (IEEE P1394)"
1274 L
"Multi-Function Display Port (MFDP)"
1286 L
"8251 FIFO Compatible"
1294 TABLE_ITEM SystemSlotTypeTable
[] = {
1333 L
"Processor Card Slot"
1337 L
"Proprietary Memory Card Slot"
1341 L
"I/O Riser Card Slot"
1349 L
"PCI - 66MHz Capable"
1373 L
"M.2 Socket 1-DP (Mechanical Key A)"
1377 L
"M.2 Socket 1-SD (Mechanical Key E)"
1381 L
"M.2 Socket 2 (Mechanical Key B)"
1385 L
"M.2 Socket 3 (Mechanical Key M)"
1397 L
"MXM Type III (standard connector)"
1401 L
"MXM Type III (HE connector)"
1417 L
"PCI Express Gen 2 SFF-8639"
1421 L
"PCI Express Gen 3 SFF-8639"
1425 L
"PCI Express Mini 52-pin (CEM spec. 2.0) with bottom-side keep-outs"
1429 L
"PCI Express Mini 52-pin (CEM spec. 2.0) without bottom-side keep-outs"
1433 L
"PCI Express Mini 76-pin (CEM spec. 2.0) Corresponds to Display-Mini card"
1436 SlotTypeCXLFlexbus10
,
1485 L
"PCI Express Gen 2"
1489 L
"PCI Express Gen 2 X1"
1493 L
"PCI Express Gen 2 X2"
1497 L
"PCI Express Gen 2 X4"
1501 L
"PCI Express Gen 2 X8"
1505 L
"PCI Express Gen 2 X16"
1509 L
"PCI Express Gen 3"
1513 L
"PCI Express Gen 3 X1"
1517 L
"PCI Express Gen 3 X2"
1521 L
"PCI Express Gen 3 X4"
1525 L
"PCI Express Gen 3 X8"
1529 L
"PCI Express Gen 3 X16"
1532 SlotTypePciExpressGen4
,
1533 L
"PCI Express Gen 4"
1536 SlotTypePciExpressGen4X1
,
1537 L
"PCI Express Gen 4 X1"
1540 SlotTypePciExpressGen4X2
,
1541 L
"PCI Express Gen 4 X2"
1544 SlotTypePciExpressGen4X4
,
1545 L
"PCI Express Gen 4 X4"
1548 SlotTypePciExpressGen4X8
,
1549 L
"PCI Express Gen 4 X8"
1552 SlotTypePciExpressGen4X16
,
1553 L
"PCI Express Gen 4 X16"
1557 TABLE_ITEM SystemSlotDataBusWidthTable
[] = {
1616 TABLE_ITEM SystemSlotCurrentUsageTable
[] = {
1639 TABLE_ITEM SystemSlotLengthTable
[] = {
1658 TABLE_ITEM SlotCharacteristics1Table
[] = {
1661 L
" Characteristics Unknown"
1665 L
" Provides 5.0 Volts"
1669 L
" Provides 3.3 Volts"
1673 L
" Slot's opening is shared with another slot, e.g. PCI/EISA shared slot."
1678 L
" PC Card slot supports PC Card-16"
1682 L
" PC Card slot supports CardBus"
1686 L
" PC Card slot supports Zoom Video "
1690 L
" PC Card slot supports Modem Ring Resume "
1694 TABLE_ITEM SlotCharacteristics2Table
[] = {
1697 L
" PCI slot supports Power Management Enable (PME#) signal"
1701 L
" Slot supports hot-plug devices"
1705 L
" PCI slot supports SMBus signal"
1709 L
" PCIe slot supports bifurcation"
1713 TABLE_ITEM OnboardDeviceTypesTable
[] = {
1756 TABLE_ITEM SELTypesTable
[] = {
1763 L
" Single-bit ECC memory error"
1767 L
" Multi-bit ECC memory error"
1771 L
" Parity memory error"
1779 L
" I/O Channel Check"
1787 L
" POST Memory Resize"
1795 L
" PCI Parity Error"
1799 L
" PCI System Error"
1807 L
" EISA FailSafe Timer time-out"
1811 L
" Correctable memory log disabled"
1815 L
" Logging disabled for a specific Event Type"
1823 L
" System Limit Exceeded"
1827 L
" Asynchronous hardware timer expired and issued a system reset"
1831 L
" System configuration information"
1835 L
" Hard-disk information"
1839 L
" System reconfigured"
1843 L
" Uncorrectable CPU-complex error"
1847 L
" Log Area Reset/Cleared"
1855 L
" Unused by SMBIOS specification"
1859 L
" System and OEM specified"
1867 TABLE_ITEM SELVarDataFormatTypeTable
[] = {
1882 L
" Multiple-Event Handle "
1886 L
" POST Results Bitmap "
1893 L
" System Management Type"
1900 L
" Multiple-Event System Management Type "
1912 TABLE_ITEM PostResultsBitmapDw1Table
[] = {
1915 L
" Channel 2 Timer error "
1919 L
" Master PIC (8259 #1) error "
1923 L
" Slave PIC (8259 #2) error "
1927 L
" CMOS Battery Failure "
1931 L
" CMOS System Options Not Set "
1935 L
" CMOS Checksum Error "
1939 L
" CMOS Configuration Error "
1943 L
" Mouse and Keyboard Swapped "
1947 L
" Keyboard Locked "
1951 L
" Keyboard Not Functional "
1955 L
" Keyboard Controller Not Functional "
1959 L
" CMOS Memory Size Different "
1963 L
" Memory Decreased in Size "
1967 L
" Cache Memory Error "
1971 L
" Floppy Drive 0 Error "
1975 L
" Floppy Drive 1 Error "
1979 L
" Floppy Controller Failure "
1983 L
" Number of ATA Drives Reduced Error "
1987 L
" CMOS Time Not Set "
1991 L
" DDC Monitor Configuration Change "
1995 L
" Reserved, set to 0 "
1999 L
" Reserved, set to 0 "
2003 L
" Reserved, set to 0 "
2007 L
" Reserved, set to 0 "
2011 L
" Second DWORD has valid data "
2015 L
" Reserved, set to 0 "
2019 L
" Reserved, set to 0 "
2023 L
" Reserved, set to 0 "
2027 L
" Normally 0; available for OEM assignment "
2031 L
" Normally 0; available for OEM assignment "
2035 L
" Normally 0; available for OEM assignment "
2039 L
" Normally 0; available for OEM assignment "
2043 TABLE_ITEM PostResultsBitmapDw2Table
[] = {
2046 L
" Normally 0; available for OEM assignment "
2050 L
" Normally 0; available for OEM assignment "
2054 L
" Normally 0; available for OEM assignment "
2058 L
" Normally 0; available for OEM assignment "
2062 L
" Normally 0; available for OEM assignment "
2066 L
" Normally 0; available for OEM assignment "
2070 L
" Normally 0; available for OEM assignment "
2074 L
" PCI Memory Conflict "
2078 L
" PCI I/O Conflict "
2082 L
" PCI IRQ Conflict "
2086 L
" PNP Memory Conflict "
2090 L
" PNP 32 bit Memory Conflict "
2094 L
" PNP I/O Conflict "
2098 L
" PNP IRQ Conflict "
2102 L
" PNP DMA Conflict "
2106 L
" Bad PNP Serial ID Checksum "
2110 L
" Bad PNP Resource Data Checksum "
2114 L
" Static Resource Conflict "
2118 L
" NVRAM Checksum Error, NVRAM Cleared "
2122 L
" System Board Device Resource Conflict "
2126 L
" Primary Output Device Not Found "
2130 L
" Primary Input Device Not Found "
2134 L
" Primary Boot Device Not Found "
2138 L
" NVRAM Cleared By Jumper "
2142 L
" NVRAM Data Invalid, NVRAM Cleared "
2146 L
" FDC Resource Conflict "
2150 L
" Primary ATA Controller Resource Conflict "
2154 L
" Secondary ATA Controller Resource Conflict "
2158 L
" Parallel Port Resource Conflict "
2162 L
" Serial Port 1 Resource Conflict "
2166 L
" Serial Port 2 Resource Conflict "
2170 L
" Audio Resource Conflict "
2174 TABLE_ITEM SELSysManagementTypesTable
[] = {
2177 L
" +2.5V Out of range, #2 "
2181 L
" +3.3V Out of range "
2185 L
" +5V Out of range "
2189 L
" -5V Out of range "
2193 L
" +12V Out of range "
2197 L
" -12V Out of range "
2201 L
" Reserved for future out-of-range voltage levels "
2205 L
" System board temperature out of range "
2209 L
" Processor #1 temperature out of range "
2213 L
" Processor #2 temperature out of range "
2217 L
" Processor #3 temperature out of range "
2221 L
" Processor #4 temperature out of range "
2225 L
" Reserved for future out-of-range temperatures"
2229 L
" Fan n (n = 0 to 7) Out of range "
2233 L
" Reserved for future assignment via this specification "
2237 L
" Chassis secure switch activated "
2241 TABLE_ITEM PMALocationTable
[] = {
2252 L
" System board or motherboard"
2260 L
" EISA add-on card"
2272 L
" PCMCIA add-on card"
2276 L
" Proprietary add-on card"
2284 L
" PC-98/C20 add-on card"
2288 L
" PC-98/C24 add-on card"
2292 L
" PC-98/E add-on card"
2296 L
" PC-98/Local bus add-on card"
2299 MemoryArrayLocationCXLFlexbus10AddonCard
,
2300 L
" CXL Flexbus 1.0 add-on card"
2304 TABLE_ITEM PMAUseTable
[] = {
2327 L
" Non-volatile RAM"
2335 TABLE_ITEM PMAErrorCorrectionTypesTable
[] = {
2366 TABLE_ITEM MemoryDeviceFormFactorTable
[] = {
2397 L
" Proprietary Card"
2428 MemoryFormFactorDie
,
2433 TABLE_ITEM MemoryDeviceTypeTable
[] = {
2544 L
" Logical non-volatile device"
2548 L
" HBM (High Bandwidth Memory)"
2552 L
" HBM2 (High Bandwidth Memory Generation 2)"
2556 TABLE_ITEM MemoryDeviceTypeDetailTable
[] = {
2607 L
" Registered(Buffered)"
2611 L
" Unbuffered(Unregistered)"
2615 TABLE_ITEM MemoryDeviceMemoryTechnologyTable
[] = {
2642 L
" Intel persistent memory"
2646 TABLE_ITEM MemoryDeviceMemoryOperatingModeCapabilityTable
[] = {
2661 L
" Byte-accessible persistent memory"
2665 L
" Block-accessible persistent memory"
2670 TABLE_ITEM MemoryErrorTypeTable
[] = {
2693 L
" Single-bit error"
2697 L
" Double-bit error"
2717 L
" Corrected single-bit error"
2725 L
" Uncorrectable error"
2729 TABLE_ITEM MemoryErrorGranularityTable
[] = {
2744 L
" Memory partition level"
2748 TABLE_ITEM MemoryErrorOperationTable
[] = {
2771 TABLE_ITEM PointingDeviceTypeTable
[] = {
2802 TABLE_ITEM PointingDeviceInterfaceTable
[] = {
2833 L
" ADB(Apple Desktop Bus"
2841 L
" Bus mouse mirco-DIN"
2849 TABLE_ITEM PBDeviceChemistryTable
[] = {
2868 L
" Nickel metal hydride "
2880 L
" Lithium Polymer "
2884 TABLE_ITEM VPLocationTable
[] = {
2907 L
" Non-recoverable "
2911 TABLE_ITEM VPStatusTable
[] = {
2934 L
" System Management Module "
2946 L
" Processor Module "
2958 TABLE_ITEM CoolingDeviceStatusTable
[] = {
2981 L
" Non-recoverable "
2985 TABLE_ITEM CoolingDeviceTypeTable
[] = {
3000 L
" Centrifugal Blower "
3012 L
" Power Supply Fan "
3020 L
" Integrated Refrigeration "
3028 L
" Passive Cooling "
3032 TABLE_ITEM TemperatureProbeStatusTable
[] = {
3055 L
" Non-recoverable "
3059 TABLE_ITEM TemperatureProbeLocTable
[] = {
3082 L
" System Management Module "
3094 L
" Processor Module "
3106 TABLE_ITEM ECPStatusTable
[] = {
3129 L
" Non-recoverable "
3133 TABLE_ITEM ECPLocTable
[] = {
3156 L
" System Management Module "
3168 L
" Processor Module "
3180 TABLE_ITEM MDTypeTable
[] = {
3191 L
" National Semiconductor LM75 "
3195 L
" National Semiconductor LM78 "
3199 L
" National Semiconductor LM79 "
3203 L
" National Semiconductor LM80 "
3207 L
" National Semiconductor LM81 "
3211 L
" Analog Devices ADM9240 "
3215 L
" Dallas Semiconductor DS1780 "
3223 L
" Genesys GL518SM "
3227 L
" Winbond W83781D "
3231 L
" Holtek HT82H791 "
3235 TABLE_ITEM MDAddressTypeTable
[] = {
3258 TABLE_ITEM MemoryChannelTypeTable
[] = {
3277 TABLE_ITEM IPMIDIBMCInterfaceTypeTable
[] = {
3284 L
" KCS: Keyboard Controller Style "
3288 L
" SMIC: Server Management Interface Chip "
3292 L
" BT: Block Transfer "
3296 L
" SSIF: SMBus System Interface "
3300 L
" Reserved for future assignment by this specification "
3304 TABLE_ITEM MCHostInterfaceTypeTable
[] = {
3307 L
" MCTP Host Interface "
3311 L
" Network Host Interface "
3319 TABLE_ITEM ProcessorArchitectureTypesTable
[] = {
3330 L
" x64 (x86-64, intel64, AMD64, EM64T) "
3334 L
" Intel Itanium architecture "
3338 L
" 32-bit ARM (Aarch32) "
3342 L
" 64-bit ARM (Aarch64) "
3346 L
" 32-bit RISC-V (RV32) "
3350 L
" 64-bit RISC-V (RV64) "
3354 L
" 128-bit RISC-V (RV128) "
3358 TABLE_ITEM StructureTypeInfoTable
[] = {
3361 L
" BIOS Information"
3365 L
" System Information"
3369 L
" Base Board Information"
3373 L
" System Enclosure"
3377 L
" Processor Information"
3381 L
" Memory Controller Information "
3385 L
" Memory Module Information "
3389 L
" Cache Information "
3393 L
" Port Connector Information "
3401 L
" On Board Devices Information "
3409 L
" System Configuration Options "
3413 L
" BIOS Language Information "
3417 L
" Group Associations "
3421 L
" System Event Log "
3425 L
" Physical Memory Array "
3433 L
" 32-bit Memory Error Information "
3437 L
" Memory Array Mapped Address "
3441 L
" Memory Device Mapped Address "
3445 L
" Built-in Pointing Device "
3449 L
" Portable Battery "
3457 L
" Hardware Security "
3461 L
" System Power Controls "
3473 L
" Temperature Probe "
3477 L
" Electrical Current Probe "
3481 L
" Out-of-Band Remote Access "
3485 L
" Boot Integrity Services (BIS) Entry Point"
3489 L
" System Boot Information "
3493 L
" 64-bit Memory Error Information "
3497 L
" Management Device "
3501 L
" Management Device Component "
3505 L
" Management Device Threshold Data "
3513 L
" IPMI Device Information "
3517 L
" System Power Supply"
3521 L
" Additional Information"
3525 L
" Onboard Devices Extended Information"
3529 L
" Management Controller Host Interface"
3537 L
" Processor Additional Information"
3551 Given a table and a Key, return the responding info.
3554 Table[Index].Key is change from UINT8 to UINT16,
3555 in order to deal with "0xaa - 0xbb".
3558 DisplaySELVariableDataFormatTypes(UINT8 Type, UINT8 Option)
3561 Now define Key = 0x7F07, that is to say: High = 0x7F, Low = 0x07.
3562 Then all the Key Value between Low and High gets the same string
3565 @param[in] Table The begin address of table.
3566 @param[in] Number The number of table items.
3567 @param[in] Key The query Key.
3568 @param[in, out] Info Input as empty buffer; output as data buffer.
3569 @param[in] InfoLen The max number of characters for Info.
3571 @return the found Key and Info is valid.
3572 @retval QUERY_TABLE_UNFOUND and Info should be NULL.
3576 IN TABLE_ITEM
*Table
,
3579 IN OUT CHAR16
*Info
,
3585 // High byte and Low byte of word
3590 for (Index
= 0; Index
< Number
; Index
++) {
3591 High
= (UINT8
) (Table
[Index
].Key
>> 8);
3592 Low
= (UINT8
) (Table
[Index
].Key
& 0x00FF);
3595 // Check if Key is in the range
3596 // or if Key == Value in the table
3598 if ((High
> Low
&& Key
>= Low
&& Key
<= High
)
3599 || (Table
[Index
].Key
== Key
)) {
3600 StrnCpyS (Info
, InfoLen
, Table
[Index
].Info
, InfoLen
- 1);
3601 StrnCatS (Info
, InfoLen
, L
"\n", InfoLen
- 1 - StrLen(Info
));
3606 StrCpyS (Info
, InfoLen
, L
"Undefined Value\n");
3607 return QUERY_TABLE_UNFOUND
;
3611 Given a table of bit info and a Key, return the responding info to the Key.
3613 @param[in] Table Point to a table which maintains a map of 'bit' to 'message'.
3614 @param[in] Number Number of table items.
3615 @param[in] Bits The Key of query the bit map information.
3619 IN TABLE_ITEM
*Table
,
3625 // Get certain bit of 'Value':
3627 #define BIT(Value, bit) ((Value) & ((UINT32) 1) << (bit))
3629 // Clear certain bit of 'Value':
3631 #define CLR_BIT(Value, bit) ((Value) -= (BIT (Value, bit)))
3640 // query the table and print information
3642 for (Index
= 0; Index
< Number
; Index
++) {
3643 if (BIT (Value
, Table
[Index
].Key
) != 0) {
3646 // If it is not first info, print the separator first.
3650 Print (Table
[Index
].Info
);
3654 // clear the bit, for reserved bits test
3656 CLR_BIT (Value
, Table
[Index
].Key
);
3661 // There is no any info if FirstInfo is still TRUE.
3664 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_NO_INFO
), gShellDebug1HiiHandle
);
3668 ShellPrintHiiEx(-1,-1,NULL
,
3669 STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_BITS_SET
),
3670 gShellDebug1HiiHandle
,
3678 // //////////////////////////////////////////////////////////////////
3680 // Following uses QueryTable functions to simplify the coding.
3681 // QueryTable(), PrintBitsInfo()
3684 #define PRINT_TABLE_ITEM(Table, Key) \
3688 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3689 ZeroMem (Info, sizeof (Info)); \
3690 QueryTable (Table, Num, Key, Info, sizeof(Info)/sizeof(Info[0])); \
3694 #define PRINT_BITS_INFO(Table, bits) \
3697 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3698 PrintBitsInfo (Table, Num, (UINT32) bits); \
3702 Display System Information (Type 1) Type.
3704 @param[in] Type The key of the structure.
3705 @param[in] Option The optional information.
3708 DisplaySystemWakeupType (
3713 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_WAKEUP_TYPE
), gShellDebug1HiiHandle
);
3714 PRINT_INFO_OPTION (Type
, Option
);
3715 PRINT_TABLE_ITEM (SystemWakeupTypeTable
, Type
);
3719 Display Base Board (Type 2) Feature Flags.
3721 @param[in] FeatureFlags The key of the structure.
3722 @param[in] Option The optional information.
3725 DisplayBaseBoardFeatureFlags (
3726 IN UINT8 FeatureFlags
,
3730 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_FEATURE_FLAGS
), gShellDebug1HiiHandle
);
3731 PRINT_INFO_OPTION (FeatureFlags
, Option
);
3732 PRINT_BITS_INFO (BaseBoardFeatureFlagsTable
, FeatureFlags
);
3736 Display Base Board (Type 2) Board Type.
3738 @param[in] Type The key of the structure.
3739 @param[in] Option The optional information.
3742 DisplayBaseBoardBoardType(
3747 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_BOARD_TYPE
), gShellDebug1HiiHandle
);
3748 PRINT_INFO_OPTION (Type
, Option
);
3749 PRINT_TABLE_ITEM (BaseBoardBoardTypeTable
, Type
);
3753 Display System Enclosure (Type 3) Enclosure Type.
3755 @param[in] Type The key of the structure.
3756 @param[in] Option The optional information.
3759 DisplaySystemEnclosureType (
3764 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_TYPE
), gShellDebug1HiiHandle
);
3765 PRINT_INFO_OPTION (Type
, Option
);
3767 // query table and print info
3769 PRINT_TABLE_ITEM (SystemEnclosureTypeTable
, Type
);
3771 if (BIT (Type
, 7) != 0) {
3772 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CHASSIS_LOCK_PRESENT
), gShellDebug1HiiHandle
);
3777 Display System Enclosure (Type 3) Enclosure Status.
3779 @param[in] Status The key of the structure.
3780 @param[in] Option The optional information.
3783 DisplaySystemEnclosureStatus (
3788 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_STATUS
), gShellDebug1HiiHandle
);
3789 PRINT_INFO_OPTION (Status
, Option
);
3790 PRINT_TABLE_ITEM (SystemEnclosureStatusTable
, Status
);
3794 Display System Enclosure (Type 3) Security Status.
3796 @param[in] Status The key of the structure.
3797 @param[in] Option The optional information.
3800 DisplaySESecurityStatus (
3805 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_SECURITY
), gShellDebug1HiiHandle
);
3806 PRINT_INFO_OPTION (Status
, Option
);
3807 PRINT_TABLE_ITEM (SESecurityStatusTable
, Status
);
3811 Display Processor Information (Type 4) Type.
3813 @param[in] Type The key of the structure.
3814 @param[in] Option The optional information.
3817 DisplayProcessorType (
3822 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_TYPE
), gShellDebug1HiiHandle
);
3823 PRINT_INFO_OPTION (Type
, Option
);
3824 PRINT_TABLE_ITEM (ProcessorTypeTable
, Type
);
3828 Display Processor Information (Type 4) Upgrade.
3830 @param[in] Upgrade The key of the structure.
3831 @param[in] Option The optional information.
3834 DisplayProcessorUpgrade (
3839 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_UPDATE
), gShellDebug1HiiHandle
);
3840 PRINT_INFO_OPTION (Upgrade
, Option
);
3841 PRINT_TABLE_ITEM (ProcessorUpgradeTable
, Upgrade
);
3845 Display Processor Information (Type 4) Characteristics.
3847 @param[in] Type The key of the structure.
3848 @param[in] Option The optional information.
3851 DisplayProcessorCharacteristics (
3856 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_CHARACTERISTICS
), gShellDebug1HiiHandle
);
3857 PRINT_INFO_OPTION (Type
, Option
);
3858 PRINT_BITS_INFO (ProcessorCharacteristicsTable
, Type
);
3862 Display Memory Controller Information (Type 5) method.
3864 @param[in] Method The key of the structure.
3865 @param[in] Option The optional information.
3868 DisplayMcErrorDetectMethod (
3873 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DETECTMETHOD
), gShellDebug1HiiHandle
);
3874 PRINT_INFO_OPTION (Method
, Option
);
3875 PRINT_TABLE_ITEM (McErrorDetectMethodTable
, Method
);
3879 Display Memory Controller Information (Type 5) Capability.
3881 @param[in] Capability The key of the structure.
3882 @param[in] Option The optional information.
3885 DisplayMcErrorCorrectCapability (
3886 IN UINT8 Capability
,
3890 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CORRECT_CAPABILITY
), gShellDebug1HiiHandle
);
3891 PRINT_INFO_OPTION (Capability
, Option
);
3892 PRINT_BITS_INFO (McErrorCorrectCapabilityTable
, Capability
);
3896 Display Memory Controller Information (Type 5) Support.
3898 @param[in] Support The key of the structure.
3899 @param[in] Option The optional information.
3902 DisplayMcInterleaveSupport (
3907 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_INTERLEAVE_SUPPORT
), gShellDebug1HiiHandle
);
3908 PRINT_INFO_OPTION (Support
, Option
);
3909 PRINT_TABLE_ITEM (McInterleaveSupportTable
, Support
);
3913 Display Memory Controller Information (Type 5) speeds.
3915 @param[in] Speed The key of the structure.
3916 @param[in] Option The optional information.
3919 DisplayMcMemorySpeeds (
3924 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MEMORY_SPEED
), gShellDebug1HiiHandle
);
3925 PRINT_INFO_OPTION (Speed
, Option
);
3926 PRINT_BITS_INFO (McMemorySpeedsTable
, Speed
);
3930 Display Memory Controller Information (Type 5) voltage.
3932 @param[in] Voltage The key of the structure.
3933 @param[in] Option The optional information.
3936 DisplayMemoryModuleVoltage (
3941 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_REQUIRED_VOLTAGES
), gShellDebug1HiiHandle
);
3942 PRINT_INFO_OPTION (Voltage
, Option
);
3943 PRINT_BITS_INFO (MemoryModuleVoltageTable
, Voltage
);
3947 Display Memory Module Information (Type 6) type.
3949 @param[in] Type The key of the structure.
3950 @param[in] Option The optional information.
3953 DisplayMmMemoryType (
3958 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_TYPE
), gShellDebug1HiiHandle
);
3959 PRINT_INFO_OPTION (Type
, Option
);
3960 PRINT_BITS_INFO (MmMemoryTypeTable
, Type
);
3964 Display Memory Module Information (Type 6) status.
3966 @param[in] Status The key of the structure.
3967 @param[in] Option The optional information.
3970 DisplayMmErrorStatus (
3975 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_ERROR_STATUS
), gShellDebug1HiiHandle
);
3976 PRINT_INFO_OPTION (Status
, Option
);
3977 PRINT_BITS_INFO (MmErrorStatusTable
, Status
);
3981 Display Cache Information (Type 7) SRAM Type.
3983 @param[in] Type The key of the structure.
3984 @param[in] Option The optional information.
3987 DisplayCacheSRAMType (
3992 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SRAM_TYPE
), gShellDebug1HiiHandle
);
3993 PRINT_INFO_OPTION ((UINT8
) Type
, Option
);
3994 PRINT_BITS_INFO (CacheSRAMTypeTable
, (UINT8
) Type
);
3998 Display Cache Information (Type 7) correcting Type.
4000 @param[in] Type The key of the structure.
4001 @param[in] Option The optional information.
4004 DisplayCacheErrCorrectingType (
4009 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ERROR_CORRECTING
), gShellDebug1HiiHandle
);
4010 PRINT_INFO_OPTION (Type
, Option
);
4011 PRINT_TABLE_ITEM (CacheErrCorrectingTypeTable
, Type
);
4015 Display Cache Information (Type 7) Type.
4017 @param[in] Type The key of the structure.
4018 @param[in] Option The optional information.
4021 DisplayCacheSystemCacheType (
4026 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SYSTEM_TYPE
), gShellDebug1HiiHandle
);
4027 PRINT_INFO_OPTION (Type
, Option
);
4028 PRINT_TABLE_ITEM (CacheSystemCacheTypeTable
, Type
);
4032 Display Cache Information (Type 7) Associativity.
4034 @param[in] Associativity The key of the structure.
4035 @param[in] Option The optional information.
4038 DisplayCacheAssociativity (
4039 IN UINT8 Associativity
,
4043 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ASSOCIATIVITY
), gShellDebug1HiiHandle
);
4044 PRINT_INFO_OPTION (Associativity
, Option
);
4045 PRINT_TABLE_ITEM (CacheAssociativityTable
, Associativity
);
4049 Display Port Connector Information (Type 8) type.
4051 @param[in] Type The key of the structure.
4052 @param[in] Option The optional information.
4055 DisplayPortConnectorType (
4060 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_CONNECTOR_TYPE
), gShellDebug1HiiHandle
);
4061 PRINT_INFO_OPTION (Type
, Option
);
4062 PRINT_TABLE_ITEM (PortConnectorTypeTable
, Type
);
4066 Display Port Connector Information (Type 8) port type.
4068 @param[in] Type The key of the structure.
4069 @param[in] Option The optional information.
4077 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_TYPE
), gShellDebug1HiiHandle
);
4078 PRINT_INFO_OPTION (Type
, Option
);
4079 PRINT_TABLE_ITEM (PortTypeTable
, Type
);
4083 Display System Slots (Type 9) slot type.
4085 @param[in] Type The key of the structure.
4086 @param[in] Option The optional information.
4089 DisplaySystemSlotType (
4094 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_TYPE
), gShellDebug1HiiHandle
);
4095 PRINT_INFO_OPTION (Type
, Option
);
4096 PRINT_TABLE_ITEM (SystemSlotTypeTable
, Type
);
4100 Display System Slots (Type 9) data bus width.
4102 @param[in] Width The key of the structure.
4103 @param[in] Option The optional information.
4106 DisplaySystemSlotDataBusWidth (
4111 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_DATA
), gShellDebug1HiiHandle
);
4112 PRINT_INFO_OPTION (Width
, Option
);
4113 PRINT_TABLE_ITEM (SystemSlotDataBusWidthTable
, Width
);
4117 Display System Slots (Type 9) usage information.
4119 @param[in] Usage The key of the structure.
4120 @param[in] Option The optional information.
4123 DisplaySystemSlotCurrentUsage (
4128 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_CURRENT_USAGE
), gShellDebug1HiiHandle
);
4129 PRINT_INFO_OPTION (Usage
, Option
);
4130 PRINT_TABLE_ITEM (SystemSlotCurrentUsageTable
, Usage
);
4134 Display System Slots (Type 9) slot length.
4136 @param[in] Length The key of the structure.
4137 @param[in] Option The optional information.
4140 DisplaySystemSlotLength (
4145 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_LENGTH
), gShellDebug1HiiHandle
);
4146 PRINT_INFO_OPTION (Length
, Option
);
4147 PRINT_TABLE_ITEM (SystemSlotLengthTable
, Length
);
4151 Display System Slots (Type 9) characteristics.
4153 @param[in] Chara1 The key of the structure.
4154 @param[in] Option The optional information.
4157 DisplaySlotCharacteristics1 (
4162 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS
), gShellDebug1HiiHandle
);
4163 PRINT_INFO_OPTION (Chara1
, Option
);
4164 PRINT_BITS_INFO (SlotCharacteristics1Table
, Chara1
);
4168 Display System Slots (Type 9) characteristics.
4170 @param[in] Chara2 The key of the structure.
4171 @param[in] Option The optional information.
4174 DisplaySlotCharacteristics2 (
4179 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS_2
), gShellDebug1HiiHandle
);
4180 PRINT_INFO_OPTION (Chara2
, Option
);
4181 PRINT_BITS_INFO (SlotCharacteristics2Table
, Chara2
);
4185 Display On Board Devices Information (Type 10) types.
4187 @param[in] Type The key of the structure.
4188 @param[in] Option The optional information.
4191 DisplayOnboardDeviceTypes (
4196 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ONBOARD_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4197 PRINT_INFO_OPTION (Type
, Option
);
4198 PRINT_TABLE_ITEM (OnboardDeviceTypesTable
, Type
);
4202 Display System Event Log (Type 15) types.
4204 @param[in] Type The key of the structure.
4205 @param[in] Option The optional information.
4213 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_EVENT_LOG_TYPE
), gShellDebug1HiiHandle
);
4214 PRINT_INFO_OPTION (Type
, Option
);
4215 PRINT_TABLE_ITEM (SELTypesTable
, Type
);
4219 Display System Event Log (Type 15) format type.
4221 @param[in] Type The key of the structure.
4222 @param[in] Option The optional information.
4225 DisplaySELVarDataFormatType (
4230 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_EVENT_LOG_VAR_DATA_FORMAT
), gShellDebug1HiiHandle
);
4231 PRINT_INFO_OPTION (Type
, Option
);
4232 PRINT_TABLE_ITEM (SELVarDataFormatTypeTable
, Type
);
4236 Display System Event Log (Type 15) dw1.
4238 @param[in] Key The key of the structure.
4239 @param[in] Option The optional information.
4242 DisplayPostResultsBitmapDw1 (
4247 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_BITMAP
), gShellDebug1HiiHandle
);
4248 PRINT_INFO_OPTION (Key
, Option
);
4249 PRINT_BITS_INFO (PostResultsBitmapDw1Table
, Key
);
4253 Display System Event Log (Type 15) dw2.
4255 @param[in] Key The key of the structure.
4256 @param[in] Option The optional information.
4259 DisplayPostResultsBitmapDw2 (
4264 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_SECOND_DWORD
), gShellDebug1HiiHandle
);
4265 PRINT_INFO_OPTION (Key
, Option
);
4266 PRINT_BITS_INFO (PostResultsBitmapDw2Table
, Key
);
4270 Display System Event Log (Type 15) type.
4272 @param[in] SMType The key of the structure.
4273 @param[in] Option The optional information.
4276 DisplaySELSysManagementTypes (
4283 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_TYPES
), gShellDebug1HiiHandle
);
4284 PRINT_INFO_OPTION (SMType
, Option
);
4287 // Deal with wide range Value
4289 if (SMType
>= 0x80000000) {
4290 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_OEM_ASSIGNED
), gShellDebug1HiiHandle
);
4291 } else if (SMType
>= 0x00020000) {
4292 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
4293 } else if (SMType
>= 0x00010000) {
4294 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_PROBE
), gShellDebug1HiiHandle
);
4295 } else if (SMType
>= 0x31) {
4296 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
4299 // Deal with One byte data
4301 Temp
= (UINT8
) (SMType
& 0x3F);
4302 PRINT_TABLE_ITEM (SELSysManagementTypesTable
, Temp
);
4307 Display Physical Memory Array (Type 16) Location.
4309 @param[in] Location The key of the structure.
4310 @param[in] Option The optional information.
4313 DisplayPMALocation (
4318 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_LOCATION
), gShellDebug1HiiHandle
);
4319 PRINT_INFO_OPTION (Location
, Option
);
4320 PRINT_TABLE_ITEM (PMALocationTable
, Location
);
4324 Display Physical Memory Array (Type 16) Use.
4326 @param[in] Use The key of the structure.
4327 @param[in] Option The optional information.
4335 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_USE
), gShellDebug1HiiHandle
);
4336 PRINT_INFO_OPTION (Use
, Option
);
4337 PRINT_TABLE_ITEM (PMAUseTable
, Use
);
4341 Display Physical Memory Array (Type 16) Types.
4343 @param[in] Type The key of the structure.
4344 @param[in] Option The optional information.
4347 DisplayPMAErrorCorrectionTypes (
4352 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_ERROR
), gShellDebug1HiiHandle
);
4353 PRINT_INFO_OPTION (Type
, Option
);
4354 PRINT_TABLE_ITEM (PMAErrorCorrectionTypesTable
, Type
);
4358 Display Memory Device (Type 17) form factor.
4360 @param[in] FormFactor The key of the structure.
4361 @param[in] Option The optional information.
4364 DisplayMemoryDeviceFormFactor (
4365 IN UINT8 FormFactor
,
4369 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_FORM_FACTOR
), gShellDebug1HiiHandle
);
4370 PRINT_INFO_OPTION (FormFactor
, Option
);
4371 PRINT_TABLE_ITEM (MemoryDeviceFormFactorTable
, FormFactor
);
4375 Display Memory Device (Type 17) type.
4377 @param[in] Type The key of the structure.
4378 @param[in] Option The optional information.
4381 DisplayMemoryDeviceType (
4386 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4387 PRINT_INFO_OPTION (Type
, Option
);
4388 PRINT_TABLE_ITEM (MemoryDeviceTypeTable
, Type
);
4392 Display Memory Device (Type 17) details.
4394 @param[in] Para The key of the structure.
4395 @param[in] Option The optional information.
4398 DisplayMemoryDeviceTypeDetail (
4403 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE_DETAIL
), gShellDebug1HiiHandle
);
4404 PRINT_INFO_OPTION (Para
, Option
);
4405 PRINT_BITS_INFO (MemoryDeviceTypeDetailTable
, Para
);
4409 Display Memory Device (Type 17) memory technology.
4411 @param[in] Para The key of the structure.
4412 @param[in] Option The optional information.
4415 DisplayMemoryDeviceMemoryTechnology (
4420 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_MEMORY_TECHNOLOGY
), gShellDebug1HiiHandle
);
4421 PRINT_INFO_OPTION (Para
, Option
);
4422 PRINT_TABLE_ITEM (MemoryDeviceMemoryTechnologyTable
, Para
);
4426 Display Memory Device (Type 17) memory operating mode capability.
4428 @param[in] Para The key of the structure.
4429 @param[in] Option The optional information.
4432 DisplayMemoryDeviceMemoryOperatingModeCapability (
4437 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_MEM_OPER_MODE_CAPA
), gShellDebug1HiiHandle
);
4438 PRINT_INFO_OPTION (Para
, Option
);
4439 PRINT_BITS_INFO (MemoryDeviceMemoryOperatingModeCapabilityTable
, Para
);
4443 Display 32-bit Memory Error Information (Type 18) type.
4445 @param[in] ErrorType The key of the structure.
4446 @param[in] Option The optional information.
4449 DisplayMemoryErrorType (
4454 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_INFO
), gShellDebug1HiiHandle
);
4455 PRINT_INFO_OPTION (ErrorType
, Option
);
4456 PRINT_TABLE_ITEM (MemoryErrorTypeTable
, ErrorType
);
4460 Display 32-bit Memory Error Information (Type 18) error granularity.
4462 @param[in] Granularity The key of the structure.
4463 @param[in] Option The optional information.
4466 DisplayMemoryErrorGranularity (
4467 IN UINT8 Granularity
,
4471 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_GRANULARITY
), gShellDebug1HiiHandle
);
4472 PRINT_INFO_OPTION (Granularity
, Option
);
4473 PRINT_TABLE_ITEM (MemoryErrorGranularityTable
, Granularity
);
4477 Display 32-bit Memory Error Information (Type 18) error information.
4479 @param[in] Operation The key of the structure.
4480 @param[in] Option The optional information.
4483 DisplayMemoryErrorOperation (
4488 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_OP
), gShellDebug1HiiHandle
);
4489 PRINT_INFO_OPTION (Operation
, Option
);
4490 PRINT_TABLE_ITEM (MemoryErrorOperationTable
, Operation
);
4494 Display Built-in Pointing Device (Type 21) type information.
4496 @param[in] Type The key of the structure.
4497 @param[in] Option The optional information.
4500 DisplayPointingDeviceType (
4505 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4506 PRINT_INFO_OPTION (Type
, Option
);
4507 PRINT_TABLE_ITEM (PointingDeviceTypeTable
, Type
);
4511 Display Built-in Pointing Device (Type 21) information.
4513 @param[in] Interface The key of the structure.
4514 @param[in] Option The optional information.
4517 DisplayPointingDeviceInterface (
4522 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_INTERFACE
), gShellDebug1HiiHandle
);
4523 PRINT_INFO_OPTION (Interface
, Option
);
4524 PRINT_TABLE_ITEM (PointingDeviceInterfaceTable
, Interface
);
4528 Display Portable Battery (Type 22) information.
4530 @param[in] Key The key of the structure.
4531 @param[in] Option The optional information.
4534 DisplayPBDeviceChemistry (
4539 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORTABLE_BATT_DEV_CHEM
), gShellDebug1HiiHandle
);
4540 PRINT_INFO_OPTION (Key
, Option
);
4541 PRINT_TABLE_ITEM (PBDeviceChemistryTable
, Key
);
4545 Display Voltage Probe (Type 26) location information.
4547 @param[in] Key The key of the structure.
4548 @param[in] Option The optional information.
4558 Loc
= (UINT8
) ((Key
& 0xE0) >> 5);
4559 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4560 PRINT_INFO_OPTION (Loc
, Option
);
4561 PRINT_TABLE_ITEM (VPLocationTable
, Loc
);
4565 Display Voltage Probe (Type 26) status ype information.
4567 @param[in] Key The key of the structure.
4568 @param[in] Option The optional information.
4578 Status
= (UINT8
) (Key
& 0x1F);
4579 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_STATUS
), gShellDebug1HiiHandle
);
4580 PRINT_INFO_OPTION (Status
, Option
);
4581 PRINT_TABLE_ITEM (VPStatusTable
, Status
);
4585 Display Cooling (Type 27) status information.
4587 @param[in] Key The key of the structure.
4588 @param[in] Option The optional information.
4591 DisplayCoolingDeviceStatus (
4598 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4599 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_STATUS
), gShellDebug1HiiHandle
);
4600 PRINT_INFO_OPTION (Status
, Option
);
4601 PRINT_TABLE_ITEM (CoolingDeviceStatusTable
, Status
);
4605 Display Cooling (Type 27) type information.
4607 @param[in] Key The key of the structure.
4608 @param[in] Option The optional information.
4611 DisplayCoolingDeviceType (
4618 Type
= (UINT8
) (Key
& 0x1F);
4619 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_TYPE
), gShellDebug1HiiHandle
);
4620 PRINT_INFO_OPTION (Type
, Option
);
4621 PRINT_TABLE_ITEM (CoolingDeviceTypeTable
, Type
);
4625 Display Temperature Probe (Type 28) status information.
4627 @param[in] Key The key of the structure.
4628 @param[in] Option The optional information.
4631 DisplayTemperatureProbeStatus (
4638 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4639 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_TEMP_PROBE
), gShellDebug1HiiHandle
);
4640 PRINT_INFO_OPTION (Status
, Option
);
4641 PRINT_TABLE_ITEM (TemperatureProbeStatusTable
, Status
);
4645 Display Temperature Probe (Type 28) location information.
4647 @param[in] Key The key of the structure.
4648 @param[in] Option The optional information.
4651 DisplayTemperatureProbeLoc (
4658 Loc
= (UINT8
) (Key
& 0x1F);
4659 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4660 PRINT_INFO_OPTION (Loc
, Option
);
4661 PRINT_TABLE_ITEM (TemperatureProbeLocTable
, Loc
);
4665 Display Electrical Current Probe (Type 29) status information.
4667 @param[in] Key The key of the structure.
4668 @param[in] Option The optional information.
4678 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4679 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_STATUS
), gShellDebug1HiiHandle
);
4680 PRINT_INFO_OPTION (Status
, Option
);
4681 PRINT_TABLE_ITEM (ECPStatusTable
, Status
);
4685 Display Type 29 information.
4687 @param[in] Key The key of the structure.
4688 @param[in] Option The optional information.
4698 Loc
= (UINT8
) (Key
& 0x1F);
4699 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_LOC
), gShellDebug1HiiHandle
);
4700 PRINT_INFO_OPTION (Loc
, Option
);
4701 PRINT_TABLE_ITEM (ECPLocTable
, Loc
);
4705 Display Management Device (Type 34) Type.
4707 @param[in] Key The key of the structure.
4708 @param[in] Option The optional information.
4716 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_TYPE
), gShellDebug1HiiHandle
);
4717 PRINT_INFO_OPTION (Key
, Option
);
4718 PRINT_TABLE_ITEM (MDTypeTable
, Key
);
4722 Display Management Device (Type 34) Address Type.
4724 @param[in] Key The key of the structure.
4725 @param[in] Option The optional information.
4728 DisplayMDAddressType (
4733 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_ADDR_TYPE
), gShellDebug1HiiHandle
);
4734 PRINT_INFO_OPTION (Key
, Option
);
4735 PRINT_TABLE_ITEM (MDAddressTypeTable
, Key
);
4739 Display Memory Channel (Type 37) information.
4741 @param[in] Key The key of the structure.
4742 @param[in] Option The optional information.
4745 DisplayMemoryChannelType (
4750 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CHANNEL_TYPE
), gShellDebug1HiiHandle
);
4751 PRINT_INFO_OPTION (Key
, Option
);
4752 PRINT_TABLE_ITEM (MemoryChannelTypeTable
, Key
);
4756 Display IPMI Device Information (Type 38) information.
4758 @param[in] Key The key of the structure.
4759 @param[in] Option The optional information.
4762 DisplayIPMIDIBMCInterfaceType (
4767 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BMC_INTERFACE_TYPE
), gShellDebug1HiiHandle
);
4768 PRINT_INFO_OPTION (Key
, Option
);
4769 PRINT_TABLE_ITEM (IPMIDIBMCInterfaceTypeTable
, Key
);
4773 Display Management Controller Host Interface (Type 42) information.
4775 @param[in] Key The key of the structure.
4776 @param[in] Option The optional information.
4779 DisplayMCHostInterfaceType (
4784 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MC_HOST_INTERFACE_TYPE
), gShellDebug1HiiHandle
);
4785 PRINT_INFO_OPTION (Key
, Option
);
4786 PRINT_TABLE_ITEM (MCHostInterfaceTypeTable
, Key
);
4790 Display Processor Architecture Type (Type 44).
4792 @param[in] Key The key of the structure.
4793 @param[in] Option The optional information.
4796 DisplayProcessorArchitectureType (
4801 ShellPrintHiiEx (-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROCESSOR_ARCH_TYPE
), gShellDebug1HiiHandle
);
4802 PRINT_INFO_OPTION (Key
, Option
);
4803 PRINT_TABLE_ITEM (ProcessorArchitectureTypesTable
, Key
);
4807 Display the structure type information.
4809 @param[in] Key The key of the structure.
4810 @param[in] Option The optional information.
4813 DisplayStructureTypeInfo (
4821 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_STRUCT_TYPE
), gShellDebug1HiiHandle
);
4822 PRINT_INFO_OPTION (Key
, Option
);
4823 PRINT_TABLE_ITEM (StructureTypeInfoTable
, Key
);