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 - 2021, 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"
195 L
" Main Server Chassis"
199 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"
607 TABLE_ITEM ProcessorCharacteristicsTable
[] = {
626 L
" Execute Protection"
630 L
" Enhanced Virtualization"
634 L
" Power/Performance Control"
647 TABLE_ITEM McErrorDetectMethodTable
[] = {
682 TABLE_ITEM McErrorCorrectCapabilityTable
[] = {
697 L
"Single Bit Error Correcting"
701 L
"Double Bit Error Correcting"
709 TABLE_ITEM McInterleaveSupportTable
[] = {
720 L
"One Way Interleave"
724 L
"Two Way Interleave"
728 L
"Four Way Interleave"
732 L
"Eight Way Interleave"
736 L
"Sixteen Way Interleave"
740 TABLE_ITEM McMemorySpeedsTable
[] = {
763 TABLE_ITEM MemoryModuleVoltageTable
[] = {
778 TABLE_ITEM MmMemoryTypeTable
[] = {
825 TABLE_ITEM MmErrorStatusTable
[] = {
828 L
" Uncorrectable errors received"
832 L
" Correctable errors received"
836 L
" Error Status obtained from the event log"
840 TABLE_ITEM CacheSRAMTypeTable
[] = {
871 TABLE_ITEM CacheErrCorrectingTypeTable
[] = {
898 TABLE_ITEM CacheSystemCacheTypeTable
[] = {
921 TABLE_ITEM CacheAssociativityTable
[] = {
936 L
"2-way Set-Associative"
940 L
"4-way Set-Associative"
948 L
"8-way Set-Associative"
952 L
"16-way Set-Associative"
956 L
"12-way Set-Associative"
960 L
"24-way Set-Associative"
964 L
"32-way Set-Associative"
968 L
"48-way Set-Associative"
972 L
"64-way Set-Associative"
976 L
"20-way Set-Associative"
980 TABLE_ITEM PortConnectorTypeTable
[] = {
1063 L
"Circular DIN-8 male"
1067 L
"Circular DIN-8 female"
1079 L
"9 Pin Dual Inline (pin 10 cut)"
1083 L
"25 Pin Dual Inline (pin 26 cut)"
1087 L
"50 Pin Dual Inline"
1091 L
"68 Pin Dual Inline"
1095 L
"On Board Sound Input from CD-ROM"
1099 L
"Mini-Centronics Type-14"
1103 L
"Mini-Centronics Type-26"
1107 L
"Mini-jack (headphones)"
1119 L
"SAS/SATA Plug Receptacle"
1123 L
"USB Type-C Receptacle"
1151 TABLE_ITEM PortTypeTable
[] = {
1158 L
"Parallel Port XT/AT Compatible"
1162 L
"Parallel Port PS/2"
1166 L
"Parallel Port ECP"
1170 L
"Parallel Port EPP"
1174 L
"Parallel Port ECP/EPP"
1178 L
"Serial Port XT/AT Compatible"
1182 L
"Serial Port 16450 Compatible"
1186 L
"Serial Port 16550 Compatible"
1190 L
"Serial Port 16550A Compatible"
1222 L
"FireWire (IEEE P1394)"
1290 L
"Multi-Function Display Port (MFDP)"
1302 L
"8251 FIFO Compatible"
1310 TABLE_ITEM SystemSlotTypeTable
[] = {
1349 L
"Processor Card Slot"
1353 L
"Proprietary Memory Card Slot"
1357 L
"I/O Riser Card Slot"
1365 L
"PCI - 66MHz Capable"
1389 L
"M.2 Socket 1-DP (Mechanical Key A)"
1393 L
"M.2 Socket 1-SD (Mechanical Key E)"
1397 L
"M.2 Socket 2 (Mechanical Key B)"
1401 L
"M.2 Socket 3 (Mechanical Key M)"
1413 L
"MXM Type III (standard connector)"
1417 L
"MXM Type III (HE connector)"
1433 L
"PCI Express Gen 2 SFF-8639"
1437 L
"PCI Express Gen 3 SFF-8639"
1441 L
"PCI Express Mini 52-pin (CEM spec. 2.0) with bottom-side keep-outs"
1445 L
"PCI Express Mini 52-pin (CEM spec. 2.0) without bottom-side keep-outs"
1449 L
"PCI Express Mini 76-pin (CEM spec. 2.0) Corresponds to Display-Mini card"
1452 SlotTypeCXLFlexbus10
,
1501 L
"PCI Express Gen 2"
1505 L
"PCI Express Gen 2 X1"
1509 L
"PCI Express Gen 2 X2"
1513 L
"PCI Express Gen 2 X4"
1517 L
"PCI Express Gen 2 X8"
1521 L
"PCI Express Gen 2 X16"
1525 L
"PCI Express Gen 3"
1529 L
"PCI Express Gen 3 X1"
1533 L
"PCI Express Gen 3 X2"
1537 L
"PCI Express Gen 3 X4"
1541 L
"PCI Express Gen 3 X8"
1545 L
"PCI Express Gen 3 X16"
1548 SlotTypePciExpressGen4
,
1549 L
"PCI Express Gen 4"
1552 SlotTypePciExpressGen4X1
,
1553 L
"PCI Express Gen 4 X1"
1556 SlotTypePciExpressGen4X2
,
1557 L
"PCI Express Gen 4 X2"
1560 SlotTypePciExpressGen4X4
,
1561 L
"PCI Express Gen 4 X4"
1564 SlotTypePciExpressGen4X8
,
1565 L
"PCI Express Gen 4 X8"
1568 SlotTypePciExpressGen4X16
,
1569 L
"PCI Express Gen 4 X16"
1573 TABLE_ITEM SystemSlotDataBusWidthTable
[] = {
1632 TABLE_ITEM SystemSlotCurrentUsageTable
[] = {
1655 TABLE_ITEM SystemSlotLengthTable
[] = {
1674 TABLE_ITEM SlotCharacteristics1Table
[] = {
1677 L
" Characteristics Unknown"
1681 L
" Provides 5.0 Volts"
1685 L
" Provides 3.3 Volts"
1689 L
" Slot's opening is shared with another slot, e.g. PCI/EISA shared slot."
1694 L
" PC Card slot supports PC Card-16"
1698 L
" PC Card slot supports CardBus"
1702 L
" PC Card slot supports Zoom Video "
1706 L
" PC Card slot supports Modem Ring Resume "
1710 TABLE_ITEM SlotCharacteristics2Table
[] = {
1713 L
" PCI slot supports Power Management Enable (PME#) signal"
1717 L
" Slot supports hot-plug devices"
1721 L
" PCI slot supports SMBus signal"
1725 L
" PCIe slot supports bifurcation"
1729 TABLE_ITEM OnboardDeviceTypesTable
[] = {
1772 TABLE_ITEM SELTypesTable
[] = {
1779 L
" Single-bit ECC memory error"
1783 L
" Multi-bit ECC memory error"
1787 L
" Parity memory error"
1795 L
" I/O Channel Check"
1803 L
" POST Memory Resize"
1811 L
" PCI Parity Error"
1815 L
" PCI System Error"
1823 L
" EISA FailSafe Timer time-out"
1827 L
" Correctable memory log disabled"
1831 L
" Logging disabled for a specific Event Type"
1839 L
" System Limit Exceeded"
1843 L
" Asynchronous hardware timer expired and issued a system reset"
1847 L
" System configuration information"
1851 L
" Hard-disk information"
1855 L
" System reconfigured"
1859 L
" Uncorrectable CPU-complex error"
1863 L
" Log Area Reset/Cleared"
1871 L
" Unused by SMBIOS specification"
1875 L
" System and OEM specified"
1883 TABLE_ITEM SELVarDataFormatTypeTable
[] = {
1898 L
" Multiple-Event Handle "
1902 L
" POST Results Bitmap "
1909 L
" System Management Type"
1916 L
" Multiple-Event System Management Type "
1928 TABLE_ITEM PostResultsBitmapDw1Table
[] = {
1931 L
" Channel 2 Timer error "
1935 L
" Master PIC (8259 #1) error "
1939 L
" Slave PIC (8259 #2) error "
1943 L
" CMOS Battery Failure "
1947 L
" CMOS System Options Not Set "
1951 L
" CMOS Checksum Error "
1955 L
" CMOS Configuration Error "
1959 L
" Mouse and Keyboard Swapped "
1963 L
" Keyboard Locked "
1967 L
" Keyboard Not Functional "
1971 L
" Keyboard Controller Not Functional "
1975 L
" CMOS Memory Size Different "
1979 L
" Memory Decreased in Size "
1983 L
" Cache Memory Error "
1987 L
" Floppy Drive 0 Error "
1991 L
" Floppy Drive 1 Error "
1995 L
" Floppy Controller Failure "
1999 L
" Number of ATA Drives Reduced Error "
2003 L
" CMOS Time Not Set "
2007 L
" DDC Monitor Configuration Change "
2011 L
" Reserved, set to 0 "
2015 L
" Reserved, set to 0 "
2019 L
" Reserved, set to 0 "
2023 L
" Reserved, set to 0 "
2027 L
" Second DWORD has valid data "
2031 L
" Reserved, set to 0 "
2035 L
" Reserved, set to 0 "
2039 L
" Reserved, set to 0 "
2043 L
" Normally 0; available for OEM assignment "
2047 L
" Normally 0; available for OEM assignment "
2051 L
" Normally 0; available for OEM assignment "
2055 L
" Normally 0; available for OEM assignment "
2059 TABLE_ITEM PostResultsBitmapDw2Table
[] = {
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
" Normally 0; available for OEM assignment "
2078 L
" Normally 0; available for OEM assignment "
2082 L
" Normally 0; available for OEM assignment "
2086 L
" Normally 0; available for OEM assignment "
2090 L
" PCI Memory Conflict "
2094 L
" PCI I/O Conflict "
2098 L
" PCI IRQ Conflict "
2102 L
" PNP Memory Conflict "
2106 L
" PNP 32 bit Memory Conflict "
2110 L
" PNP I/O Conflict "
2114 L
" PNP IRQ Conflict "
2118 L
" PNP DMA Conflict "
2122 L
" Bad PNP Serial ID Checksum "
2126 L
" Bad PNP Resource Data Checksum "
2130 L
" Static Resource Conflict "
2134 L
" NVRAM Checksum Error, NVRAM Cleared "
2138 L
" System Board Device Resource Conflict "
2142 L
" Primary Output Device Not Found "
2146 L
" Primary Input Device Not Found "
2150 L
" Primary Boot Device Not Found "
2154 L
" NVRAM Cleared By Jumper "
2158 L
" NVRAM Data Invalid, NVRAM Cleared "
2162 L
" FDC Resource Conflict "
2166 L
" Primary ATA Controller Resource Conflict "
2170 L
" Secondary ATA Controller Resource Conflict "
2174 L
" Parallel Port Resource Conflict "
2178 L
" Serial Port 1 Resource Conflict "
2182 L
" Serial Port 2 Resource Conflict "
2186 L
" Audio Resource Conflict "
2190 TABLE_ITEM SELSysManagementTypesTable
[] = {
2193 L
" +2.5V Out of range, #2 "
2197 L
" +3.3V Out of range "
2201 L
" +5V Out of range "
2205 L
" -5V Out of range "
2209 L
" +12V Out of range "
2213 L
" -12V Out of range "
2217 L
" Reserved for future out-of-range voltage levels "
2221 L
" System board temperature out of range "
2225 L
" Processor #1 temperature out of range "
2229 L
" Processor #2 temperature out of range "
2233 L
" Processor #3 temperature out of range "
2237 L
" Processor #4 temperature out of range "
2241 L
" Reserved for future out-of-range temperatures"
2245 L
" Fan n (n = 0 to 7) Out of range "
2249 L
" Reserved for future assignment via this specification "
2253 L
" Chassis secure switch activated "
2257 TABLE_ITEM PMALocationTable
[] = {
2268 L
" System board or motherboard"
2276 L
" EISA add-on card"
2288 L
" PCMCIA add-on card"
2292 L
" Proprietary add-on card"
2300 L
" PC-98/C20 add-on card"
2304 L
" PC-98/C24 add-on card"
2308 L
" PC-98/E add-on card"
2312 L
" PC-98/Local bus add-on card"
2315 MemoryArrayLocationCXLAddonCard
,
2320 TABLE_ITEM PMAUseTable
[] = {
2343 L
" Non-volatile RAM"
2351 TABLE_ITEM PMAErrorCorrectionTypesTable
[] = {
2382 TABLE_ITEM MemoryDeviceFormFactorTable
[] = {
2413 L
" Proprietary Card"
2444 MemoryFormFactorDie
,
2449 TABLE_ITEM MemoryDeviceTypeTable
[] = {
2560 L
" Logical non-volatile device"
2564 L
" HBM (High Bandwidth Memory)"
2568 L
" HBM2 (High Bandwidth Memory Generation 2)"
2580 TABLE_ITEM MemoryDeviceTypeDetailTable
[] = {
2631 L
" Registered(Buffered)"
2635 L
" Unbuffered(Unregistered)"
2639 TABLE_ITEM MemoryDeviceMemoryTechnologyTable
[] = {
2665 MemoryTechnologyIntelOptanePersistentMemory
,
2666 L
" Intel Optane Persistent Memory"
2670 TABLE_ITEM MemoryDeviceMemoryOperatingModeCapabilityTable
[] = {
2685 L
" Byte-accessible persistent memory"
2689 L
" Block-accessible persistent memory"
2694 TABLE_ITEM MemoryErrorTypeTable
[] = {
2717 L
" Single-bit error"
2721 L
" Double-bit error"
2741 L
" Corrected single-bit error"
2749 L
" Uncorrectable error"
2753 TABLE_ITEM MemoryErrorGranularityTable
[] = {
2768 L
" Memory partition level"
2772 TABLE_ITEM MemoryErrorOperationTable
[] = {
2795 TABLE_ITEM PointingDeviceTypeTable
[] = {
2826 TABLE_ITEM PointingDeviceInterfaceTable
[] = {
2857 L
" ADB(Apple Desktop Bus"
2865 L
" Bus mouse mirco-DIN"
2873 TABLE_ITEM PBDeviceChemistryTable
[] = {
2892 L
" Nickel metal hydride "
2904 L
" Lithium Polymer "
2908 TABLE_ITEM VPLocationTable
[] = {
2931 L
" Non-recoverable "
2935 TABLE_ITEM VPStatusTable
[] = {
2958 L
" System Management Module "
2970 L
" Processor Module "
2982 TABLE_ITEM CoolingDeviceStatusTable
[] = {
3005 L
" Non-recoverable "
3009 TABLE_ITEM CoolingDeviceTypeTable
[] = {
3024 L
" Centrifugal Blower "
3036 L
" Power Supply Fan "
3044 L
" Integrated Refrigeration "
3052 L
" Passive Cooling "
3056 TABLE_ITEM TemperatureProbeStatusTable
[] = {
3079 L
" Non-recoverable "
3083 TABLE_ITEM TemperatureProbeLocTable
[] = {
3106 L
" System Management Module "
3118 L
" Processor Module "
3130 TABLE_ITEM ECPStatusTable
[] = {
3153 L
" Non-recoverable "
3157 TABLE_ITEM ECPLocTable
[] = {
3180 L
" System Management Module "
3192 L
" Processor Module "
3204 TABLE_ITEM MDTypeTable
[] = {
3215 L
" National Semiconductor LM75 "
3219 L
" National Semiconductor LM78 "
3223 L
" National Semiconductor LM79 "
3227 L
" National Semiconductor LM80 "
3231 L
" National Semiconductor LM81 "
3235 L
" Analog Devices ADM9240 "
3239 L
" Dallas Semiconductor DS1780 "
3247 L
" Genesys GL518SM "
3251 L
" Winbond W83781D "
3255 L
" Holtek HT82H791 "
3259 TABLE_ITEM MDAddressTypeTable
[] = {
3282 TABLE_ITEM MemoryChannelTypeTable
[] = {
3301 TABLE_ITEM IPMIDIBMCInterfaceTypeTable
[] = {
3308 L
" KCS: Keyboard Controller Style "
3312 L
" SMIC: Server Management Interface Chip "
3316 L
" BT: Block Transfer "
3320 L
" SSIF: SMBus System Interface "
3324 L
" Reserved for future assignment by this specification "
3328 TABLE_ITEM MCHostInterfaceTypeTable
[] = {
3331 L
" MCTP Host Interface "
3335 L
" Network Host Interface "
3343 TABLE_ITEM ProcessorArchitectureTypesTable
[] = {
3354 L
" x64 (x86-64, intel64, AMD64, EM64T) "
3358 L
" Intel Itanium architecture "
3362 L
" 32-bit ARM (Aarch32) "
3366 L
" 64-bit ARM (Aarch64) "
3370 L
" 32-bit RISC-V (RV32) "
3374 L
" 64-bit RISC-V (RV64) "
3378 L
" 128-bit RISC-V (RV128) "
3382 TABLE_ITEM StructureTypeInfoTable
[] = {
3385 L
" BIOS Information"
3389 L
" System Information"
3393 L
" Base Board Information"
3397 L
" System Enclosure"
3401 L
" Processor Information"
3405 L
" Memory Controller Information "
3409 L
" Memory Module Information "
3413 L
" Cache Information "
3417 L
" Port Connector Information "
3425 L
" On Board Devices Information "
3433 L
" System Configuration Options "
3437 L
" BIOS Language Information "
3441 L
" Group Associations "
3445 L
" System Event Log "
3449 L
" Physical Memory Array "
3457 L
" 32-bit Memory Error Information "
3461 L
" Memory Array Mapped Address "
3465 L
" Memory Device Mapped Address "
3469 L
" Built-in Pointing Device "
3473 L
" Portable Battery "
3481 L
" Hardware Security "
3485 L
" System Power Controls "
3497 L
" Temperature Probe "
3501 L
" Electrical Current Probe "
3505 L
" Out-of-Band Remote Access "
3509 L
" Boot Integrity Services (BIS) Entry Point"
3513 L
" System Boot Information "
3517 L
" 64-bit Memory Error Information "
3521 L
" Management Device "
3525 L
" Management Device Component "
3529 L
" Management Device Threshold Data "
3537 L
" IPMI Device Information "
3541 L
" System Power Supply"
3545 L
" Additional Information"
3549 L
" Onboard Devices Extended Information"
3553 L
" Management Controller Host Interface"
3561 L
" Processor Additional Information"
3575 Given a table and a Key, return the responding info.
3578 Table[Index].Key is change from UINT8 to UINT16,
3579 in order to deal with "0xaa - 0xbb".
3582 DisplaySELVariableDataFormatTypes(UINT8 Type, UINT8 Option)
3585 Now define Key = 0x7F07, that is to say: High = 0x7F, Low = 0x07.
3586 Then all the Key Value between Low and High gets the same string
3589 @param[in] Table The begin address of table.
3590 @param[in] Number The number of table items.
3591 @param[in] Key The query Key.
3592 @param[in, out] Info Input as empty buffer; output as data buffer.
3593 @param[in] InfoLen The max number of characters for Info.
3595 @return the found Key and Info is valid.
3596 @retval QUERY_TABLE_UNFOUND and Info should be NULL.
3600 IN TABLE_ITEM
*Table
,
3603 IN OUT CHAR16
*Info
,
3609 // High byte and Low byte of word
3614 for (Index
= 0; Index
< Number
; Index
++) {
3615 High
= (UINT8
) (Table
[Index
].Key
>> 8);
3616 Low
= (UINT8
) (Table
[Index
].Key
& 0x00FF);
3619 // Check if Key is in the range
3620 // or if Key == Value in the table
3622 if ((High
> Low
&& Key
>= Low
&& Key
<= High
)
3623 || (Table
[Index
].Key
== Key
)) {
3624 StrnCpyS (Info
, InfoLen
, Table
[Index
].Info
, InfoLen
- 1);
3625 StrnCatS (Info
, InfoLen
, L
"\n", InfoLen
- 1 - StrLen(Info
));
3630 StrCpyS (Info
, InfoLen
, L
"Undefined Value\n");
3631 return QUERY_TABLE_UNFOUND
;
3635 Given a table of bit info and a Key, return the responding info to the Key.
3637 @param[in] Table Point to a table which maintains a map of 'bit' to 'message'.
3638 @param[in] Number Number of table items.
3639 @param[in] Bits The Key of query the bit map information.
3643 IN TABLE_ITEM
*Table
,
3649 // Get certain bit of 'Value':
3651 #define BIT(Value, bit) ((Value) & ((UINT32) 1) << (bit))
3653 // Clear certain bit of 'Value':
3655 #define CLR_BIT(Value, bit) ((Value) -= (BIT (Value, bit)))
3664 // query the table and print information
3666 for (Index
= 0; Index
< Number
; Index
++) {
3667 if (BIT (Value
, Table
[Index
].Key
) != 0) {
3670 // If it is not first info, print the separator first.
3674 Print (Table
[Index
].Info
);
3678 // clear the bit, for reserved bits test
3680 CLR_BIT (Value
, Table
[Index
].Key
);
3685 // There is no any info if FirstInfo is still TRUE.
3688 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_NO_INFO
), gShellDebug1HiiHandle
);
3692 ShellPrintHiiEx(-1,-1,NULL
,
3693 STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_BITS_SET
),
3694 gShellDebug1HiiHandle
,
3702 // //////////////////////////////////////////////////////////////////
3704 // Following uses QueryTable functions to simplify the coding.
3705 // QueryTable(), PrintBitsInfo()
3708 #define PRINT_TABLE_ITEM(Table, Key) \
3712 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3713 ZeroMem (Info, sizeof (Info)); \
3714 QueryTable (Table, Num, Key, Info, sizeof(Info)/sizeof(Info[0])); \
3718 #define PRINT_BITS_INFO(Table, bits) \
3721 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3722 PrintBitsInfo (Table, Num, (UINT32) bits); \
3726 Display System Information (Type 1) Type.
3728 @param[in] Type The key of the structure.
3729 @param[in] Option The optional information.
3732 DisplaySystemWakeupType (
3737 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_WAKEUP_TYPE
), gShellDebug1HiiHandle
);
3738 PRINT_INFO_OPTION (Type
, Option
);
3739 PRINT_TABLE_ITEM (SystemWakeupTypeTable
, Type
);
3743 Display Base Board (Type 2) Feature Flags.
3745 @param[in] FeatureFlags The key of the structure.
3746 @param[in] Option The optional information.
3749 DisplayBaseBoardFeatureFlags (
3750 IN UINT8 FeatureFlags
,
3754 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_FEATURE_FLAGS
), gShellDebug1HiiHandle
);
3755 PRINT_INFO_OPTION (FeatureFlags
, Option
);
3756 PRINT_BITS_INFO (BaseBoardFeatureFlagsTable
, FeatureFlags
);
3760 Display Base Board (Type 2) Board Type.
3762 @param[in] Type The key of the structure.
3763 @param[in] Option The optional information.
3766 DisplayBaseBoardBoardType(
3771 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_BOARD_TYPE
), gShellDebug1HiiHandle
);
3772 PRINT_INFO_OPTION (Type
, Option
);
3773 PRINT_TABLE_ITEM (BaseBoardBoardTypeTable
, Type
);
3777 Display System Enclosure (Type 3) Enclosure Type.
3779 @param[in] Type The key of the structure.
3780 @param[in] Option The optional information.
3783 DisplaySystemEnclosureType (
3788 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_TYPE
), gShellDebug1HiiHandle
);
3789 PRINT_INFO_OPTION (Type
, Option
);
3791 // query table and print info
3793 PRINT_TABLE_ITEM (SystemEnclosureTypeTable
, Type
);
3795 if (BIT (Type
, 7) != 0) {
3796 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CHASSIS_LOCK_PRESENT
), gShellDebug1HiiHandle
);
3801 Display System Enclosure (Type 3) Enclosure Status.
3803 @param[in] Status The key of the structure.
3804 @param[in] Option The optional information.
3807 DisplaySystemEnclosureStatus (
3812 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_STATUS
), gShellDebug1HiiHandle
);
3813 PRINT_INFO_OPTION (Status
, Option
);
3814 PRINT_TABLE_ITEM (SystemEnclosureStatusTable
, Status
);
3818 Display System Enclosure (Type 3) Security Status.
3820 @param[in] Status The key of the structure.
3821 @param[in] Option The optional information.
3824 DisplaySESecurityStatus (
3829 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_SECURITY
), gShellDebug1HiiHandle
);
3830 PRINT_INFO_OPTION (Status
, Option
);
3831 PRINT_TABLE_ITEM (SESecurityStatusTable
, Status
);
3835 Display Processor Information (Type 4) Type.
3837 @param[in] Type The key of the structure.
3838 @param[in] Option The optional information.
3841 DisplayProcessorType (
3846 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_TYPE
), gShellDebug1HiiHandle
);
3847 PRINT_INFO_OPTION (Type
, Option
);
3848 PRINT_TABLE_ITEM (ProcessorTypeTable
, Type
);
3852 Display Processor Information (Type 4) Upgrade.
3854 @param[in] Upgrade The key of the structure.
3855 @param[in] Option The optional information.
3858 DisplayProcessorUpgrade (
3863 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_UPDATE
), gShellDebug1HiiHandle
);
3864 PRINT_INFO_OPTION (Upgrade
, Option
);
3865 PRINT_TABLE_ITEM (ProcessorUpgradeTable
, Upgrade
);
3869 Display Processor Information (Type 4) Characteristics.
3871 @param[in] Type The key of the structure.
3872 @param[in] Option The optional information.
3875 DisplayProcessorCharacteristics (
3880 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_CHARACTERISTICS
), gShellDebug1HiiHandle
);
3881 PRINT_INFO_OPTION (Type
, Option
);
3882 PRINT_BITS_INFO (ProcessorCharacteristicsTable
, Type
);
3886 Display Memory Controller Information (Type 5) method.
3888 @param[in] Method The key of the structure.
3889 @param[in] Option The optional information.
3892 DisplayMcErrorDetectMethod (
3897 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DETECTMETHOD
), gShellDebug1HiiHandle
);
3898 PRINT_INFO_OPTION (Method
, Option
);
3899 PRINT_TABLE_ITEM (McErrorDetectMethodTable
, Method
);
3903 Display Memory Controller Information (Type 5) Capability.
3905 @param[in] Capability The key of the structure.
3906 @param[in] Option The optional information.
3909 DisplayMcErrorCorrectCapability (
3910 IN UINT8 Capability
,
3914 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CORRECT_CAPABILITY
), gShellDebug1HiiHandle
);
3915 PRINT_INFO_OPTION (Capability
, Option
);
3916 PRINT_BITS_INFO (McErrorCorrectCapabilityTable
, Capability
);
3920 Display Memory Controller Information (Type 5) Support.
3922 @param[in] Support The key of the structure.
3923 @param[in] Option The optional information.
3926 DisplayMcInterleaveSupport (
3931 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_INTERLEAVE_SUPPORT
), gShellDebug1HiiHandle
);
3932 PRINT_INFO_OPTION (Support
, Option
);
3933 PRINT_TABLE_ITEM (McInterleaveSupportTable
, Support
);
3937 Display Memory Controller Information (Type 5) speeds.
3939 @param[in] Speed The key of the structure.
3940 @param[in] Option The optional information.
3943 DisplayMcMemorySpeeds (
3948 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MEMORY_SPEED
), gShellDebug1HiiHandle
);
3949 PRINT_INFO_OPTION (Speed
, Option
);
3950 PRINT_BITS_INFO (McMemorySpeedsTable
, Speed
);
3954 Display Memory Controller Information (Type 5) voltage.
3956 @param[in] Voltage The key of the structure.
3957 @param[in] Option The optional information.
3960 DisplayMemoryModuleVoltage (
3965 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_REQUIRED_VOLTAGES
), gShellDebug1HiiHandle
);
3966 PRINT_INFO_OPTION (Voltage
, Option
);
3967 PRINT_BITS_INFO (MemoryModuleVoltageTable
, Voltage
);
3971 Display Memory Module Information (Type 6) type.
3973 @param[in] Type The key of the structure.
3974 @param[in] Option The optional information.
3977 DisplayMmMemoryType (
3982 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_TYPE
), gShellDebug1HiiHandle
);
3983 PRINT_INFO_OPTION (Type
, Option
);
3984 PRINT_BITS_INFO (MmMemoryTypeTable
, Type
);
3988 Display Memory Module Information (Type 6) status.
3990 @param[in] Status The key of the structure.
3991 @param[in] Option The optional information.
3994 DisplayMmErrorStatus (
3999 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_ERROR_STATUS
), gShellDebug1HiiHandle
);
4000 PRINT_INFO_OPTION (Status
, Option
);
4001 PRINT_BITS_INFO (MmErrorStatusTable
, Status
);
4005 Display Cache Information (Type 7) SRAM Type.
4007 @param[in] Type The key of the structure.
4008 @param[in] Option The optional information.
4011 DisplayCacheSRAMType (
4016 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SRAM_TYPE
), gShellDebug1HiiHandle
);
4017 PRINT_INFO_OPTION ((UINT8
) Type
, Option
);
4018 PRINT_BITS_INFO (CacheSRAMTypeTable
, (UINT8
) Type
);
4022 Display Cache Information (Type 7) correcting Type.
4024 @param[in] Type The key of the structure.
4025 @param[in] Option The optional information.
4028 DisplayCacheErrCorrectingType (
4033 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ERROR_CORRECTING
), gShellDebug1HiiHandle
);
4034 PRINT_INFO_OPTION (Type
, Option
);
4035 PRINT_TABLE_ITEM (CacheErrCorrectingTypeTable
, Type
);
4039 Display Cache Information (Type 7) Type.
4041 @param[in] Type The key of the structure.
4042 @param[in] Option The optional information.
4045 DisplayCacheSystemCacheType (
4050 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SYSTEM_TYPE
), gShellDebug1HiiHandle
);
4051 PRINT_INFO_OPTION (Type
, Option
);
4052 PRINT_TABLE_ITEM (CacheSystemCacheTypeTable
, Type
);
4056 Display Cache Information (Type 7) Associativity.
4058 @param[in] Associativity The key of the structure.
4059 @param[in] Option The optional information.
4062 DisplayCacheAssociativity (
4063 IN UINT8 Associativity
,
4067 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ASSOCIATIVITY
), gShellDebug1HiiHandle
);
4068 PRINT_INFO_OPTION (Associativity
, Option
);
4069 PRINT_TABLE_ITEM (CacheAssociativityTable
, Associativity
);
4073 Display Port Connector Information (Type 8) type.
4075 @param[in] Type The key of the structure.
4076 @param[in] Option The optional information.
4079 DisplayPortConnectorType (
4084 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_CONNECTOR_TYPE
), gShellDebug1HiiHandle
);
4085 PRINT_INFO_OPTION (Type
, Option
);
4086 PRINT_TABLE_ITEM (PortConnectorTypeTable
, Type
);
4090 Display Port Connector Information (Type 8) port type.
4092 @param[in] Type The key of the structure.
4093 @param[in] Option The optional information.
4101 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_TYPE
), gShellDebug1HiiHandle
);
4102 PRINT_INFO_OPTION (Type
, Option
);
4103 PRINT_TABLE_ITEM (PortTypeTable
, Type
);
4107 Display System Slots (Type 9) slot type.
4109 @param[in] Type The key of the structure.
4110 @param[in] Option The optional information.
4113 DisplaySystemSlotType (
4118 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_TYPE
), gShellDebug1HiiHandle
);
4119 PRINT_INFO_OPTION (Type
, Option
);
4120 PRINT_TABLE_ITEM (SystemSlotTypeTable
, Type
);
4124 Display System Slots (Type 9) data bus width.
4126 @param[in] Width The key of the structure.
4127 @param[in] Option The optional information.
4130 DisplaySystemSlotDataBusWidth (
4135 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_DATA
), gShellDebug1HiiHandle
);
4136 PRINT_INFO_OPTION (Width
, Option
);
4137 PRINT_TABLE_ITEM (SystemSlotDataBusWidthTable
, Width
);
4141 Display System Slots (Type 9) usage information.
4143 @param[in] Usage The key of the structure.
4144 @param[in] Option The optional information.
4147 DisplaySystemSlotCurrentUsage (
4152 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_CURRENT_USAGE
), gShellDebug1HiiHandle
);
4153 PRINT_INFO_OPTION (Usage
, Option
);
4154 PRINT_TABLE_ITEM (SystemSlotCurrentUsageTable
, Usage
);
4158 Display System Slots (Type 9) slot length.
4160 @param[in] Length The key of the structure.
4161 @param[in] Option The optional information.
4164 DisplaySystemSlotLength (
4169 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_LENGTH
), gShellDebug1HiiHandle
);
4170 PRINT_INFO_OPTION (Length
, Option
);
4171 PRINT_TABLE_ITEM (SystemSlotLengthTable
, Length
);
4175 Display System Slots (Type 9) characteristics.
4177 @param[in] Chara1 The key of the structure.
4178 @param[in] Option The optional information.
4181 DisplaySlotCharacteristics1 (
4186 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS
), gShellDebug1HiiHandle
);
4187 PRINT_INFO_OPTION (Chara1
, Option
);
4188 PRINT_BITS_INFO (SlotCharacteristics1Table
, Chara1
);
4192 Display System Slots (Type 9) characteristics.
4194 @param[in] Chara2 The key of the structure.
4195 @param[in] Option The optional information.
4198 DisplaySlotCharacteristics2 (
4203 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS_2
), gShellDebug1HiiHandle
);
4204 PRINT_INFO_OPTION (Chara2
, Option
);
4205 PRINT_BITS_INFO (SlotCharacteristics2Table
, Chara2
);
4209 Display On Board Devices Information (Type 10) types.
4211 @param[in] Type The key of the structure.
4212 @param[in] Option The optional information.
4215 DisplayOnboardDeviceTypes (
4220 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ONBOARD_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4221 PRINT_INFO_OPTION (Type
, Option
);
4222 PRINT_TABLE_ITEM (OnboardDeviceTypesTable
, Type
);
4226 Display System Event Log (Type 15) types.
4228 @param[in] Type The key of the structure.
4229 @param[in] Option The optional information.
4237 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_EVENT_LOG_TYPE
), gShellDebug1HiiHandle
);
4238 PRINT_INFO_OPTION (Type
, Option
);
4239 PRINT_TABLE_ITEM (SELTypesTable
, Type
);
4243 Display System Event Log (Type 15) format type.
4245 @param[in] Type The key of the structure.
4246 @param[in] Option The optional information.
4249 DisplaySELVarDataFormatType (
4254 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_EVENT_LOG_VAR_DATA_FORMAT
), gShellDebug1HiiHandle
);
4255 PRINT_INFO_OPTION (Type
, Option
);
4256 PRINT_TABLE_ITEM (SELVarDataFormatTypeTable
, Type
);
4260 Display System Event Log (Type 15) dw1.
4262 @param[in] Key The key of the structure.
4263 @param[in] Option The optional information.
4266 DisplayPostResultsBitmapDw1 (
4271 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_BITMAP
), gShellDebug1HiiHandle
);
4272 PRINT_INFO_OPTION (Key
, Option
);
4273 PRINT_BITS_INFO (PostResultsBitmapDw1Table
, Key
);
4277 Display System Event Log (Type 15) dw2.
4279 @param[in] Key The key of the structure.
4280 @param[in] Option The optional information.
4283 DisplayPostResultsBitmapDw2 (
4288 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_SECOND_DWORD
), gShellDebug1HiiHandle
);
4289 PRINT_INFO_OPTION (Key
, Option
);
4290 PRINT_BITS_INFO (PostResultsBitmapDw2Table
, Key
);
4294 Display System Event Log (Type 15) type.
4296 @param[in] SMType The key of the structure.
4297 @param[in] Option The optional information.
4300 DisplaySELSysManagementTypes (
4307 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_TYPES
), gShellDebug1HiiHandle
);
4308 PRINT_INFO_OPTION (SMType
, Option
);
4311 // Deal with wide range Value
4313 if (SMType
>= 0x80000000) {
4314 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_OEM_ASSIGNED
), gShellDebug1HiiHandle
);
4315 } else if (SMType
>= 0x00020000) {
4316 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
4317 } else if (SMType
>= 0x00010000) {
4318 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_PROBE
), gShellDebug1HiiHandle
);
4319 } else if (SMType
>= 0x31) {
4320 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
4323 // Deal with One byte data
4325 Temp
= (UINT8
) (SMType
& 0x3F);
4326 PRINT_TABLE_ITEM (SELSysManagementTypesTable
, Temp
);
4331 Display Physical Memory Array (Type 16) Location.
4333 @param[in] Location The key of the structure.
4334 @param[in] Option The optional information.
4337 DisplayPMALocation (
4342 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_LOCATION
), gShellDebug1HiiHandle
);
4343 PRINT_INFO_OPTION (Location
, Option
);
4344 PRINT_TABLE_ITEM (PMALocationTable
, Location
);
4348 Display Physical Memory Array (Type 16) Use.
4350 @param[in] Use The key of the structure.
4351 @param[in] Option The optional information.
4359 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_USE
), gShellDebug1HiiHandle
);
4360 PRINT_INFO_OPTION (Use
, Option
);
4361 PRINT_TABLE_ITEM (PMAUseTable
, Use
);
4365 Display Physical Memory Array (Type 16) Types.
4367 @param[in] Type The key of the structure.
4368 @param[in] Option The optional information.
4371 DisplayPMAErrorCorrectionTypes (
4376 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_ERROR
), gShellDebug1HiiHandle
);
4377 PRINT_INFO_OPTION (Type
, Option
);
4378 PRINT_TABLE_ITEM (PMAErrorCorrectionTypesTable
, Type
);
4382 Display Memory Device (Type 17) form factor.
4384 @param[in] FormFactor The key of the structure.
4385 @param[in] Option The optional information.
4388 DisplayMemoryDeviceFormFactor (
4389 IN UINT8 FormFactor
,
4393 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_FORM_FACTOR
), gShellDebug1HiiHandle
);
4394 PRINT_INFO_OPTION (FormFactor
, Option
);
4395 PRINT_TABLE_ITEM (MemoryDeviceFormFactorTable
, FormFactor
);
4399 Display Memory Device (Type 17) type.
4401 @param[in] Type The key of the structure.
4402 @param[in] Option The optional information.
4405 DisplayMemoryDeviceType (
4410 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4411 PRINT_INFO_OPTION (Type
, Option
);
4412 PRINT_TABLE_ITEM (MemoryDeviceTypeTable
, Type
);
4416 Display Memory Device (Type 17) details.
4418 @param[in] Para The key of the structure.
4419 @param[in] Option The optional information.
4422 DisplayMemoryDeviceTypeDetail (
4427 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE_DETAIL
), gShellDebug1HiiHandle
);
4428 PRINT_INFO_OPTION (Para
, Option
);
4429 PRINT_BITS_INFO (MemoryDeviceTypeDetailTable
, Para
);
4433 Display Memory Device (Type 17) memory technology.
4435 @param[in] Para The key of the structure.
4436 @param[in] Option The optional information.
4439 DisplayMemoryDeviceMemoryTechnology (
4444 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_MEMORY_TECHNOLOGY
), gShellDebug1HiiHandle
);
4445 PRINT_INFO_OPTION (Para
, Option
);
4446 PRINT_TABLE_ITEM (MemoryDeviceMemoryTechnologyTable
, Para
);
4450 Display Memory Device (Type 17) memory operating mode capability.
4452 @param[in] Para The key of the structure.
4453 @param[in] Option The optional information.
4456 DisplayMemoryDeviceMemoryOperatingModeCapability (
4461 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_MEM_OPER_MODE_CAPA
), gShellDebug1HiiHandle
);
4462 PRINT_INFO_OPTION (Para
, Option
);
4463 PRINT_BITS_INFO (MemoryDeviceMemoryOperatingModeCapabilityTable
, Para
);
4467 Display 32-bit Memory Error Information (Type 18) type.
4469 @param[in] ErrorType The key of the structure.
4470 @param[in] Option The optional information.
4473 DisplayMemoryErrorType (
4478 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_INFO
), gShellDebug1HiiHandle
);
4479 PRINT_INFO_OPTION (ErrorType
, Option
);
4480 PRINT_TABLE_ITEM (MemoryErrorTypeTable
, ErrorType
);
4484 Display 32-bit Memory Error Information (Type 18) error granularity.
4486 @param[in] Granularity The key of the structure.
4487 @param[in] Option The optional information.
4490 DisplayMemoryErrorGranularity (
4491 IN UINT8 Granularity
,
4495 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_GRANULARITY
), gShellDebug1HiiHandle
);
4496 PRINT_INFO_OPTION (Granularity
, Option
);
4497 PRINT_TABLE_ITEM (MemoryErrorGranularityTable
, Granularity
);
4501 Display 32-bit Memory Error Information (Type 18) error information.
4503 @param[in] Operation The key of the structure.
4504 @param[in] Option The optional information.
4507 DisplayMemoryErrorOperation (
4512 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_OP
), gShellDebug1HiiHandle
);
4513 PRINT_INFO_OPTION (Operation
, Option
);
4514 PRINT_TABLE_ITEM (MemoryErrorOperationTable
, Operation
);
4518 Display Built-in Pointing Device (Type 21) type information.
4520 @param[in] Type The key of the structure.
4521 @param[in] Option The optional information.
4524 DisplayPointingDeviceType (
4529 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4530 PRINT_INFO_OPTION (Type
, Option
);
4531 PRINT_TABLE_ITEM (PointingDeviceTypeTable
, Type
);
4535 Display Built-in Pointing Device (Type 21) information.
4537 @param[in] Interface The key of the structure.
4538 @param[in] Option The optional information.
4541 DisplayPointingDeviceInterface (
4546 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_INTERFACE
), gShellDebug1HiiHandle
);
4547 PRINT_INFO_OPTION (Interface
, Option
);
4548 PRINT_TABLE_ITEM (PointingDeviceInterfaceTable
, Interface
);
4552 Display Portable Battery (Type 22) information.
4554 @param[in] Key The key of the structure.
4555 @param[in] Option The optional information.
4558 DisplayPBDeviceChemistry (
4563 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORTABLE_BATT_DEV_CHEM
), gShellDebug1HiiHandle
);
4564 PRINT_INFO_OPTION (Key
, Option
);
4565 PRINT_TABLE_ITEM (PBDeviceChemistryTable
, Key
);
4569 Display Voltage Probe (Type 26) location information.
4571 @param[in] Key The key of the structure.
4572 @param[in] Option The optional information.
4582 Loc
= (UINT8
) ((Key
& 0xE0) >> 5);
4583 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4584 PRINT_INFO_OPTION (Loc
, Option
);
4585 PRINT_TABLE_ITEM (VPLocationTable
, Loc
);
4589 Display Voltage Probe (Type 26) status ype information.
4591 @param[in] Key The key of the structure.
4592 @param[in] Option The optional information.
4602 Status
= (UINT8
) (Key
& 0x1F);
4603 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_STATUS
), gShellDebug1HiiHandle
);
4604 PRINT_INFO_OPTION (Status
, Option
);
4605 PRINT_TABLE_ITEM (VPStatusTable
, Status
);
4609 Display Cooling (Type 27) status information.
4611 @param[in] Key The key of the structure.
4612 @param[in] Option The optional information.
4615 DisplayCoolingDeviceStatus (
4622 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4623 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_STATUS
), gShellDebug1HiiHandle
);
4624 PRINT_INFO_OPTION (Status
, Option
);
4625 PRINT_TABLE_ITEM (CoolingDeviceStatusTable
, Status
);
4629 Display Cooling (Type 27) type information.
4631 @param[in] Key The key of the structure.
4632 @param[in] Option The optional information.
4635 DisplayCoolingDeviceType (
4642 Type
= (UINT8
) (Key
& 0x1F);
4643 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_TYPE
), gShellDebug1HiiHandle
);
4644 PRINT_INFO_OPTION (Type
, Option
);
4645 PRINT_TABLE_ITEM (CoolingDeviceTypeTable
, Type
);
4649 Display Temperature Probe (Type 28) status information.
4651 @param[in] Key The key of the structure.
4652 @param[in] Option The optional information.
4655 DisplayTemperatureProbeStatus (
4662 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4663 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_TEMP_PROBE
), gShellDebug1HiiHandle
);
4664 PRINT_INFO_OPTION (Status
, Option
);
4665 PRINT_TABLE_ITEM (TemperatureProbeStatusTable
, Status
);
4669 Display Temperature Probe (Type 28) location information.
4671 @param[in] Key The key of the structure.
4672 @param[in] Option The optional information.
4675 DisplayTemperatureProbeLoc (
4682 Loc
= (UINT8
) (Key
& 0x1F);
4683 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4684 PRINT_INFO_OPTION (Loc
, Option
);
4685 PRINT_TABLE_ITEM (TemperatureProbeLocTable
, Loc
);
4689 Display Electrical Current Probe (Type 29) status information.
4691 @param[in] Key The key of the structure.
4692 @param[in] Option The optional information.
4702 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4703 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_STATUS
), gShellDebug1HiiHandle
);
4704 PRINT_INFO_OPTION (Status
, Option
);
4705 PRINT_TABLE_ITEM (ECPStatusTable
, Status
);
4709 Display Type 29 information.
4711 @param[in] Key The key of the structure.
4712 @param[in] Option The optional information.
4722 Loc
= (UINT8
) (Key
& 0x1F);
4723 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_LOC
), gShellDebug1HiiHandle
);
4724 PRINT_INFO_OPTION (Loc
, Option
);
4725 PRINT_TABLE_ITEM (ECPLocTable
, Loc
);
4729 Display Management Device (Type 34) Type.
4731 @param[in] Key The key of the structure.
4732 @param[in] Option The optional information.
4740 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_TYPE
), gShellDebug1HiiHandle
);
4741 PRINT_INFO_OPTION (Key
, Option
);
4742 PRINT_TABLE_ITEM (MDTypeTable
, Key
);
4746 Display Management Device (Type 34) Address Type.
4748 @param[in] Key The key of the structure.
4749 @param[in] Option The optional information.
4752 DisplayMDAddressType (
4757 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_ADDR_TYPE
), gShellDebug1HiiHandle
);
4758 PRINT_INFO_OPTION (Key
, Option
);
4759 PRINT_TABLE_ITEM (MDAddressTypeTable
, Key
);
4763 Display Memory Channel (Type 37) information.
4765 @param[in] Key The key of the structure.
4766 @param[in] Option The optional information.
4769 DisplayMemoryChannelType (
4774 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CHANNEL_TYPE
), gShellDebug1HiiHandle
);
4775 PRINT_INFO_OPTION (Key
, Option
);
4776 PRINT_TABLE_ITEM (MemoryChannelTypeTable
, Key
);
4780 Display IPMI Device Information (Type 38) information.
4782 @param[in] Key The key of the structure.
4783 @param[in] Option The optional information.
4786 DisplayIPMIDIBMCInterfaceType (
4791 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BMC_INTERFACE_TYPE
), gShellDebug1HiiHandle
);
4792 PRINT_INFO_OPTION (Key
, Option
);
4793 PRINT_TABLE_ITEM (IPMIDIBMCInterfaceTypeTable
, Key
);
4797 Display Management Controller Host Interface (Type 42) information.
4799 @param[in] Key The key of the structure.
4800 @param[in] Option The optional information.
4803 DisplayMCHostInterfaceType (
4808 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MC_HOST_INTERFACE_TYPE
), gShellDebug1HiiHandle
);
4809 PRINT_INFO_OPTION (Key
, Option
);
4810 PRINT_TABLE_ITEM (MCHostInterfaceTypeTable
, Key
);
4814 Display Processor Architecture Type (Type 44).
4816 @param[in] Key The key of the structure.
4817 @param[in] Option The optional information.
4820 DisplayProcessorArchitectureType (
4825 ShellPrintHiiEx (-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROCESSOR_ARCH_TYPE
), gShellDebug1HiiHandle
);
4826 PRINT_INFO_OPTION (Key
, Option
);
4827 PRINT_TABLE_ITEM (ProcessorArchitectureTypesTable
, Key
);
4831 Display the structure type information.
4833 @param[in] Key The key of the structure.
4834 @param[in] Option The optional information.
4837 DisplayStructureTypeInfo (
4845 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_STRUCT_TYPE
), gShellDebug1HiiHandle
);
4846 PRINT_INFO_OPTION (Key
, Option
);
4847 PRINT_TABLE_ITEM (StructureTypeInfoTable
, Key
);