2 Build a table, each item is (Key, Info) pair.
3 And give a interface of query a string out of a table.
5 Copyright (c) 2005 - 2019, Intel Corporation. All rights reserved.<BR>
6 (C) Copyright 2016-2019 Hewlett Packard Enterprise Development LP<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #include "UefiShellDebug1CommandsLib.h"
12 #include "QueryTable.h"
13 #include "PrintInfo.h"
15 TABLE_ITEM SystemWakeupTypeTable
[] = {
50 TABLE_ITEM BaseBoardFeatureFlagsTable
[] = {
57 L
" Requires at least one daughter board or auxiliary card"
73 TABLE_ITEM BaseBoardBoardTypeTable
[] = {
88 L
" Connectivity Switch"
92 L
" System Management Module"
116 L
" Processor/Memory Module"
120 L
" Processor/IO Module"
124 L
" Interconnect Board"
128 TABLE_ITEM SystemEnclosureTypeTable
[] = {
143 L
" Low Profile Desktop"
191 L
" Main Server Chassis"
195 L
" Expansion Chassis"
207 L
" Bus Expansion Chassis"
211 L
" Peripheral Chassis"
219 L
" Rack Mount Chassis"
227 L
" Multi-system Chassis"
275 TABLE_ITEM SystemEnclosureStatusTable
[] = {
302 TABLE_ITEM SESecurityStatusTable
[] = {
317 L
" External interface locked out"
321 L
" External interface enabled"
325 TABLE_ITEM ProcessorTypeTable
[] = {
336 L
" Central Processor"
352 TABLE_ITEM ProcessorUpgradeTable
[] = {
371 L
"Replaceable Piggy Back"
595 TABLE_ITEM ProcessorCharacteristicsTable
[] = {
614 L
" Execute Protection"
618 L
" Enhanced Virtualization"
622 L
" Power/Performance Control"
631 TABLE_ITEM McErrorDetectMethodTable
[] = {
666 TABLE_ITEM McErrorCorrectCapabilityTable
[] = {
681 L
"Single Bit Error Correcting"
685 L
"Double Bit Error Correcting"
693 TABLE_ITEM McInterleaveSupportTable
[] = {
704 L
"One Way Interleave"
708 L
"Two Way Interleave"
712 L
"Four Way Interleave"
716 L
"Eight Way Interleave"
720 L
"Sixteen Way Interleave"
724 TABLE_ITEM McMemorySpeedsTable
[] = {
747 TABLE_ITEM MemoryModuleVoltageTable
[] = {
762 TABLE_ITEM MmMemoryTypeTable
[] = {
809 TABLE_ITEM MmErrorStatusTable
[] = {
812 L
" Uncorrectable errors received"
816 L
" Correctable errors received"
820 L
" Error Status obtained from the event log"
824 TABLE_ITEM CacheSRAMTypeTable
[] = {
855 TABLE_ITEM CacheErrCorrectingTypeTable
[] = {
882 TABLE_ITEM CacheSystemCacheTypeTable
[] = {
905 TABLE_ITEM CacheAssociativityTable
[] = {
920 L
"2-way Set-Associative"
924 L
"4-way Set-Associative"
932 L
"8-way Set-Associative"
936 L
"16-way Set-Associative"
940 L
"12-way Set-Associative"
944 L
"24-way Set-Associative"
948 L
"32-way Set-Associative"
952 L
"48-way Set-Associative"
956 L
"64-way Set-Associative"
960 L
"20-way Set-Associative"
964 TABLE_ITEM PortConnectorTypeTable
[] = {
1047 L
"Circular DIN-8 male"
1051 L
"Circular DIN-8 female"
1063 L
"9 Pin Dual Inline (pin 10 cut)"
1067 L
"25 Pin Dual Inline (pin 26 cut)"
1071 L
"50 Pin Dual Inline"
1075 L
"68 Pin Dual Inline"
1079 L
"On Board Sound Input from CD-ROM"
1083 L
"Mini-Centronics Type-14"
1087 L
"Mini-Centronics Type-26"
1091 L
"Mini-jack (headphones)"
1103 L
"SAS/SATA Plug Receptacle"
1107 L
"USB Type-C Receptacle"
1135 TABLE_ITEM PortTypeTable
[] = {
1142 L
"Parallel Port XT/AT Compatible"
1146 L
"Parallel Port PS/2"
1150 L
"Parallel Port ECP"
1154 L
"Parallel Port EPP"
1158 L
"Parallel Port ECP/EPP"
1162 L
"Serial Port XT/AT Compatible"
1166 L
"Serial Port 16450 Compatible"
1170 L
"Serial Port 16550 Compatible"
1174 L
"Serial Port 16550A Compatible"
1206 L
"FireWire (IEEE P1394)"
1274 L
"Multi-Function Display Port (MFDP)"
1286 L
"8251 FIFO Compatible"
1294 TABLE_ITEM SystemSlotTypeTable
[] = {
1333 L
"Processor Card Slot"
1337 L
"Proprietary Memory Card Slot"
1341 L
"I/O Riser Card Slot"
1349 L
"PCI - 66MHz Capable"
1373 L
"M.2 Socket 1-DP (Mechanical Key A)"
1377 L
"M.2 Socket 1-SD (Mechanical Key E)"
1381 L
"M.2 Socket 2 (Mechanical Key B)"
1385 L
"M.2 Socket 3 (Mechanical Key M)"
1397 L
"MXM Type III (standard connector)"
1401 L
"MXM Type III (HE connector)"
1417 L
"PCI Express Gen 2 SFF-8639"
1421 L
"PCI Express Gen 3 SFF-8639"
1425 L
"PCI Express Mini 52-pin (CEM spec. 2.0) with bottom-side keep-outs"
1429 L
"PCI Express Mini 52-pin (CEM spec. 2.0) without bottom-side keep-outs"
1433 L
"PCI Express Mini 76-pin (CEM spec. 2.0) Corresponds to Display-Mini card"
1436 SlotTypeCXLFlexbus10
,
1485 L
"PCI Express Gen 2"
1489 L
"PCI Express Gen 2 X1"
1493 L
"PCI Express Gen 2 X2"
1497 L
"PCI Express Gen 2 X4"
1501 L
"PCI Express Gen 2 X8"
1505 L
"PCI Express Gen 2 X16"
1509 L
"PCI Express Gen 3"
1513 L
"PCI Express Gen 3 X1"
1517 L
"PCI Express Gen 3 X2"
1521 L
"PCI Express Gen 3 X4"
1525 L
"PCI Express Gen 3 X8"
1529 L
"PCI Express Gen 3 X16"
1532 SlotTypePciExpressGen4
,
1533 L
"PCI Express Gen 4"
1536 SlotTypePciExpressGen4X1
,
1537 L
"PCI Express Gen 4 X1"
1540 SlotTypePciExpressGen4X2
,
1541 L
"PCI Express Gen 4 X2"
1544 SlotTypePciExpressGen4X4
,
1545 L
"PCI Express Gen 4 X4"
1548 SlotTypePciExpressGen4X8
,
1549 L
"PCI Express Gen 4 X8"
1552 SlotTypePciExpressGen4X16
,
1553 L
"PCI Express Gen 4 X16"
1557 TABLE_ITEM SystemSlotDataBusWidthTable
[] = {
1616 TABLE_ITEM SystemSlotCurrentUsageTable
[] = {
1639 TABLE_ITEM SystemSlotLengthTable
[] = {
1658 TABLE_ITEM SlotCharacteristics1Table
[] = {
1661 L
" Characteristics Unknown"
1665 L
" Provides 5.0 Volts"
1669 L
" Provides 3.3 Volts"
1673 L
" Slot's opening is shared with another slot, e.g. PCI/EISA shared slot."
1678 L
" PC Card slot supports PC Card-16"
1682 L
" PC Card slot supports CardBus"
1686 L
" PC Card slot supports Zoom Video "
1690 L
" PC Card slot supports Modem Ring Resume "
1694 TABLE_ITEM SlotCharacteristics2Table
[] = {
1697 L
" PCI slot supports Power Management Enable (PME#) signal"
1701 L
" Slot supports hot-plug devices"
1705 L
" PCI slot supports SMBus signal"
1709 L
" PCIe slot supports bifurcation"
1713 TABLE_ITEM OnboardDeviceTypesTable
[] = {
1756 TABLE_ITEM SELTypesTable
[] = {
1763 L
" Single-bit ECC memory error"
1767 L
" Multi-bit ECC memory error"
1771 L
" Parity memory error"
1779 L
" I/O Channel Check"
1787 L
" POST Memory Resize"
1795 L
" PCI Parity Error"
1799 L
" PCI System Error"
1807 L
" EISA FailSafe Timer time-out"
1811 L
" Correctable memory log disabled"
1815 L
" Logging disabled for a specific Event Type"
1823 L
" System Limit Exceeded"
1827 L
" Asynchronous hardware timer expired and issued a system reset"
1831 L
" System configuration information"
1835 L
" Hard-disk information"
1839 L
" System reconfigured"
1843 L
" Uncorrectable CPU-complex error"
1847 L
" Log Area Reset/Cleared"
1855 L
" Unused by SMBIOS specification"
1859 L
" System and OEM specified"
1867 TABLE_ITEM SELVarDataFormatTypeTable
[] = {
1882 L
" Multiple-Event Handle "
1886 L
" POST Results Bitmap "
1893 L
" System Management Type"
1900 L
" Multiple-Event System Management Type "
1912 TABLE_ITEM PostResultsBitmapDw1Table
[] = {
1915 L
" Channel 2 Timer error "
1919 L
" Master PIC (8259 #1) error "
1923 L
" Slave PIC (8259 #2) error "
1927 L
" CMOS Battery Failure "
1931 L
" CMOS System Options Not Set "
1935 L
" CMOS Checksum Error "
1939 L
" CMOS Configuration Error "
1943 L
" Mouse and Keyboard Swapped "
1947 L
" Keyboard Locked "
1951 L
" Keyboard Not Functional "
1955 L
" Keyboard Controller Not Functional "
1959 L
" CMOS Memory Size Different "
1963 L
" Memory Decreased in Size "
1967 L
" Cache Memory Error "
1971 L
" Floppy Drive 0 Error "
1975 L
" Floppy Drive 1 Error "
1979 L
" Floppy Controller Failure "
1983 L
" Number of ATA Drives Reduced Error "
1987 L
" CMOS Time Not Set "
1991 L
" DDC Monitor Configuration Change "
1995 L
" Reserved, set to 0 "
1999 L
" Reserved, set to 0 "
2003 L
" Reserved, set to 0 "
2007 L
" Reserved, set to 0 "
2011 L
" Second DWORD has valid data "
2015 L
" Reserved, set to 0 "
2019 L
" Reserved, set to 0 "
2023 L
" Reserved, set to 0 "
2027 L
" Normally 0; available for OEM assignment "
2031 L
" Normally 0; available for OEM assignment "
2035 L
" Normally 0; available for OEM assignment "
2039 L
" Normally 0; available for OEM assignment "
2043 TABLE_ITEM PostResultsBitmapDw2Table
[] = {
2046 L
" Normally 0; available for OEM assignment "
2050 L
" Normally 0; available for OEM assignment "
2054 L
" Normally 0; available for OEM assignment "
2058 L
" Normally 0; available for OEM assignment "
2062 L
" Normally 0; available for OEM assignment "
2066 L
" Normally 0; available for OEM assignment "
2070 L
" Normally 0; available for OEM assignment "
2074 L
" PCI Memory Conflict "
2078 L
" PCI I/O Conflict "
2082 L
" PCI IRQ Conflict "
2086 L
" PNP Memory Conflict "
2090 L
" PNP 32 bit Memory Conflict "
2094 L
" PNP I/O Conflict "
2098 L
" PNP IRQ Conflict "
2102 L
" PNP DMA Conflict "
2106 L
" Bad PNP Serial ID Checksum "
2110 L
" Bad PNP Resource Data Checksum "
2114 L
" Static Resource Conflict "
2118 L
" NVRAM Checksum Error, NVRAM Cleared "
2122 L
" System Board Device Resource Conflict "
2126 L
" Primary Output Device Not Found "
2130 L
" Primary Input Device Not Found "
2134 L
" Primary Boot Device Not Found "
2138 L
" NVRAM Cleared By Jumper "
2142 L
" NVRAM Data Invalid, NVRAM Cleared "
2146 L
" FDC Resource Conflict "
2150 L
" Primary ATA Controller Resource Conflict "
2154 L
" Secondary ATA Controller Resource Conflict "
2158 L
" Parallel Port Resource Conflict "
2162 L
" Serial Port 1 Resource Conflict "
2166 L
" Serial Port 2 Resource Conflict "
2170 L
" Audio Resource Conflict "
2174 TABLE_ITEM SELSysManagementTypesTable
[] = {
2177 L
" +2.5V Out of range, #2 "
2181 L
" +3.3V Out of range "
2185 L
" +5V Out of range "
2189 L
" -5V Out of range "
2193 L
" +12V Out of range "
2197 L
" -12V Out of range "
2201 L
" Reserved for future out-of-range voltage levels "
2205 L
" System board temperature out of range "
2209 L
" Processor #1 temperature out of range "
2213 L
" Processor #2 temperature out of range "
2217 L
" Processor #3 temperature out of range "
2221 L
" Processor #4 temperature out of range "
2225 L
" Reserved for future out-of-range temperatures"
2229 L
" Fan n (n = 0 to 7) Out of range "
2233 L
" Reserved for future assignment via this specification "
2237 L
" Chassis secure switch activated "
2241 TABLE_ITEM PMALocationTable
[] = {
2252 L
" System board or motherboard"
2260 L
" EISA add-on card"
2272 L
" PCMCIA add-on card"
2276 L
" Proprietary add-on card"
2284 L
" PC-98/C20 add-on card"
2288 L
" PC-98/C24 add-on card"
2292 L
" PC-98/E add-on card"
2296 L
" PC-98/Local bus add-on card"
2299 MemoryArrayLocationCXLFlexbus10AddonCard
,
2300 L
" CXL Flexbus 1.0 add-on card"
2304 TABLE_ITEM PMAUseTable
[] = {
2327 L
" Non-volatile RAM"
2335 TABLE_ITEM PMAErrorCorrectionTypesTable
[] = {
2366 TABLE_ITEM MemoryDeviceFormFactorTable
[] = {
2397 L
" Proprietary Card"
2429 TABLE_ITEM MemoryDeviceTypeTable
[] = {
2540 L
" Logical non-volatile device"
2544 TABLE_ITEM MemoryDeviceTypeDetailTable
[] = {
2595 L
" Registered(Buffered)"
2599 L
" Unbuffered(Unregistered)"
2603 TABLE_ITEM MemoryDeviceMemoryTechnologyTable
[] = {
2630 L
" Intel persistent memory"
2634 TABLE_ITEM MemoryDeviceMemoryOperatingModeCapabilityTable
[] = {
2649 L
" Byte-accessible persistent memory"
2653 L
" Block-accessible persistent memory"
2658 TABLE_ITEM MemoryErrorTypeTable
[] = {
2681 L
" Single-bit error"
2685 L
" Double-bit error"
2705 L
" Corrected single-bit error"
2713 L
" Uncorrectable error"
2717 TABLE_ITEM MemoryErrorGranularityTable
[] = {
2732 L
" Memory partition level"
2736 TABLE_ITEM MemoryErrorOperationTable
[] = {
2759 TABLE_ITEM PointingDeviceTypeTable
[] = {
2790 TABLE_ITEM PointingDeviceInterfaceTable
[] = {
2821 L
" ADB(Apple Desktop Bus"
2829 L
" Bus mouse mirco-DIN"
2837 TABLE_ITEM PBDeviceChemistryTable
[] = {
2856 L
" Nickel metal hydride "
2868 L
" Lithium Polymer "
2872 TABLE_ITEM VPLocationTable
[] = {
2895 L
" Non-recoverable "
2899 TABLE_ITEM VPStatusTable
[] = {
2922 L
" System Management Module "
2934 L
" Processor Module "
2946 TABLE_ITEM CoolingDeviceStatusTable
[] = {
2969 L
" Non-recoverable "
2973 TABLE_ITEM CoolingDeviceTypeTable
[] = {
2988 L
" Centrifugal Blower "
3000 L
" Power Supply Fan "
3008 L
" Integrated Refrigeration "
3016 L
" Passive Cooling "
3020 TABLE_ITEM TemperatureProbeStatusTable
[] = {
3043 L
" Non-recoverable "
3047 TABLE_ITEM TemperatureProbeLocTable
[] = {
3070 L
" System Management Module "
3082 L
" Processor Module "
3094 TABLE_ITEM ECPStatusTable
[] = {
3117 L
" Non-recoverable "
3121 TABLE_ITEM ECPLocTable
[] = {
3144 L
" System Management Module "
3156 L
" Processor Module "
3168 TABLE_ITEM MDTypeTable
[] = {
3179 L
" National Semiconductor LM75 "
3183 L
" National Semiconductor LM78 "
3187 L
" National Semiconductor LM79 "
3191 L
" National Semiconductor LM80 "
3195 L
" National Semiconductor LM81 "
3199 L
" Analog Devices ADM9240 "
3203 L
" Dallas Semiconductor DS1780 "
3211 L
" Genesys GL518SM "
3215 L
" Winbond W83781D "
3219 L
" Holtek HT82H791 "
3223 TABLE_ITEM MDAddressTypeTable
[] = {
3246 TABLE_ITEM MemoryChannelTypeTable
[] = {
3265 TABLE_ITEM IPMIDIBMCInterfaceTypeTable
[] = {
3272 L
" KCS: Keyboard Controller Style "
3276 L
" SMIC: Server Management Interface Chip "
3280 L
" BT: Block Transfer "
3284 L
" SSIF: SMBus System Interface "
3288 L
" Reserved for future assignment by this specification "
3292 TABLE_ITEM MCHostInterfaceTypeTable
[] = {
3295 L
" MCTP Host Interface "
3299 L
" Network Host Interface "
3307 TABLE_ITEM ProcessorArchitectureTypesTable
[] = {
3318 L
" x64 (x86-64, intel64, AMD64, EM64T) "
3322 L
" Intel Itanium architecture "
3326 L
" 32-bit ARM (Aarch32) "
3330 L
" 64-bit ARM (Aarch64) "
3334 L
" 32-bit RISC-V (RV32) "
3338 L
" 64-bit RISC-V (RV64) "
3342 L
" 128-bit RISC-V (RV128) "
3346 TABLE_ITEM StructureTypeInfoTable
[] = {
3349 L
" BIOS Information"
3353 L
" System Information"
3357 L
" Base Board Information"
3361 L
" System Enclosure"
3365 L
" Processor Information"
3369 L
" Memory Controller Information "
3373 L
" Memory Module Information "
3377 L
" Cache Information "
3381 L
" Port Connector Information "
3389 L
" On Board Devices Information "
3397 L
" System Configuration Options "
3401 L
" BIOS Language Information "
3405 L
" Group Associations "
3409 L
" System Event Log "
3413 L
" Physical Memory Array "
3421 L
" 32-bit Memory Error Information "
3425 L
" Memory Array Mapped Address "
3429 L
" Memory Device Mapped Address "
3433 L
" Built-in Pointing Device "
3437 L
" Portable Battery "
3445 L
" Hardware Security "
3449 L
" System Power Controls "
3461 L
" Temperature Probe "
3465 L
" Electrical Current Probe "
3469 L
" Out-of-Band Remote Access "
3473 L
" Boot Integrity Services (BIS) Entry Point"
3477 L
" System Boot Information "
3481 L
" 64-bit Memory Error Information "
3485 L
" Management Device "
3489 L
" Management Device Component "
3493 L
" Management Device Threshold Data "
3501 L
" IPMI Device Information "
3505 L
" System Power Supply"
3509 L
" Additional Information"
3513 L
" Onboard Devices Extended Information"
3517 L
" Management Controller Host Interface"
3525 L
" Processor Additional Information"
3539 Given a table and a Key, return the responding info.
3542 Table[Index].Key is change from UINT8 to UINT16,
3543 in order to deal with "0xaa - 0xbb".
3546 DisplaySELVariableDataFormatTypes(UINT8 Type, UINT8 Option)
3549 Now define Key = 0x7F07, that is to say: High = 0x7F, Low = 0x07.
3550 Then all the Key Value between Low and High gets the same string
3553 @param[in] Table The begin address of table.
3554 @param[in] Number The number of table items.
3555 @param[in] Key The query Key.
3556 @param[in, out] Info Input as empty buffer; output as data buffer.
3557 @param[in] InfoLen The max number of characters for Info.
3559 @return the found Key and Info is valid.
3560 @retval QUERY_TABLE_UNFOUND and Info should be NULL.
3564 IN TABLE_ITEM
*Table
,
3567 IN OUT CHAR16
*Info
,
3573 // High byte and Low byte of word
3578 for (Index
= 0; Index
< Number
; Index
++) {
3579 High
= (UINT8
) (Table
[Index
].Key
>> 8);
3580 Low
= (UINT8
) (Table
[Index
].Key
& 0x00FF);
3583 // Check if Key is in the range
3584 // or if Key == Value in the table
3586 if ((High
> Low
&& Key
>= Low
&& Key
<= High
)
3587 || (Table
[Index
].Key
== Key
)) {
3588 StrnCpyS (Info
, InfoLen
, Table
[Index
].Info
, InfoLen
- 1);
3589 StrnCatS (Info
, InfoLen
, L
"\n", InfoLen
- 1 - StrLen(Info
));
3594 StrCpyS (Info
, InfoLen
, L
"Undefined Value\n");
3595 return QUERY_TABLE_UNFOUND
;
3599 Given a table of bit info and a Key, return the responding info to the Key.
3601 @param[in] Table Point to a table which maintains a map of 'bit' to 'message'.
3602 @param[in] Number Number of table items.
3603 @param[in] Bits The Key of query the bit map information.
3607 IN TABLE_ITEM
*Table
,
3613 // Get certain bit of 'Value':
3615 #define BIT(Value, bit) ((Value) & ((UINT32) 1) << (bit))
3617 // Clear certain bit of 'Value':
3619 #define CLR_BIT(Value, bit) ((Value) -= (BIT (Value, bit)))
3628 // query the table and print information
3630 for (Index
= 0; Index
< Number
; Index
++) {
3631 if (BIT (Value
, Table
[Index
].Key
) != 0) {
3634 // If it is not first info, print the separator first.
3638 Print (Table
[Index
].Info
);
3642 // clear the bit, for reserved bits test
3644 CLR_BIT (Value
, Table
[Index
].Key
);
3649 // There is no any info if FirstInfo is still TRUE.
3652 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_NO_INFO
), gShellDebug1HiiHandle
);
3656 ShellPrintHiiEx(-1,-1,NULL
,
3657 STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_BITS_SET
),
3658 gShellDebug1HiiHandle
,
3666 // //////////////////////////////////////////////////////////////////
3668 // Following uses QueryTable functions to simplify the coding.
3669 // QueryTable(), PrintBitsInfo()
3672 #define PRINT_TABLE_ITEM(Table, Key) \
3676 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3677 ZeroMem (Info, sizeof (Info)); \
3678 QueryTable (Table, Num, Key, Info, sizeof(Info)/sizeof(Info[0])); \
3682 #define PRINT_BITS_INFO(Table, bits) \
3685 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3686 PrintBitsInfo (Table, Num, (UINT32) bits); \
3690 Display System Information (Type 1) Type.
3692 @param[in] Type The key of the structure.
3693 @param[in] Option The optional information.
3696 DisplaySystemWakeupType (
3701 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_WAKEUP_TYPE
), gShellDebug1HiiHandle
);
3702 PRINT_INFO_OPTION (Type
, Option
);
3703 PRINT_TABLE_ITEM (SystemWakeupTypeTable
, Type
);
3707 Display Base Board (Type 2) Feature Flags.
3709 @param[in] FeatureFlags The key of the structure.
3710 @param[in] Option The optional information.
3713 DisplayBaseBoardFeatureFlags (
3714 IN UINT8 FeatureFlags
,
3718 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_FEATURE_FLAGS
), gShellDebug1HiiHandle
);
3719 PRINT_INFO_OPTION (FeatureFlags
, Option
);
3720 PRINT_BITS_INFO (BaseBoardFeatureFlagsTable
, FeatureFlags
);
3724 Display Base Board (Type 2) Board Type.
3726 @param[in] Type The key of the structure.
3727 @param[in] Option The optional information.
3730 DisplayBaseBoardBoardType(
3735 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_BOARD_TYPE
), gShellDebug1HiiHandle
);
3736 PRINT_INFO_OPTION (Type
, Option
);
3737 PRINT_TABLE_ITEM (BaseBoardBoardTypeTable
, Type
);
3741 Display System Enclosure (Type 3) Enclosure Type.
3743 @param[in] Type The key of the structure.
3744 @param[in] Option The optional information.
3747 DisplaySystemEnclosureType (
3752 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_TYPE
), gShellDebug1HiiHandle
);
3753 PRINT_INFO_OPTION (Type
, Option
);
3755 // query table and print info
3757 PRINT_TABLE_ITEM (SystemEnclosureTypeTable
, Type
);
3759 if (BIT (Type
, 7) != 0) {
3760 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CHASSIS_LOCK_PRESENT
), gShellDebug1HiiHandle
);
3765 Display System Enclosure (Type 3) Enclosure Status.
3767 @param[in] Status The key of the structure.
3768 @param[in] Option The optional information.
3771 DisplaySystemEnclosureStatus (
3776 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_STATUS
), gShellDebug1HiiHandle
);
3777 PRINT_INFO_OPTION (Status
, Option
);
3778 PRINT_TABLE_ITEM (SystemEnclosureStatusTable
, Status
);
3782 Display System Enclosure (Type 3) Security Status.
3784 @param[in] Status The key of the structure.
3785 @param[in] Option The optional information.
3788 DisplaySESecurityStatus (
3793 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_SECURITY
), gShellDebug1HiiHandle
);
3794 PRINT_INFO_OPTION (Status
, Option
);
3795 PRINT_TABLE_ITEM (SESecurityStatusTable
, Status
);
3799 Display Processor Information (Type 4) Type.
3801 @param[in] Type The key of the structure.
3802 @param[in] Option The optional information.
3805 DisplayProcessorType (
3810 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_TYPE
), gShellDebug1HiiHandle
);
3811 PRINT_INFO_OPTION (Type
, Option
);
3812 PRINT_TABLE_ITEM (ProcessorTypeTable
, Type
);
3816 Display Processor Information (Type 4) Upgrade.
3818 @param[in] Upgrade The key of the structure.
3819 @param[in] Option The optional information.
3822 DisplayProcessorUpgrade (
3827 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_UPDATE
), gShellDebug1HiiHandle
);
3828 PRINT_INFO_OPTION (Upgrade
, Option
);
3829 PRINT_TABLE_ITEM (ProcessorUpgradeTable
, Upgrade
);
3833 Display Processor Information (Type 4) Characteristics.
3835 @param[in] Type The key of the structure.
3836 @param[in] Option The optional information.
3839 DisplayProcessorCharacteristics (
3844 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_CHARACTERISTICS
), gShellDebug1HiiHandle
);
3845 PRINT_INFO_OPTION (Type
, Option
);
3846 PRINT_BITS_INFO (ProcessorCharacteristicsTable
, Type
);
3850 Display Memory Controller Information (Type 5) method.
3852 @param[in] Method The key of the structure.
3853 @param[in] Option The optional information.
3856 DisplayMcErrorDetectMethod (
3861 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DETECTMETHOD
), gShellDebug1HiiHandle
);
3862 PRINT_INFO_OPTION (Method
, Option
);
3863 PRINT_TABLE_ITEM (McErrorDetectMethodTable
, Method
);
3867 Display Memory Controller Information (Type 5) Capability.
3869 @param[in] Capability The key of the structure.
3870 @param[in] Option The optional information.
3873 DisplayMcErrorCorrectCapability (
3874 IN UINT8 Capability
,
3878 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CORRECT_CAPABILITY
), gShellDebug1HiiHandle
);
3879 PRINT_INFO_OPTION (Capability
, Option
);
3880 PRINT_BITS_INFO (McErrorCorrectCapabilityTable
, Capability
);
3884 Display Memory Controller Information (Type 5) Support.
3886 @param[in] Support The key of the structure.
3887 @param[in] Option The optional information.
3890 DisplayMcInterleaveSupport (
3895 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_INTERLEAVE_SUPPORT
), gShellDebug1HiiHandle
);
3896 PRINT_INFO_OPTION (Support
, Option
);
3897 PRINT_TABLE_ITEM (McInterleaveSupportTable
, Support
);
3901 Display Memory Controller Information (Type 5) speeds.
3903 @param[in] Speed The key of the structure.
3904 @param[in] Option The optional information.
3907 DisplayMcMemorySpeeds (
3912 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MEMORY_SPEED
), gShellDebug1HiiHandle
);
3913 PRINT_INFO_OPTION (Speed
, Option
);
3914 PRINT_BITS_INFO (McMemorySpeedsTable
, Speed
);
3918 Display Memory Controller Information (Type 5) voltage.
3920 @param[in] Voltage The key of the structure.
3921 @param[in] Option The optional information.
3924 DisplayMemoryModuleVoltage (
3929 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_REQUIRED_VOLTAGES
), gShellDebug1HiiHandle
);
3930 PRINT_INFO_OPTION (Voltage
, Option
);
3931 PRINT_BITS_INFO (MemoryModuleVoltageTable
, Voltage
);
3935 Display Memory Module Information (Type 6) type.
3937 @param[in] Type The key of the structure.
3938 @param[in] Option The optional information.
3941 DisplayMmMemoryType (
3946 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_TYPE
), gShellDebug1HiiHandle
);
3947 PRINT_INFO_OPTION (Type
, Option
);
3948 PRINT_BITS_INFO (MmMemoryTypeTable
, Type
);
3952 Display Memory Module Information (Type 6) status.
3954 @param[in] Status The key of the structure.
3955 @param[in] Option The optional information.
3958 DisplayMmErrorStatus (
3963 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_ERROR_STATUS
), gShellDebug1HiiHandle
);
3964 PRINT_INFO_OPTION (Status
, Option
);
3965 PRINT_BITS_INFO (MmErrorStatusTable
, Status
);
3969 Display Cache Information (Type 7) SRAM Type.
3971 @param[in] Type The key of the structure.
3972 @param[in] Option The optional information.
3975 DisplayCacheSRAMType (
3980 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SRAM_TYPE
), gShellDebug1HiiHandle
);
3981 PRINT_INFO_OPTION ((UINT8
) Type
, Option
);
3982 PRINT_BITS_INFO (CacheSRAMTypeTable
, (UINT8
) Type
);
3986 Display Cache Information (Type 7) correcting Type.
3988 @param[in] Type The key of the structure.
3989 @param[in] Option The optional information.
3992 DisplayCacheErrCorrectingType (
3997 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ERROR_CORRECTING
), gShellDebug1HiiHandle
);
3998 PRINT_INFO_OPTION (Type
, Option
);
3999 PRINT_TABLE_ITEM (CacheErrCorrectingTypeTable
, Type
);
4003 Display Cache Information (Type 7) Type.
4005 @param[in] Type The key of the structure.
4006 @param[in] Option The optional information.
4009 DisplayCacheSystemCacheType (
4014 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SYSTEM_TYPE
), gShellDebug1HiiHandle
);
4015 PRINT_INFO_OPTION (Type
, Option
);
4016 PRINT_TABLE_ITEM (CacheSystemCacheTypeTable
, Type
);
4020 Display Cache Information (Type 7) Associativity.
4022 @param[in] Associativity The key of the structure.
4023 @param[in] Option The optional information.
4026 DisplayCacheAssociativity (
4027 IN UINT8 Associativity
,
4031 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ASSOCIATIVITY
), gShellDebug1HiiHandle
);
4032 PRINT_INFO_OPTION (Associativity
, Option
);
4033 PRINT_TABLE_ITEM (CacheAssociativityTable
, Associativity
);
4037 Display Port Connector Information (Type 8) type.
4039 @param[in] Type The key of the structure.
4040 @param[in] Option The optional information.
4043 DisplayPortConnectorType (
4048 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_CONNECTOR_TYPE
), gShellDebug1HiiHandle
);
4049 PRINT_INFO_OPTION (Type
, Option
);
4050 PRINT_TABLE_ITEM (PortConnectorTypeTable
, Type
);
4054 Display Port Connector Information (Type 8) port type.
4056 @param[in] Type The key of the structure.
4057 @param[in] Option The optional information.
4065 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_TYPE
), gShellDebug1HiiHandle
);
4066 PRINT_INFO_OPTION (Type
, Option
);
4067 PRINT_TABLE_ITEM (PortTypeTable
, Type
);
4071 Display System Slots (Type 9) slot type.
4073 @param[in] Type The key of the structure.
4074 @param[in] Option The optional information.
4077 DisplaySystemSlotType (
4082 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_TYPE
), gShellDebug1HiiHandle
);
4083 PRINT_INFO_OPTION (Type
, Option
);
4084 PRINT_TABLE_ITEM (SystemSlotTypeTable
, Type
);
4088 Display System Slots (Type 9) data bus width.
4090 @param[in] Width The key of the structure.
4091 @param[in] Option The optional information.
4094 DisplaySystemSlotDataBusWidth (
4099 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_DATA
), gShellDebug1HiiHandle
);
4100 PRINT_INFO_OPTION (Width
, Option
);
4101 PRINT_TABLE_ITEM (SystemSlotDataBusWidthTable
, Width
);
4105 Display System Slots (Type 9) usage information.
4107 @param[in] Usage The key of the structure.
4108 @param[in] Option The optional information.
4111 DisplaySystemSlotCurrentUsage (
4116 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_CURRENT_USAGE
), gShellDebug1HiiHandle
);
4117 PRINT_INFO_OPTION (Usage
, Option
);
4118 PRINT_TABLE_ITEM (SystemSlotCurrentUsageTable
, Usage
);
4122 Display System Slots (Type 9) slot length.
4124 @param[in] Length The key of the structure.
4125 @param[in] Option The optional information.
4128 DisplaySystemSlotLength (
4133 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_LENGTH
), gShellDebug1HiiHandle
);
4134 PRINT_INFO_OPTION (Length
, Option
);
4135 PRINT_TABLE_ITEM (SystemSlotLengthTable
, Length
);
4139 Display System Slots (Type 9) characteristics.
4141 @param[in] Chara1 The key of the structure.
4142 @param[in] Option The optional information.
4145 DisplaySlotCharacteristics1 (
4150 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS
), gShellDebug1HiiHandle
);
4151 PRINT_INFO_OPTION (Chara1
, Option
);
4152 PRINT_BITS_INFO (SlotCharacteristics1Table
, Chara1
);
4156 Display System Slots (Type 9) characteristics.
4158 @param[in] Chara2 The key of the structure.
4159 @param[in] Option The optional information.
4162 DisplaySlotCharacteristics2 (
4167 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS_2
), gShellDebug1HiiHandle
);
4168 PRINT_INFO_OPTION (Chara2
, Option
);
4169 PRINT_BITS_INFO (SlotCharacteristics2Table
, Chara2
);
4173 Display On Board Devices Information (Type 10) types.
4175 @param[in] Type The key of the structure.
4176 @param[in] Option The optional information.
4179 DisplayOnboardDeviceTypes (
4184 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ONBOARD_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4185 PRINT_INFO_OPTION (Type
, Option
);
4186 PRINT_TABLE_ITEM (OnboardDeviceTypesTable
, Type
);
4190 Display System Event Log (Type 15) types.
4192 @param[in] Type The key of the structure.
4193 @param[in] Option The optional information.
4201 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_EVENT_LOG_TYPE
), gShellDebug1HiiHandle
);
4202 PRINT_INFO_OPTION (Type
, Option
);
4203 PRINT_TABLE_ITEM (SELTypesTable
, Type
);
4207 Display System Event Log (Type 15) format type.
4209 @param[in] Type The key of the structure.
4210 @param[in] Option The optional information.
4213 DisplaySELVarDataFormatType (
4218 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_EVENT_LOG_VAR_DATA_FORMAT
), gShellDebug1HiiHandle
);
4219 PRINT_INFO_OPTION (Type
, Option
);
4220 PRINT_TABLE_ITEM (SELVarDataFormatTypeTable
, Type
);
4224 Display System Event Log (Type 15) dw1.
4226 @param[in] Key The key of the structure.
4227 @param[in] Option The optional information.
4230 DisplayPostResultsBitmapDw1 (
4235 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_BITMAP
), gShellDebug1HiiHandle
);
4236 PRINT_INFO_OPTION (Key
, Option
);
4237 PRINT_BITS_INFO (PostResultsBitmapDw1Table
, Key
);
4241 Display System Event Log (Type 15) dw2.
4243 @param[in] Key The key of the structure.
4244 @param[in] Option The optional information.
4247 DisplayPostResultsBitmapDw2 (
4252 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_SECOND_DWORD
), gShellDebug1HiiHandle
);
4253 PRINT_INFO_OPTION (Key
, Option
);
4254 PRINT_BITS_INFO (PostResultsBitmapDw2Table
, Key
);
4258 Display System Event Log (Type 15) type.
4260 @param[in] SMType The key of the structure.
4261 @param[in] Option The optional information.
4264 DisplaySELSysManagementTypes (
4271 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_TYPES
), gShellDebug1HiiHandle
);
4272 PRINT_INFO_OPTION (SMType
, Option
);
4275 // Deal with wide range Value
4277 if (SMType
>= 0x80000000) {
4278 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_OEM_ASSIGNED
), gShellDebug1HiiHandle
);
4279 } else if (SMType
>= 0x00020000) {
4280 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
4281 } else if (SMType
>= 0x00010000) {
4282 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_PROBE
), gShellDebug1HiiHandle
);
4283 } else if (SMType
>= 0x31) {
4284 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
4287 // Deal with One byte data
4289 Temp
= (UINT8
) (SMType
& 0x3F);
4290 PRINT_TABLE_ITEM (SELSysManagementTypesTable
, Temp
);
4295 Display Physical Memory Array (Type 16) Location.
4297 @param[in] Location The key of the structure.
4298 @param[in] Option The optional information.
4301 DisplayPMALocation (
4306 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_LOCATION
), gShellDebug1HiiHandle
);
4307 PRINT_INFO_OPTION (Location
, Option
);
4308 PRINT_TABLE_ITEM (PMALocationTable
, Location
);
4312 Display Physical Memory Array (Type 16) Use.
4314 @param[in] Use The key of the structure.
4315 @param[in] Option The optional information.
4323 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_USE
), gShellDebug1HiiHandle
);
4324 PRINT_INFO_OPTION (Use
, Option
);
4325 PRINT_TABLE_ITEM (PMAUseTable
, Use
);
4329 Display Physical Memory Array (Type 16) Types.
4331 @param[in] Type The key of the structure.
4332 @param[in] Option The optional information.
4335 DisplayPMAErrorCorrectionTypes (
4340 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_ERROR
), gShellDebug1HiiHandle
);
4341 PRINT_INFO_OPTION (Type
, Option
);
4342 PRINT_TABLE_ITEM (PMAErrorCorrectionTypesTable
, Type
);
4346 Display Memory Device (Type 17) form factor.
4348 @param[in] FormFactor The key of the structure.
4349 @param[in] Option The optional information.
4352 DisplayMemoryDeviceFormFactor (
4353 IN UINT8 FormFactor
,
4357 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_FORM_FACTOR
), gShellDebug1HiiHandle
);
4358 PRINT_INFO_OPTION (FormFactor
, Option
);
4359 PRINT_TABLE_ITEM (MemoryDeviceFormFactorTable
, FormFactor
);
4363 Display Memory Device (Type 17) type.
4365 @param[in] Type The key of the structure.
4366 @param[in] Option The optional information.
4369 DisplayMemoryDeviceType (
4374 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4375 PRINT_INFO_OPTION (Type
, Option
);
4376 PRINT_TABLE_ITEM (MemoryDeviceTypeTable
, Type
);
4380 Display Memory Device (Type 17) details.
4382 @param[in] Para The key of the structure.
4383 @param[in] Option The optional information.
4386 DisplayMemoryDeviceTypeDetail (
4391 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE_DETAIL
), gShellDebug1HiiHandle
);
4392 PRINT_INFO_OPTION (Para
, Option
);
4393 PRINT_BITS_INFO (MemoryDeviceTypeDetailTable
, Para
);
4397 Display Memory Device (Type 17) memory technology.
4399 @param[in] Para The key of the structure.
4400 @param[in] Option The optional information.
4403 DisplayMemoryDeviceMemoryTechnology (
4408 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_MEMORY_TECHNOLOGY
), gShellDebug1HiiHandle
);
4409 PRINT_INFO_OPTION (Para
, Option
);
4410 PRINT_TABLE_ITEM (MemoryDeviceMemoryTechnologyTable
, Para
);
4414 Display Memory Device (Type 17) memory operating mode capability.
4416 @param[in] Para The key of the structure.
4417 @param[in] Option The optional information.
4420 DisplayMemoryDeviceMemoryOperatingModeCapability (
4425 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_MEM_OPER_MODE_CAPA
), gShellDebug1HiiHandle
);
4426 PRINT_INFO_OPTION (Para
, Option
);
4427 PRINT_BITS_INFO (MemoryDeviceMemoryOperatingModeCapabilityTable
, Para
);
4431 Display 32-bit Memory Error Information (Type 18) type.
4433 @param[in] ErrorType The key of the structure.
4434 @param[in] Option The optional information.
4437 DisplayMemoryErrorType (
4442 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_INFO
), gShellDebug1HiiHandle
);
4443 PRINT_INFO_OPTION (ErrorType
, Option
);
4444 PRINT_TABLE_ITEM (MemoryErrorTypeTable
, ErrorType
);
4448 Display 32-bit Memory Error Information (Type 18) error granularity.
4450 @param[in] Granularity The key of the structure.
4451 @param[in] Option The optional information.
4454 DisplayMemoryErrorGranularity (
4455 IN UINT8 Granularity
,
4459 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_GRANULARITY
), gShellDebug1HiiHandle
);
4460 PRINT_INFO_OPTION (Granularity
, Option
);
4461 PRINT_TABLE_ITEM (MemoryErrorGranularityTable
, Granularity
);
4465 Display 32-bit Memory Error Information (Type 18) error information.
4467 @param[in] Operation The key of the structure.
4468 @param[in] Option The optional information.
4471 DisplayMemoryErrorOperation (
4476 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_OP
), gShellDebug1HiiHandle
);
4477 PRINT_INFO_OPTION (Operation
, Option
);
4478 PRINT_TABLE_ITEM (MemoryErrorOperationTable
, Operation
);
4482 Display Built-in Pointing Device (Type 21) type information.
4484 @param[in] Type The key of the structure.
4485 @param[in] Option The optional information.
4488 DisplayPointingDeviceType (
4493 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4494 PRINT_INFO_OPTION (Type
, Option
);
4495 PRINT_TABLE_ITEM (PointingDeviceTypeTable
, Type
);
4499 Display Built-in Pointing Device (Type 21) information.
4501 @param[in] Interface The key of the structure.
4502 @param[in] Option The optional information.
4505 DisplayPointingDeviceInterface (
4510 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_INTERFACE
), gShellDebug1HiiHandle
);
4511 PRINT_INFO_OPTION (Interface
, Option
);
4512 PRINT_TABLE_ITEM (PointingDeviceInterfaceTable
, Interface
);
4516 Display Portable Battery (Type 22) information.
4518 @param[in] Key The key of the structure.
4519 @param[in] Option The optional information.
4522 DisplayPBDeviceChemistry (
4527 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORTABLE_BATT_DEV_CHEM
), gShellDebug1HiiHandle
);
4528 PRINT_INFO_OPTION (Key
, Option
);
4529 PRINT_TABLE_ITEM (PBDeviceChemistryTable
, Key
);
4533 Display Voltage Probe (Type 26) location information.
4535 @param[in] Key The key of the structure.
4536 @param[in] Option The optional information.
4546 Loc
= (UINT8
) ((Key
& 0xE0) >> 5);
4547 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4548 PRINT_INFO_OPTION (Loc
, Option
);
4549 PRINT_TABLE_ITEM (VPLocationTable
, Loc
);
4553 Display Voltage Probe (Type 26) status ype information.
4555 @param[in] Key The key of the structure.
4556 @param[in] Option The optional information.
4566 Status
= (UINT8
) (Key
& 0x1F);
4567 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_STATUS
), gShellDebug1HiiHandle
);
4568 PRINT_INFO_OPTION (Status
, Option
);
4569 PRINT_TABLE_ITEM (VPStatusTable
, Status
);
4573 Display Cooling (Type 27) status information.
4575 @param[in] Key The key of the structure.
4576 @param[in] Option The optional information.
4579 DisplayCoolingDeviceStatus (
4586 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4587 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_STATUS
), gShellDebug1HiiHandle
);
4588 PRINT_INFO_OPTION (Status
, Option
);
4589 PRINT_TABLE_ITEM (CoolingDeviceStatusTable
, Status
);
4593 Display Cooling (Type 27) type information.
4595 @param[in] Key The key of the structure.
4596 @param[in] Option The optional information.
4599 DisplayCoolingDeviceType (
4606 Type
= (UINT8
) (Key
& 0x1F);
4607 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_TYPE
), gShellDebug1HiiHandle
);
4608 PRINT_INFO_OPTION (Type
, Option
);
4609 PRINT_TABLE_ITEM (CoolingDeviceTypeTable
, Type
);
4613 Display Temperature Probe (Type 28) status information.
4615 @param[in] Key The key of the structure.
4616 @param[in] Option The optional information.
4619 DisplayTemperatureProbeStatus (
4626 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4627 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_TEMP_PROBE
), gShellDebug1HiiHandle
);
4628 PRINT_INFO_OPTION (Status
, Option
);
4629 PRINT_TABLE_ITEM (TemperatureProbeStatusTable
, Status
);
4633 Display Temperature Probe (Type 28) location information.
4635 @param[in] Key The key of the structure.
4636 @param[in] Option The optional information.
4639 DisplayTemperatureProbeLoc (
4646 Loc
= (UINT8
) (Key
& 0x1F);
4647 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4648 PRINT_INFO_OPTION (Loc
, Option
);
4649 PRINT_TABLE_ITEM (TemperatureProbeLocTable
, Loc
);
4653 Display Electrical Current Probe (Type 29) status information.
4655 @param[in] Key The key of the structure.
4656 @param[in] Option The optional information.
4666 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4667 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_STATUS
), gShellDebug1HiiHandle
);
4668 PRINT_INFO_OPTION (Status
, Option
);
4669 PRINT_TABLE_ITEM (ECPStatusTable
, Status
);
4673 Display Type 29 information.
4675 @param[in] Key The key of the structure.
4676 @param[in] Option The optional information.
4686 Loc
= (UINT8
) (Key
& 0x1F);
4687 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_LOC
), gShellDebug1HiiHandle
);
4688 PRINT_INFO_OPTION (Loc
, Option
);
4689 PRINT_TABLE_ITEM (ECPLocTable
, Loc
);
4693 Display Management Device (Type 34) Type.
4695 @param[in] Key The key of the structure.
4696 @param[in] Option The optional information.
4704 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_TYPE
), gShellDebug1HiiHandle
);
4705 PRINT_INFO_OPTION (Key
, Option
);
4706 PRINT_TABLE_ITEM (MDTypeTable
, Key
);
4710 Display Management Device (Type 34) Address Type.
4712 @param[in] Key The key of the structure.
4713 @param[in] Option The optional information.
4716 DisplayMDAddressType (
4721 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_ADDR_TYPE
), gShellDebug1HiiHandle
);
4722 PRINT_INFO_OPTION (Key
, Option
);
4723 PRINT_TABLE_ITEM (MDAddressTypeTable
, Key
);
4727 Display Memory Channel (Type 37) information.
4729 @param[in] Key The key of the structure.
4730 @param[in] Option The optional information.
4733 DisplayMemoryChannelType (
4738 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CHANNEL_TYPE
), gShellDebug1HiiHandle
);
4739 PRINT_INFO_OPTION (Key
, Option
);
4740 PRINT_TABLE_ITEM (MemoryChannelTypeTable
, Key
);
4744 Display IPMI Device Information (Type 38) information.
4746 @param[in] Key The key of the structure.
4747 @param[in] Option The optional information.
4750 DisplayIPMIDIBMCInterfaceType (
4755 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BMC_INTERFACE_TYPE
), gShellDebug1HiiHandle
);
4756 PRINT_INFO_OPTION (Key
, Option
);
4757 PRINT_TABLE_ITEM (IPMIDIBMCInterfaceTypeTable
, Key
);
4761 Display Management Controller Host Interface (Type 42) information.
4763 @param[in] Key The key of the structure.
4764 @param[in] Option The optional information.
4767 DisplayMCHostInterfaceType (
4772 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MC_HOST_INTERFACE_TYPE
), gShellDebug1HiiHandle
);
4773 PRINT_INFO_OPTION (Key
, Option
);
4774 PRINT_TABLE_ITEM (MCHostInterfaceTypeTable
, Key
);
4778 Display Processor Architecture Type (Type 44).
4780 @param[in] Key The key of the structure.
4781 @param[in] Option The optional information.
4784 DisplayProcessorArchitectureType (
4789 ShellPrintHiiEx (-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROCESSOR_ARCH_TYPE
), gShellDebug1HiiHandle
);
4790 PRINT_INFO_OPTION (Key
, Option
);
4791 PRINT_TABLE_ITEM (ProcessorArchitectureTypesTable
, Key
);
4795 Display the structure type information.
4797 @param[in] Key The key of the structure.
4798 @param[in] Option The optional information.
4801 DisplayStructureTypeInfo (
4809 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_STRUCT_TYPE
), gShellDebug1HiiHandle
);
4810 PRINT_INFO_OPTION (Key
, Option
);
4811 PRINT_TABLE_ITEM (StructureTypeInfoTable
, Key
);