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 - 2017, Intel Corporation. All rights reserved.<BR>
6 (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP<BR>
7 This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 #include "../UefiShellDebug1CommandsLib.h"
18 #include "QueryTable.h"
19 #include "PrintInfo.h"
21 TABLE_ITEM SystemWakeupTypeTable
[] = {
56 TABLE_ITEM BaseBoardFeatureFlagsTable
[] = {
63 L
" Requires at least one daughter board or auxiliary card"
79 TABLE_ITEM BaseBoardBoardTypeTable
[] = {
94 L
" Connectivity Switch"
98 L
" System Management Module"
122 L
" Processor/Memory Module"
126 L
" Processor/IO Module"
130 L
" Interconnect Board"
134 TABLE_ITEM SystemEnclosureTypeTable
[] = {
149 L
" Low Profile Desktop"
197 L
" Main Server Chassis"
201 L
" Expansion Chassis"
213 L
" Bus Expansion Chassis"
217 L
" Peripheral Chassis"
225 L
" Rack Mount Chassis"
233 L
" Multi-system Chassis"
265 TABLE_ITEM SystemEnclosureStatusTable
[] = {
292 TABLE_ITEM SESecurityStatusTable
[] = {
307 L
" External interface locked out"
311 L
" External interface enabled"
315 TABLE_ITEM ProcessorTypeTable
[] = {
326 L
" Central Processor"
342 TABLE_ITEM ProcessorUpgradeTable
[] = {
361 L
"Replaceable Piggy Back"
537 TABLE_ITEM ProcessorCharacteristicsTable
[] = {
556 L
" Execute Protection"
560 L
" Enhanced Virtualization"
564 L
" Power/Performance Control"
569 TABLE_ITEM McErrorDetectMethodTable
[] = {
604 TABLE_ITEM McErrorCorrectCapabilityTable
[] = {
619 L
"Single Bit Error Correcting"
623 L
"Double Bit Error Correcting"
631 TABLE_ITEM McInterleaveSupportTable
[] = {
642 L
"One Way Interleave"
646 L
"Two Way Interleave"
650 L
"Four Way Interleave"
654 L
"Eight Way Interleave"
658 L
"Sixteen Way Interleave"
662 TABLE_ITEM McMemorySpeedsTable
[] = {
685 TABLE_ITEM MemoryModuleVoltageTable
[] = {
700 TABLE_ITEM MmMemoryTypeTable
[] = {
747 TABLE_ITEM MmErrorStatusTable
[] = {
750 L
" Uncorrectable errors received"
754 L
" Correctable errors received"
758 L
" Error Status obtained from the event log"
762 TABLE_ITEM CacheSRAMTypeTable
[] = {
793 TABLE_ITEM CacheErrCorrectingTypeTable
[] = {
820 TABLE_ITEM CacheSystemCacheTypeTable
[] = {
843 TABLE_ITEM CacheAssociativityTable
[] = {
858 L
"2-way Set-Associative"
862 L
"4-way Set-Associative"
870 L
"8-way Set-Associative"
874 L
"16-way Set-Associative"
878 L
"12-way Set-Associative"
882 L
"24-way Set-Associative"
886 L
"32-way Set-Associative"
890 L
"48-way Set-Associative"
894 L
"64-way Set-Associative"
898 L
"20-way Set-Associative"
902 TABLE_ITEM PortConnectorTypeTable
[] = {
985 L
"Circular DIN-8 male"
989 L
"Circular DIN-8 female"
1001 L
"9 Pin Dual Inline (pin 10 cut)"
1005 L
"25 Pin Dual Inline (pin 26 cut)"
1009 L
"50 Pin Dual Inline"
1013 L
"68 Pin Dual Inline"
1017 L
"On Board Sound Input from CD-ROM"
1021 L
"Mini-Centronics Type-14"
1025 L
"Mini-Centronics Type-26"
1029 L
"Mini-jack (headphones)"
1041 L
"SAS/SATA Plug Receptacle"
1069 TABLE_ITEM PortTypeTable
[] = {
1076 L
"Parallel Port XT/AT Compatible"
1080 L
"Parallel Port PS/2"
1084 L
"Parallel Port ECP"
1088 L
"Parallel Port EPP"
1092 L
"Parallel Port ECP/EPP"
1096 L
"Serial Port XT/AT Compatible"
1100 L
"Serial Port 16450 Compatible"
1104 L
"Serial Port 16550 Compatible"
1108 L
"Serial Port 16550A Compatible"
1140 L
"FireWire (IEEE P1394)"
1212 L
"8251 FIFO Compatible"
1220 TABLE_ITEM SystemSlotTypeTable
[] = {
1259 L
"Processor Card Slot"
1263 L
"Proprietary Memory Card Slot"
1267 L
"I/O Riser Card Slot"
1275 L
"PCI - 66MHz Capable"
1299 L
"M.2 Socket 1-DP (Mechanical Key A)"
1303 L
"M.2 Socket 1-SD (Mechanical Key E)"
1307 L
"M.2 Socket 2 (Mechanical Key B)"
1311 L
"M.2 Socket 3 (Mechanical Key M)"
1323 L
"MXM Type III (standard connector)"
1327 L
"MXM Type III (HE connector)"
1343 L
"PCI Express Gen 2 SFF-8639"
1347 L
"PCI Express Gen 3 SFF-8639"
1395 L
"PCI Express Gen 2"
1399 L
"PCI Express Gen 2 X1"
1403 L
"PCI Express Gen 2 X2"
1407 L
"PCI Express Gen 2 X4"
1411 L
"PCI Express Gen 2 X8"
1415 L
"PCI Express Gen 2 X16"
1419 L
"PCI Express Gen 3"
1423 L
"PCI Express Gen 3 X1"
1427 L
"PCI Express Gen 3 X2"
1431 L
"PCI Express Gen 3 X4"
1435 L
"PCI Express Gen 3 X8"
1439 L
"PCI Express Gen 3 X16"
1443 TABLE_ITEM SystemSlotDataBusWidthTable
[] = {
1502 TABLE_ITEM SystemSlotCurrentUsageTable
[] = {
1521 TABLE_ITEM SystemSlotLengthTable
[] = {
1540 TABLE_ITEM SlotCharacteristics1Table
[] = {
1543 L
" Characteristics Unknown"
1547 L
" Provides 5.0 Volts"
1551 L
" Provides 3.3 Volts"
1555 L
" Slot's opening is shared with another slot, e.g. PCI/EISA shared slot."
1560 L
" PC Card slot supports PC Card-16"
1564 L
" PC Card slot supports CardBus"
1568 L
" PC Card slot supports Zoom Video "
1572 L
" PC Card slot supports Modem Ring Resume "
1576 TABLE_ITEM SlotCharacteristics2Table
[] = {
1579 L
" PCI slot supports Power Management Enable (PME#) signal"
1583 L
" Slot supports hot-plug devices"
1587 L
" PCI slot supports SMBus signal"
1591 TABLE_ITEM OnboardDeviceTypesTable
[] = {
1634 TABLE_ITEM SELTypesTable
[] = {
1641 L
" Single-bit ECC memory error"
1645 L
" Multi-bit ECC memory error"
1649 L
" Parity memory error"
1657 L
" I/O Channel Check"
1665 L
" POST Memory Resize"
1673 L
" PCI Parity Error"
1677 L
" PCI System Error"
1685 L
" EISA FailSafe Timer time-out"
1689 L
" Correctable memory log disabled"
1693 L
" Logging disabled for a specific Event Type"
1701 L
" System Limit Exceeded"
1705 L
" Asynchronous hardware timer expired and issued a system reset"
1709 L
" System configuration information"
1713 L
" Hard-disk information"
1717 L
" System reconfigured"
1721 L
" Uncorrectable CPU-complex error"
1725 L
" Log Area Reset/Cleared"
1733 L
" Unused by SMBIOS specification"
1737 L
" System and OEM specified"
1745 TABLE_ITEM SELVarDataFormatTypeTable
[] = {
1760 L
" Multiple-Event Handle "
1764 L
" POST Results Bitmap "
1771 L
" System Management Type"
1778 L
" Multiple-Event System Management Type "
1790 TABLE_ITEM PostResultsBitmapDw1Table
[] = {
1793 L
" Channel 2 Timer error "
1797 L
" Master PIC (8259 #1) error "
1801 L
" Slave PIC (8259 #2) error "
1805 L
" CMOS Battery Failure "
1809 L
" CMOS System Options Not Set "
1813 L
" CMOS Checksum Error "
1817 L
" CMOS Configuration Error "
1821 L
" Mouse and Keyboard Swapped "
1825 L
" Keyboard Locked "
1829 L
" Keyboard Not Functional "
1833 L
" Keyboard Controller Not Functional "
1837 L
" CMOS Memory Size Different "
1841 L
" Memory Decreased in Size "
1845 L
" Cache Memory Error "
1849 L
" Floppy Drive 0 Error "
1853 L
" Floppy Drive 1 Error "
1857 L
" Floppy Controller Failure "
1861 L
" Number of ATA Drives Reduced Error "
1865 L
" CMOS Time Not Set "
1869 L
" DDC Monitor Configuration Change "
1873 L
" Reserved, set to 0 "
1877 L
" Reserved, set to 0 "
1881 L
" Reserved, set to 0 "
1885 L
" Reserved, set to 0 "
1889 L
" Second DWORD has valid data "
1893 L
" Reserved, set to 0 "
1897 L
" Reserved, set to 0 "
1901 L
" Reserved, set to 0 "
1905 L
" Normally 0; available for OEM assignment "
1909 L
" Normally 0; available for OEM assignment "
1913 L
" Normally 0; available for OEM assignment "
1917 L
" Normally 0; available for OEM assignment "
1921 TABLE_ITEM PostResultsBitmapDw2Table
[] = {
1924 L
" Normally 0; available for OEM assignment "
1928 L
" Normally 0; available for OEM assignment "
1932 L
" Normally 0; available for OEM assignment "
1936 L
" Normally 0; available for OEM assignment "
1940 L
" Normally 0; available for OEM assignment "
1944 L
" Normally 0; available for OEM assignment "
1948 L
" Normally 0; available for OEM assignment "
1952 L
" PCI Memory Conflict "
1956 L
" PCI I/O Conflict "
1960 L
" PCI IRQ Conflict "
1964 L
" PNP Memory Conflict "
1968 L
" PNP 32 bit Memory Conflict "
1972 L
" PNP I/O Conflict "
1976 L
" PNP IRQ Conflict "
1980 L
" PNP DMA Conflict "
1984 L
" Bad PNP Serial ID Checksum "
1988 L
" Bad PNP Resource Data Checksum "
1992 L
" Static Resource Conflict "
1996 L
" NVRAM Checksum Error, NVRAM Cleared "
2000 L
" System Board Device Resource Conflict "
2004 L
" Primary Output Device Not Found "
2008 L
" Primary Input Device Not Found "
2012 L
" Primary Boot Device Not Found "
2016 L
" NVRAM Cleared By Jumper "
2020 L
" NVRAM Data Invalid, NVRAM Cleared "
2024 L
" FDC Resource Conflict "
2028 L
" Primary ATA Controller Resource Conflict "
2032 L
" Secondary ATA Controller Resource Conflict "
2036 L
" Parallel Port Resource Conflict "
2040 L
" Serial Port 1 Resource Conflict "
2044 L
" Serial Port 2 Resource Conflict "
2048 L
" Audio Resource Conflict "
2052 TABLE_ITEM SELSysManagementTypesTable
[] = {
2055 L
" +2.5V Out of range, #2 "
2059 L
" +3.3V Out of range "
2063 L
" +5V Out of range "
2067 L
" -5V Out of range "
2071 L
" +12V Out of range "
2075 L
" -12V Out of range "
2079 L
" Reserved for future out-of-range voltage levels "
2083 L
" System board temperature out of range "
2087 L
" Processor #1 temperature out of range "
2091 L
" Processor #2 temperature out of range "
2095 L
" Processor #3 temperature out of range "
2099 L
" Processor #4 temperature out of range "
2103 L
" Reserved for future out-of-range temperatures"
2107 L
" Fan n (n = 0 to 7) Out of range "
2111 L
" Reserved for future assignment via this specification "
2115 L
" Chassis secure switch activated "
2119 TABLE_ITEM PMALocationTable
[] = {
2130 L
" System board or motherboard"
2138 L
" EISA add-on card"
2150 L
" PCMCIA add-on card"
2154 L
" Proprietary add-on card"
2162 L
" PC-98/C20 add-on card"
2166 L
" PC-98/C24 add-on card"
2170 L
" PC-98/E add-on card"
2174 L
" PC-98/Local bus add-on card"
2178 TABLE_ITEM PMAUseTable
[] = {
2201 L
" Non-volatile RAM"
2209 TABLE_ITEM PMAErrorCorrectionTypesTable
[] = {
2240 TABLE_ITEM MemoryDeviceFormFactorTable
[] = {
2271 L
" Proprietary Card"
2303 TABLE_ITEM MemoryDeviceTypeTable
[] = {
2414 TABLE_ITEM MemoryDeviceTypeDetailTable
[] = {
2465 L
" Registered(Buffered)"
2469 L
" Unbuffered(Unregistered)"
2473 TABLE_ITEM MemoryErrorTypeTable
[] = {
2496 L
" Single-bit error"
2500 L
" Double-bit error"
2520 L
" Corrected single-bit error"
2528 L
" Uncorrectable error"
2532 TABLE_ITEM MemoryErrorGranularityTable
[] = {
2547 L
" Memory partition level"
2551 TABLE_ITEM MemoryErrorOperationTable
[] = {
2574 TABLE_ITEM PointingDeviceTypeTable
[] = {
2605 TABLE_ITEM PointingDeviceInterfaceTable
[] = {
2636 L
" ADB(Apple Desktop Bus"
2644 L
" Bus mouse mirco-DIN"
2652 TABLE_ITEM PBDeviceChemistryTable
[] = {
2671 L
" Nickel metal hydride "
2683 L
" Lithium Polymer "
2687 TABLE_ITEM VPLocationTable
[] = {
2710 L
" Non-recoverable "
2714 TABLE_ITEM VPStatusTable
[] = {
2737 L
" System Management Module "
2749 L
" Processor Module "
2761 TABLE_ITEM CoolingDeviceStatusTable
[] = {
2784 L
" Non-recoverable "
2788 TABLE_ITEM CoolingDeviceTypeTable
[] = {
2803 L
" Centrifugal Blower "
2815 L
" Power Supply Fan "
2823 L
" Integrated Refrigeration "
2831 L
" Passive Cooling "
2835 TABLE_ITEM TemperatureProbeStatusTable
[] = {
2858 L
" Non-recoverable "
2862 TABLE_ITEM TemperatureProbeLocTable
[] = {
2885 L
" System Management Module "
2897 L
" Processor Module "
2909 TABLE_ITEM ECPStatusTable
[] = {
2932 L
" Non-recoverable "
2936 TABLE_ITEM ECPLocTable
[] = {
2959 L
" System Management Module "
2971 L
" Processor Module "
2983 TABLE_ITEM MDTypeTable
[] = {
2994 L
" National Semiconductor LM75 "
2998 L
" National Semiconductor LM78 "
3002 L
" National Semiconductor LM79 "
3006 L
" National Semiconductor LM80 "
3010 L
" National Semiconductor LM81 "
3014 L
" Analog Devices ADM9240 "
3018 L
" Dallas Semiconductor DS1780 "
3026 L
" Genesys GL518SM "
3030 L
" Winbond W83781D "
3034 L
" Holtek HT82H791 "
3038 TABLE_ITEM MDAddressTypeTable
[] = {
3061 TABLE_ITEM MemoryChannelTypeTable
[] = {
3080 TABLE_ITEM IPMIDIBMCInterfaceTypeTable
[] = {
3087 L
" KCS: Keyboard Controller Style "
3091 L
" SMIC: Server Management Interface Chip "
3095 L
" BT: Block Transfer "
3099 L
" Reserved for future assignment by this specification "
3103 TABLE_ITEM StructureTypeInfoTable
[] = {
3106 L
" BIOS Information"
3110 L
" System Information"
3114 L
" Base Board Information"
3118 L
" System Enclosure"
3122 L
" Processor Information"
3126 L
" Memory Controller Information "
3130 L
" Memory Module Information "
3134 L
" Cache Information "
3138 L
" Port Connector Information "
3146 L
" On Board Devices Information "
3154 L
" System Configuration Options "
3158 L
" BIOS Language Information "
3162 L
" Group Associations "
3166 L
" System Event Log "
3170 L
" Physical Memory Array "
3178 L
" 32-bit Memory Error Information "
3182 L
" Memory Array Mapped Address "
3186 L
" Memory Device Mapped Address "
3190 L
" Built-in Pointing Device "
3194 L
" Portable Battery "
3202 L
" Hardware Security "
3206 L
" System Power Controls "
3218 L
" Temperature Probe "
3222 L
" Electrical Current Probe "
3226 L
" Out-of-Band Remote Access "
3230 L
" Boot Integrity Services (BIS) Entry Point"
3234 L
" System Boot Information "
3238 L
" 64-bit Memory Error Information "
3242 L
" Management Device "
3246 L
" Management Device Component "
3250 L
" Management Device Threshold Data "
3258 L
" IPMI Device Information "
3262 L
" System Power Supply"
3266 L
" Additional Information"
3270 L
" Onboard Devices Extended Information"
3274 L
" Management Controller Host Interface"
3292 Given a table and a Key, return the responding info.
3295 Table[Index].Key is change from UINT8 to UINT16,
3296 in order to deal with "0xaa - 0xbb".
3299 DisplaySELVariableDataFormatTypes(UINT8 Type, UINT8 Option)
3302 Now define Key = 0x7F07, that is to say: High = 0x7F, Low = 0x07.
3303 Then all the Key Value between Low and High gets the same string
3306 @param[in] Table The begin address of table.
3307 @param[in] Number The number of table items.
3308 @param[in] Key The query Key.
3309 @param[in, out] Info Input as empty buffer; output as data buffer.
3310 @param[in] InfoLen The max number of characters for Info.
3312 @return the found Key and Info is valid.
3313 @retval QUERY_TABLE_UNFOUND and Info should be NULL.
3317 IN TABLE_ITEM
*Table
,
3320 IN OUT CHAR16
*Info
,
3326 // High byte and Low byte of word
3331 for (Index
= 0; Index
< Number
; Index
++) {
3332 High
= (UINT8
) (Table
[Index
].Key
>> 8);
3333 Low
= (UINT8
) (Table
[Index
].Key
& 0x00FF);
3336 // Check if Key is in the range
3337 // or if Key == Value in the table
3339 if ((High
> Low
&& Key
>= Low
&& Key
<= High
)
3340 || (Table
[Index
].Key
== Key
)) {
3341 StrnCpyS (Info
, InfoLen
, Table
[Index
].Info
, InfoLen
- 1);
3342 StrnCatS (Info
, InfoLen
, L
"\n", InfoLen
- 1 - StrLen(Info
));
3347 StrCpyS (Info
, InfoLen
, L
"Undefined Value\n");
3348 return QUERY_TABLE_UNFOUND
;
3352 Given a table of bit info and a Key, return the responding info to the Key.
3354 @param[in] Table Point to a table which maintains a map of 'bit' to 'message'.
3355 @param[in] Number Number of table items.
3356 @param[in] Bits The Key of query the bit map information.
3360 IN TABLE_ITEM
*Table
,
3366 // Get certain bit of 'Value':
3368 #define BIT(Value, bit) ((Value) & ((UINT32) 1) << (bit))
3370 // Clear certain bit of 'Value':
3372 #define CLR_BIT(Value, bit) ((Value) -= (BIT (Value, bit)))
3381 // query the table and print information
3383 for (Index
= 0; Index
< Number
; Index
++) {
3384 if (BIT (Value
, Table
[Index
].Key
) != 0) {
3385 Print (Table
[Index
].Info
);
3390 // clear the bit, for reserved bits test
3392 CLR_BIT (Value
, Table
[Index
].Key
);
3397 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_NO_INFO
), gShellDebug1HiiHandle
);
3401 ShellPrintHiiEx(-1,-1,NULL
,
3402 STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_BITS_SET
),
3403 gShellDebug1HiiHandle
,
3411 // //////////////////////////////////////////////////////////////////
3413 // Following uses QueryTable functions to simplify the coding.
3414 // QueryTable(), PrintBitsInfo()
3417 #define PRINT_TABLE_ITEM(Table, Key) \
3421 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3422 ZeroMem (Info, sizeof (Info)); \
3423 QueryTable (Table, Num, Key, Info, sizeof(Info)/sizeof(Info[0])); \
3427 #define PRINT_BITS_INFO(Table, bits) \
3430 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3431 PrintBitsInfo (Table, Num, (UINT32) bits); \
3435 Display System Information (Type 1) Type.
3437 @param[in] Type The key of the structure.
3438 @param[in] Option The optional information.
3441 DisplaySystemWakeupType (
3446 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_WAKEUP_TYPE
), gShellDebug1HiiHandle
);
3447 PRINT_INFO_OPTION (Type
, Option
);
3448 PRINT_TABLE_ITEM (SystemWakeupTypeTable
, Type
);
3452 Display Base Board (Type 2) Feature Flags.
3454 @param[in] FeatureFlags The key of the structure.
3455 @param[in] Option The optional information.
3458 DisplayBaseBoardFeatureFlags (
3459 IN UINT8 FeatureFlags
,
3463 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_FEATURE_FLAGS
), gShellDebug1HiiHandle
);
3464 PRINT_INFO_OPTION (FeatureFlags
, Option
);
3465 PRINT_BITS_INFO (BaseBoardFeatureFlagsTable
, FeatureFlags
);
3469 Display Base Board (Type 2) Board Type.
3471 @param[in] Type The key of the structure.
3472 @param[in] Option The optional information.
3475 DisplayBaseBoardBoardType(
3480 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_BOARD_TYPE
), gShellDebug1HiiHandle
);
3481 PRINT_INFO_OPTION (Type
, Option
);
3482 PRINT_TABLE_ITEM (BaseBoardBoardTypeTable
, Type
);
3486 Display System Enclosure (Type 3) Enclosure Type.
3488 @param[in] Type The key of the structure.
3489 @param[in] Option The optional information.
3492 DisplaySystemEnclosureType (
3497 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_TYPE
), gShellDebug1HiiHandle
);
3498 PRINT_INFO_OPTION (Type
, Option
);
3500 // query table and print info
3502 PRINT_TABLE_ITEM (SystemEnclosureTypeTable
, Type
);
3504 if (BIT (Type
, 7) != 0) {
3505 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CHASSIS_LOCK_PRESENT
), gShellDebug1HiiHandle
);
3510 Display System Enclosure (Type 3) Enclosure Status.
3512 @param[in] Status The key of the structure.
3513 @param[in] Option The optional information.
3516 DisplaySystemEnclosureStatus (
3521 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_STATUS
), gShellDebug1HiiHandle
);
3522 PRINT_INFO_OPTION (Status
, Option
);
3523 PRINT_TABLE_ITEM (SystemEnclosureStatusTable
, Status
);
3527 Display System Enclosure (Type 3) Security Status.
3529 @param[in] Status The key of the structure.
3530 @param[in] Option The optional information.
3533 DisplaySESecurityStatus (
3538 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_SECURITY
), gShellDebug1HiiHandle
);
3539 PRINT_INFO_OPTION (Status
, Option
);
3540 PRINT_TABLE_ITEM (SESecurityStatusTable
, Status
);
3544 Display Processor Information (Type 4) Type.
3546 @param[in] Type The key of the structure.
3547 @param[in] Option The optional information.
3550 DisplayProcessorType (
3555 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_TYPE
), gShellDebug1HiiHandle
);
3556 PRINT_INFO_OPTION (Type
, Option
);
3557 PRINT_TABLE_ITEM (ProcessorTypeTable
, Type
);
3561 Display Processor Information (Type 4) Upgrade.
3563 @param[in] Upgrade The key of the structure.
3564 @param[in] Option The optional information.
3567 DisplayProcessorUpgrade (
3572 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_UPDATE
), gShellDebug1HiiHandle
);
3573 PRINT_INFO_OPTION (Upgrade
, Option
);
3574 PRINT_TABLE_ITEM (ProcessorUpgradeTable
, Upgrade
);
3578 Display Processor Information (Type 4) Characteristics.
3580 @param[in] Type The key of the structure.
3581 @param[in] Option The optional information.
3584 DisplayProcessorCharacteristics (
3589 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_CHARACTERISTICS
), gShellDebug1HiiHandle
);
3590 PRINT_INFO_OPTION (Type
, Option
);
3591 PRINT_BITS_INFO (ProcessorCharacteristicsTable
, Type
);
3595 Display Memory Controller Information (Type 5) method.
3597 @param[in] Method The key of the structure.
3598 @param[in] Option The optional information.
3601 DisplayMcErrorDetectMethod (
3606 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DETECTMETHOD
), gShellDebug1HiiHandle
);
3607 PRINT_INFO_OPTION (Method
, Option
);
3608 PRINT_TABLE_ITEM (McErrorDetectMethodTable
, Method
);
3612 Display Memory Controller Information (Type 5) Capability.
3614 @param[in] Capability The key of the structure.
3615 @param[in] Option The optional information.
3618 DisplayMcErrorCorrectCapability (
3619 IN UINT8 Capability
,
3623 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CORRECT_CAPABILITY
), gShellDebug1HiiHandle
);
3624 PRINT_INFO_OPTION (Capability
, Option
);
3625 PRINT_BITS_INFO (McErrorCorrectCapabilityTable
, Capability
);
3629 Display Memory Controller Information (Type 5) Support.
3631 @param[in] Support The key of the structure.
3632 @param[in] Option The optional information.
3635 DisplayMcInterleaveSupport (
3640 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_INTERLEAVE_SUPPORT
), gShellDebug1HiiHandle
);
3641 PRINT_INFO_OPTION (Support
, Option
);
3642 PRINT_TABLE_ITEM (McInterleaveSupportTable
, Support
);
3646 Display Memory Controller Information (Type 5) speeds.
3648 @param[in] Speed The key of the structure.
3649 @param[in] Option The optional information.
3652 DisplayMcMemorySpeeds (
3657 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MEMORY_SPEED
), gShellDebug1HiiHandle
);
3658 PRINT_INFO_OPTION (Speed
, Option
);
3659 PRINT_BITS_INFO (McMemorySpeedsTable
, Speed
);
3663 Display Memory Controller Information (Type 5) voltage.
3665 @param[in] Voltage The key of the structure.
3666 @param[in] Option The optional information.
3669 DisplayMemoryModuleVoltage (
3674 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_REQUIRED_VOLTAGES
), gShellDebug1HiiHandle
);
3675 PRINT_INFO_OPTION (Voltage
, Option
);
3676 PRINT_BITS_INFO (MemoryModuleVoltageTable
, Voltage
);
3680 Display Memory Module Information (Type 6) type.
3682 @param[in] Type The key of the structure.
3683 @param[in] Option The optional information.
3686 DisplayMmMemoryType (
3691 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_TYPE
), gShellDebug1HiiHandle
);
3692 PRINT_INFO_OPTION (Type
, Option
);
3693 PRINT_BITS_INFO (MmMemoryTypeTable
, Type
);
3697 Display Memory Module Information (Type 6) status.
3699 @param[in] Status The key of the structure.
3700 @param[in] Option The optional information.
3703 DisplayMmErrorStatus (
3708 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_ERROR_STATUS
), gShellDebug1HiiHandle
);
3709 PRINT_INFO_OPTION (Status
, Option
);
3710 PRINT_BITS_INFO (MmErrorStatusTable
, Status
);
3714 Display Cache Information (Type 7) SRAM Type.
3716 @param[in] Type The key of the structure.
3717 @param[in] Option The optional information.
3720 DisplayCacheSRAMType (
3725 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SRAM_TYPE
), gShellDebug1HiiHandle
);
3726 PRINT_INFO_OPTION ((UINT8
) Type
, Option
);
3727 PRINT_BITS_INFO (CacheSRAMTypeTable
, (UINT8
) Type
);
3731 Display Cache Information (Type 7) correcting Type.
3733 @param[in] Type The key of the structure.
3734 @param[in] Option The optional information.
3737 DisplayCacheErrCorrectingType (
3742 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ERROR_CORRECTING
), gShellDebug1HiiHandle
);
3743 PRINT_INFO_OPTION (Type
, Option
);
3744 PRINT_TABLE_ITEM (CacheErrCorrectingTypeTable
, Type
);
3748 Display Cache Information (Type 7) Type.
3750 @param[in] Type The key of the structure.
3751 @param[in] Option The optional information.
3754 DisplayCacheSystemCacheType (
3759 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SYSTEM_TYPE
), gShellDebug1HiiHandle
);
3760 PRINT_INFO_OPTION (Type
, Option
);
3761 PRINT_TABLE_ITEM (CacheSystemCacheTypeTable
, Type
);
3765 Display Cache Information (Type 7) Associativity.
3767 @param[in] Associativity The key of the structure.
3768 @param[in] Option The optional information.
3771 DisplayCacheAssociativity (
3772 IN UINT8 Associativity
,
3776 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ASSOCIATIVITY
), gShellDebug1HiiHandle
);
3777 PRINT_INFO_OPTION (Associativity
, Option
);
3778 PRINT_TABLE_ITEM (CacheAssociativityTable
, Associativity
);
3782 Display Port Connector Information (Type 8) type.
3784 @param[in] Type The key of the structure.
3785 @param[in] Option The optional information.
3788 DisplayPortConnectorType (
3793 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_CONNECTOR_TYPE
), gShellDebug1HiiHandle
);
3794 PRINT_INFO_OPTION (Type
, Option
);
3795 PRINT_TABLE_ITEM (PortConnectorTypeTable
, Type
);
3799 Display Port Connector Information (Type 8) port type.
3801 @param[in] Type The key of the structure.
3802 @param[in] Option The optional information.
3810 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_TYPE
), gShellDebug1HiiHandle
);
3811 PRINT_INFO_OPTION (Type
, Option
);
3812 PRINT_TABLE_ITEM (PortTypeTable
, Type
);
3816 Display System Slots (Type 9) slot type.
3818 @param[in] Type The key of the structure.
3819 @param[in] Option The optional information.
3822 DisplaySystemSlotType (
3827 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_TYPE
), gShellDebug1HiiHandle
);
3828 PRINT_INFO_OPTION (Type
, Option
);
3829 PRINT_TABLE_ITEM (SystemSlotTypeTable
, Type
);
3833 Display System Slots (Type 9) data bus width.
3835 @param[in] Width The key of the structure.
3836 @param[in] Option The optional information.
3839 DisplaySystemSlotDataBusWidth (
3844 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_DATA
), gShellDebug1HiiHandle
);
3845 PRINT_INFO_OPTION (Width
, Option
);
3846 PRINT_TABLE_ITEM (SystemSlotDataBusWidthTable
, Width
);
3850 Display System Slots (Type 9) usage information.
3852 @param[in] Usage The key of the structure.
3853 @param[in] Option The optional information.
3856 DisplaySystemSlotCurrentUsage (
3861 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_CURRENT_USAGE
), gShellDebug1HiiHandle
);
3862 PRINT_INFO_OPTION (Usage
, Option
);
3863 PRINT_TABLE_ITEM (SystemSlotCurrentUsageTable
, Usage
);
3867 Display System Slots (Type 9) slot length.
3869 @param[in] Length The key of the structure.
3870 @param[in] Option The optional information.
3873 DisplaySystemSlotLength (
3878 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_LENGTH
), gShellDebug1HiiHandle
);
3879 PRINT_INFO_OPTION (Length
, Option
);
3880 PRINT_TABLE_ITEM (SystemSlotLengthTable
, Length
);
3884 Display System Slots (Type 9) characteristics.
3886 @param[in] Chara1 The key of the structure.
3887 @param[in] Option The optional information.
3890 DisplaySlotCharacteristics1 (
3895 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS
), gShellDebug1HiiHandle
);
3896 PRINT_INFO_OPTION (Chara1
, Option
);
3897 PRINT_BITS_INFO (SlotCharacteristics1Table
, Chara1
);
3901 Display System Slots (Type 9) characteristics.
3903 @param[in] Chara2 The key of the structure.
3904 @param[in] Option The optional information.
3907 DisplaySlotCharacteristics2 (
3912 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS_2
), gShellDebug1HiiHandle
);
3913 PRINT_INFO_OPTION (Chara2
, Option
);
3914 PRINT_BITS_INFO (SlotCharacteristics2Table
, Chara2
);
3918 Display On Board Devices Information (Type 10) types.
3920 @param[in] Type The key of the structure.
3921 @param[in] Option The optional information.
3924 DisplayOnboardDeviceTypes (
3929 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ONBOARD_DEVICE_TYPE
), gShellDebug1HiiHandle
);
3930 PRINT_INFO_OPTION (Type
, Option
);
3931 PRINT_TABLE_ITEM (OnboardDeviceTypesTable
, Type
);
3935 Display System Event Log (Type 15) types.
3937 @param[in] Type The key of the structure.
3938 @param[in] Option The optional information.
3946 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_EVENT_LOG_TYPE
), gShellDebug1HiiHandle
);
3947 PRINT_INFO_OPTION (Type
, Option
);
3948 PRINT_TABLE_ITEM (SELTypesTable
, Type
);
3952 Display System Event Log (Type 15) format type.
3954 @param[in] Type The key of the structure.
3955 @param[in] Option The optional information.
3958 DisplaySELVarDataFormatType (
3963 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_EVENT_LOG_VAR_DATA_FORMAT
), gShellDebug1HiiHandle
);
3964 PRINT_INFO_OPTION (Type
, Option
);
3965 PRINT_TABLE_ITEM (SELVarDataFormatTypeTable
, Type
);
3969 Display System Event Log (Type 15) dw1.
3971 @param[in] Key The key of the structure.
3972 @param[in] Option The optional information.
3975 DisplayPostResultsBitmapDw1 (
3980 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_BITMAP
), gShellDebug1HiiHandle
);
3981 PRINT_INFO_OPTION (Key
, Option
);
3982 PRINT_BITS_INFO (PostResultsBitmapDw1Table
, Key
);
3986 Display System Event Log (Type 15) dw2.
3988 @param[in] Key The key of the structure.
3989 @param[in] Option The optional information.
3992 DisplayPostResultsBitmapDw2 (
3997 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_SECOND_DWORD
), gShellDebug1HiiHandle
);
3998 PRINT_INFO_OPTION (Key
, Option
);
3999 PRINT_BITS_INFO (PostResultsBitmapDw2Table
, Key
);
4003 Display System Event Log (Type 15) type.
4005 @param[in] SMType The key of the structure.
4006 @param[in] Option The optional information.
4009 DisplaySELSysManagementTypes (
4016 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_TYPES
), gShellDebug1HiiHandle
);
4017 PRINT_INFO_OPTION (SMType
, Option
);
4020 // Deal with wide range Value
4022 if (SMType
>= 0x80000000) {
4023 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_OEM_ASSIGNED
), gShellDebug1HiiHandle
);
4024 } else if (SMType
>= 0x00020000) {
4025 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
4026 } else if (SMType
>= 0x00010000) {
4027 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_PROBE
), gShellDebug1HiiHandle
);
4028 } else if (SMType
>= 0x31) {
4029 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
4032 // Deal with One byte data
4034 Temp
= (UINT8
) (SMType
& 0x3F);
4035 PRINT_TABLE_ITEM (SELSysManagementTypesTable
, Temp
);
4040 Display Physical Memory Array (Type 16) Location.
4042 @param[in] Location The key of the structure.
4043 @param[in] Option The optional information.
4046 DisplayPMALocation (
4051 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_LOCATION
), gShellDebug1HiiHandle
);
4052 PRINT_INFO_OPTION (Location
, Option
);
4053 PRINT_TABLE_ITEM (PMALocationTable
, Location
);
4057 Display Physical Memory Array (Type 16) Use.
4059 @param[in] Use The key of the structure.
4060 @param[in] Option The optional information.
4068 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_USE
), gShellDebug1HiiHandle
);
4069 PRINT_INFO_OPTION (Use
, Option
);
4070 PRINT_TABLE_ITEM (PMAUseTable
, Use
);
4074 Display Physical Memory Array (Type 16) Types.
4076 @param[in] Type The key of the structure.
4077 @param[in] Option The optional information.
4080 DisplayPMAErrorCorrectionTypes (
4085 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_ERROR
), gShellDebug1HiiHandle
);
4086 PRINT_INFO_OPTION (Type
, Option
);
4087 PRINT_TABLE_ITEM (PMAErrorCorrectionTypesTable
, Type
);
4091 Display Memory Device (Type 17) form factor.
4093 @param[in] FormFactor The key of the structure.
4094 @param[in] Option The optional information.
4097 DisplayMemoryDeviceFormFactor (
4098 IN UINT8 FormFactor
,
4102 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_FORM_FACTOR
), gShellDebug1HiiHandle
);
4103 PRINT_INFO_OPTION (FormFactor
, Option
);
4104 PRINT_TABLE_ITEM (MemoryDeviceFormFactorTable
, FormFactor
);
4108 Display Memory Device (Type 17) type.
4110 @param[in] Type The key of the structure.
4111 @param[in] Option The optional information.
4114 DisplayMemoryDeviceType (
4119 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4120 PRINT_INFO_OPTION (Type
, Option
);
4121 PRINT_TABLE_ITEM (MemoryDeviceTypeTable
, Type
);
4125 Display Memory Device (Type 17) details.
4127 @param[in] Para The key of the structure.
4128 @param[in] Option The optional information.
4131 DisplayMemoryDeviceTypeDetail (
4136 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE_DETAIL
), gShellDebug1HiiHandle
);
4137 PRINT_INFO_OPTION (Para
, Option
);
4138 PRINT_BITS_INFO (MemoryDeviceTypeDetailTable
, Para
);
4142 Display 32-bit Memory Error Information (Type 18) type.
4144 @param[in] ErrorType The key of the structure.
4145 @param[in] Option The optional information.
4148 DisplayMemoryErrorType (
4153 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_INFO
), gShellDebug1HiiHandle
);
4154 PRINT_INFO_OPTION (ErrorType
, Option
);
4155 PRINT_TABLE_ITEM (MemoryErrorTypeTable
, ErrorType
);
4159 Display 32-bit Memory Error Information (Type 18) error granularity.
4161 @param[in] Granularity The key of the structure.
4162 @param[in] Option The optional information.
4165 DisplayMemoryErrorGranularity (
4166 IN UINT8 Granularity
,
4170 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_GRANULARITY
), gShellDebug1HiiHandle
);
4171 PRINT_INFO_OPTION (Granularity
, Option
);
4172 PRINT_TABLE_ITEM (MemoryErrorGranularityTable
, Granularity
);
4176 Display 32-bit Memory Error Information (Type 18) error information.
4178 @param[in] Operation The key of the structure.
4179 @param[in] Option The optional information.
4182 DisplayMemoryErrorOperation (
4187 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_OP
), gShellDebug1HiiHandle
);
4188 PRINT_INFO_OPTION (Operation
, Option
);
4189 PRINT_TABLE_ITEM (MemoryErrorOperationTable
, Operation
);
4193 Display Built-in Pointing Device (Type 21) type information.
4195 @param[in] Type The key of the structure.
4196 @param[in] Option The optional information.
4199 DisplayPointingDeviceType (
4204 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4205 PRINT_INFO_OPTION (Type
, Option
);
4206 PRINT_TABLE_ITEM (PointingDeviceTypeTable
, Type
);
4210 Display Built-in Pointing Device (Type 21) information.
4212 @param[in] Interface The key of the structure.
4213 @param[in] Option The optional information.
4216 DisplayPointingDeviceInterface (
4221 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_INTERFACE
), gShellDebug1HiiHandle
);
4222 PRINT_INFO_OPTION (Interface
, Option
);
4223 PRINT_TABLE_ITEM (PointingDeviceInterfaceTable
, Interface
);
4227 Display Portable Battery (Type 22) information.
4229 @param[in] Key The key of the structure.
4230 @param[in] Option The optional information.
4233 DisplayPBDeviceChemistry (
4238 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORTABLE_BATT_DEV_CHEM
), gShellDebug1HiiHandle
);
4239 PRINT_INFO_OPTION (Key
, Option
);
4240 PRINT_TABLE_ITEM (PBDeviceChemistryTable
, Key
);
4244 Display Voltage Probe (Type 26) location information.
4246 @param[in] Key The key of the structure.
4247 @param[in] Option The optional information.
4257 Loc
= (UINT8
) ((Key
& 0xE0) >> 5);
4258 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4259 PRINT_INFO_OPTION (Loc
, Option
);
4260 PRINT_TABLE_ITEM (VPLocationTable
, Loc
);
4264 Display Voltage Probe (Type 26) status ype information.
4266 @param[in] Key The key of the structure.
4267 @param[in] Option The optional information.
4277 Status
= (UINT8
) (Key
& 0x1F);
4278 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_STATUS
), gShellDebug1HiiHandle
);
4279 PRINT_INFO_OPTION (Status
, Option
);
4280 PRINT_TABLE_ITEM (VPStatusTable
, Status
);
4284 Display Cooling (Type 27) status information.
4286 @param[in] Key The key of the structure.
4287 @param[in] Option The optional information.
4290 DisplayCoolingDeviceStatus (
4297 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4298 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_STATUS
), gShellDebug1HiiHandle
);
4299 PRINT_INFO_OPTION (Status
, Option
);
4300 PRINT_TABLE_ITEM (CoolingDeviceStatusTable
, Status
);
4304 Display Cooling (Type 27) type information.
4306 @param[in] Key The key of the structure.
4307 @param[in] Option The optional information.
4310 DisplayCoolingDeviceType (
4317 Type
= (UINT8
) (Key
& 0x1F);
4318 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_TYPE
), gShellDebug1HiiHandle
);
4319 PRINT_INFO_OPTION (Type
, Option
);
4320 PRINT_TABLE_ITEM (CoolingDeviceTypeTable
, Type
);
4324 Display Temperature Probe (Type 28) status information.
4326 @param[in] Key The key of the structure.
4327 @param[in] Option The optional information.
4330 DisplayTemperatureProbeStatus (
4337 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4338 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_TEMP_PROBE
), gShellDebug1HiiHandle
);
4339 PRINT_INFO_OPTION (Status
, Option
);
4340 PRINT_TABLE_ITEM (TemperatureProbeStatusTable
, Status
);
4344 Display Temperature Probe (Type 28) location information.
4346 @param[in] Key The key of the structure.
4347 @param[in] Option The optional information.
4350 DisplayTemperatureProbeLoc (
4357 Loc
= (UINT8
) (Key
& 0x1F);
4358 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4359 PRINT_INFO_OPTION (Loc
, Option
);
4360 PRINT_TABLE_ITEM (TemperatureProbeLocTable
, Loc
);
4364 Display Electrical Current Probe (Type 29) status information.
4366 @param[in] Key The key of the structure.
4367 @param[in] Option The optional information.
4377 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4378 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_STATUS
), gShellDebug1HiiHandle
);
4379 PRINT_INFO_OPTION (Status
, Option
);
4380 PRINT_TABLE_ITEM (ECPStatusTable
, Status
);
4384 Display Type 29 information.
4386 @param[in] Key The key of the structure.
4387 @param[in] Option The optional information.
4397 Loc
= (UINT8
) (Key
& 0x1F);
4398 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_LOC
), gShellDebug1HiiHandle
);
4399 PRINT_INFO_OPTION (Loc
, Option
);
4400 PRINT_TABLE_ITEM (ECPLocTable
, Loc
);
4404 Display Management Device (Type 34) Type.
4406 @param[in] Key The key of the structure.
4407 @param[in] Option The optional information.
4415 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_TYPE
), gShellDebug1HiiHandle
);
4416 PRINT_INFO_OPTION (Key
, Option
);
4417 PRINT_TABLE_ITEM (MDTypeTable
, Key
);
4421 Display Management Device (Type 34) Address Type.
4423 @param[in] Key The key of the structure.
4424 @param[in] Option The optional information.
4427 DisplayMDAddressType (
4432 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_ADDR_TYPE
), gShellDebug1HiiHandle
);
4433 PRINT_INFO_OPTION (Key
, Option
);
4434 PRINT_TABLE_ITEM (MDAddressTypeTable
, Key
);
4438 Display Memory Channel (Type 37) information.
4440 @param[in] Key The key of the structure.
4441 @param[in] Option The optional information.
4444 DisplayMemoryChannelType (
4449 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CHANNEL_TYPE
), gShellDebug1HiiHandle
);
4450 PRINT_INFO_OPTION (Key
, Option
);
4451 PRINT_TABLE_ITEM (MemoryChannelTypeTable
, Key
);
4455 Display IPMI Device Information (Type 38) information.
4457 @param[in] Key The key of the structure.
4458 @param[in] Option The optional information.
4461 DisplayIPMIDIBMCInterfaceType (
4466 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BMC_INTERFACE_TYPE
), gShellDebug1HiiHandle
);
4467 PRINT_INFO_OPTION (Key
, Option
);
4468 PRINT_TABLE_ITEM (IPMIDIBMCInterfaceTypeTable
, Key
);
4472 Display the structure type information.
4474 @param[in] Key The key of the structure.
4475 @param[in] Option The optional information.
4478 DisplayStructureTypeInfo (
4486 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_STRUCT_TYPE
), gShellDebug1HiiHandle
);
4487 PRINT_INFO_OPTION (Key
, Option
);
4488 PRINT_TABLE_ITEM (StructureTypeInfoTable
, Key
);