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 - 2018, 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"
1529 TABLE_ITEM SystemSlotDataBusWidthTable
[] = {
1588 TABLE_ITEM SystemSlotCurrentUsageTable
[] = {
1611 TABLE_ITEM SystemSlotLengthTable
[] = {
1630 TABLE_ITEM SlotCharacteristics1Table
[] = {
1633 L
" Characteristics Unknown"
1637 L
" Provides 5.0 Volts"
1641 L
" Provides 3.3 Volts"
1645 L
" Slot's opening is shared with another slot, e.g. PCI/EISA shared slot."
1650 L
" PC Card slot supports PC Card-16"
1654 L
" PC Card slot supports CardBus"
1658 L
" PC Card slot supports Zoom Video "
1662 L
" PC Card slot supports Modem Ring Resume "
1666 TABLE_ITEM SlotCharacteristics2Table
[] = {
1669 L
" PCI slot supports Power Management Enable (PME#) signal"
1673 L
" Slot supports hot-plug devices"
1677 L
" PCI slot supports SMBus signal"
1681 L
" PCIe slot supports bifurcation"
1685 TABLE_ITEM OnboardDeviceTypesTable
[] = {
1728 TABLE_ITEM SELTypesTable
[] = {
1735 L
" Single-bit ECC memory error"
1739 L
" Multi-bit ECC memory error"
1743 L
" Parity memory error"
1751 L
" I/O Channel Check"
1759 L
" POST Memory Resize"
1767 L
" PCI Parity Error"
1771 L
" PCI System Error"
1779 L
" EISA FailSafe Timer time-out"
1783 L
" Correctable memory log disabled"
1787 L
" Logging disabled for a specific Event Type"
1795 L
" System Limit Exceeded"
1799 L
" Asynchronous hardware timer expired and issued a system reset"
1803 L
" System configuration information"
1807 L
" Hard-disk information"
1811 L
" System reconfigured"
1815 L
" Uncorrectable CPU-complex error"
1819 L
" Log Area Reset/Cleared"
1827 L
" Unused by SMBIOS specification"
1831 L
" System and OEM specified"
1839 TABLE_ITEM SELVarDataFormatTypeTable
[] = {
1854 L
" Multiple-Event Handle "
1858 L
" POST Results Bitmap "
1865 L
" System Management Type"
1872 L
" Multiple-Event System Management Type "
1884 TABLE_ITEM PostResultsBitmapDw1Table
[] = {
1887 L
" Channel 2 Timer error "
1891 L
" Master PIC (8259 #1) error "
1895 L
" Slave PIC (8259 #2) error "
1899 L
" CMOS Battery Failure "
1903 L
" CMOS System Options Not Set "
1907 L
" CMOS Checksum Error "
1911 L
" CMOS Configuration Error "
1915 L
" Mouse and Keyboard Swapped "
1919 L
" Keyboard Locked "
1923 L
" Keyboard Not Functional "
1927 L
" Keyboard Controller Not Functional "
1931 L
" CMOS Memory Size Different "
1935 L
" Memory Decreased in Size "
1939 L
" Cache Memory Error "
1943 L
" Floppy Drive 0 Error "
1947 L
" Floppy Drive 1 Error "
1951 L
" Floppy Controller Failure "
1955 L
" Number of ATA Drives Reduced Error "
1959 L
" CMOS Time Not Set "
1963 L
" DDC Monitor Configuration Change "
1967 L
" Reserved, set to 0 "
1971 L
" Reserved, set to 0 "
1975 L
" Reserved, set to 0 "
1979 L
" Reserved, set to 0 "
1983 L
" Second DWORD has valid data "
1987 L
" Reserved, set to 0 "
1991 L
" Reserved, set to 0 "
1995 L
" Reserved, set to 0 "
1999 L
" Normally 0; available for OEM assignment "
2003 L
" Normally 0; available for OEM assignment "
2007 L
" Normally 0; available for OEM assignment "
2011 L
" Normally 0; available for OEM assignment "
2015 TABLE_ITEM PostResultsBitmapDw2Table
[] = {
2018 L
" Normally 0; available for OEM assignment "
2022 L
" Normally 0; available for OEM assignment "
2026 L
" Normally 0; available for OEM assignment "
2030 L
" Normally 0; available for OEM assignment "
2034 L
" Normally 0; available for OEM assignment "
2038 L
" Normally 0; available for OEM assignment "
2042 L
" Normally 0; available for OEM assignment "
2046 L
" PCI Memory Conflict "
2050 L
" PCI I/O Conflict "
2054 L
" PCI IRQ Conflict "
2058 L
" PNP Memory Conflict "
2062 L
" PNP 32 bit Memory Conflict "
2066 L
" PNP I/O Conflict "
2070 L
" PNP IRQ Conflict "
2074 L
" PNP DMA Conflict "
2078 L
" Bad PNP Serial ID Checksum "
2082 L
" Bad PNP Resource Data Checksum "
2086 L
" Static Resource Conflict "
2090 L
" NVRAM Checksum Error, NVRAM Cleared "
2094 L
" System Board Device Resource Conflict "
2098 L
" Primary Output Device Not Found "
2102 L
" Primary Input Device Not Found "
2106 L
" Primary Boot Device Not Found "
2110 L
" NVRAM Cleared By Jumper "
2114 L
" NVRAM Data Invalid, NVRAM Cleared "
2118 L
" FDC Resource Conflict "
2122 L
" Primary ATA Controller Resource Conflict "
2126 L
" Secondary ATA Controller Resource Conflict "
2130 L
" Parallel Port Resource Conflict "
2134 L
" Serial Port 1 Resource Conflict "
2138 L
" Serial Port 2 Resource Conflict "
2142 L
" Audio Resource Conflict "
2146 TABLE_ITEM SELSysManagementTypesTable
[] = {
2149 L
" +2.5V Out of range, #2 "
2153 L
" +3.3V Out of range "
2157 L
" +5V Out of range "
2161 L
" -5V Out of range "
2165 L
" +12V Out of range "
2169 L
" -12V Out of range "
2173 L
" Reserved for future out-of-range voltage levels "
2177 L
" System board temperature out of range "
2181 L
" Processor #1 temperature out of range "
2185 L
" Processor #2 temperature out of range "
2189 L
" Processor #3 temperature out of range "
2193 L
" Processor #4 temperature out of range "
2197 L
" Reserved for future out-of-range temperatures"
2201 L
" Fan n (n = 0 to 7) Out of range "
2205 L
" Reserved for future assignment via this specification "
2209 L
" Chassis secure switch activated "
2213 TABLE_ITEM PMALocationTable
[] = {
2224 L
" System board or motherboard"
2232 L
" EISA add-on card"
2244 L
" PCMCIA add-on card"
2248 L
" Proprietary add-on card"
2256 L
" PC-98/C20 add-on card"
2260 L
" PC-98/C24 add-on card"
2264 L
" PC-98/E add-on card"
2268 L
" PC-98/Local bus add-on card"
2272 TABLE_ITEM PMAUseTable
[] = {
2295 L
" Non-volatile RAM"
2303 TABLE_ITEM PMAErrorCorrectionTypesTable
[] = {
2334 TABLE_ITEM MemoryDeviceFormFactorTable
[] = {
2365 L
" Proprietary Card"
2397 TABLE_ITEM MemoryDeviceTypeTable
[] = {
2508 L
" Logical non-volatile device"
2512 TABLE_ITEM MemoryDeviceTypeDetailTable
[] = {
2563 L
" Registered(Buffered)"
2567 L
" Unbuffered(Unregistered)"
2571 TABLE_ITEM MemoryDeviceMemoryTechnologyTable
[] = {
2598 L
" Intel persistent memory"
2602 TABLE_ITEM MemoryDeviceMemoryOperatingModeCapabilityTable
[] = {
2617 L
" Byte-accessible persistent memory"
2621 L
" Block-accessible persistent memory"
2626 TABLE_ITEM MemoryErrorTypeTable
[] = {
2649 L
" Single-bit error"
2653 L
" Double-bit error"
2673 L
" Corrected single-bit error"
2681 L
" Uncorrectable error"
2685 TABLE_ITEM MemoryErrorGranularityTable
[] = {
2700 L
" Memory partition level"
2704 TABLE_ITEM MemoryErrorOperationTable
[] = {
2727 TABLE_ITEM PointingDeviceTypeTable
[] = {
2758 TABLE_ITEM PointingDeviceInterfaceTable
[] = {
2789 L
" ADB(Apple Desktop Bus"
2797 L
" Bus mouse mirco-DIN"
2805 TABLE_ITEM PBDeviceChemistryTable
[] = {
2824 L
" Nickel metal hydride "
2836 L
" Lithium Polymer "
2840 TABLE_ITEM VPLocationTable
[] = {
2863 L
" Non-recoverable "
2867 TABLE_ITEM VPStatusTable
[] = {
2890 L
" System Management Module "
2902 L
" Processor Module "
2914 TABLE_ITEM CoolingDeviceStatusTable
[] = {
2937 L
" Non-recoverable "
2941 TABLE_ITEM CoolingDeviceTypeTable
[] = {
2956 L
" Centrifugal Blower "
2968 L
" Power Supply Fan "
2976 L
" Integrated Refrigeration "
2984 L
" Passive Cooling "
2988 TABLE_ITEM TemperatureProbeStatusTable
[] = {
3011 L
" Non-recoverable "
3015 TABLE_ITEM TemperatureProbeLocTable
[] = {
3038 L
" System Management Module "
3050 L
" Processor Module "
3062 TABLE_ITEM ECPStatusTable
[] = {
3085 L
" Non-recoverable "
3089 TABLE_ITEM ECPLocTable
[] = {
3112 L
" System Management Module "
3124 L
" Processor Module "
3136 TABLE_ITEM MDTypeTable
[] = {
3147 L
" National Semiconductor LM75 "
3151 L
" National Semiconductor LM78 "
3155 L
" National Semiconductor LM79 "
3159 L
" National Semiconductor LM80 "
3163 L
" National Semiconductor LM81 "
3167 L
" Analog Devices ADM9240 "
3171 L
" Dallas Semiconductor DS1780 "
3179 L
" Genesys GL518SM "
3183 L
" Winbond W83781D "
3187 L
" Holtek HT82H791 "
3191 TABLE_ITEM MDAddressTypeTable
[] = {
3214 TABLE_ITEM MemoryChannelTypeTable
[] = {
3233 TABLE_ITEM IPMIDIBMCInterfaceTypeTable
[] = {
3240 L
" KCS: Keyboard Controller Style "
3244 L
" SMIC: Server Management Interface Chip "
3248 L
" BT: Block Transfer "
3252 L
" SSIF: SMBus System Interface "
3256 L
" Reserved for future assignment by this specification "
3260 TABLE_ITEM MCHostInterfaceTypeTable
[] = {
3263 L
" MCTP Host Interface "
3267 L
" Network Host Interface "
3275 TABLE_ITEM ProcessorArchitectureTypesTable
[] = {
3286 L
" x64 (x86-64, intel64, AMD64, EM64T) "
3290 L
" Intel Itanium architecture "
3294 L
" 32-bit ARM (Aarch32) "
3298 L
" 64-bit ARM (Aarch64) "
3302 L
" 32-bit RISC-V (RV32) "
3306 L
" 64-bit RISC-V (RV64) "
3310 L
" 128-bit RISC-V (RV128) "
3314 TABLE_ITEM StructureTypeInfoTable
[] = {
3317 L
" BIOS Information"
3321 L
" System Information"
3325 L
" Base Board Information"
3329 L
" System Enclosure"
3333 L
" Processor Information"
3337 L
" Memory Controller Information "
3341 L
" Memory Module Information "
3345 L
" Cache Information "
3349 L
" Port Connector Information "
3357 L
" On Board Devices Information "
3365 L
" System Configuration Options "
3369 L
" BIOS Language Information "
3373 L
" Group Associations "
3377 L
" System Event Log "
3381 L
" Physical Memory Array "
3389 L
" 32-bit Memory Error Information "
3393 L
" Memory Array Mapped Address "
3397 L
" Memory Device Mapped Address "
3401 L
" Built-in Pointing Device "
3405 L
" Portable Battery "
3413 L
" Hardware Security "
3417 L
" System Power Controls "
3429 L
" Temperature Probe "
3433 L
" Electrical Current Probe "
3437 L
" Out-of-Band Remote Access "
3441 L
" Boot Integrity Services (BIS) Entry Point"
3445 L
" System Boot Information "
3449 L
" 64-bit Memory Error Information "
3453 L
" Management Device "
3457 L
" Management Device Component "
3461 L
" Management Device Threshold Data "
3469 L
" IPMI Device Information "
3473 L
" System Power Supply"
3477 L
" Additional Information"
3481 L
" Onboard Devices Extended Information"
3485 L
" Management Controller Host Interface"
3493 L
" Processor Additional Information"
3507 Given a table and a Key, return the responding info.
3510 Table[Index].Key is change from UINT8 to UINT16,
3511 in order to deal with "0xaa - 0xbb".
3514 DisplaySELVariableDataFormatTypes(UINT8 Type, UINT8 Option)
3517 Now define Key = 0x7F07, that is to say: High = 0x7F, Low = 0x07.
3518 Then all the Key Value between Low and High gets the same string
3521 @param[in] Table The begin address of table.
3522 @param[in] Number The number of table items.
3523 @param[in] Key The query Key.
3524 @param[in, out] Info Input as empty buffer; output as data buffer.
3525 @param[in] InfoLen The max number of characters for Info.
3527 @return the found Key and Info is valid.
3528 @retval QUERY_TABLE_UNFOUND and Info should be NULL.
3532 IN TABLE_ITEM
*Table
,
3535 IN OUT CHAR16
*Info
,
3541 // High byte and Low byte of word
3546 for (Index
= 0; Index
< Number
; Index
++) {
3547 High
= (UINT8
) (Table
[Index
].Key
>> 8);
3548 Low
= (UINT8
) (Table
[Index
].Key
& 0x00FF);
3551 // Check if Key is in the range
3552 // or if Key == Value in the table
3554 if ((High
> Low
&& Key
>= Low
&& Key
<= High
)
3555 || (Table
[Index
].Key
== Key
)) {
3556 StrnCpyS (Info
, InfoLen
, Table
[Index
].Info
, InfoLen
- 1);
3557 StrnCatS (Info
, InfoLen
, L
"\n", InfoLen
- 1 - StrLen(Info
));
3562 StrCpyS (Info
, InfoLen
, L
"Undefined Value\n");
3563 return QUERY_TABLE_UNFOUND
;
3567 Given a table of bit info and a Key, return the responding info to the Key.
3569 @param[in] Table Point to a table which maintains a map of 'bit' to 'message'.
3570 @param[in] Number Number of table items.
3571 @param[in] Bits The Key of query the bit map information.
3575 IN TABLE_ITEM
*Table
,
3581 // Get certain bit of 'Value':
3583 #define BIT(Value, bit) ((Value) & ((UINT32) 1) << (bit))
3585 // Clear certain bit of 'Value':
3587 #define CLR_BIT(Value, bit) ((Value) -= (BIT (Value, bit)))
3596 // query the table and print information
3598 for (Index
= 0; Index
< Number
; Index
++) {
3599 if (BIT (Value
, Table
[Index
].Key
) != 0) {
3602 // If it is not first info, print the separator first.
3606 Print (Table
[Index
].Info
);
3610 // clear the bit, for reserved bits test
3612 CLR_BIT (Value
, Table
[Index
].Key
);
3617 // There is no any info if FirstInfo is still TRUE.
3620 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_NO_INFO
), gShellDebug1HiiHandle
);
3624 ShellPrintHiiEx(-1,-1,NULL
,
3625 STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_BITS_SET
),
3626 gShellDebug1HiiHandle
,
3634 // //////////////////////////////////////////////////////////////////
3636 // Following uses QueryTable functions to simplify the coding.
3637 // QueryTable(), PrintBitsInfo()
3640 #define PRINT_TABLE_ITEM(Table, Key) \
3644 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3645 ZeroMem (Info, sizeof (Info)); \
3646 QueryTable (Table, Num, Key, Info, sizeof(Info)/sizeof(Info[0])); \
3650 #define PRINT_BITS_INFO(Table, bits) \
3653 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3654 PrintBitsInfo (Table, Num, (UINT32) bits); \
3658 Display System Information (Type 1) Type.
3660 @param[in] Type The key of the structure.
3661 @param[in] Option The optional information.
3664 DisplaySystemWakeupType (
3669 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_WAKEUP_TYPE
), gShellDebug1HiiHandle
);
3670 PRINT_INFO_OPTION (Type
, Option
);
3671 PRINT_TABLE_ITEM (SystemWakeupTypeTable
, Type
);
3675 Display Base Board (Type 2) Feature Flags.
3677 @param[in] FeatureFlags The key of the structure.
3678 @param[in] Option The optional information.
3681 DisplayBaseBoardFeatureFlags (
3682 IN UINT8 FeatureFlags
,
3686 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_FEATURE_FLAGS
), gShellDebug1HiiHandle
);
3687 PRINT_INFO_OPTION (FeatureFlags
, Option
);
3688 PRINT_BITS_INFO (BaseBoardFeatureFlagsTable
, FeatureFlags
);
3692 Display Base Board (Type 2) Board Type.
3694 @param[in] Type The key of the structure.
3695 @param[in] Option The optional information.
3698 DisplayBaseBoardBoardType(
3703 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_BOARD_TYPE
), gShellDebug1HiiHandle
);
3704 PRINT_INFO_OPTION (Type
, Option
);
3705 PRINT_TABLE_ITEM (BaseBoardBoardTypeTable
, Type
);
3709 Display System Enclosure (Type 3) Enclosure Type.
3711 @param[in] Type The key of the structure.
3712 @param[in] Option The optional information.
3715 DisplaySystemEnclosureType (
3720 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_TYPE
), gShellDebug1HiiHandle
);
3721 PRINT_INFO_OPTION (Type
, Option
);
3723 // query table and print info
3725 PRINT_TABLE_ITEM (SystemEnclosureTypeTable
, Type
);
3727 if (BIT (Type
, 7) != 0) {
3728 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CHASSIS_LOCK_PRESENT
), gShellDebug1HiiHandle
);
3733 Display System Enclosure (Type 3) Enclosure Status.
3735 @param[in] Status The key of the structure.
3736 @param[in] Option The optional information.
3739 DisplaySystemEnclosureStatus (
3744 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_STATUS
), gShellDebug1HiiHandle
);
3745 PRINT_INFO_OPTION (Status
, Option
);
3746 PRINT_TABLE_ITEM (SystemEnclosureStatusTable
, Status
);
3750 Display System Enclosure (Type 3) Security Status.
3752 @param[in] Status The key of the structure.
3753 @param[in] Option The optional information.
3756 DisplaySESecurityStatus (
3761 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_SECURITY
), gShellDebug1HiiHandle
);
3762 PRINT_INFO_OPTION (Status
, Option
);
3763 PRINT_TABLE_ITEM (SESecurityStatusTable
, Status
);
3767 Display Processor Information (Type 4) Type.
3769 @param[in] Type The key of the structure.
3770 @param[in] Option The optional information.
3773 DisplayProcessorType (
3778 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_TYPE
), gShellDebug1HiiHandle
);
3779 PRINT_INFO_OPTION (Type
, Option
);
3780 PRINT_TABLE_ITEM (ProcessorTypeTable
, Type
);
3784 Display Processor Information (Type 4) Upgrade.
3786 @param[in] Upgrade The key of the structure.
3787 @param[in] Option The optional information.
3790 DisplayProcessorUpgrade (
3795 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_UPDATE
), gShellDebug1HiiHandle
);
3796 PRINT_INFO_OPTION (Upgrade
, Option
);
3797 PRINT_TABLE_ITEM (ProcessorUpgradeTable
, Upgrade
);
3801 Display Processor Information (Type 4) Characteristics.
3803 @param[in] Type The key of the structure.
3804 @param[in] Option The optional information.
3807 DisplayProcessorCharacteristics (
3812 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_CHARACTERISTICS
), gShellDebug1HiiHandle
);
3813 PRINT_INFO_OPTION (Type
, Option
);
3814 PRINT_BITS_INFO (ProcessorCharacteristicsTable
, Type
);
3818 Display Memory Controller Information (Type 5) method.
3820 @param[in] Method The key of the structure.
3821 @param[in] Option The optional information.
3824 DisplayMcErrorDetectMethod (
3829 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DETECTMETHOD
), gShellDebug1HiiHandle
);
3830 PRINT_INFO_OPTION (Method
, Option
);
3831 PRINT_TABLE_ITEM (McErrorDetectMethodTable
, Method
);
3835 Display Memory Controller Information (Type 5) Capability.
3837 @param[in] Capability The key of the structure.
3838 @param[in] Option The optional information.
3841 DisplayMcErrorCorrectCapability (
3842 IN UINT8 Capability
,
3846 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CORRECT_CAPABILITY
), gShellDebug1HiiHandle
);
3847 PRINT_INFO_OPTION (Capability
, Option
);
3848 PRINT_BITS_INFO (McErrorCorrectCapabilityTable
, Capability
);
3852 Display Memory Controller Information (Type 5) Support.
3854 @param[in] Support The key of the structure.
3855 @param[in] Option The optional information.
3858 DisplayMcInterleaveSupport (
3863 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_INTERLEAVE_SUPPORT
), gShellDebug1HiiHandle
);
3864 PRINT_INFO_OPTION (Support
, Option
);
3865 PRINT_TABLE_ITEM (McInterleaveSupportTable
, Support
);
3869 Display Memory Controller Information (Type 5) speeds.
3871 @param[in] Speed The key of the structure.
3872 @param[in] Option The optional information.
3875 DisplayMcMemorySpeeds (
3880 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MEMORY_SPEED
), gShellDebug1HiiHandle
);
3881 PRINT_INFO_OPTION (Speed
, Option
);
3882 PRINT_BITS_INFO (McMemorySpeedsTable
, Speed
);
3886 Display Memory Controller Information (Type 5) voltage.
3888 @param[in] Voltage The key of the structure.
3889 @param[in] Option The optional information.
3892 DisplayMemoryModuleVoltage (
3897 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_REQUIRED_VOLTAGES
), gShellDebug1HiiHandle
);
3898 PRINT_INFO_OPTION (Voltage
, Option
);
3899 PRINT_BITS_INFO (MemoryModuleVoltageTable
, Voltage
);
3903 Display Memory Module Information (Type 6) type.
3905 @param[in] Type The key of the structure.
3906 @param[in] Option The optional information.
3909 DisplayMmMemoryType (
3914 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_TYPE
), gShellDebug1HiiHandle
);
3915 PRINT_INFO_OPTION (Type
, Option
);
3916 PRINT_BITS_INFO (MmMemoryTypeTable
, Type
);
3920 Display Memory Module Information (Type 6) status.
3922 @param[in] Status The key of the structure.
3923 @param[in] Option The optional information.
3926 DisplayMmErrorStatus (
3931 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_ERROR_STATUS
), gShellDebug1HiiHandle
);
3932 PRINT_INFO_OPTION (Status
, Option
);
3933 PRINT_BITS_INFO (MmErrorStatusTable
, Status
);
3937 Display Cache Information (Type 7) SRAM Type.
3939 @param[in] Type The key of the structure.
3940 @param[in] Option The optional information.
3943 DisplayCacheSRAMType (
3948 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SRAM_TYPE
), gShellDebug1HiiHandle
);
3949 PRINT_INFO_OPTION ((UINT8
) Type
, Option
);
3950 PRINT_BITS_INFO (CacheSRAMTypeTable
, (UINT8
) Type
);
3954 Display Cache Information (Type 7) correcting Type.
3956 @param[in] Type The key of the structure.
3957 @param[in] Option The optional information.
3960 DisplayCacheErrCorrectingType (
3965 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ERROR_CORRECTING
), gShellDebug1HiiHandle
);
3966 PRINT_INFO_OPTION (Type
, Option
);
3967 PRINT_TABLE_ITEM (CacheErrCorrectingTypeTable
, Type
);
3971 Display Cache Information (Type 7) Type.
3973 @param[in] Type The key of the structure.
3974 @param[in] Option The optional information.
3977 DisplayCacheSystemCacheType (
3982 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SYSTEM_TYPE
), gShellDebug1HiiHandle
);
3983 PRINT_INFO_OPTION (Type
, Option
);
3984 PRINT_TABLE_ITEM (CacheSystemCacheTypeTable
, Type
);
3988 Display Cache Information (Type 7) Associativity.
3990 @param[in] Associativity The key of the structure.
3991 @param[in] Option The optional information.
3994 DisplayCacheAssociativity (
3995 IN UINT8 Associativity
,
3999 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ASSOCIATIVITY
), gShellDebug1HiiHandle
);
4000 PRINT_INFO_OPTION (Associativity
, Option
);
4001 PRINT_TABLE_ITEM (CacheAssociativityTable
, Associativity
);
4005 Display Port Connector Information (Type 8) type.
4007 @param[in] Type The key of the structure.
4008 @param[in] Option The optional information.
4011 DisplayPortConnectorType (
4016 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_CONNECTOR_TYPE
), gShellDebug1HiiHandle
);
4017 PRINT_INFO_OPTION (Type
, Option
);
4018 PRINT_TABLE_ITEM (PortConnectorTypeTable
, Type
);
4022 Display Port Connector Information (Type 8) port type.
4024 @param[in] Type The key of the structure.
4025 @param[in] Option The optional information.
4033 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_TYPE
), gShellDebug1HiiHandle
);
4034 PRINT_INFO_OPTION (Type
, Option
);
4035 PRINT_TABLE_ITEM (PortTypeTable
, Type
);
4039 Display System Slots (Type 9) slot type.
4041 @param[in] Type The key of the structure.
4042 @param[in] Option The optional information.
4045 DisplaySystemSlotType (
4050 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_TYPE
), gShellDebug1HiiHandle
);
4051 PRINT_INFO_OPTION (Type
, Option
);
4052 PRINT_TABLE_ITEM (SystemSlotTypeTable
, Type
);
4056 Display System Slots (Type 9) data bus width.
4058 @param[in] Width The key of the structure.
4059 @param[in] Option The optional information.
4062 DisplaySystemSlotDataBusWidth (
4067 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_DATA
), gShellDebug1HiiHandle
);
4068 PRINT_INFO_OPTION (Width
, Option
);
4069 PRINT_TABLE_ITEM (SystemSlotDataBusWidthTable
, Width
);
4073 Display System Slots (Type 9) usage information.
4075 @param[in] Usage The key of the structure.
4076 @param[in] Option The optional information.
4079 DisplaySystemSlotCurrentUsage (
4084 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_CURRENT_USAGE
), gShellDebug1HiiHandle
);
4085 PRINT_INFO_OPTION (Usage
, Option
);
4086 PRINT_TABLE_ITEM (SystemSlotCurrentUsageTable
, Usage
);
4090 Display System Slots (Type 9) slot length.
4092 @param[in] Length The key of the structure.
4093 @param[in] Option The optional information.
4096 DisplaySystemSlotLength (
4101 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_LENGTH
), gShellDebug1HiiHandle
);
4102 PRINT_INFO_OPTION (Length
, Option
);
4103 PRINT_TABLE_ITEM (SystemSlotLengthTable
, Length
);
4107 Display System Slots (Type 9) characteristics.
4109 @param[in] Chara1 The key of the structure.
4110 @param[in] Option The optional information.
4113 DisplaySlotCharacteristics1 (
4118 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS
), gShellDebug1HiiHandle
);
4119 PRINT_INFO_OPTION (Chara1
, Option
);
4120 PRINT_BITS_INFO (SlotCharacteristics1Table
, Chara1
);
4124 Display System Slots (Type 9) characteristics.
4126 @param[in] Chara2 The key of the structure.
4127 @param[in] Option The optional information.
4130 DisplaySlotCharacteristics2 (
4135 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS_2
), gShellDebug1HiiHandle
);
4136 PRINT_INFO_OPTION (Chara2
, Option
);
4137 PRINT_BITS_INFO (SlotCharacteristics2Table
, Chara2
);
4141 Display On Board Devices Information (Type 10) types.
4143 @param[in] Type The key of the structure.
4144 @param[in] Option The optional information.
4147 DisplayOnboardDeviceTypes (
4152 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ONBOARD_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4153 PRINT_INFO_OPTION (Type
, Option
);
4154 PRINT_TABLE_ITEM (OnboardDeviceTypesTable
, Type
);
4158 Display System Event Log (Type 15) types.
4160 @param[in] Type The key of the structure.
4161 @param[in] Option The optional information.
4169 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_EVENT_LOG_TYPE
), gShellDebug1HiiHandle
);
4170 PRINT_INFO_OPTION (Type
, Option
);
4171 PRINT_TABLE_ITEM (SELTypesTable
, Type
);
4175 Display System Event Log (Type 15) format type.
4177 @param[in] Type The key of the structure.
4178 @param[in] Option The optional information.
4181 DisplaySELVarDataFormatType (
4186 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_EVENT_LOG_VAR_DATA_FORMAT
), gShellDebug1HiiHandle
);
4187 PRINT_INFO_OPTION (Type
, Option
);
4188 PRINT_TABLE_ITEM (SELVarDataFormatTypeTable
, Type
);
4192 Display System Event Log (Type 15) dw1.
4194 @param[in] Key The key of the structure.
4195 @param[in] Option The optional information.
4198 DisplayPostResultsBitmapDw1 (
4203 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_BITMAP
), gShellDebug1HiiHandle
);
4204 PRINT_INFO_OPTION (Key
, Option
);
4205 PRINT_BITS_INFO (PostResultsBitmapDw1Table
, Key
);
4209 Display System Event Log (Type 15) dw2.
4211 @param[in] Key The key of the structure.
4212 @param[in] Option The optional information.
4215 DisplayPostResultsBitmapDw2 (
4220 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_SECOND_DWORD
), gShellDebug1HiiHandle
);
4221 PRINT_INFO_OPTION (Key
, Option
);
4222 PRINT_BITS_INFO (PostResultsBitmapDw2Table
, Key
);
4226 Display System Event Log (Type 15) type.
4228 @param[in] SMType The key of the structure.
4229 @param[in] Option The optional information.
4232 DisplaySELSysManagementTypes (
4239 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_TYPES
), gShellDebug1HiiHandle
);
4240 PRINT_INFO_OPTION (SMType
, Option
);
4243 // Deal with wide range Value
4245 if (SMType
>= 0x80000000) {
4246 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_OEM_ASSIGNED
), gShellDebug1HiiHandle
);
4247 } else if (SMType
>= 0x00020000) {
4248 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
4249 } else if (SMType
>= 0x00010000) {
4250 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_PROBE
), gShellDebug1HiiHandle
);
4251 } else if (SMType
>= 0x31) {
4252 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
4255 // Deal with One byte data
4257 Temp
= (UINT8
) (SMType
& 0x3F);
4258 PRINT_TABLE_ITEM (SELSysManagementTypesTable
, Temp
);
4263 Display Physical Memory Array (Type 16) Location.
4265 @param[in] Location The key of the structure.
4266 @param[in] Option The optional information.
4269 DisplayPMALocation (
4274 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_LOCATION
), gShellDebug1HiiHandle
);
4275 PRINT_INFO_OPTION (Location
, Option
);
4276 PRINT_TABLE_ITEM (PMALocationTable
, Location
);
4280 Display Physical Memory Array (Type 16) Use.
4282 @param[in] Use The key of the structure.
4283 @param[in] Option The optional information.
4291 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_USE
), gShellDebug1HiiHandle
);
4292 PRINT_INFO_OPTION (Use
, Option
);
4293 PRINT_TABLE_ITEM (PMAUseTable
, Use
);
4297 Display Physical Memory Array (Type 16) Types.
4299 @param[in] Type The key of the structure.
4300 @param[in] Option The optional information.
4303 DisplayPMAErrorCorrectionTypes (
4308 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_ERROR
), gShellDebug1HiiHandle
);
4309 PRINT_INFO_OPTION (Type
, Option
);
4310 PRINT_TABLE_ITEM (PMAErrorCorrectionTypesTable
, Type
);
4314 Display Memory Device (Type 17) form factor.
4316 @param[in] FormFactor The key of the structure.
4317 @param[in] Option The optional information.
4320 DisplayMemoryDeviceFormFactor (
4321 IN UINT8 FormFactor
,
4325 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_FORM_FACTOR
), gShellDebug1HiiHandle
);
4326 PRINT_INFO_OPTION (FormFactor
, Option
);
4327 PRINT_TABLE_ITEM (MemoryDeviceFormFactorTable
, FormFactor
);
4331 Display Memory Device (Type 17) type.
4333 @param[in] Type The key of the structure.
4334 @param[in] Option The optional information.
4337 DisplayMemoryDeviceType (
4342 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4343 PRINT_INFO_OPTION (Type
, Option
);
4344 PRINT_TABLE_ITEM (MemoryDeviceTypeTable
, Type
);
4348 Display Memory Device (Type 17) details.
4350 @param[in] Para The key of the structure.
4351 @param[in] Option The optional information.
4354 DisplayMemoryDeviceTypeDetail (
4359 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE_DETAIL
), gShellDebug1HiiHandle
);
4360 PRINT_INFO_OPTION (Para
, Option
);
4361 PRINT_BITS_INFO (MemoryDeviceTypeDetailTable
, Para
);
4365 Display Memory Device (Type 17) memory technology.
4367 @param[in] Para The key of the structure.
4368 @param[in] Option The optional information.
4371 DisplayMemoryDeviceMemoryTechnology (
4376 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_MEMORY_TECHNOLOGY
), gShellDebug1HiiHandle
);
4377 PRINT_INFO_OPTION (Para
, Option
);
4378 PRINT_TABLE_ITEM (MemoryDeviceMemoryTechnologyTable
, Para
);
4382 Display Memory Device (Type 17) memory operating mode capability.
4384 @param[in] Para The key of the structure.
4385 @param[in] Option The optional information.
4388 DisplayMemoryDeviceMemoryOperatingModeCapability (
4393 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_MEM_OPER_MODE_CAPA
), gShellDebug1HiiHandle
);
4394 PRINT_INFO_OPTION (Para
, Option
);
4395 PRINT_BITS_INFO (MemoryDeviceMemoryOperatingModeCapabilityTable
, Para
);
4399 Display 32-bit Memory Error Information (Type 18) type.
4401 @param[in] ErrorType The key of the structure.
4402 @param[in] Option The optional information.
4405 DisplayMemoryErrorType (
4410 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_INFO
), gShellDebug1HiiHandle
);
4411 PRINT_INFO_OPTION (ErrorType
, Option
);
4412 PRINT_TABLE_ITEM (MemoryErrorTypeTable
, ErrorType
);
4416 Display 32-bit Memory Error Information (Type 18) error granularity.
4418 @param[in] Granularity The key of the structure.
4419 @param[in] Option The optional information.
4422 DisplayMemoryErrorGranularity (
4423 IN UINT8 Granularity
,
4427 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_GRANULARITY
), gShellDebug1HiiHandle
);
4428 PRINT_INFO_OPTION (Granularity
, Option
);
4429 PRINT_TABLE_ITEM (MemoryErrorGranularityTable
, Granularity
);
4433 Display 32-bit Memory Error Information (Type 18) error information.
4435 @param[in] Operation The key of the structure.
4436 @param[in] Option The optional information.
4439 DisplayMemoryErrorOperation (
4444 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_OP
), gShellDebug1HiiHandle
);
4445 PRINT_INFO_OPTION (Operation
, Option
);
4446 PRINT_TABLE_ITEM (MemoryErrorOperationTable
, Operation
);
4450 Display Built-in Pointing Device (Type 21) type information.
4452 @param[in] Type The key of the structure.
4453 @param[in] Option The optional information.
4456 DisplayPointingDeviceType (
4461 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4462 PRINT_INFO_OPTION (Type
, Option
);
4463 PRINT_TABLE_ITEM (PointingDeviceTypeTable
, Type
);
4467 Display Built-in Pointing Device (Type 21) information.
4469 @param[in] Interface The key of the structure.
4470 @param[in] Option The optional information.
4473 DisplayPointingDeviceInterface (
4478 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_INTERFACE
), gShellDebug1HiiHandle
);
4479 PRINT_INFO_OPTION (Interface
, Option
);
4480 PRINT_TABLE_ITEM (PointingDeviceInterfaceTable
, Interface
);
4484 Display Portable Battery (Type 22) information.
4486 @param[in] Key The key of the structure.
4487 @param[in] Option The optional information.
4490 DisplayPBDeviceChemistry (
4495 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORTABLE_BATT_DEV_CHEM
), gShellDebug1HiiHandle
);
4496 PRINT_INFO_OPTION (Key
, Option
);
4497 PRINT_TABLE_ITEM (PBDeviceChemistryTable
, Key
);
4501 Display Voltage Probe (Type 26) location information.
4503 @param[in] Key The key of the structure.
4504 @param[in] Option The optional information.
4514 Loc
= (UINT8
) ((Key
& 0xE0) >> 5);
4515 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4516 PRINT_INFO_OPTION (Loc
, Option
);
4517 PRINT_TABLE_ITEM (VPLocationTable
, Loc
);
4521 Display Voltage Probe (Type 26) status ype information.
4523 @param[in] Key The key of the structure.
4524 @param[in] Option The optional information.
4534 Status
= (UINT8
) (Key
& 0x1F);
4535 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_STATUS
), gShellDebug1HiiHandle
);
4536 PRINT_INFO_OPTION (Status
, Option
);
4537 PRINT_TABLE_ITEM (VPStatusTable
, Status
);
4541 Display Cooling (Type 27) status information.
4543 @param[in] Key The key of the structure.
4544 @param[in] Option The optional information.
4547 DisplayCoolingDeviceStatus (
4554 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4555 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_STATUS
), gShellDebug1HiiHandle
);
4556 PRINT_INFO_OPTION (Status
, Option
);
4557 PRINT_TABLE_ITEM (CoolingDeviceStatusTable
, Status
);
4561 Display Cooling (Type 27) type information.
4563 @param[in] Key The key of the structure.
4564 @param[in] Option The optional information.
4567 DisplayCoolingDeviceType (
4574 Type
= (UINT8
) (Key
& 0x1F);
4575 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_TYPE
), gShellDebug1HiiHandle
);
4576 PRINT_INFO_OPTION (Type
, Option
);
4577 PRINT_TABLE_ITEM (CoolingDeviceTypeTable
, Type
);
4581 Display Temperature Probe (Type 28) status information.
4583 @param[in] Key The key of the structure.
4584 @param[in] Option The optional information.
4587 DisplayTemperatureProbeStatus (
4594 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4595 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_TEMP_PROBE
), gShellDebug1HiiHandle
);
4596 PRINT_INFO_OPTION (Status
, Option
);
4597 PRINT_TABLE_ITEM (TemperatureProbeStatusTable
, Status
);
4601 Display Temperature Probe (Type 28) location information.
4603 @param[in] Key The key of the structure.
4604 @param[in] Option The optional information.
4607 DisplayTemperatureProbeLoc (
4614 Loc
= (UINT8
) (Key
& 0x1F);
4615 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4616 PRINT_INFO_OPTION (Loc
, Option
);
4617 PRINT_TABLE_ITEM (TemperatureProbeLocTable
, Loc
);
4621 Display Electrical Current Probe (Type 29) status information.
4623 @param[in] Key The key of the structure.
4624 @param[in] Option The optional information.
4634 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4635 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_STATUS
), gShellDebug1HiiHandle
);
4636 PRINT_INFO_OPTION (Status
, Option
);
4637 PRINT_TABLE_ITEM (ECPStatusTable
, Status
);
4641 Display Type 29 information.
4643 @param[in] Key The key of the structure.
4644 @param[in] Option The optional information.
4654 Loc
= (UINT8
) (Key
& 0x1F);
4655 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_LOC
), gShellDebug1HiiHandle
);
4656 PRINT_INFO_OPTION (Loc
, Option
);
4657 PRINT_TABLE_ITEM (ECPLocTable
, Loc
);
4661 Display Management Device (Type 34) Type.
4663 @param[in] Key The key of the structure.
4664 @param[in] Option The optional information.
4672 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_TYPE
), gShellDebug1HiiHandle
);
4673 PRINT_INFO_OPTION (Key
, Option
);
4674 PRINT_TABLE_ITEM (MDTypeTable
, Key
);
4678 Display Management Device (Type 34) Address Type.
4680 @param[in] Key The key of the structure.
4681 @param[in] Option The optional information.
4684 DisplayMDAddressType (
4689 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_ADDR_TYPE
), gShellDebug1HiiHandle
);
4690 PRINT_INFO_OPTION (Key
, Option
);
4691 PRINT_TABLE_ITEM (MDAddressTypeTable
, Key
);
4695 Display Memory Channel (Type 37) information.
4697 @param[in] Key The key of the structure.
4698 @param[in] Option The optional information.
4701 DisplayMemoryChannelType (
4706 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CHANNEL_TYPE
), gShellDebug1HiiHandle
);
4707 PRINT_INFO_OPTION (Key
, Option
);
4708 PRINT_TABLE_ITEM (MemoryChannelTypeTable
, Key
);
4712 Display IPMI Device Information (Type 38) information.
4714 @param[in] Key The key of the structure.
4715 @param[in] Option The optional information.
4718 DisplayIPMIDIBMCInterfaceType (
4723 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BMC_INTERFACE_TYPE
), gShellDebug1HiiHandle
);
4724 PRINT_INFO_OPTION (Key
, Option
);
4725 PRINT_TABLE_ITEM (IPMIDIBMCInterfaceTypeTable
, Key
);
4729 Display Management Controller Host Interface (Type 42) information.
4731 @param[in] Key The key of the structure.
4732 @param[in] Option The optional information.
4735 DisplayMCHostInterfaceType (
4740 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MC_HOST_INTERFACE_TYPE
), gShellDebug1HiiHandle
);
4741 PRINT_INFO_OPTION (Key
, Option
);
4742 PRINT_TABLE_ITEM (MCHostInterfaceTypeTable
, Key
);
4746 Display Processor Architecture Type (Type 44).
4748 @param[in] Key The key of the structure.
4749 @param[in] Option The optional information.
4752 DisplayProcessorArchitectureType (
4757 ShellPrintHiiEx (-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROCESSOR_ARCH_TYPE
), gShellDebug1HiiHandle
);
4758 PRINT_INFO_OPTION (Key
, Option
);
4759 PRINT_TABLE_ITEM (ProcessorArchitectureTypesTable
, Key
);
4763 Display the structure type information.
4765 @param[in] Key The key of the structure.
4766 @param[in] Option The optional information.
4769 DisplayStructureTypeInfo (
4777 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_STRUCT_TYPE
), gShellDebug1HiiHandle
);
4778 PRINT_INFO_OPTION (Key
, Option
);
4779 PRINT_TABLE_ITEM (StructureTypeInfoTable
, Key
);