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"
646 TABLE_ITEM McErrorDetectMethodTable
[] = {
681 TABLE_ITEM McErrorCorrectCapabilityTable
[] = {
696 L
"Single Bit Error Correcting"
700 L
"Double Bit Error Correcting"
708 TABLE_ITEM McInterleaveSupportTable
[] = {
719 L
"One Way Interleave"
723 L
"Two Way Interleave"
727 L
"Four Way Interleave"
731 L
"Eight Way Interleave"
735 L
"Sixteen Way Interleave"
739 TABLE_ITEM McMemorySpeedsTable
[] = {
762 TABLE_ITEM MemoryModuleVoltageTable
[] = {
777 TABLE_ITEM MmMemoryTypeTable
[] = {
824 TABLE_ITEM MmErrorStatusTable
[] = {
827 L
" Uncorrectable errors received"
831 L
" Correctable errors received"
835 L
" Error Status obtained from the event log"
839 TABLE_ITEM CacheSRAMTypeTable
[] = {
870 TABLE_ITEM CacheErrCorrectingTypeTable
[] = {
897 TABLE_ITEM CacheSystemCacheTypeTable
[] = {
920 TABLE_ITEM CacheAssociativityTable
[] = {
935 L
"2-way Set-Associative"
939 L
"4-way Set-Associative"
947 L
"8-way Set-Associative"
951 L
"16-way Set-Associative"
955 L
"12-way Set-Associative"
959 L
"24-way Set-Associative"
963 L
"32-way Set-Associative"
967 L
"48-way Set-Associative"
971 L
"64-way Set-Associative"
975 L
"20-way Set-Associative"
979 TABLE_ITEM PortConnectorTypeTable
[] = {
1062 L
"Circular DIN-8 male"
1066 L
"Circular DIN-8 female"
1078 L
"9 Pin Dual Inline (pin 10 cut)"
1082 L
"25 Pin Dual Inline (pin 26 cut)"
1086 L
"50 Pin Dual Inline"
1090 L
"68 Pin Dual Inline"
1094 L
"On Board Sound Input from CD-ROM"
1098 L
"Mini-Centronics Type-14"
1102 L
"Mini-Centronics Type-26"
1106 L
"Mini-jack (headphones)"
1118 L
"SAS/SATA Plug Receptacle"
1122 L
"USB Type-C Receptacle"
1150 TABLE_ITEM PortTypeTable
[] = {
1157 L
"Parallel Port XT/AT Compatible"
1161 L
"Parallel Port PS/2"
1165 L
"Parallel Port ECP"
1169 L
"Parallel Port EPP"
1173 L
"Parallel Port ECP/EPP"
1177 L
"Serial Port XT/AT Compatible"
1181 L
"Serial Port 16450 Compatible"
1185 L
"Serial Port 16550 Compatible"
1189 L
"Serial Port 16550A Compatible"
1221 L
"FireWire (IEEE P1394)"
1289 L
"Multi-Function Display Port (MFDP)"
1301 L
"8251 FIFO Compatible"
1309 TABLE_ITEM SystemSlotTypeTable
[] = {
1348 L
"Processor Card Slot"
1352 L
"Proprietary Memory Card Slot"
1356 L
"I/O Riser Card Slot"
1364 L
"PCI - 66MHz Capable"
1388 L
"M.2 Socket 1-DP (Mechanical Key A)"
1392 L
"M.2 Socket 1-SD (Mechanical Key E)"
1396 L
"M.2 Socket 2 (Mechanical Key B)"
1400 L
"M.2 Socket 3 (Mechanical Key M)"
1412 L
"MXM Type III (standard connector)"
1416 L
"MXM Type III (HE connector)"
1432 L
"PCI Express Gen 2 SFF-8639"
1436 L
"PCI Express Gen 3 SFF-8639"
1440 L
"PCI Express Mini 52-pin (CEM spec. 2.0) with bottom-side keep-outs"
1444 L
"PCI Express Mini 52-pin (CEM spec. 2.0) without bottom-side keep-outs"
1448 L
"PCI Express Mini 76-pin (CEM spec. 2.0) Corresponds to Display-Mini card"
1451 SlotTypeCXLFlexbus10
,
1500 L
"PCI Express Gen 2"
1504 L
"PCI Express Gen 2 X1"
1508 L
"PCI Express Gen 2 X2"
1512 L
"PCI Express Gen 2 X4"
1516 L
"PCI Express Gen 2 X8"
1520 L
"PCI Express Gen 2 X16"
1524 L
"PCI Express Gen 3"
1528 L
"PCI Express Gen 3 X1"
1532 L
"PCI Express Gen 3 X2"
1536 L
"PCI Express Gen 3 X4"
1540 L
"PCI Express Gen 3 X8"
1544 L
"PCI Express Gen 3 X16"
1547 SlotTypePciExpressGen4
,
1548 L
"PCI Express Gen 4"
1551 SlotTypePciExpressGen4X1
,
1552 L
"PCI Express Gen 4 X1"
1555 SlotTypePciExpressGen4X2
,
1556 L
"PCI Express Gen 4 X2"
1559 SlotTypePciExpressGen4X4
,
1560 L
"PCI Express Gen 4 X4"
1563 SlotTypePciExpressGen4X8
,
1564 L
"PCI Express Gen 4 X8"
1567 SlotTypePciExpressGen4X16
,
1568 L
"PCI Express Gen 4 X16"
1572 TABLE_ITEM SystemSlotDataBusWidthTable
[] = {
1631 TABLE_ITEM SystemSlotCurrentUsageTable
[] = {
1654 TABLE_ITEM SystemSlotLengthTable
[] = {
1673 TABLE_ITEM SlotCharacteristics1Table
[] = {
1676 L
" Characteristics Unknown"
1680 L
" Provides 5.0 Volts"
1684 L
" Provides 3.3 Volts"
1688 L
" Slot's opening is shared with another slot, e.g. PCI/EISA shared slot."
1693 L
" PC Card slot supports PC Card-16"
1697 L
" PC Card slot supports CardBus"
1701 L
" PC Card slot supports Zoom Video "
1705 L
" PC Card slot supports Modem Ring Resume "
1709 TABLE_ITEM SlotCharacteristics2Table
[] = {
1712 L
" PCI slot supports Power Management Enable (PME#) signal"
1716 L
" Slot supports hot-plug devices"
1720 L
" PCI slot supports SMBus signal"
1724 L
" PCIe slot supports bifurcation"
1728 TABLE_ITEM OnboardDeviceTypesTable
[] = {
1783 L
" embedded Multi-Media Controller"
1795 TABLE_ITEM SELTypesTable
[] = {
1802 L
" Single-bit ECC memory error"
1806 L
" Multi-bit ECC memory error"
1810 L
" Parity memory error"
1818 L
" I/O Channel Check"
1826 L
" POST Memory Resize"
1834 L
" PCI Parity Error"
1838 L
" PCI System Error"
1846 L
" EISA FailSafe Timer time-out"
1850 L
" Correctable memory log disabled"
1854 L
" Logging disabled for a specific Event Type"
1862 L
" System Limit Exceeded"
1866 L
" Asynchronous hardware timer expired and issued a system reset"
1870 L
" System configuration information"
1874 L
" Hard-disk information"
1878 L
" System reconfigured"
1882 L
" Uncorrectable CPU-complex error"
1886 L
" Log Area Reset/Cleared"
1894 L
" Unused by SMBIOS specification"
1898 L
" System and OEM specified"
1906 TABLE_ITEM SELVarDataFormatTypeTable
[] = {
1921 L
" Multiple-Event Handle "
1925 L
" POST Results Bitmap "
1932 L
" System Management Type"
1939 L
" Multiple-Event System Management Type "
1951 TABLE_ITEM PostResultsBitmapDw1Table
[] = {
1954 L
" Channel 2 Timer error "
1958 L
" Master PIC (8259 #1) error "
1962 L
" Slave PIC (8259 #2) error "
1966 L
" CMOS Battery Failure "
1970 L
" CMOS System Options Not Set "
1974 L
" CMOS Checksum Error "
1978 L
" CMOS Configuration Error "
1982 L
" Mouse and Keyboard Swapped "
1986 L
" Keyboard Locked "
1990 L
" Keyboard Not Functional "
1994 L
" Keyboard Controller Not Functional "
1998 L
" CMOS Memory Size Different "
2002 L
" Memory Decreased in Size "
2006 L
" Cache Memory Error "
2010 L
" Floppy Drive 0 Error "
2014 L
" Floppy Drive 1 Error "
2018 L
" Floppy Controller Failure "
2022 L
" Number of ATA Drives Reduced Error "
2026 L
" CMOS Time Not Set "
2030 L
" DDC Monitor Configuration Change "
2034 L
" Reserved, set to 0 "
2038 L
" Reserved, set to 0 "
2042 L
" Reserved, set to 0 "
2046 L
" Reserved, set to 0 "
2050 L
" Second DWORD has valid data "
2054 L
" Reserved, set to 0 "
2058 L
" Reserved, set to 0 "
2062 L
" Reserved, set to 0 "
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 TABLE_ITEM PostResultsBitmapDw2Table
[] = {
2085 L
" Normally 0; available for OEM assignment "
2089 L
" Normally 0; available for OEM assignment "
2093 L
" Normally 0; available for OEM assignment "
2097 L
" Normally 0; available for OEM assignment "
2101 L
" Normally 0; available for OEM assignment "
2105 L
" Normally 0; available for OEM assignment "
2109 L
" Normally 0; available for OEM assignment "
2113 L
" PCI Memory Conflict "
2117 L
" PCI I/O Conflict "
2121 L
" PCI IRQ Conflict "
2125 L
" PNP Memory Conflict "
2129 L
" PNP 32 bit Memory Conflict "
2133 L
" PNP I/O Conflict "
2137 L
" PNP IRQ Conflict "
2141 L
" PNP DMA Conflict "
2145 L
" Bad PNP Serial ID Checksum "
2149 L
" Bad PNP Resource Data Checksum "
2153 L
" Static Resource Conflict "
2157 L
" NVRAM Checksum Error, NVRAM Cleared "
2161 L
" System Board Device Resource Conflict "
2165 L
" Primary Output Device Not Found "
2169 L
" Primary Input Device Not Found "
2173 L
" Primary Boot Device Not Found "
2177 L
" NVRAM Cleared By Jumper "
2181 L
" NVRAM Data Invalid, NVRAM Cleared "
2185 L
" FDC Resource Conflict "
2189 L
" Primary ATA Controller Resource Conflict "
2193 L
" Secondary ATA Controller Resource Conflict "
2197 L
" Parallel Port Resource Conflict "
2201 L
" Serial Port 1 Resource Conflict "
2205 L
" Serial Port 2 Resource Conflict "
2209 L
" Audio Resource Conflict "
2213 TABLE_ITEM SELSysManagementTypesTable
[] = {
2216 L
" +2.5V Out of range, #2 "
2220 L
" +3.3V Out of range "
2224 L
" +5V Out of range "
2228 L
" -5V Out of range "
2232 L
" +12V Out of range "
2236 L
" -12V Out of range "
2240 L
" Reserved for future out-of-range voltage levels "
2244 L
" System board temperature out of range "
2248 L
" Processor #1 temperature out of range "
2252 L
" Processor #2 temperature out of range "
2256 L
" Processor #3 temperature out of range "
2260 L
" Processor #4 temperature out of range "
2264 L
" Reserved for future out-of-range temperatures"
2268 L
" Fan n (n = 0 to 7) Out of range "
2272 L
" Reserved for future assignment via this specification "
2276 L
" Chassis secure switch activated "
2280 TABLE_ITEM PMALocationTable
[] = {
2291 L
" System board or motherboard"
2299 L
" EISA add-on card"
2311 L
" PCMCIA add-on card"
2315 L
" Proprietary add-on card"
2323 L
" PC-98/C20 add-on card"
2327 L
" PC-98/C24 add-on card"
2331 L
" PC-98/E add-on card"
2335 L
" PC-98/Local bus add-on card"
2338 MemoryArrayLocationCXLAddonCard
,
2343 TABLE_ITEM PMAUseTable
[] = {
2366 L
" Non-volatile RAM"
2374 TABLE_ITEM PMAErrorCorrectionTypesTable
[] = {
2405 TABLE_ITEM MemoryDeviceFormFactorTable
[] = {
2436 L
" Proprietary Card"
2467 MemoryFormFactorDie
,
2472 TABLE_ITEM MemoryDeviceTypeTable
[] = {
2583 L
" Logical non-volatile device"
2587 L
" HBM (High Bandwidth Memory)"
2591 L
" HBM2 (High Bandwidth Memory Generation 2)"
2603 TABLE_ITEM MemoryDeviceTypeDetailTable
[] = {
2654 L
" Registered(Buffered)"
2658 L
" Unbuffered(Unregistered)"
2662 TABLE_ITEM MemoryDeviceMemoryTechnologyTable
[] = {
2688 MemoryTechnologyIntelOptanePersistentMemory
,
2689 L
" Intel Optane Persistent Memory"
2693 TABLE_ITEM MemoryDeviceMemoryOperatingModeCapabilityTable
[] = {
2708 L
" Byte-accessible persistent memory"
2712 L
" Block-accessible persistent memory"
2716 TABLE_ITEM MemoryErrorTypeTable
[] = {
2739 L
" Single-bit error"
2743 L
" Double-bit error"
2763 L
" Corrected single-bit error"
2771 L
" Uncorrectable error"
2775 TABLE_ITEM MemoryErrorGranularityTable
[] = {
2790 L
" Memory partition level"
2794 TABLE_ITEM MemoryErrorOperationTable
[] = {
2817 TABLE_ITEM PointingDeviceTypeTable
[] = {
2848 TABLE_ITEM PointingDeviceInterfaceTable
[] = {
2879 L
" ADB(Apple Desktop Bus"
2887 L
" Bus mouse mirco-DIN"
2895 TABLE_ITEM PBDeviceChemistryTable
[] = {
2914 L
" Nickel metal hydride "
2926 L
" Lithium Polymer "
2930 TABLE_ITEM VPLocationTable
[] = {
2953 L
" Non-recoverable "
2957 TABLE_ITEM VPStatusTable
[] = {
2980 L
" System Management Module "
2992 L
" Processor Module "
3004 TABLE_ITEM CoolingDeviceStatusTable
[] = {
3027 L
" Non-recoverable "
3031 TABLE_ITEM CoolingDeviceTypeTable
[] = {
3046 L
" Centrifugal Blower "
3058 L
" Power Supply Fan "
3066 L
" Integrated Refrigeration "
3074 L
" Passive Cooling "
3078 TABLE_ITEM TemperatureProbeStatusTable
[] = {
3101 L
" Non-recoverable "
3105 TABLE_ITEM TemperatureProbeLocTable
[] = {
3128 L
" System Management Module "
3140 L
" Processor Module "
3152 TABLE_ITEM ECPStatusTable
[] = {
3175 L
" Non-recoverable "
3179 TABLE_ITEM ECPLocTable
[] = {
3202 L
" System Management Module "
3214 L
" Processor Module "
3226 TABLE_ITEM MDTypeTable
[] = {
3237 L
" National Semiconductor LM75 "
3241 L
" National Semiconductor LM78 "
3245 L
" National Semiconductor LM79 "
3249 L
" National Semiconductor LM80 "
3253 L
" National Semiconductor LM81 "
3257 L
" Analog Devices ADM9240 "
3261 L
" Dallas Semiconductor DS1780 "
3269 L
" Genesys GL518SM "
3273 L
" Winbond W83781D "
3277 L
" Holtek HT82H791 "
3281 TABLE_ITEM MDAddressTypeTable
[] = {
3304 TABLE_ITEM MemoryChannelTypeTable
[] = {
3323 TABLE_ITEM IPMIDIBMCInterfaceTypeTable
[] = {
3330 L
" KCS: Keyboard Controller Style "
3334 L
" SMIC: Server Management Interface Chip "
3338 L
" BT: Block Transfer "
3342 L
" SSIF: SMBus System Interface "
3346 L
" Reserved for future assignment by this specification "
3350 TABLE_ITEM MCHostInterfaceTypeTable
[] = {
3353 L
" MCTP Host Interface "
3357 L
" Network Host Interface "
3365 TABLE_ITEM ProcessorArchitectureTypesTable
[] = {
3376 L
" x64 (x86-64, intel64, AMD64, EM64T) "
3380 L
" Intel Itanium architecture "
3384 L
" 32-bit ARM (Aarch32) "
3388 L
" 64-bit ARM (Aarch64) "
3392 L
" 32-bit RISC-V (RV32) "
3396 L
" 64-bit RISC-V (RV64) "
3400 L
" 128-bit RISC-V (RV128) "
3404 TABLE_ITEM StructureTypeInfoTable
[] = {
3407 L
" BIOS Information"
3411 L
" System Information"
3415 L
" Base Board Information"
3419 L
" System Enclosure"
3423 L
" Processor Information"
3427 L
" Memory Controller Information "
3431 L
" Memory Module Information "
3435 L
" Cache Information "
3439 L
" Port Connector Information "
3447 L
" On Board Devices Information "
3455 L
" System Configuration Options "
3459 L
" BIOS Language Information "
3463 L
" Group Associations "
3467 L
" System Event Log "
3471 L
" Physical Memory Array "
3479 L
" 32-bit Memory Error Information "
3483 L
" Memory Array Mapped Address "
3487 L
" Memory Device Mapped Address "
3491 L
" Built-in Pointing Device "
3495 L
" Portable Battery "
3503 L
" Hardware Security "
3507 L
" System Power Controls "
3519 L
" Temperature Probe "
3523 L
" Electrical Current Probe "
3527 L
" Out-of-Band Remote Access "
3531 L
" Boot Integrity Services (BIS) Entry Point"
3535 L
" System Boot Information "
3539 L
" 64-bit Memory Error Information "
3543 L
" Management Device "
3547 L
" Management Device Component "
3551 L
" Management Device Threshold Data "
3559 L
" IPMI Device Information "
3563 L
" System Power Supply"
3567 L
" Additional Information"
3571 L
" Onboard Devices Extended Information"
3575 L
" Management Controller Host Interface"
3583 L
" Processor Additional Information"
3596 Given a table and a Key, return the responding info.
3599 Table[Index].Key is change from UINT8 to UINT16,
3600 in order to deal with "0xaa - 0xbb".
3603 DisplaySELVariableDataFormatTypes(UINT8 Type, UINT8 Option)
3606 Now define Key = 0x7F07, that is to say: High = 0x7F, Low = 0x07.
3607 Then all the Key Value between Low and High gets the same string
3610 @param[in] Table The begin address of table.
3611 @param[in] Number The number of table items.
3612 @param[in] Key The query Key.
3613 @param[in, out] Info Input as empty buffer; output as data buffer.
3614 @param[in] InfoLen The max number of characters for Info.
3616 @return the found Key and Info is valid.
3617 @retval QUERY_TABLE_UNFOUND and Info should be NULL.
3621 IN TABLE_ITEM
*Table
,
3624 IN OUT CHAR16
*Info
,
3630 // High byte and Low byte of word
3635 for (Index
= 0; Index
< Number
; Index
++) {
3636 High
= (UINT8
)(Table
[Index
].Key
>> 8);
3637 Low
= (UINT8
)(Table
[Index
].Key
& 0x00FF);
3640 // Check if Key is in the range
3641 // or if Key == Value in the table
3643 if ( ((High
> Low
) && (Key
>= Low
) && (Key
<= High
))
3644 || (Table
[Index
].Key
== Key
))
3646 StrnCpyS (Info
, InfoLen
, Table
[Index
].Info
, InfoLen
- 1);
3647 StrnCatS (Info
, InfoLen
, L
"\n", InfoLen
- 1 - StrLen (Info
));
3652 StrCpyS (Info
, InfoLen
, L
"Undefined Value\n");
3653 return QUERY_TABLE_UNFOUND
;
3657 Given a table of bit info and a Key, return the responding info to the Key.
3659 @param[in] Table Point to a table which maintains a map of 'bit' to 'message'.
3660 @param[in] Number Number of table items.
3661 @param[in] Bits The Key of query the bit map information.
3665 IN TABLE_ITEM
*Table
,
3671 // Get certain bit of 'Value':
3673 #define BIT(Value, bit) ((Value) & ((UINT32) 1) << (bit))
3675 // Clear certain bit of 'Value':
3677 #define CLR_BIT(Value, bit) ((Value) -= (BIT (Value, bit)))
3686 // query the table and print information
3688 for (Index
= 0; Index
< Number
; Index
++) {
3689 if (BIT (Value
, Table
[Index
].Key
) != 0) {
3692 // If it is not first info, print the separator first.
3697 Print (Table
[Index
].Info
);
3701 // clear the bit, for reserved bits test
3703 CLR_BIT (Value
, Table
[Index
].Key
);
3708 // There is no any info if FirstInfo is still TRUE.
3711 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_NO_INFO
), gShellDebug1HiiHandle
);
3719 STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_BITS_SET
),
3720 gShellDebug1HiiHandle
,
3729 // //////////////////////////////////////////////////////////////////
3731 // Following uses QueryTable functions to simplify the coding.
3732 // QueryTable(), PrintBitsInfo()
3735 #define PRINT_TABLE_ITEM(Table, Key) \
3739 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3740 ZeroMem (Info, sizeof (Info)); \
3741 QueryTable (Table, Num, Key, Info, sizeof(Info)/sizeof(Info[0])); \
3745 #define PRINT_BITS_INFO(Table, bits) \
3748 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3749 PrintBitsInfo (Table, Num, (UINT32) bits); \
3753 Display System Information (Type 1) Type.
3755 @param[in] Type The key of the structure.
3756 @param[in] Option The optional information.
3759 DisplaySystemWakeupType (
3764 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_WAKEUP_TYPE
), gShellDebug1HiiHandle
);
3765 PRINT_INFO_OPTION (Type
, Option
);
3766 PRINT_TABLE_ITEM (SystemWakeupTypeTable
, Type
);
3770 Display Base Board (Type 2) Feature Flags.
3772 @param[in] FeatureFlags The key of the structure.
3773 @param[in] Option The optional information.
3776 DisplayBaseBoardFeatureFlags (
3777 IN UINT8 FeatureFlags
,
3781 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_FEATURE_FLAGS
), gShellDebug1HiiHandle
);
3782 PRINT_INFO_OPTION (FeatureFlags
, Option
);
3783 PRINT_BITS_INFO (BaseBoardFeatureFlagsTable
, FeatureFlags
);
3787 Display Base Board (Type 2) Board Type.
3789 @param[in] Type The key of the structure.
3790 @param[in] Option The optional information.
3793 DisplayBaseBoardBoardType (
3798 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_BOARD_TYPE
), gShellDebug1HiiHandle
);
3799 PRINT_INFO_OPTION (Type
, Option
);
3800 PRINT_TABLE_ITEM (BaseBoardBoardTypeTable
, Type
);
3804 Display System Enclosure (Type 3) Enclosure Type.
3806 @param[in] Type The key of the structure.
3807 @param[in] Option The optional information.
3810 DisplaySystemEnclosureType (
3815 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_TYPE
), gShellDebug1HiiHandle
);
3816 PRINT_INFO_OPTION (Type
, Option
);
3818 // query table and print info
3820 PRINT_TABLE_ITEM (SystemEnclosureTypeTable
, Type
);
3822 if (BIT (Type
, 7) != 0) {
3823 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CHASSIS_LOCK_PRESENT
), gShellDebug1HiiHandle
);
3828 Display System Enclosure (Type 3) Enclosure Status.
3830 @param[in] Status The key of the structure.
3831 @param[in] Option The optional information.
3834 DisplaySystemEnclosureStatus (
3839 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_STATUS
), gShellDebug1HiiHandle
);
3840 PRINT_INFO_OPTION (Status
, Option
);
3841 PRINT_TABLE_ITEM (SystemEnclosureStatusTable
, Status
);
3845 Display System Enclosure (Type 3) Security Status.
3847 @param[in] Status The key of the structure.
3848 @param[in] Option The optional information.
3851 DisplaySESecurityStatus (
3856 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_SECURITY
), gShellDebug1HiiHandle
);
3857 PRINT_INFO_OPTION (Status
, Option
);
3858 PRINT_TABLE_ITEM (SESecurityStatusTable
, Status
);
3862 Display Processor Information (Type 4) Type.
3864 @param[in] Type The key of the structure.
3865 @param[in] Option The optional information.
3868 DisplayProcessorType (
3873 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_TYPE
), gShellDebug1HiiHandle
);
3874 PRINT_INFO_OPTION (Type
, Option
);
3875 PRINT_TABLE_ITEM (ProcessorTypeTable
, Type
);
3879 Display Processor Information (Type 4) Upgrade.
3881 @param[in] Upgrade The key of the structure.
3882 @param[in] Option The optional information.
3885 DisplayProcessorUpgrade (
3890 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_UPDATE
), gShellDebug1HiiHandle
);
3891 PRINT_INFO_OPTION (Upgrade
, Option
);
3892 PRINT_TABLE_ITEM (ProcessorUpgradeTable
, Upgrade
);
3896 Display Processor Information (Type 4) Characteristics.
3898 @param[in] Type The key of the structure.
3899 @param[in] Option The optional information.
3902 DisplayProcessorCharacteristics (
3907 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_CHARACTERISTICS
), gShellDebug1HiiHandle
);
3908 PRINT_INFO_OPTION (Type
, Option
);
3909 PRINT_BITS_INFO (ProcessorCharacteristicsTable
, Type
);
3913 Display Memory Controller Information (Type 5) method.
3915 @param[in] Method The key of the structure.
3916 @param[in] Option The optional information.
3919 DisplayMcErrorDetectMethod (
3924 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DETECTMETHOD
), gShellDebug1HiiHandle
);
3925 PRINT_INFO_OPTION (Method
, Option
);
3926 PRINT_TABLE_ITEM (McErrorDetectMethodTable
, Method
);
3930 Display Memory Controller Information (Type 5) Capability.
3932 @param[in] Capability The key of the structure.
3933 @param[in] Option The optional information.
3936 DisplayMcErrorCorrectCapability (
3937 IN UINT8 Capability
,
3941 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CORRECT_CAPABILITY
), gShellDebug1HiiHandle
);
3942 PRINT_INFO_OPTION (Capability
, Option
);
3943 PRINT_BITS_INFO (McErrorCorrectCapabilityTable
, Capability
);
3947 Display Memory Controller Information (Type 5) Support.
3949 @param[in] Support The key of the structure.
3950 @param[in] Option The optional information.
3953 DisplayMcInterleaveSupport (
3958 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_INTERLEAVE_SUPPORT
), gShellDebug1HiiHandle
);
3959 PRINT_INFO_OPTION (Support
, Option
);
3960 PRINT_TABLE_ITEM (McInterleaveSupportTable
, Support
);
3964 Display Memory Controller Information (Type 5) speeds.
3966 @param[in] Speed The key of the structure.
3967 @param[in] Option The optional information.
3970 DisplayMcMemorySpeeds (
3975 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MEMORY_SPEED
), gShellDebug1HiiHandle
);
3976 PRINT_INFO_OPTION (Speed
, Option
);
3977 PRINT_BITS_INFO (McMemorySpeedsTable
, Speed
);
3981 Display Memory Controller Information (Type 5) voltage.
3983 @param[in] Voltage The key of the structure.
3984 @param[in] Option The optional information.
3987 DisplayMemoryModuleVoltage (
3992 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_REQUIRED_VOLTAGES
), gShellDebug1HiiHandle
);
3993 PRINT_INFO_OPTION (Voltage
, Option
);
3994 PRINT_BITS_INFO (MemoryModuleVoltageTable
, Voltage
);
3998 Display Memory Module Information (Type 6) type.
4000 @param[in] Type The key of the structure.
4001 @param[in] Option The optional information.
4004 DisplayMmMemoryType (
4009 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_TYPE
), gShellDebug1HiiHandle
);
4010 PRINT_INFO_OPTION (Type
, Option
);
4011 PRINT_BITS_INFO (MmMemoryTypeTable
, Type
);
4015 Display Memory Module Information (Type 6) status.
4017 @param[in] Status The key of the structure.
4018 @param[in] Option The optional information.
4021 DisplayMmErrorStatus (
4026 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_ERROR_STATUS
), gShellDebug1HiiHandle
);
4027 PRINT_INFO_OPTION (Status
, Option
);
4028 PRINT_BITS_INFO (MmErrorStatusTable
, Status
);
4032 Display Cache Information (Type 7) SRAM Type.
4034 @param[in] Type The key of the structure.
4035 @param[in] Option The optional information.
4038 DisplayCacheSRAMType (
4043 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SRAM_TYPE
), gShellDebug1HiiHandle
);
4044 PRINT_INFO_OPTION ((UINT8
)Type
, Option
);
4045 PRINT_BITS_INFO (CacheSRAMTypeTable
, (UINT8
)Type
);
4049 Display Cache Information (Type 7) correcting Type.
4051 @param[in] Type The key of the structure.
4052 @param[in] Option The optional information.
4055 DisplayCacheErrCorrectingType (
4060 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ERROR_CORRECTING
), gShellDebug1HiiHandle
);
4061 PRINT_INFO_OPTION (Type
, Option
);
4062 PRINT_TABLE_ITEM (CacheErrCorrectingTypeTable
, Type
);
4066 Display Cache Information (Type 7) Type.
4068 @param[in] Type The key of the structure.
4069 @param[in] Option The optional information.
4072 DisplayCacheSystemCacheType (
4077 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SYSTEM_TYPE
), gShellDebug1HiiHandle
);
4078 PRINT_INFO_OPTION (Type
, Option
);
4079 PRINT_TABLE_ITEM (CacheSystemCacheTypeTable
, Type
);
4083 Display Cache Information (Type 7) Associativity.
4085 @param[in] Associativity The key of the structure.
4086 @param[in] Option The optional information.
4089 DisplayCacheAssociativity (
4090 IN UINT8 Associativity
,
4094 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ASSOCIATIVITY
), gShellDebug1HiiHandle
);
4095 PRINT_INFO_OPTION (Associativity
, Option
);
4096 PRINT_TABLE_ITEM (CacheAssociativityTable
, Associativity
);
4100 Display Port Connector Information (Type 8) type.
4102 @param[in] Type The key of the structure.
4103 @param[in] Option The optional information.
4106 DisplayPortConnectorType (
4111 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_CONNECTOR_TYPE
), gShellDebug1HiiHandle
);
4112 PRINT_INFO_OPTION (Type
, Option
);
4113 PRINT_TABLE_ITEM (PortConnectorTypeTable
, Type
);
4117 Display Port Connector Information (Type 8) port type.
4119 @param[in] Type The key of the structure.
4120 @param[in] Option The optional information.
4128 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_TYPE
), gShellDebug1HiiHandle
);
4129 PRINT_INFO_OPTION (Type
, Option
);
4130 PRINT_TABLE_ITEM (PortTypeTable
, Type
);
4134 Display System Slots (Type 9) slot type.
4136 @param[in] Type The key of the structure.
4137 @param[in] Option The optional information.
4140 DisplaySystemSlotType (
4145 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_TYPE
), gShellDebug1HiiHandle
);
4146 PRINT_INFO_OPTION (Type
, Option
);
4147 PRINT_TABLE_ITEM (SystemSlotTypeTable
, Type
);
4151 Display System Slots (Type 9) data bus width.
4153 @param[in] Width The key of the structure.
4154 @param[in] Option The optional information.
4157 DisplaySystemSlotDataBusWidth (
4162 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_DATA
), gShellDebug1HiiHandle
);
4163 PRINT_INFO_OPTION (Width
, Option
);
4164 PRINT_TABLE_ITEM (SystemSlotDataBusWidthTable
, Width
);
4168 Display System Slots (Type 9) usage information.
4170 @param[in] Usage The key of the structure.
4171 @param[in] Option The optional information.
4174 DisplaySystemSlotCurrentUsage (
4179 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_CURRENT_USAGE
), gShellDebug1HiiHandle
);
4180 PRINT_INFO_OPTION (Usage
, Option
);
4181 PRINT_TABLE_ITEM (SystemSlotCurrentUsageTable
, Usage
);
4185 Display System Slots (Type 9) slot length.
4187 @param[in] Length The key of the structure.
4188 @param[in] Option The optional information.
4191 DisplaySystemSlotLength (
4196 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_LENGTH
), gShellDebug1HiiHandle
);
4197 PRINT_INFO_OPTION (Length
, Option
);
4198 PRINT_TABLE_ITEM (SystemSlotLengthTable
, Length
);
4202 Display System Slots (Type 9) characteristics.
4204 @param[in] Chara1 The key of the structure.
4205 @param[in] Option The optional information.
4208 DisplaySlotCharacteristics1 (
4213 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS
), gShellDebug1HiiHandle
);
4214 PRINT_INFO_OPTION (Chara1
, Option
);
4215 PRINT_BITS_INFO (SlotCharacteristics1Table
, Chara1
);
4219 Display System Slots (Type 9) characteristics.
4221 @param[in] Chara2 The key of the structure.
4222 @param[in] Option The optional information.
4225 DisplaySlotCharacteristics2 (
4230 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS_2
), gShellDebug1HiiHandle
);
4231 PRINT_INFO_OPTION (Chara2
, Option
);
4232 PRINT_BITS_INFO (SlotCharacteristics2Table
, Chara2
);
4236 Display On Board Devices Information (Type 10) types.
4238 @param[in] Type The key of the structure.
4239 @param[in] Option The optional information.
4242 DisplayOnboardDeviceTypes (
4247 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ONBOARD_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4248 PRINT_INFO_OPTION (Type
, Option
);
4249 PRINT_TABLE_ITEM (OnboardDeviceTypesTable
, Type
);
4253 Display System Event Log (Type 15) types.
4255 @param[in] Type The key of the structure.
4256 @param[in] Option The optional information.
4264 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_EVENT_LOG_TYPE
), gShellDebug1HiiHandle
);
4265 PRINT_INFO_OPTION (Type
, Option
);
4266 PRINT_TABLE_ITEM (SELTypesTable
, Type
);
4270 Display System Event Log (Type 15) format type.
4272 @param[in] Type The key of the structure.
4273 @param[in] Option The optional information.
4276 DisplaySELVarDataFormatType (
4281 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_EVENT_LOG_VAR_DATA_FORMAT
), gShellDebug1HiiHandle
);
4282 PRINT_INFO_OPTION (Type
, Option
);
4283 PRINT_TABLE_ITEM (SELVarDataFormatTypeTable
, Type
);
4287 Display System Event Log (Type 15) dw1.
4289 @param[in] Key The key of the structure.
4290 @param[in] Option The optional information.
4293 DisplayPostResultsBitmapDw1 (
4298 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_BITMAP
), gShellDebug1HiiHandle
);
4299 PRINT_INFO_OPTION (Key
, Option
);
4300 PRINT_BITS_INFO (PostResultsBitmapDw1Table
, Key
);
4304 Display System Event Log (Type 15) dw2.
4306 @param[in] Key The key of the structure.
4307 @param[in] Option The optional information.
4310 DisplayPostResultsBitmapDw2 (
4315 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_SECOND_DWORD
), gShellDebug1HiiHandle
);
4316 PRINT_INFO_OPTION (Key
, Option
);
4317 PRINT_BITS_INFO (PostResultsBitmapDw2Table
, Key
);
4321 Display System Event Log (Type 15) type.
4323 @param[in] SMType The key of the structure.
4324 @param[in] Option The optional information.
4327 DisplaySELSysManagementTypes (
4334 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_TYPES
), gShellDebug1HiiHandle
);
4335 PRINT_INFO_OPTION (SMType
, Option
);
4338 // Deal with wide range Value
4340 if (SMType
>= 0x80000000) {
4341 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_OEM_ASSIGNED
), gShellDebug1HiiHandle
);
4342 } else if (SMType
>= 0x00020000) {
4343 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
4344 } else if (SMType
>= 0x00010000) {
4345 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_PROBE
), gShellDebug1HiiHandle
);
4346 } else if (SMType
>= 0x31) {
4347 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
4350 // Deal with One byte data
4352 Temp
= (UINT8
)(SMType
& 0x3F);
4353 PRINT_TABLE_ITEM (SELSysManagementTypesTable
, Temp
);
4358 Display Physical Memory Array (Type 16) Location.
4360 @param[in] Location The key of the structure.
4361 @param[in] Option The optional information.
4364 DisplayPMALocation (
4369 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_LOCATION
), gShellDebug1HiiHandle
);
4370 PRINT_INFO_OPTION (Location
, Option
);
4371 PRINT_TABLE_ITEM (PMALocationTable
, Location
);
4375 Display Physical Memory Array (Type 16) Use.
4377 @param[in] Use The key of the structure.
4378 @param[in] Option The optional information.
4386 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_USE
), gShellDebug1HiiHandle
);
4387 PRINT_INFO_OPTION (Use
, Option
);
4388 PRINT_TABLE_ITEM (PMAUseTable
, Use
);
4392 Display Physical Memory Array (Type 16) Types.
4394 @param[in] Type The key of the structure.
4395 @param[in] Option The optional information.
4398 DisplayPMAErrorCorrectionTypes (
4403 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_ERROR
), gShellDebug1HiiHandle
);
4404 PRINT_INFO_OPTION (Type
, Option
);
4405 PRINT_TABLE_ITEM (PMAErrorCorrectionTypesTable
, Type
);
4409 Display Memory Device (Type 17) form factor.
4411 @param[in] FormFactor The key of the structure.
4412 @param[in] Option The optional information.
4415 DisplayMemoryDeviceFormFactor (
4416 IN UINT8 FormFactor
,
4420 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_FORM_FACTOR
), gShellDebug1HiiHandle
);
4421 PRINT_INFO_OPTION (FormFactor
, Option
);
4422 PRINT_TABLE_ITEM (MemoryDeviceFormFactorTable
, FormFactor
);
4426 Display Memory Device (Type 17) type.
4428 @param[in] Type The key of the structure.
4429 @param[in] Option The optional information.
4432 DisplayMemoryDeviceType (
4437 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4438 PRINT_INFO_OPTION (Type
, Option
);
4439 PRINT_TABLE_ITEM (MemoryDeviceTypeTable
, Type
);
4443 Display Memory Device (Type 17) details.
4445 @param[in] Para The key of the structure.
4446 @param[in] Option The optional information.
4449 DisplayMemoryDeviceTypeDetail (
4454 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE_DETAIL
), gShellDebug1HiiHandle
);
4455 PRINT_INFO_OPTION (Para
, Option
);
4456 PRINT_BITS_INFO (MemoryDeviceTypeDetailTable
, Para
);
4460 Display Memory Device (Type 17) memory technology.
4462 @param[in] Para The key of the structure.
4463 @param[in] Option The optional information.
4466 DisplayMemoryDeviceMemoryTechnology (
4471 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_MEMORY_TECHNOLOGY
), gShellDebug1HiiHandle
);
4472 PRINT_INFO_OPTION (Para
, Option
);
4473 PRINT_TABLE_ITEM (MemoryDeviceMemoryTechnologyTable
, Para
);
4477 Display Memory Device (Type 17) memory operating mode capability.
4479 @param[in] Para The key of the structure.
4480 @param[in] Option The optional information.
4483 DisplayMemoryDeviceMemoryOperatingModeCapability (
4488 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_MEM_OPER_MODE_CAPA
), gShellDebug1HiiHandle
);
4489 PRINT_INFO_OPTION (Para
, Option
);
4490 PRINT_BITS_INFO (MemoryDeviceMemoryOperatingModeCapabilityTable
, Para
);
4494 Display 32-bit Memory Error Information (Type 18) type.
4496 @param[in] ErrorType The key of the structure.
4497 @param[in] Option The optional information.
4500 DisplayMemoryErrorType (
4505 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_INFO
), gShellDebug1HiiHandle
);
4506 PRINT_INFO_OPTION (ErrorType
, Option
);
4507 PRINT_TABLE_ITEM (MemoryErrorTypeTable
, ErrorType
);
4511 Display 32-bit Memory Error Information (Type 18) error granularity.
4513 @param[in] Granularity The key of the structure.
4514 @param[in] Option The optional information.
4517 DisplayMemoryErrorGranularity (
4518 IN UINT8 Granularity
,
4522 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_GRANULARITY
), gShellDebug1HiiHandle
);
4523 PRINT_INFO_OPTION (Granularity
, Option
);
4524 PRINT_TABLE_ITEM (MemoryErrorGranularityTable
, Granularity
);
4528 Display 32-bit Memory Error Information (Type 18) error information.
4530 @param[in] Operation The key of the structure.
4531 @param[in] Option The optional information.
4534 DisplayMemoryErrorOperation (
4539 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_OP
), gShellDebug1HiiHandle
);
4540 PRINT_INFO_OPTION (Operation
, Option
);
4541 PRINT_TABLE_ITEM (MemoryErrorOperationTable
, Operation
);
4545 Display Built-in Pointing Device (Type 21) type information.
4547 @param[in] Type The key of the structure.
4548 @param[in] Option The optional information.
4551 DisplayPointingDeviceType (
4556 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4557 PRINT_INFO_OPTION (Type
, Option
);
4558 PRINT_TABLE_ITEM (PointingDeviceTypeTable
, Type
);
4562 Display Built-in Pointing Device (Type 21) information.
4564 @param[in] Interface The key of the structure.
4565 @param[in] Option The optional information.
4568 DisplayPointingDeviceInterface (
4573 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_INTERFACE
), gShellDebug1HiiHandle
);
4574 PRINT_INFO_OPTION (Interface
, Option
);
4575 PRINT_TABLE_ITEM (PointingDeviceInterfaceTable
, Interface
);
4579 Display Portable Battery (Type 22) information.
4581 @param[in] Key The key of the structure.
4582 @param[in] Option The optional information.
4585 DisplayPBDeviceChemistry (
4590 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORTABLE_BATT_DEV_CHEM
), gShellDebug1HiiHandle
);
4591 PRINT_INFO_OPTION (Key
, Option
);
4592 PRINT_TABLE_ITEM (PBDeviceChemistryTable
, Key
);
4596 Display Voltage Probe (Type 26) location information.
4598 @param[in] Key The key of the structure.
4599 @param[in] Option The optional information.
4609 Loc
= (UINT8
)((Key
& 0xE0) >> 5);
4610 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4611 PRINT_INFO_OPTION (Loc
, Option
);
4612 PRINT_TABLE_ITEM (VPLocationTable
, Loc
);
4616 Display Voltage Probe (Type 26) status ype information.
4618 @param[in] Key The key of the structure.
4619 @param[in] Option The optional information.
4629 Status
= (UINT8
)(Key
& 0x1F);
4630 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_STATUS
), gShellDebug1HiiHandle
);
4631 PRINT_INFO_OPTION (Status
, Option
);
4632 PRINT_TABLE_ITEM (VPStatusTable
, Status
);
4636 Display Cooling (Type 27) status information.
4638 @param[in] Key The key of the structure.
4639 @param[in] Option The optional information.
4642 DisplayCoolingDeviceStatus (
4649 Status
= (UINT8
)((Key
& 0xE0) >> 5);
4650 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_STATUS
), gShellDebug1HiiHandle
);
4651 PRINT_INFO_OPTION (Status
, Option
);
4652 PRINT_TABLE_ITEM (CoolingDeviceStatusTable
, Status
);
4656 Display Cooling (Type 27) type information.
4658 @param[in] Key The key of the structure.
4659 @param[in] Option The optional information.
4662 DisplayCoolingDeviceType (
4669 Type
= (UINT8
)(Key
& 0x1F);
4670 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_TYPE
), gShellDebug1HiiHandle
);
4671 PRINT_INFO_OPTION (Type
, Option
);
4672 PRINT_TABLE_ITEM (CoolingDeviceTypeTable
, Type
);
4676 Display Temperature Probe (Type 28) status information.
4678 @param[in] Key The key of the structure.
4679 @param[in] Option The optional information.
4682 DisplayTemperatureProbeStatus (
4689 Status
= (UINT8
)((Key
& 0xE0) >> 5);
4690 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_TEMP_PROBE
), gShellDebug1HiiHandle
);
4691 PRINT_INFO_OPTION (Status
, Option
);
4692 PRINT_TABLE_ITEM (TemperatureProbeStatusTable
, Status
);
4696 Display Temperature Probe (Type 28) location information.
4698 @param[in] Key The key of the structure.
4699 @param[in] Option The optional information.
4702 DisplayTemperatureProbeLoc (
4709 Loc
= (UINT8
)(Key
& 0x1F);
4710 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4711 PRINT_INFO_OPTION (Loc
, Option
);
4712 PRINT_TABLE_ITEM (TemperatureProbeLocTable
, Loc
);
4716 Display Electrical Current Probe (Type 29) status information.
4718 @param[in] Key The key of the structure.
4719 @param[in] Option The optional information.
4729 Status
= (UINT8
)((Key
& 0xE0) >> 5);
4730 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_STATUS
), gShellDebug1HiiHandle
);
4731 PRINT_INFO_OPTION (Status
, Option
);
4732 PRINT_TABLE_ITEM (ECPStatusTable
, Status
);
4736 Display Type 29 information.
4738 @param[in] Key The key of the structure.
4739 @param[in] Option The optional information.
4749 Loc
= (UINT8
)(Key
& 0x1F);
4750 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_LOC
), gShellDebug1HiiHandle
);
4751 PRINT_INFO_OPTION (Loc
, Option
);
4752 PRINT_TABLE_ITEM (ECPLocTable
, Loc
);
4756 Display Management Device (Type 34) Type.
4758 @param[in] Key The key of the structure.
4759 @param[in] Option The optional information.
4767 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_TYPE
), gShellDebug1HiiHandle
);
4768 PRINT_INFO_OPTION (Key
, Option
);
4769 PRINT_TABLE_ITEM (MDTypeTable
, Key
);
4773 Display Management Device (Type 34) Address Type.
4775 @param[in] Key The key of the structure.
4776 @param[in] Option The optional information.
4779 DisplayMDAddressType (
4784 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_ADDR_TYPE
), gShellDebug1HiiHandle
);
4785 PRINT_INFO_OPTION (Key
, Option
);
4786 PRINT_TABLE_ITEM (MDAddressTypeTable
, Key
);
4790 Display Memory Channel (Type 37) information.
4792 @param[in] Key The key of the structure.
4793 @param[in] Option The optional information.
4796 DisplayMemoryChannelType (
4801 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CHANNEL_TYPE
), gShellDebug1HiiHandle
);
4802 PRINT_INFO_OPTION (Key
, Option
);
4803 PRINT_TABLE_ITEM (MemoryChannelTypeTable
, Key
);
4807 Display IPMI Device Information (Type 38) information.
4809 @param[in] Key The key of the structure.
4810 @param[in] Option The optional information.
4813 DisplayIPMIDIBMCInterfaceType (
4818 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BMC_INTERFACE_TYPE
), gShellDebug1HiiHandle
);
4819 PRINT_INFO_OPTION (Key
, Option
);
4820 PRINT_TABLE_ITEM (IPMIDIBMCInterfaceTypeTable
, Key
);
4824 Display Management Controller Host Interface (Type 42) information.
4826 @param[in] Key The key of the structure.
4827 @param[in] Option The optional information.
4830 DisplayMCHostInterfaceType (
4835 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MC_HOST_INTERFACE_TYPE
), gShellDebug1HiiHandle
);
4836 PRINT_INFO_OPTION (Key
, Option
);
4837 PRINT_TABLE_ITEM (MCHostInterfaceTypeTable
, Key
);
4841 Display Processor Architecture Type (Type 44).
4843 @param[in] Key The key of the structure.
4844 @param[in] Option The optional information.
4847 DisplayProcessorArchitectureType (
4852 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROCESSOR_ARCH_TYPE
), gShellDebug1HiiHandle
);
4853 PRINT_INFO_OPTION (Key
, Option
);
4854 PRINT_TABLE_ITEM (ProcessorArchitectureTypesTable
, Key
);
4858 Display the structure type information.
4860 @param[in] Key The key of the structure.
4861 @param[in] Option The optional information.
4864 DisplayStructureTypeInfo (
4872 ShellPrintHiiEx (-1, -1, NULL
, STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_STRUCT_TYPE
), gShellDebug1HiiHandle
);
4873 PRINT_INFO_OPTION (Key
, Option
);
4874 PRINT_TABLE_ITEM (StructureTypeInfoTable
, Key
);