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"
1481 L
"PCI Express Gen 2"
1485 L
"PCI Express Gen 2 X1"
1489 L
"PCI Express Gen 2 X2"
1493 L
"PCI Express Gen 2 X4"
1497 L
"PCI Express Gen 2 X8"
1501 L
"PCI Express Gen 2 X16"
1505 L
"PCI Express Gen 3"
1509 L
"PCI Express Gen 3 X1"
1513 L
"PCI Express Gen 3 X2"
1517 L
"PCI Express Gen 3 X4"
1521 L
"PCI Express Gen 3 X8"
1525 L
"PCI Express Gen 3 X16"
1528 SlotTypePciExpressGen4
,
1529 L
"PCI Express Gen 4"
1532 SlotTypePciExpressGen4X1
,
1533 L
"PCI Express Gen 4 X1"
1536 SlotTypePciExpressGen4X2
,
1537 L
"PCI Express Gen 4 X2"
1540 SlotTypePciExpressGen4X4
,
1541 L
"PCI Express Gen 4 X4"
1544 SlotTypePciExpressGen4X8
,
1545 L
"PCI Express Gen 4 X8"
1548 SlotTypePciExpressGen4X16
,
1549 L
"PCI Express Gen 4 X16"
1553 TABLE_ITEM SystemSlotDataBusWidthTable
[] = {
1612 TABLE_ITEM SystemSlotCurrentUsageTable
[] = {
1635 TABLE_ITEM SystemSlotLengthTable
[] = {
1654 TABLE_ITEM SlotCharacteristics1Table
[] = {
1657 L
" Characteristics Unknown"
1661 L
" Provides 5.0 Volts"
1665 L
" Provides 3.3 Volts"
1669 L
" Slot's opening is shared with another slot, e.g. PCI/EISA shared slot."
1674 L
" PC Card slot supports PC Card-16"
1678 L
" PC Card slot supports CardBus"
1682 L
" PC Card slot supports Zoom Video "
1686 L
" PC Card slot supports Modem Ring Resume "
1690 TABLE_ITEM SlotCharacteristics2Table
[] = {
1693 L
" PCI slot supports Power Management Enable (PME#) signal"
1697 L
" Slot supports hot-plug devices"
1701 L
" PCI slot supports SMBus signal"
1705 L
" PCIe slot supports bifurcation"
1709 TABLE_ITEM OnboardDeviceTypesTable
[] = {
1752 TABLE_ITEM SELTypesTable
[] = {
1759 L
" Single-bit ECC memory error"
1763 L
" Multi-bit ECC memory error"
1767 L
" Parity memory error"
1775 L
" I/O Channel Check"
1783 L
" POST Memory Resize"
1791 L
" PCI Parity Error"
1795 L
" PCI System Error"
1803 L
" EISA FailSafe Timer time-out"
1807 L
" Correctable memory log disabled"
1811 L
" Logging disabled for a specific Event Type"
1819 L
" System Limit Exceeded"
1823 L
" Asynchronous hardware timer expired and issued a system reset"
1827 L
" System configuration information"
1831 L
" Hard-disk information"
1835 L
" System reconfigured"
1839 L
" Uncorrectable CPU-complex error"
1843 L
" Log Area Reset/Cleared"
1851 L
" Unused by SMBIOS specification"
1855 L
" System and OEM specified"
1863 TABLE_ITEM SELVarDataFormatTypeTable
[] = {
1878 L
" Multiple-Event Handle "
1882 L
" POST Results Bitmap "
1889 L
" System Management Type"
1896 L
" Multiple-Event System Management Type "
1908 TABLE_ITEM PostResultsBitmapDw1Table
[] = {
1911 L
" Channel 2 Timer error "
1915 L
" Master PIC (8259 #1) error "
1919 L
" Slave PIC (8259 #2) error "
1923 L
" CMOS Battery Failure "
1927 L
" CMOS System Options Not Set "
1931 L
" CMOS Checksum Error "
1935 L
" CMOS Configuration Error "
1939 L
" Mouse and Keyboard Swapped "
1943 L
" Keyboard Locked "
1947 L
" Keyboard Not Functional "
1951 L
" Keyboard Controller Not Functional "
1955 L
" CMOS Memory Size Different "
1959 L
" Memory Decreased in Size "
1963 L
" Cache Memory Error "
1967 L
" Floppy Drive 0 Error "
1971 L
" Floppy Drive 1 Error "
1975 L
" Floppy Controller Failure "
1979 L
" Number of ATA Drives Reduced Error "
1983 L
" CMOS Time Not Set "
1987 L
" DDC Monitor Configuration Change "
1991 L
" Reserved, set to 0 "
1995 L
" Reserved, set to 0 "
1999 L
" Reserved, set to 0 "
2003 L
" Reserved, set to 0 "
2007 L
" Second DWORD has valid data "
2011 L
" Reserved, set to 0 "
2015 L
" Reserved, set to 0 "
2019 L
" Reserved, set to 0 "
2023 L
" Normally 0; available for OEM assignment "
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 TABLE_ITEM PostResultsBitmapDw2Table
[] = {
2042 L
" Normally 0; available for OEM assignment "
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
" PCI Memory Conflict "
2074 L
" PCI I/O Conflict "
2078 L
" PCI IRQ Conflict "
2082 L
" PNP Memory Conflict "
2086 L
" PNP 32 bit Memory Conflict "
2090 L
" PNP I/O Conflict "
2094 L
" PNP IRQ Conflict "
2098 L
" PNP DMA Conflict "
2102 L
" Bad PNP Serial ID Checksum "
2106 L
" Bad PNP Resource Data Checksum "
2110 L
" Static Resource Conflict "
2114 L
" NVRAM Checksum Error, NVRAM Cleared "
2118 L
" System Board Device Resource Conflict "
2122 L
" Primary Output Device Not Found "
2126 L
" Primary Input Device Not Found "
2130 L
" Primary Boot Device Not Found "
2134 L
" NVRAM Cleared By Jumper "
2138 L
" NVRAM Data Invalid, NVRAM Cleared "
2142 L
" FDC Resource Conflict "
2146 L
" Primary ATA Controller Resource Conflict "
2150 L
" Secondary ATA Controller Resource Conflict "
2154 L
" Parallel Port Resource Conflict "
2158 L
" Serial Port 1 Resource Conflict "
2162 L
" Serial Port 2 Resource Conflict "
2166 L
" Audio Resource Conflict "
2170 TABLE_ITEM SELSysManagementTypesTable
[] = {
2173 L
" +2.5V Out of range, #2 "
2177 L
" +3.3V Out of range "
2181 L
" +5V Out of range "
2185 L
" -5V Out of range "
2189 L
" +12V Out of range "
2193 L
" -12V Out of range "
2197 L
" Reserved for future out-of-range voltage levels "
2201 L
" System board temperature out of range "
2205 L
" Processor #1 temperature out of range "
2209 L
" Processor #2 temperature out of range "
2213 L
" Processor #3 temperature out of range "
2217 L
" Processor #4 temperature out of range "
2221 L
" Reserved for future out-of-range temperatures"
2225 L
" Fan n (n = 0 to 7) Out of range "
2229 L
" Reserved for future assignment via this specification "
2233 L
" Chassis secure switch activated "
2237 TABLE_ITEM PMALocationTable
[] = {
2248 L
" System board or motherboard"
2256 L
" EISA add-on card"
2268 L
" PCMCIA add-on card"
2272 L
" Proprietary add-on card"
2280 L
" PC-98/C20 add-on card"
2284 L
" PC-98/C24 add-on card"
2288 L
" PC-98/E add-on card"
2292 L
" PC-98/Local bus add-on card"
2296 TABLE_ITEM PMAUseTable
[] = {
2319 L
" Non-volatile RAM"
2327 TABLE_ITEM PMAErrorCorrectionTypesTable
[] = {
2358 TABLE_ITEM MemoryDeviceFormFactorTable
[] = {
2389 L
" Proprietary Card"
2421 TABLE_ITEM MemoryDeviceTypeTable
[] = {
2532 L
" Logical non-volatile device"
2536 TABLE_ITEM MemoryDeviceTypeDetailTable
[] = {
2587 L
" Registered(Buffered)"
2591 L
" Unbuffered(Unregistered)"
2595 TABLE_ITEM MemoryDeviceMemoryTechnologyTable
[] = {
2622 L
" Intel persistent memory"
2626 TABLE_ITEM MemoryDeviceMemoryOperatingModeCapabilityTable
[] = {
2641 L
" Byte-accessible persistent memory"
2645 L
" Block-accessible persistent memory"
2650 TABLE_ITEM MemoryErrorTypeTable
[] = {
2673 L
" Single-bit error"
2677 L
" Double-bit error"
2697 L
" Corrected single-bit error"
2705 L
" Uncorrectable error"
2709 TABLE_ITEM MemoryErrorGranularityTable
[] = {
2724 L
" Memory partition level"
2728 TABLE_ITEM MemoryErrorOperationTable
[] = {
2751 TABLE_ITEM PointingDeviceTypeTable
[] = {
2782 TABLE_ITEM PointingDeviceInterfaceTable
[] = {
2813 L
" ADB(Apple Desktop Bus"
2821 L
" Bus mouse mirco-DIN"
2829 TABLE_ITEM PBDeviceChemistryTable
[] = {
2848 L
" Nickel metal hydride "
2860 L
" Lithium Polymer "
2864 TABLE_ITEM VPLocationTable
[] = {
2887 L
" Non-recoverable "
2891 TABLE_ITEM VPStatusTable
[] = {
2914 L
" System Management Module "
2926 L
" Processor Module "
2938 TABLE_ITEM CoolingDeviceStatusTable
[] = {
2961 L
" Non-recoverable "
2965 TABLE_ITEM CoolingDeviceTypeTable
[] = {
2980 L
" Centrifugal Blower "
2992 L
" Power Supply Fan "
3000 L
" Integrated Refrigeration "
3008 L
" Passive Cooling "
3012 TABLE_ITEM TemperatureProbeStatusTable
[] = {
3035 L
" Non-recoverable "
3039 TABLE_ITEM TemperatureProbeLocTable
[] = {
3062 L
" System Management Module "
3074 L
" Processor Module "
3086 TABLE_ITEM ECPStatusTable
[] = {
3109 L
" Non-recoverable "
3113 TABLE_ITEM ECPLocTable
[] = {
3136 L
" System Management Module "
3148 L
" Processor Module "
3160 TABLE_ITEM MDTypeTable
[] = {
3171 L
" National Semiconductor LM75 "
3175 L
" National Semiconductor LM78 "
3179 L
" National Semiconductor LM79 "
3183 L
" National Semiconductor LM80 "
3187 L
" National Semiconductor LM81 "
3191 L
" Analog Devices ADM9240 "
3195 L
" Dallas Semiconductor DS1780 "
3203 L
" Genesys GL518SM "
3207 L
" Winbond W83781D "
3211 L
" Holtek HT82H791 "
3215 TABLE_ITEM MDAddressTypeTable
[] = {
3238 TABLE_ITEM MemoryChannelTypeTable
[] = {
3257 TABLE_ITEM IPMIDIBMCInterfaceTypeTable
[] = {
3264 L
" KCS: Keyboard Controller Style "
3268 L
" SMIC: Server Management Interface Chip "
3272 L
" BT: Block Transfer "
3276 L
" SSIF: SMBus System Interface "
3280 L
" Reserved for future assignment by this specification "
3284 TABLE_ITEM MCHostInterfaceTypeTable
[] = {
3287 L
" MCTP Host Interface "
3291 L
" Network Host Interface "
3299 TABLE_ITEM ProcessorArchitectureTypesTable
[] = {
3310 L
" x64 (x86-64, intel64, AMD64, EM64T) "
3314 L
" Intel Itanium architecture "
3318 L
" 32-bit ARM (Aarch32) "
3322 L
" 64-bit ARM (Aarch64) "
3326 L
" 32-bit RISC-V (RV32) "
3330 L
" 64-bit RISC-V (RV64) "
3334 L
" 128-bit RISC-V (RV128) "
3338 TABLE_ITEM StructureTypeInfoTable
[] = {
3341 L
" BIOS Information"
3345 L
" System Information"
3349 L
" Base Board Information"
3353 L
" System Enclosure"
3357 L
" Processor Information"
3361 L
" Memory Controller Information "
3365 L
" Memory Module Information "
3369 L
" Cache Information "
3373 L
" Port Connector Information "
3381 L
" On Board Devices Information "
3389 L
" System Configuration Options "
3393 L
" BIOS Language Information "
3397 L
" Group Associations "
3401 L
" System Event Log "
3405 L
" Physical Memory Array "
3413 L
" 32-bit Memory Error Information "
3417 L
" Memory Array Mapped Address "
3421 L
" Memory Device Mapped Address "
3425 L
" Built-in Pointing Device "
3429 L
" Portable Battery "
3437 L
" Hardware Security "
3441 L
" System Power Controls "
3453 L
" Temperature Probe "
3457 L
" Electrical Current Probe "
3461 L
" Out-of-Band Remote Access "
3465 L
" Boot Integrity Services (BIS) Entry Point"
3469 L
" System Boot Information "
3473 L
" 64-bit Memory Error Information "
3477 L
" Management Device "
3481 L
" Management Device Component "
3485 L
" Management Device Threshold Data "
3493 L
" IPMI Device Information "
3497 L
" System Power Supply"
3501 L
" Additional Information"
3505 L
" Onboard Devices Extended Information"
3509 L
" Management Controller Host Interface"
3517 L
" Processor Additional Information"
3531 Given a table and a Key, return the responding info.
3534 Table[Index].Key is change from UINT8 to UINT16,
3535 in order to deal with "0xaa - 0xbb".
3538 DisplaySELVariableDataFormatTypes(UINT8 Type, UINT8 Option)
3541 Now define Key = 0x7F07, that is to say: High = 0x7F, Low = 0x07.
3542 Then all the Key Value between Low and High gets the same string
3545 @param[in] Table The begin address of table.
3546 @param[in] Number The number of table items.
3547 @param[in] Key The query Key.
3548 @param[in, out] Info Input as empty buffer; output as data buffer.
3549 @param[in] InfoLen The max number of characters for Info.
3551 @return the found Key and Info is valid.
3552 @retval QUERY_TABLE_UNFOUND and Info should be NULL.
3556 IN TABLE_ITEM
*Table
,
3559 IN OUT CHAR16
*Info
,
3565 // High byte and Low byte of word
3570 for (Index
= 0; Index
< Number
; Index
++) {
3571 High
= (UINT8
) (Table
[Index
].Key
>> 8);
3572 Low
= (UINT8
) (Table
[Index
].Key
& 0x00FF);
3575 // Check if Key is in the range
3576 // or if Key == Value in the table
3578 if ((High
> Low
&& Key
>= Low
&& Key
<= High
)
3579 || (Table
[Index
].Key
== Key
)) {
3580 StrnCpyS (Info
, InfoLen
, Table
[Index
].Info
, InfoLen
- 1);
3581 StrnCatS (Info
, InfoLen
, L
"\n", InfoLen
- 1 - StrLen(Info
));
3586 StrCpyS (Info
, InfoLen
, L
"Undefined Value\n");
3587 return QUERY_TABLE_UNFOUND
;
3591 Given a table of bit info and a Key, return the responding info to the Key.
3593 @param[in] Table Point to a table which maintains a map of 'bit' to 'message'.
3594 @param[in] Number Number of table items.
3595 @param[in] Bits The Key of query the bit map information.
3599 IN TABLE_ITEM
*Table
,
3605 // Get certain bit of 'Value':
3607 #define BIT(Value, bit) ((Value) & ((UINT32) 1) << (bit))
3609 // Clear certain bit of 'Value':
3611 #define CLR_BIT(Value, bit) ((Value) -= (BIT (Value, bit)))
3620 // query the table and print information
3622 for (Index
= 0; Index
< Number
; Index
++) {
3623 if (BIT (Value
, Table
[Index
].Key
) != 0) {
3626 // If it is not first info, print the separator first.
3630 Print (Table
[Index
].Info
);
3634 // clear the bit, for reserved bits test
3636 CLR_BIT (Value
, Table
[Index
].Key
);
3641 // There is no any info if FirstInfo is still TRUE.
3644 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_NO_INFO
), gShellDebug1HiiHandle
);
3648 ShellPrintHiiEx(-1,-1,NULL
,
3649 STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_BITS_SET
),
3650 gShellDebug1HiiHandle
,
3658 // //////////////////////////////////////////////////////////////////
3660 // Following uses QueryTable functions to simplify the coding.
3661 // QueryTable(), PrintBitsInfo()
3664 #define PRINT_TABLE_ITEM(Table, Key) \
3668 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3669 ZeroMem (Info, sizeof (Info)); \
3670 QueryTable (Table, Num, Key, Info, sizeof(Info)/sizeof(Info[0])); \
3674 #define PRINT_BITS_INFO(Table, bits) \
3677 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3678 PrintBitsInfo (Table, Num, (UINT32) bits); \
3682 Display System Information (Type 1) Type.
3684 @param[in] Type The key of the structure.
3685 @param[in] Option The optional information.
3688 DisplaySystemWakeupType (
3693 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_WAKEUP_TYPE
), gShellDebug1HiiHandle
);
3694 PRINT_INFO_OPTION (Type
, Option
);
3695 PRINT_TABLE_ITEM (SystemWakeupTypeTable
, Type
);
3699 Display Base Board (Type 2) Feature Flags.
3701 @param[in] FeatureFlags The key of the structure.
3702 @param[in] Option The optional information.
3705 DisplayBaseBoardFeatureFlags (
3706 IN UINT8 FeatureFlags
,
3710 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_FEATURE_FLAGS
), gShellDebug1HiiHandle
);
3711 PRINT_INFO_OPTION (FeatureFlags
, Option
);
3712 PRINT_BITS_INFO (BaseBoardFeatureFlagsTable
, FeatureFlags
);
3716 Display Base Board (Type 2) Board Type.
3718 @param[in] Type The key of the structure.
3719 @param[in] Option The optional information.
3722 DisplayBaseBoardBoardType(
3727 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_BOARD_TYPE
), gShellDebug1HiiHandle
);
3728 PRINT_INFO_OPTION (Type
, Option
);
3729 PRINT_TABLE_ITEM (BaseBoardBoardTypeTable
, Type
);
3733 Display System Enclosure (Type 3) Enclosure Type.
3735 @param[in] Type The key of the structure.
3736 @param[in] Option The optional information.
3739 DisplaySystemEnclosureType (
3744 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_TYPE
), gShellDebug1HiiHandle
);
3745 PRINT_INFO_OPTION (Type
, Option
);
3747 // query table and print info
3749 PRINT_TABLE_ITEM (SystemEnclosureTypeTable
, Type
);
3751 if (BIT (Type
, 7) != 0) {
3752 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CHASSIS_LOCK_PRESENT
), gShellDebug1HiiHandle
);
3757 Display System Enclosure (Type 3) Enclosure Status.
3759 @param[in] Status The key of the structure.
3760 @param[in] Option The optional information.
3763 DisplaySystemEnclosureStatus (
3768 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_STATUS
), gShellDebug1HiiHandle
);
3769 PRINT_INFO_OPTION (Status
, Option
);
3770 PRINT_TABLE_ITEM (SystemEnclosureStatusTable
, Status
);
3774 Display System Enclosure (Type 3) Security Status.
3776 @param[in] Status The key of the structure.
3777 @param[in] Option The optional information.
3780 DisplaySESecurityStatus (
3785 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_SECURITY
), gShellDebug1HiiHandle
);
3786 PRINT_INFO_OPTION (Status
, Option
);
3787 PRINT_TABLE_ITEM (SESecurityStatusTable
, Status
);
3791 Display Processor Information (Type 4) Type.
3793 @param[in] Type The key of the structure.
3794 @param[in] Option The optional information.
3797 DisplayProcessorType (
3802 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_TYPE
), gShellDebug1HiiHandle
);
3803 PRINT_INFO_OPTION (Type
, Option
);
3804 PRINT_TABLE_ITEM (ProcessorTypeTable
, Type
);
3808 Display Processor Information (Type 4) Upgrade.
3810 @param[in] Upgrade The key of the structure.
3811 @param[in] Option The optional information.
3814 DisplayProcessorUpgrade (
3819 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_UPDATE
), gShellDebug1HiiHandle
);
3820 PRINT_INFO_OPTION (Upgrade
, Option
);
3821 PRINT_TABLE_ITEM (ProcessorUpgradeTable
, Upgrade
);
3825 Display Processor Information (Type 4) Characteristics.
3827 @param[in] Type The key of the structure.
3828 @param[in] Option The optional information.
3831 DisplayProcessorCharacteristics (
3836 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_CHARACTERISTICS
), gShellDebug1HiiHandle
);
3837 PRINT_INFO_OPTION (Type
, Option
);
3838 PRINT_BITS_INFO (ProcessorCharacteristicsTable
, Type
);
3842 Display Memory Controller Information (Type 5) method.
3844 @param[in] Method The key of the structure.
3845 @param[in] Option The optional information.
3848 DisplayMcErrorDetectMethod (
3853 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DETECTMETHOD
), gShellDebug1HiiHandle
);
3854 PRINT_INFO_OPTION (Method
, Option
);
3855 PRINT_TABLE_ITEM (McErrorDetectMethodTable
, Method
);
3859 Display Memory Controller Information (Type 5) Capability.
3861 @param[in] Capability The key of the structure.
3862 @param[in] Option The optional information.
3865 DisplayMcErrorCorrectCapability (
3866 IN UINT8 Capability
,
3870 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CORRECT_CAPABILITY
), gShellDebug1HiiHandle
);
3871 PRINT_INFO_OPTION (Capability
, Option
);
3872 PRINT_BITS_INFO (McErrorCorrectCapabilityTable
, Capability
);
3876 Display Memory Controller Information (Type 5) Support.
3878 @param[in] Support The key of the structure.
3879 @param[in] Option The optional information.
3882 DisplayMcInterleaveSupport (
3887 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_INTERLEAVE_SUPPORT
), gShellDebug1HiiHandle
);
3888 PRINT_INFO_OPTION (Support
, Option
);
3889 PRINT_TABLE_ITEM (McInterleaveSupportTable
, Support
);
3893 Display Memory Controller Information (Type 5) speeds.
3895 @param[in] Speed The key of the structure.
3896 @param[in] Option The optional information.
3899 DisplayMcMemorySpeeds (
3904 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MEMORY_SPEED
), gShellDebug1HiiHandle
);
3905 PRINT_INFO_OPTION (Speed
, Option
);
3906 PRINT_BITS_INFO (McMemorySpeedsTable
, Speed
);
3910 Display Memory Controller Information (Type 5) voltage.
3912 @param[in] Voltage The key of the structure.
3913 @param[in] Option The optional information.
3916 DisplayMemoryModuleVoltage (
3921 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_REQUIRED_VOLTAGES
), gShellDebug1HiiHandle
);
3922 PRINT_INFO_OPTION (Voltage
, Option
);
3923 PRINT_BITS_INFO (MemoryModuleVoltageTable
, Voltage
);
3927 Display Memory Module Information (Type 6) type.
3929 @param[in] Type The key of the structure.
3930 @param[in] Option The optional information.
3933 DisplayMmMemoryType (
3938 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_TYPE
), gShellDebug1HiiHandle
);
3939 PRINT_INFO_OPTION (Type
, Option
);
3940 PRINT_BITS_INFO (MmMemoryTypeTable
, Type
);
3944 Display Memory Module Information (Type 6) status.
3946 @param[in] Status The key of the structure.
3947 @param[in] Option The optional information.
3950 DisplayMmErrorStatus (
3955 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_ERROR_STATUS
), gShellDebug1HiiHandle
);
3956 PRINT_INFO_OPTION (Status
, Option
);
3957 PRINT_BITS_INFO (MmErrorStatusTable
, Status
);
3961 Display Cache Information (Type 7) SRAM Type.
3963 @param[in] Type The key of the structure.
3964 @param[in] Option The optional information.
3967 DisplayCacheSRAMType (
3972 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SRAM_TYPE
), gShellDebug1HiiHandle
);
3973 PRINT_INFO_OPTION ((UINT8
) Type
, Option
);
3974 PRINT_BITS_INFO (CacheSRAMTypeTable
, (UINT8
) Type
);
3978 Display Cache Information (Type 7) correcting Type.
3980 @param[in] Type The key of the structure.
3981 @param[in] Option The optional information.
3984 DisplayCacheErrCorrectingType (
3989 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ERROR_CORRECTING
), gShellDebug1HiiHandle
);
3990 PRINT_INFO_OPTION (Type
, Option
);
3991 PRINT_TABLE_ITEM (CacheErrCorrectingTypeTable
, Type
);
3995 Display Cache Information (Type 7) Type.
3997 @param[in] Type The key of the structure.
3998 @param[in] Option The optional information.
4001 DisplayCacheSystemCacheType (
4006 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SYSTEM_TYPE
), gShellDebug1HiiHandle
);
4007 PRINT_INFO_OPTION (Type
, Option
);
4008 PRINT_TABLE_ITEM (CacheSystemCacheTypeTable
, Type
);
4012 Display Cache Information (Type 7) Associativity.
4014 @param[in] Associativity The key of the structure.
4015 @param[in] Option The optional information.
4018 DisplayCacheAssociativity (
4019 IN UINT8 Associativity
,
4023 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ASSOCIATIVITY
), gShellDebug1HiiHandle
);
4024 PRINT_INFO_OPTION (Associativity
, Option
);
4025 PRINT_TABLE_ITEM (CacheAssociativityTable
, Associativity
);
4029 Display Port Connector Information (Type 8) type.
4031 @param[in] Type The key of the structure.
4032 @param[in] Option The optional information.
4035 DisplayPortConnectorType (
4040 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_CONNECTOR_TYPE
), gShellDebug1HiiHandle
);
4041 PRINT_INFO_OPTION (Type
, Option
);
4042 PRINT_TABLE_ITEM (PortConnectorTypeTable
, Type
);
4046 Display Port Connector Information (Type 8) port type.
4048 @param[in] Type The key of the structure.
4049 @param[in] Option The optional information.
4057 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_TYPE
), gShellDebug1HiiHandle
);
4058 PRINT_INFO_OPTION (Type
, Option
);
4059 PRINT_TABLE_ITEM (PortTypeTable
, Type
);
4063 Display System Slots (Type 9) slot type.
4065 @param[in] Type The key of the structure.
4066 @param[in] Option The optional information.
4069 DisplaySystemSlotType (
4074 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_TYPE
), gShellDebug1HiiHandle
);
4075 PRINT_INFO_OPTION (Type
, Option
);
4076 PRINT_TABLE_ITEM (SystemSlotTypeTable
, Type
);
4080 Display System Slots (Type 9) data bus width.
4082 @param[in] Width The key of the structure.
4083 @param[in] Option The optional information.
4086 DisplaySystemSlotDataBusWidth (
4091 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_DATA
), gShellDebug1HiiHandle
);
4092 PRINT_INFO_OPTION (Width
, Option
);
4093 PRINT_TABLE_ITEM (SystemSlotDataBusWidthTable
, Width
);
4097 Display System Slots (Type 9) usage information.
4099 @param[in] Usage The key of the structure.
4100 @param[in] Option The optional information.
4103 DisplaySystemSlotCurrentUsage (
4108 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_CURRENT_USAGE
), gShellDebug1HiiHandle
);
4109 PRINT_INFO_OPTION (Usage
, Option
);
4110 PRINT_TABLE_ITEM (SystemSlotCurrentUsageTable
, Usage
);
4114 Display System Slots (Type 9) slot length.
4116 @param[in] Length The key of the structure.
4117 @param[in] Option The optional information.
4120 DisplaySystemSlotLength (
4125 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_LENGTH
), gShellDebug1HiiHandle
);
4126 PRINT_INFO_OPTION (Length
, Option
);
4127 PRINT_TABLE_ITEM (SystemSlotLengthTable
, Length
);
4131 Display System Slots (Type 9) characteristics.
4133 @param[in] Chara1 The key of the structure.
4134 @param[in] Option The optional information.
4137 DisplaySlotCharacteristics1 (
4142 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS
), gShellDebug1HiiHandle
);
4143 PRINT_INFO_OPTION (Chara1
, Option
);
4144 PRINT_BITS_INFO (SlotCharacteristics1Table
, Chara1
);
4148 Display System Slots (Type 9) characteristics.
4150 @param[in] Chara2 The key of the structure.
4151 @param[in] Option The optional information.
4154 DisplaySlotCharacteristics2 (
4159 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS_2
), gShellDebug1HiiHandle
);
4160 PRINT_INFO_OPTION (Chara2
, Option
);
4161 PRINT_BITS_INFO (SlotCharacteristics2Table
, Chara2
);
4165 Display On Board Devices Information (Type 10) types.
4167 @param[in] Type The key of the structure.
4168 @param[in] Option The optional information.
4171 DisplayOnboardDeviceTypes (
4176 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ONBOARD_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4177 PRINT_INFO_OPTION (Type
, Option
);
4178 PRINT_TABLE_ITEM (OnboardDeviceTypesTable
, Type
);
4182 Display System Event Log (Type 15) types.
4184 @param[in] Type The key of the structure.
4185 @param[in] Option The optional information.
4193 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_EVENT_LOG_TYPE
), gShellDebug1HiiHandle
);
4194 PRINT_INFO_OPTION (Type
, Option
);
4195 PRINT_TABLE_ITEM (SELTypesTable
, Type
);
4199 Display System Event Log (Type 15) format type.
4201 @param[in] Type The key of the structure.
4202 @param[in] Option The optional information.
4205 DisplaySELVarDataFormatType (
4210 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_EVENT_LOG_VAR_DATA_FORMAT
), gShellDebug1HiiHandle
);
4211 PRINT_INFO_OPTION (Type
, Option
);
4212 PRINT_TABLE_ITEM (SELVarDataFormatTypeTable
, Type
);
4216 Display System Event Log (Type 15) dw1.
4218 @param[in] Key The key of the structure.
4219 @param[in] Option The optional information.
4222 DisplayPostResultsBitmapDw1 (
4227 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_BITMAP
), gShellDebug1HiiHandle
);
4228 PRINT_INFO_OPTION (Key
, Option
);
4229 PRINT_BITS_INFO (PostResultsBitmapDw1Table
, Key
);
4233 Display System Event Log (Type 15) dw2.
4235 @param[in] Key The key of the structure.
4236 @param[in] Option The optional information.
4239 DisplayPostResultsBitmapDw2 (
4244 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_SECOND_DWORD
), gShellDebug1HiiHandle
);
4245 PRINT_INFO_OPTION (Key
, Option
);
4246 PRINT_BITS_INFO (PostResultsBitmapDw2Table
, Key
);
4250 Display System Event Log (Type 15) type.
4252 @param[in] SMType The key of the structure.
4253 @param[in] Option The optional information.
4256 DisplaySELSysManagementTypes (
4263 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_TYPES
), gShellDebug1HiiHandle
);
4264 PRINT_INFO_OPTION (SMType
, Option
);
4267 // Deal with wide range Value
4269 if (SMType
>= 0x80000000) {
4270 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_OEM_ASSIGNED
), gShellDebug1HiiHandle
);
4271 } else if (SMType
>= 0x00020000) {
4272 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
4273 } else if (SMType
>= 0x00010000) {
4274 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_PROBE
), gShellDebug1HiiHandle
);
4275 } else if (SMType
>= 0x31) {
4276 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
4279 // Deal with One byte data
4281 Temp
= (UINT8
) (SMType
& 0x3F);
4282 PRINT_TABLE_ITEM (SELSysManagementTypesTable
, Temp
);
4287 Display Physical Memory Array (Type 16) Location.
4289 @param[in] Location The key of the structure.
4290 @param[in] Option The optional information.
4293 DisplayPMALocation (
4298 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_LOCATION
), gShellDebug1HiiHandle
);
4299 PRINT_INFO_OPTION (Location
, Option
);
4300 PRINT_TABLE_ITEM (PMALocationTable
, Location
);
4304 Display Physical Memory Array (Type 16) Use.
4306 @param[in] Use The key of the structure.
4307 @param[in] Option The optional information.
4315 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_USE
), gShellDebug1HiiHandle
);
4316 PRINT_INFO_OPTION (Use
, Option
);
4317 PRINT_TABLE_ITEM (PMAUseTable
, Use
);
4321 Display Physical Memory Array (Type 16) Types.
4323 @param[in] Type The key of the structure.
4324 @param[in] Option The optional information.
4327 DisplayPMAErrorCorrectionTypes (
4332 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_ERROR
), gShellDebug1HiiHandle
);
4333 PRINT_INFO_OPTION (Type
, Option
);
4334 PRINT_TABLE_ITEM (PMAErrorCorrectionTypesTable
, Type
);
4338 Display Memory Device (Type 17) form factor.
4340 @param[in] FormFactor The key of the structure.
4341 @param[in] Option The optional information.
4344 DisplayMemoryDeviceFormFactor (
4345 IN UINT8 FormFactor
,
4349 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_FORM_FACTOR
), gShellDebug1HiiHandle
);
4350 PRINT_INFO_OPTION (FormFactor
, Option
);
4351 PRINT_TABLE_ITEM (MemoryDeviceFormFactorTable
, FormFactor
);
4355 Display Memory Device (Type 17) type.
4357 @param[in] Type The key of the structure.
4358 @param[in] Option The optional information.
4361 DisplayMemoryDeviceType (
4366 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4367 PRINT_INFO_OPTION (Type
, Option
);
4368 PRINT_TABLE_ITEM (MemoryDeviceTypeTable
, Type
);
4372 Display Memory Device (Type 17) details.
4374 @param[in] Para The key of the structure.
4375 @param[in] Option The optional information.
4378 DisplayMemoryDeviceTypeDetail (
4383 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE_DETAIL
), gShellDebug1HiiHandle
);
4384 PRINT_INFO_OPTION (Para
, Option
);
4385 PRINT_BITS_INFO (MemoryDeviceTypeDetailTable
, Para
);
4389 Display Memory Device (Type 17) memory technology.
4391 @param[in] Para The key of the structure.
4392 @param[in] Option The optional information.
4395 DisplayMemoryDeviceMemoryTechnology (
4400 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_MEMORY_TECHNOLOGY
), gShellDebug1HiiHandle
);
4401 PRINT_INFO_OPTION (Para
, Option
);
4402 PRINT_TABLE_ITEM (MemoryDeviceMemoryTechnologyTable
, Para
);
4406 Display Memory Device (Type 17) memory operating mode capability.
4408 @param[in] Para The key of the structure.
4409 @param[in] Option The optional information.
4412 DisplayMemoryDeviceMemoryOperatingModeCapability (
4417 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_MEM_OPER_MODE_CAPA
), gShellDebug1HiiHandle
);
4418 PRINT_INFO_OPTION (Para
, Option
);
4419 PRINT_BITS_INFO (MemoryDeviceMemoryOperatingModeCapabilityTable
, Para
);
4423 Display 32-bit Memory Error Information (Type 18) type.
4425 @param[in] ErrorType The key of the structure.
4426 @param[in] Option The optional information.
4429 DisplayMemoryErrorType (
4434 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_INFO
), gShellDebug1HiiHandle
);
4435 PRINT_INFO_OPTION (ErrorType
, Option
);
4436 PRINT_TABLE_ITEM (MemoryErrorTypeTable
, ErrorType
);
4440 Display 32-bit Memory Error Information (Type 18) error granularity.
4442 @param[in] Granularity The key of the structure.
4443 @param[in] Option The optional information.
4446 DisplayMemoryErrorGranularity (
4447 IN UINT8 Granularity
,
4451 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_GRANULARITY
), gShellDebug1HiiHandle
);
4452 PRINT_INFO_OPTION (Granularity
, Option
);
4453 PRINT_TABLE_ITEM (MemoryErrorGranularityTable
, Granularity
);
4457 Display 32-bit Memory Error Information (Type 18) error information.
4459 @param[in] Operation The key of the structure.
4460 @param[in] Option The optional information.
4463 DisplayMemoryErrorOperation (
4468 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_OP
), gShellDebug1HiiHandle
);
4469 PRINT_INFO_OPTION (Operation
, Option
);
4470 PRINT_TABLE_ITEM (MemoryErrorOperationTable
, Operation
);
4474 Display Built-in Pointing Device (Type 21) type information.
4476 @param[in] Type The key of the structure.
4477 @param[in] Option The optional information.
4480 DisplayPointingDeviceType (
4485 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4486 PRINT_INFO_OPTION (Type
, Option
);
4487 PRINT_TABLE_ITEM (PointingDeviceTypeTable
, Type
);
4491 Display Built-in Pointing Device (Type 21) information.
4493 @param[in] Interface The key of the structure.
4494 @param[in] Option The optional information.
4497 DisplayPointingDeviceInterface (
4502 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_INTERFACE
), gShellDebug1HiiHandle
);
4503 PRINT_INFO_OPTION (Interface
, Option
);
4504 PRINT_TABLE_ITEM (PointingDeviceInterfaceTable
, Interface
);
4508 Display Portable Battery (Type 22) information.
4510 @param[in] Key The key of the structure.
4511 @param[in] Option The optional information.
4514 DisplayPBDeviceChemistry (
4519 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORTABLE_BATT_DEV_CHEM
), gShellDebug1HiiHandle
);
4520 PRINT_INFO_OPTION (Key
, Option
);
4521 PRINT_TABLE_ITEM (PBDeviceChemistryTable
, Key
);
4525 Display Voltage Probe (Type 26) location information.
4527 @param[in] Key The key of the structure.
4528 @param[in] Option The optional information.
4538 Loc
= (UINT8
) ((Key
& 0xE0) >> 5);
4539 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4540 PRINT_INFO_OPTION (Loc
, Option
);
4541 PRINT_TABLE_ITEM (VPLocationTable
, Loc
);
4545 Display Voltage Probe (Type 26) status ype information.
4547 @param[in] Key The key of the structure.
4548 @param[in] Option The optional information.
4558 Status
= (UINT8
) (Key
& 0x1F);
4559 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_STATUS
), gShellDebug1HiiHandle
);
4560 PRINT_INFO_OPTION (Status
, Option
);
4561 PRINT_TABLE_ITEM (VPStatusTable
, Status
);
4565 Display Cooling (Type 27) status information.
4567 @param[in] Key The key of the structure.
4568 @param[in] Option The optional information.
4571 DisplayCoolingDeviceStatus (
4578 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4579 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_STATUS
), gShellDebug1HiiHandle
);
4580 PRINT_INFO_OPTION (Status
, Option
);
4581 PRINT_TABLE_ITEM (CoolingDeviceStatusTable
, Status
);
4585 Display Cooling (Type 27) type information.
4587 @param[in] Key The key of the structure.
4588 @param[in] Option The optional information.
4591 DisplayCoolingDeviceType (
4598 Type
= (UINT8
) (Key
& 0x1F);
4599 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_TYPE
), gShellDebug1HiiHandle
);
4600 PRINT_INFO_OPTION (Type
, Option
);
4601 PRINT_TABLE_ITEM (CoolingDeviceTypeTable
, Type
);
4605 Display Temperature Probe (Type 28) status information.
4607 @param[in] Key The key of the structure.
4608 @param[in] Option The optional information.
4611 DisplayTemperatureProbeStatus (
4618 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4619 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_TEMP_PROBE
), gShellDebug1HiiHandle
);
4620 PRINT_INFO_OPTION (Status
, Option
);
4621 PRINT_TABLE_ITEM (TemperatureProbeStatusTable
, Status
);
4625 Display Temperature Probe (Type 28) location information.
4627 @param[in] Key The key of the structure.
4628 @param[in] Option The optional information.
4631 DisplayTemperatureProbeLoc (
4638 Loc
= (UINT8
) (Key
& 0x1F);
4639 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4640 PRINT_INFO_OPTION (Loc
, Option
);
4641 PRINT_TABLE_ITEM (TemperatureProbeLocTable
, Loc
);
4645 Display Electrical Current Probe (Type 29) status information.
4647 @param[in] Key The key of the structure.
4648 @param[in] Option The optional information.
4658 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4659 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_STATUS
), gShellDebug1HiiHandle
);
4660 PRINT_INFO_OPTION (Status
, Option
);
4661 PRINT_TABLE_ITEM (ECPStatusTable
, Status
);
4665 Display Type 29 information.
4667 @param[in] Key The key of the structure.
4668 @param[in] Option The optional information.
4678 Loc
= (UINT8
) (Key
& 0x1F);
4679 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_LOC
), gShellDebug1HiiHandle
);
4680 PRINT_INFO_OPTION (Loc
, Option
);
4681 PRINT_TABLE_ITEM (ECPLocTable
, Loc
);
4685 Display Management Device (Type 34) Type.
4687 @param[in] Key The key of the structure.
4688 @param[in] Option The optional information.
4696 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_TYPE
), gShellDebug1HiiHandle
);
4697 PRINT_INFO_OPTION (Key
, Option
);
4698 PRINT_TABLE_ITEM (MDTypeTable
, Key
);
4702 Display Management Device (Type 34) Address Type.
4704 @param[in] Key The key of the structure.
4705 @param[in] Option The optional information.
4708 DisplayMDAddressType (
4713 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_ADDR_TYPE
), gShellDebug1HiiHandle
);
4714 PRINT_INFO_OPTION (Key
, Option
);
4715 PRINT_TABLE_ITEM (MDAddressTypeTable
, Key
);
4719 Display Memory Channel (Type 37) information.
4721 @param[in] Key The key of the structure.
4722 @param[in] Option The optional information.
4725 DisplayMemoryChannelType (
4730 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CHANNEL_TYPE
), gShellDebug1HiiHandle
);
4731 PRINT_INFO_OPTION (Key
, Option
);
4732 PRINT_TABLE_ITEM (MemoryChannelTypeTable
, Key
);
4736 Display IPMI Device Information (Type 38) information.
4738 @param[in] Key The key of the structure.
4739 @param[in] Option The optional information.
4742 DisplayIPMIDIBMCInterfaceType (
4747 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BMC_INTERFACE_TYPE
), gShellDebug1HiiHandle
);
4748 PRINT_INFO_OPTION (Key
, Option
);
4749 PRINT_TABLE_ITEM (IPMIDIBMCInterfaceTypeTable
, Key
);
4753 Display Management Controller Host Interface (Type 42) information.
4755 @param[in] Key The key of the structure.
4756 @param[in] Option The optional information.
4759 DisplayMCHostInterfaceType (
4764 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MC_HOST_INTERFACE_TYPE
), gShellDebug1HiiHandle
);
4765 PRINT_INFO_OPTION (Key
, Option
);
4766 PRINT_TABLE_ITEM (MCHostInterfaceTypeTable
, Key
);
4770 Display Processor Architecture Type (Type 44).
4772 @param[in] Key The key of the structure.
4773 @param[in] Option The optional information.
4776 DisplayProcessorArchitectureType (
4781 ShellPrintHiiEx (-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROCESSOR_ARCH_TYPE
), gShellDebug1HiiHandle
);
4782 PRINT_INFO_OPTION (Key
, Option
);
4783 PRINT_TABLE_ITEM (ProcessorArchitectureTypesTable
, Key
);
4787 Display the structure type information.
4789 @param[in] Key The key of the structure.
4790 @param[in] Option The optional information.
4793 DisplayStructureTypeInfo (
4801 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_STRUCT_TYPE
), gShellDebug1HiiHandle
);
4802 PRINT_INFO_OPTION (Key
, Option
);
4803 PRINT_TABLE_ITEM (StructureTypeInfoTable
, Key
);