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 - 2014, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #include "../UefiShellDebug1CommandsLib.h"
17 #include "QueryTable.h"
18 #include "PrintInfo.h"
20 TABLE_ITEM SystemWakeupTypeTable
[] = {
55 TABLE_ITEM BaseBoardFeatureFlagsTable
[] = {
62 L
" Requires at least one daughter board or auxiliary card"
78 TABLE_ITEM BaseBoardBoardTypeTable
[] = {
93 L
" Connectivity Switch"
97 L
" System Management Module"
121 L
" Processor/Memory Module"
125 L
" Processor/IO Module"
129 L
" Interconnect Board"
133 TABLE_ITEM SystemEnclosureTypeTable
[] = {
148 L
" Low Profile Desktop"
196 L
" Main Server Chassis"
200 L
" Expansion Chassis"
212 L
" Bus Expansion Chassis"
216 L
" Peripheral Chassis"
224 L
" Rack Mount Chassis"
232 L
" Multi-system Chassis"
252 TABLE_ITEM SystemEnclosureStatusTable
[] = {
279 TABLE_ITEM SESecurityStatusTable
[] = {
294 L
" External interface locked out"
298 L
" External interface enabled"
302 TABLE_ITEM ProcessorTypeTable
[] = {
313 L
" Central Processor"
329 TABLE_ITEM ProcessorUpgradeTable
[] = {
348 L
"Replaceable Piggy Back"
500 TABLE_ITEM ProcessorCharacteristicsTable
[] = {
519 L
" Execute Protection"
523 L
" Enhanced Virtualization"
527 L
" Power/Performance Control"
532 TABLE_ITEM McErrorDetectMethodTable
[] = {
567 TABLE_ITEM McErrorCorrectCapabilityTable
[] = {
582 L
"Single Bit Error Correcting"
586 L
"Double Bit Error Correcting"
594 TABLE_ITEM McInterleaveSupportTable
[] = {
605 L
"One Way Interleave"
609 L
"Two Way Interleave"
613 L
"Four Way Interleave"
617 L
"Eight Way Interleave"
621 L
"Sixteen Way Interleave"
625 TABLE_ITEM McMemorySpeedsTable
[] = {
648 TABLE_ITEM MemoryModuleVoltageTable
[] = {
663 TABLE_ITEM MmMemoryTypeTable
[] = {
710 TABLE_ITEM MmErrorStatusTable
[] = {
713 L
" Uncorrectable errors received"
717 L
" Correctable errors received"
721 L
" Error Status obtained from the event log"
725 TABLE_ITEM CacheSRAMTypeTable
[] = {
756 TABLE_ITEM CacheErrCorrectingTypeTable
[] = {
783 TABLE_ITEM CacheSystemCacheTypeTable
[] = {
806 TABLE_ITEM CacheAssociativityTable
[] = {
821 L
"2-way Set-Associative"
825 L
"4-way Set-Associative"
833 L
"8-way Set-Associative"
837 L
"16-way Set-Associative"
841 L
"12-way Set-Associative"
845 L
"24-way Set-Associative"
849 L
"32-way Set-Associative"
853 L
"48-way Set-Associative"
857 L
"64-way Set-Associative"
861 L
"20-way Set-Associative"
865 TABLE_ITEM PortConnectorTypeTable
[] = {
948 L
"Circular DIN-8 male"
952 L
"Circular DIN-8 female"
964 L
"9 Pin Dual Inline (pin 10 cut)"
968 L
"25 Pin Dual Inline (pin 26 cut)"
972 L
"50 Pin Dual Inline"
976 L
"68 Pin Dual Inline"
980 L
"On Board Sound Input from CD-ROM"
984 L
"Mini-Centronics Type-14"
988 L
"Mini-Centronics Type-26"
992 L
"Mini-jack (headphones)"
1004 L
"SAS/SATA Plug Receptacle"
1032 TABLE_ITEM PortTypeTable
[] = {
1039 L
"Parallel Port XT/AT Compatible"
1043 L
"Parallel Port PS/2"
1047 L
"Parallel Port ECP"
1051 L
"Parallel Port EPP"
1055 L
"Parallel Port ECP/EPP"
1059 L
"Serial Port XT/AT Compatible"
1063 L
"Serial Port 16450 Compatible"
1067 L
"Serial Port 16550 Compatible"
1071 L
"Serial Port 16550A Compatible"
1103 L
"FireWire (IEEE P1394)"
1175 L
"8251 FIFO Compatible"
1183 TABLE_ITEM SystemSlotTypeTable
[] = {
1222 L
"Processor Card Slot"
1226 L
"Proprietary Memory Card Slot"
1230 L
"I/O Riser Card Slot"
1238 L
"PCI - 66MHz Capable"
1302 L
"PCI Express Gen 2"
1306 L
"PCI Express Gen 2 X1"
1310 L
"PCI Express Gen 2 X2"
1314 L
"PCI Express Gen 2 X4"
1318 L
"PCI Express Gen 2 X8"
1322 L
"PCI Express Gen 2 X16"
1326 L
"PCI Express Gen 3"
1330 L
"PCI Express Gen 3 X1"
1334 L
"PCI Express Gen 3 X2"
1338 L
"PCI Express Gen 3 X4"
1342 L
"PCI Express Gen 3 X8"
1346 L
"PCI Express Gen 3 X16"
1350 TABLE_ITEM SystemSlotDataBusWidthTable
[] = {
1409 TABLE_ITEM SystemSlotCurrentUsageTable
[] = {
1428 TABLE_ITEM SystemSlotLengthTable
[] = {
1447 TABLE_ITEM SlotCharacteristics1Table
[] = {
1450 L
" Characteristics Unknown"
1454 L
" Provides 5.0 Volts"
1458 L
" Provides 3.3 Volts"
1462 L
" Slot's opening is shared with another slot, e.g. PCI/EISA shared slot."
1467 L
" PC Card slot supports PC Card-16"
1471 L
" PC Card slot supports CardBus"
1475 L
" PC Card slot supports Zoom Video "
1479 L
" PC Card slot supports Modem Ring Resume "
1483 TABLE_ITEM SlotCharacteristics2Table
[] = {
1486 L
" PCI slot supports Power Management Enable (PME#) signal"
1490 L
" Slot supports hot-plug devices"
1494 L
" PCI slot supports SMBus signal"
1498 TABLE_ITEM OnboardDeviceTypesTable
[] = {
1541 TABLE_ITEM SELTypesTable
[] = {
1548 L
" Single-bit ECC memory error"
1552 L
" Multi-bit ECC memory error"
1556 L
" Parity memory error"
1564 L
" I/O Channel Check"
1572 L
" POST Memory Resize"
1580 L
" PCI Parity Error"
1584 L
" PCI System Error"
1592 L
" EISA FailSafe Timer time-out"
1596 L
" Correctable memory log disabled"
1600 L
" Logging disabled for a specific Event Type"
1608 L
" System Limit Exceeded"
1612 L
" Asynchronous hardware timer expired and issued a system reset"
1616 L
" System configuration information"
1620 L
" Hard-disk information"
1624 L
" System reconfigured"
1628 L
" Uncorrectable CPU-complex error"
1632 L
" Log Area Reset/Cleared"
1640 L
" Unused by SMBIOS specification"
1644 L
" System and OEM specified"
1652 TABLE_ITEM SELVarDataFormatTypeTable
[] = {
1667 L
" Multiple-Event Handle "
1671 L
" POST Results Bitmap "
1678 L
" System Management Type"
1685 L
" Multiple-Event System Management Type "
1697 TABLE_ITEM PostResultsBitmapDw1Table
[] = {
1700 L
" Channel 2 Timer error "
1704 L
" Master PIC (8259 #1) error "
1708 L
" Slave PIC (8259 #2) error "
1712 L
" CMOS Battery Failure "
1716 L
" CMOS System Options Not Set "
1720 L
" CMOS Checksum Error "
1724 L
" CMOS Configuration Error "
1728 L
" Mouse and Keyboard Swapped "
1732 L
" Keyboard Locked "
1736 L
" Keyboard Not Functional "
1740 L
" Keyboard Controller Not Functional "
1744 L
" CMOS Memory Size Different "
1748 L
" Memory Decreased in Size "
1752 L
" Cache Memory Error "
1756 L
" Floppy Drive 0 Error "
1760 L
" Floppy Drive 1 Error "
1764 L
" Floppy Controller Failure "
1768 L
" Number of ATA Drives Reduced Error "
1772 L
" CMOS Time Not Set "
1776 L
" DDC Monitor Configuration Change "
1780 L
" Reserved, set to 0 "
1784 L
" Reserved, set to 0 "
1788 L
" Reserved, set to 0 "
1792 L
" Reserved, set to 0 "
1796 L
" Second DWORD has valid data "
1800 L
" Reserved, set to 0 "
1804 L
" Reserved, set to 0 "
1808 L
" Reserved, set to 0 "
1812 L
" Normally 0; available for OEM assignment "
1816 L
" Normally 0; available for OEM assignment "
1820 L
" Normally 0; available for OEM assignment "
1824 L
" Normally 0; available for OEM assignment "
1828 TABLE_ITEM PostResultsBitmapDw2Table
[] = {
1831 L
" Normally 0; available for OEM assignment "
1835 L
" Normally 0; available for OEM assignment "
1839 L
" Normally 0; available for OEM assignment "
1843 L
" Normally 0; available for OEM assignment "
1847 L
" Normally 0; available for OEM assignment "
1851 L
" Normally 0; available for OEM assignment "
1855 L
" Normally 0; available for OEM assignment "
1859 L
" PCI Memory Conflict "
1863 L
" PCI I/O Conflict "
1867 L
" PCI IRQ Conflict "
1871 L
" PNP Memory Conflict "
1875 L
" PNP 32 bit Memory Conflict "
1879 L
" PNP I/O Conflict "
1883 L
" PNP IRQ Conflict "
1887 L
" PNP DMA Conflict "
1891 L
" Bad PNP Serial ID Checksum "
1895 L
" Bad PNP Resource Data Checksum "
1899 L
" Static Resource Conflict "
1903 L
" NVRAM Checksum Error, NVRAM Cleared "
1907 L
" System Board Device Resource Conflict "
1911 L
" Primary Output Device Not Found "
1915 L
" Primary Input Device Not Found "
1919 L
" Primary Boot Device Not Found "
1923 L
" NVRAM Cleared By Jumper "
1927 L
" NVRAM Data Invalid, NVRAM Cleared "
1931 L
" FDC Resource Conflict "
1935 L
" Primary ATA Controller Resource Conflict "
1939 L
" Secondary ATA Controller Resource Conflict "
1943 L
" Parallel Port Resource Conflict "
1947 L
" Serial Port 1 Resource Conflict "
1951 L
" Serial Port 2 Resource Conflict "
1955 L
" Audio Resource Conflict "
1959 TABLE_ITEM SELSysManagementTypesTable
[] = {
1962 L
" +2.5V Out of range, #2 "
1966 L
" +3.3V Out of range "
1970 L
" +5V Out of range "
1974 L
" -5V Out of range "
1978 L
" +12V Out of range "
1982 L
" -12V Out of range "
1986 L
" Reserved for future out-of-range voltage levels "
1990 L
" System board temperature out of range "
1994 L
" Processor #1 temperature out of range "
1998 L
" Processor #2 temperature out of range "
2002 L
" Processor #3 temperature out of range "
2006 L
" Processor #4 temperature out of range "
2010 L
" Reserved for future out-of-range temperatures"
2014 L
" Fan n (n = 0 to 7) Out of range "
2018 L
" Reserved for future assignment via this specification "
2022 L
" Chassis secure switch activated "
2026 TABLE_ITEM PMALocationTable
[] = {
2037 L
" System board or motherboard"
2045 L
" EISA add-on card"
2057 L
" PCMCIA add-on card"
2061 L
" Proprietary add-on card"
2069 L
" PC-98/C20 add-on card"
2073 L
" PC-98/C24 add-on card"
2077 L
" PC-98/E add-on card"
2081 L
" PC-98/Local bus add-on card"
2085 TABLE_ITEM PMAUseTable
[] = {
2108 L
" Non-volatile RAM"
2116 TABLE_ITEM PMAErrorCorrectionTypesTable
[] = {
2147 TABLE_ITEM MemoryDeviceFormFactorTable
[] = {
2178 L
" Proprietary Card"
2210 TABLE_ITEM MemoryDeviceTypeTable
[] = {
2301 TABLE_ITEM MemoryDeviceTypeDetailTable
[] = {
2352 L
" Registered(Buffered)"
2356 L
" Unbuffered(Unregistered)"
2360 TABLE_ITEM MemoryErrorTypeTable
[] = {
2383 L
" Single-bit error"
2387 L
" Double-bit error"
2407 L
" Corrected single-bit error"
2415 L
" Uncorrectable error"
2419 TABLE_ITEM MemoryErrorGranularityTable
[] = {
2434 L
" Memory partition level"
2438 TABLE_ITEM MemoryErrorOperationTable
[] = {
2461 TABLE_ITEM PointingDeviceTypeTable
[] = {
2492 TABLE_ITEM PointingDeviceInterfaceTable
[] = {
2523 L
" ADB(Apple Desktop Bus"
2531 L
" Bus mouse mirco-DIN"
2539 TABLE_ITEM PBDeviceChemistryTable
[] = {
2558 L
" Nickel metal hydride "
2570 L
" Lithium Polymer "
2574 TABLE_ITEM VPLocationTable
[] = {
2597 L
" Non-recoverable "
2601 TABLE_ITEM VPStatusTable
[] = {
2624 L
" System Management Module "
2636 L
" Processor Module "
2648 TABLE_ITEM CoolingDeviceStatusTable
[] = {
2671 L
" Non-recoverable "
2675 TABLE_ITEM CoolingDeviceTypeTable
[] = {
2690 L
" Centrifugal Blower "
2702 L
" Power Supply Fan "
2710 L
" Integrated Refrigeration "
2718 L
" Passive Cooling "
2722 TABLE_ITEM TemperatureProbeStatusTable
[] = {
2745 L
" Non-recoverable "
2749 TABLE_ITEM TemperatureProbeLocTable
[] = {
2772 L
" System Management Module "
2784 L
" Processor Module "
2796 TABLE_ITEM ECPStatusTable
[] = {
2819 L
" Non-recoverable "
2823 TABLE_ITEM ECPLocTable
[] = {
2846 L
" System Management Module "
2858 L
" Processor Module "
2870 TABLE_ITEM MDTypeTable
[] = {
2881 L
" National Semiconductor LM75 "
2885 L
" National Semiconductor LM78 "
2889 L
" National Semiconductor LM79 "
2893 L
" National Semiconductor LM80 "
2897 L
" National Semiconductor LM81 "
2901 L
" Analog Devices ADM9240 "
2905 L
" Dallas Semiconductor DS1780 "
2913 L
" Genesys GL518SM "
2917 L
" Winbond W83781D "
2921 L
" Holtek HT82H791 "
2925 TABLE_ITEM MDAddressTypeTable
[] = {
2948 TABLE_ITEM MemoryChannelTypeTable
[] = {
2967 TABLE_ITEM IPMIDIBMCInterfaceTypeTable
[] = {
2974 L
" KCS: Keyboard Controller Style "
2978 L
" SMIC: Server Management Interface Chip "
2982 L
" BT: Block Transfer "
2986 L
" Reserved for future assignment by this specification "
2990 TABLE_ITEM StructureTypeInfoTable
[] = {
2993 L
" BIOS Information"
2997 L
" System Information"
3001 L
" Base Board Information"
3005 L
" System Enclosure"
3009 L
" Processor Information"
3013 L
" Memory Controller Information "
3017 L
" Memory Module Information "
3021 L
" Cache Information "
3025 L
" Port Connector Information "
3033 L
" On Board Devices Information "
3041 L
" System Configuration Options "
3045 L
" BIOS Language Information "
3049 L
" Group Associations "
3053 L
" System Event Log "
3057 L
" Physical Memory Array "
3065 L
" 32-bit Memory Error Information "
3069 L
" Memory Array Mapped Address "
3073 L
" Memory Device Mapped Address "
3077 L
" Built-in Pointing Device "
3081 L
" Portable Battery "
3089 L
" Hardware Security "
3093 L
" System Power Controls "
3105 L
" Temperature Probe "
3109 L
" Electrical Current Probe "
3113 L
" Out-of-Band Remote Access "
3117 L
" Boot Integrity Services (BIS) Entry Point"
3121 L
" System Boot Information "
3125 L
" 64-bit Memory Error Information "
3129 L
" Management Device "
3133 L
" Management Device Component "
3137 L
" Management Device Threshold Data "
3145 L
" IPMI Device Information "
3149 L
" System Power Supply"
3153 L
" Additional Information"
3157 L
" Onboard Devices Extended Information"
3161 L
" Management Controller Host Interface"
3175 Given a table and a Key, return the responding info.
3178 Table[Index].Key is change from UINT8 to UINT16,
3179 in order to deal with "0xaa - 0xbb".
3182 DisplaySELVariableDataFormatTypes(UINT8 Type, UINT8 Option)
3185 Now define Key = 0x7F07, that is to say: High = 0x7F, Low = 0x07.
3186 Then all the Key Value between Low and High gets the same string
3189 @param[in] Table The begin address of table.
3190 @param[in] Number The number of table items.
3191 @param[in] Key The query Key.
3192 @param[in, out] Info Input as empty buffer; output as data buffer.
3193 @param[in] InfoLen The max number of characters for Info.
3195 @return the found Key and Info is valid.
3196 @retval QUERY_TABLE_UNFOUND and Info should be NULL.
3200 IN TABLE_ITEM
*Table
,
3203 IN OUT CHAR16
*Info
,
3209 // High byte and Low byte of word
3214 for (Index
= 0; Index
< Number
; Index
++) {
3215 High
= (UINT8
) (Table
[Index
].Key
>> 8);
3216 Low
= (UINT8
) (Table
[Index
].Key
& 0x00FF);
3219 // Check if Key is in the range
3220 // or if Key == Value in the table
3222 if ((High
> Low
&& Key
>= Low
&& Key
<= High
)
3223 || (Table
[Index
].Key
== Key
)) {
3224 StrnCpy (Info
, Table
[Index
].Info
, InfoLen
-1);
3225 StrnCat (Info
, L
"\n", InfoLen
- 1 - StrLen(Info
));
3230 StrnCpy (Info
, L
"Undefined Value\n", InfoLen
- 1);
3231 return QUERY_TABLE_UNFOUND
;
3235 Given a table of bit info and a Key, return the responding info to the Key.
3237 @param[in] Table Point to a table which maintains a map of 'bit' to 'message'.
3238 @param[in] Number Number of table items.
3239 @param[in] Bits The Key of query the bit map information.
3243 IN TABLE_ITEM
*Table
,
3249 // Get certain bit of 'Value':
3251 #define BIT(Value, bit) ((Value) & ((UINT32) 1) << (bit))
3253 // Clear certain bit of 'Value':
3255 #define CLR_BIT(Value, bit) ((Value) -= (BIT (Value, bit)))
3264 // query the table and print information
3266 for (Index
= 0; Index
< Number
; Index
++) {
3267 if (BIT (Value
, Table
[Index
].Key
) != 0) {
3268 Print (Table
[Index
].Info
);
3273 // clear the bit, for reserved bits test
3275 CLR_BIT (Value
, Table
[Index
].Key
);
3280 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_NO_INFO
), gShellDebug1HiiHandle
);
3284 ShellPrintHiiEx(-1,-1,NULL
,
3285 STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_BITS_SET
),
3286 gShellDebug1HiiHandle
,
3294 // //////////////////////////////////////////////////////////////////
3296 // Following uses QueryTable functions to simplify the coding.
3297 // QueryTable(), PrintBitsInfo()
3300 #define PRINT_TABLE_ITEM(Table, Key) \
3304 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3305 ZeroMem (Info, sizeof (Info)); \
3306 QueryTable (Table, Num, Key, Info, sizeof(Info)/sizeof(Info[0])); \
3310 #define PRINT_BITS_INFO(Table, bits) \
3313 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3314 PrintBitsInfo (Table, Num, (UINT32) bits); \
3318 Display System Information (Type 1) Type.
3320 @param[in] Type The key of the structure.
3321 @param[in] Option The optional information.
3324 DisplaySystemWakeupType (
3329 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_WAKEUP_TYPE
), gShellDebug1HiiHandle
);
3330 PRINT_INFO_OPTION (Type
, Option
);
3331 PRINT_TABLE_ITEM (SystemWakeupTypeTable
, Type
);
3335 Display Base Board (Type 2) Feature Flags.
3337 @param[in] FeatureFlags The key of the structure.
3338 @param[in] Option The optional information.
3341 DisplayBaseBoardFeatureFlags (
3342 IN UINT8 FeatureFlags
,
3346 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_FEATURE_FLAGS
), gShellDebug1HiiHandle
);
3347 PRINT_INFO_OPTION (FeatureFlags
, Option
);
3348 PRINT_BITS_INFO (BaseBoardFeatureFlagsTable
, FeatureFlags
);
3352 Display Base Board (Type 2) Board Type.
3354 @param[in] Type The key of the structure.
3355 @param[in] Option The optional information.
3358 DisplayBaseBoardBoardType(
3363 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_BOARD_TYPE
), gShellDebug1HiiHandle
);
3364 PRINT_INFO_OPTION (Type
, Option
);
3365 PRINT_TABLE_ITEM (BaseBoardBoardTypeTable
, Type
);
3369 Display System Enclosure (Type 3) Enclosure Type.
3371 @param[in] Type The key of the structure.
3372 @param[in] Option The optional information.
3375 DisplaySystemEnclosureType (
3380 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_TYPE
), gShellDebug1HiiHandle
);
3381 PRINT_INFO_OPTION (Type
, Option
);
3383 // query table and print info
3385 PRINT_TABLE_ITEM (SystemEnclosureTypeTable
, Type
);
3387 if (BIT (Type
, 7) != 0) {
3388 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CHASSIS_LOCK_PRESENT
), gShellDebug1HiiHandle
);
3393 Display System Enclosure (Type 3) Enclosure Status.
3395 @param[in] Status The key of the structure.
3396 @param[in] Option The optional information.
3399 DisplaySystemEnclosureStatus (
3404 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_STATUS
), gShellDebug1HiiHandle
);
3405 PRINT_INFO_OPTION (Status
, Option
);
3406 PRINT_TABLE_ITEM (SystemEnclosureStatusTable
, Status
);
3410 Display System Enclosure (Type 3) Security Status.
3412 @param[in] Status The key of the structure.
3413 @param[in] Option The optional information.
3416 DisplaySESecurityStatus (
3421 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_SECURITY
), gShellDebug1HiiHandle
);
3422 PRINT_INFO_OPTION (Status
, Option
);
3423 PRINT_TABLE_ITEM (SESecurityStatusTable
, Status
);
3427 Display Processor Information (Type 4) Type.
3429 @param[in] Type The key of the structure.
3430 @param[in] Option The optional information.
3433 DisplayProcessorType (
3438 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_TYPE
), gShellDebug1HiiHandle
);
3439 PRINT_INFO_OPTION (Type
, Option
);
3440 PRINT_TABLE_ITEM (ProcessorTypeTable
, Type
);
3444 Display Processor Information (Type 4) Upgrade.
3446 @param[in] Upgrade The key of the structure.
3447 @param[in] Option The optional information.
3450 DisplayProcessorUpgrade (
3455 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_UPDATE
), gShellDebug1HiiHandle
);
3456 PRINT_INFO_OPTION (Upgrade
, Option
);
3457 PRINT_TABLE_ITEM (ProcessorUpgradeTable
, Upgrade
);
3461 Display Processor Information (Type 4) Characteristics.
3463 @param[in] Type The key of the structure.
3464 @param[in] Option The optional information.
3467 DisplayProcessorCharacteristics (
3472 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_CHARACTERISTICS
), gShellDebug1HiiHandle
);
3473 PRINT_INFO_OPTION (Type
, Option
);
3474 PRINT_BITS_INFO (ProcessorCharacteristicsTable
, Type
);
3478 Display Memory Controller Information (Type 5) method.
3480 @param[in] Method The key of the structure.
3481 @param[in] Option The optional information.
3484 DisplayMcErrorDetectMethod (
3489 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DETECTMETHOD
), gShellDebug1HiiHandle
);
3490 PRINT_INFO_OPTION (Method
, Option
);
3491 PRINT_TABLE_ITEM (McErrorDetectMethodTable
, Method
);
3495 Display Memory Controller Information (Type 5) Capability.
3497 @param[in] Capability The key of the structure.
3498 @param[in] Option The optional information.
3501 DisplayMcErrorCorrectCapability (
3502 IN UINT8 Capability
,
3506 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CORRECT_CAPABILITY
), gShellDebug1HiiHandle
);
3507 PRINT_INFO_OPTION (Capability
, Option
);
3508 PRINT_BITS_INFO (McErrorCorrectCapabilityTable
, Capability
);
3512 Display Memory Controller Information (Type 5) Support.
3514 @param[in] Support The key of the structure.
3515 @param[in] Option The optional information.
3518 DisplayMcInterleaveSupport (
3523 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_INTERLEAVE_SUPPORT
), gShellDebug1HiiHandle
);
3524 PRINT_INFO_OPTION (Support
, Option
);
3525 PRINT_TABLE_ITEM (McInterleaveSupportTable
, Support
);
3529 Display Memory Controller Information (Type 5) speeds.
3531 @param[in] Speed The key of the structure.
3532 @param[in] Option The optional information.
3535 DisplayMcMemorySpeeds (
3540 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MEMORY_SPEED
), gShellDebug1HiiHandle
);
3541 PRINT_INFO_OPTION (Speed
, Option
);
3542 PRINT_BITS_INFO (McMemorySpeedsTable
, Speed
);
3546 Display Memory Controller Information (Type 5) voltage.
3548 @param[in] Voltage The key of the structure.
3549 @param[in] Option The optional information.
3552 DisplayMemoryModuleVoltage (
3557 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_REQUIRED_VOLTAGES
), gShellDebug1HiiHandle
);
3558 PRINT_INFO_OPTION (Voltage
, Option
);
3559 PRINT_BITS_INFO (MemoryModuleVoltageTable
, Voltage
);
3563 Display Memory Module Information (Type 6) type.
3565 @param[in] Type The key of the structure.
3566 @param[in] Option The optional information.
3569 DisplayMmMemoryType (
3574 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_TYPE
), gShellDebug1HiiHandle
);
3575 PRINT_INFO_OPTION (Type
, Option
);
3576 PRINT_BITS_INFO (MmMemoryTypeTable
, Type
);
3580 Display Memory Module Information (Type 6) status.
3582 @param[in] Status The key of the structure.
3583 @param[in] Option The optional information.
3586 DisplayMmErrorStatus (
3591 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_ERROR_STATUS
), gShellDebug1HiiHandle
);
3592 PRINT_INFO_OPTION (Status
, Option
);
3593 PRINT_BITS_INFO (MmErrorStatusTable
, Status
);
3597 Display Cache Information (Type 7) SRAM Type.
3599 @param[in] Type The key of the structure.
3600 @param[in] Option The optional information.
3603 DisplayCacheSRAMType (
3608 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SRAM_TYPE
), gShellDebug1HiiHandle
);
3609 PRINT_INFO_OPTION ((UINT8
) Type
, Option
);
3610 PRINT_BITS_INFO (CacheSRAMTypeTable
, (UINT8
) Type
);
3614 Display Cache Information (Type 7) correcting Type.
3616 @param[in] Type The key of the structure.
3617 @param[in] Option The optional information.
3620 DisplayCacheErrCorrectingType (
3625 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ERROR_CORRECTING
), gShellDebug1HiiHandle
);
3626 PRINT_INFO_OPTION (Type
, Option
);
3627 PRINT_TABLE_ITEM (CacheErrCorrectingTypeTable
, Type
);
3631 Display Cache Information (Type 7) Type.
3633 @param[in] Type The key of the structure.
3634 @param[in] Option The optional information.
3637 DisplayCacheSystemCacheType (
3642 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SYSTEM_TYPE
), gShellDebug1HiiHandle
);
3643 PRINT_INFO_OPTION (Type
, Option
);
3644 PRINT_TABLE_ITEM (CacheSystemCacheTypeTable
, Type
);
3648 Display Cache Information (Type 7) Associativity.
3650 @param[in] Associativity The key of the structure.
3651 @param[in] Option The optional information.
3654 DisplayCacheAssociativity (
3655 IN UINT8 Associativity
,
3659 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ASSOCIATIVITY
), gShellDebug1HiiHandle
);
3660 PRINT_INFO_OPTION (Associativity
, Option
);
3661 PRINT_TABLE_ITEM (CacheAssociativityTable
, Associativity
);
3665 Display Port Connector Information (Type 8) type.
3667 @param[in] Type The key of the structure.
3668 @param[in] Option The optional information.
3671 DisplayPortConnectorType (
3676 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_CONNECTOR_TYPE
), gShellDebug1HiiHandle
);
3677 PRINT_INFO_OPTION (Type
, Option
);
3678 PRINT_TABLE_ITEM (PortConnectorTypeTable
, Type
);
3682 Display Port Connector Information (Type 8) port type.
3684 @param[in] Type The key of the structure.
3685 @param[in] Option The optional information.
3693 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_TYPE
), gShellDebug1HiiHandle
);
3694 PRINT_INFO_OPTION (Type
, Option
);
3695 PRINT_TABLE_ITEM (PortTypeTable
, Type
);
3699 Display System Slots (Type 9) slot type.
3701 @param[in] Type The key of the structure.
3702 @param[in] Option The optional information.
3705 DisplaySystemSlotType (
3710 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_TYPE
), gShellDebug1HiiHandle
);
3711 PRINT_INFO_OPTION (Type
, Option
);
3712 PRINT_TABLE_ITEM (SystemSlotTypeTable
, Type
);
3716 Display System Slots (Type 9) data bus width.
3718 @param[in] Width The key of the structure.
3719 @param[in] Option The optional information.
3722 DisplaySystemSlotDataBusWidth (
3727 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_DATA
), gShellDebug1HiiHandle
);
3728 PRINT_INFO_OPTION (Width
, Option
);
3729 PRINT_TABLE_ITEM (SystemSlotDataBusWidthTable
, Width
);
3733 Display System Slots (Type 9) usage information.
3735 @param[in] Usage The key of the structure.
3736 @param[in] Option The optional information.
3739 DisplaySystemSlotCurrentUsage (
3744 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_CURRENT_USAGE
), gShellDebug1HiiHandle
);
3745 PRINT_INFO_OPTION (Usage
, Option
);
3746 PRINT_TABLE_ITEM (SystemSlotCurrentUsageTable
, Usage
);
3750 Display System Slots (Type 9) slot length.
3752 @param[in] Length The key of the structure.
3753 @param[in] Option The optional information.
3756 DisplaySystemSlotLength (
3761 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_LENGTH
), gShellDebug1HiiHandle
);
3762 PRINT_INFO_OPTION (Length
, Option
);
3763 PRINT_TABLE_ITEM (SystemSlotLengthTable
, Length
);
3767 Display System Slots (Type 9) characteristics.
3769 @param[in] Chara1 The key of the structure.
3770 @param[in] Option The optional information.
3773 DisplaySlotCharacteristics1 (
3778 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS
), gShellDebug1HiiHandle
);
3779 PRINT_INFO_OPTION (Chara1
, Option
);
3780 PRINT_BITS_INFO (SlotCharacteristics1Table
, Chara1
);
3784 Display System Slots (Type 9) characteristics.
3786 @param[in] Chara2 The key of the structure.
3787 @param[in] Option The optional information.
3790 DisplaySlotCharacteristics2 (
3795 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS_2
), gShellDebug1HiiHandle
);
3796 PRINT_INFO_OPTION (Chara2
, Option
);
3797 PRINT_BITS_INFO (SlotCharacteristics2Table
, Chara2
);
3801 Display On Board Devices Information (Type 10) types.
3803 @param[in] Type The key of the structure.
3804 @param[in] Option The optional information.
3807 DisplayOnboardDeviceTypes (
3812 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ONBOARD_DEVICE_TYPE
), gShellDebug1HiiHandle
);
3813 PRINT_INFO_OPTION (Type
, Option
);
3814 PRINT_TABLE_ITEM (OnboardDeviceTypesTable
, Type
);
3818 Display System Event Log (Type 15) types.
3820 @param[in] Type The key of the structure.
3821 @param[in] Option The optional information.
3829 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_EVENT_LOG_TYPE
), gShellDebug1HiiHandle
);
3830 PRINT_INFO_OPTION (Type
, Option
);
3831 PRINT_TABLE_ITEM (SELTypesTable
, Type
);
3835 Display System Event Log (Type 15) format type.
3837 @param[in] Type The key of the structure.
3838 @param[in] Option The optional information.
3841 DisplaySELVarDataFormatType (
3846 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_EVENT_LOG_VAR_DATA_FORMAT
), gShellDebug1HiiHandle
);
3847 PRINT_INFO_OPTION (Type
, Option
);
3848 PRINT_TABLE_ITEM (SELVarDataFormatTypeTable
, Type
);
3852 Display System Event Log (Type 15) dw1.
3854 @param[in] Key The key of the structure.
3855 @param[in] Option The optional information.
3858 DisplayPostResultsBitmapDw1 (
3863 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_BITMAP
), gShellDebug1HiiHandle
);
3864 PRINT_INFO_OPTION (Key
, Option
);
3865 PRINT_BITS_INFO (PostResultsBitmapDw1Table
, Key
);
3869 Display System Event Log (Type 15) dw2.
3871 @param[in] Key The key of the structure.
3872 @param[in] Option The optional information.
3875 DisplayPostResultsBitmapDw2 (
3880 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_SECOND_DWORD
), gShellDebug1HiiHandle
);
3881 PRINT_INFO_OPTION (Key
, Option
);
3882 PRINT_BITS_INFO (PostResultsBitmapDw2Table
, Key
);
3886 Display System Event Log (Type 15) type.
3888 @param[in] SMType The key of the structure.
3889 @param[in] Option The optional information.
3892 DisplaySELSysManagementTypes (
3899 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_TYPES
), gShellDebug1HiiHandle
);
3900 PRINT_INFO_OPTION (SMType
, Option
);
3903 // Deal with wide range Value
3905 if (SMType
>= 0x80000000) {
3906 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_OEM_ASSIGNED
), gShellDebug1HiiHandle
);
3907 } else if (SMType
>= 0x00020000) {
3908 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
3909 } else if (SMType
>= 0x00010000) {
3910 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_PROBE
), gShellDebug1HiiHandle
);
3911 } else if (SMType
>= 0x31) {
3912 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
3915 // Deal with One byte data
3917 Temp
= (UINT8
) (SMType
& 0x3F);
3918 PRINT_TABLE_ITEM (SELSysManagementTypesTable
, Temp
);
3923 Display Physical Memory Array (Type 16) Location.
3925 @param[in] Location The key of the structure.
3926 @param[in] Option The optional information.
3929 DisplayPMALocation (
3934 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_LOCATION
), gShellDebug1HiiHandle
);
3935 PRINT_INFO_OPTION (Location
, Option
);
3936 PRINT_TABLE_ITEM (PMALocationTable
, Location
);
3940 Display Physical Memory Array (Type 16) Use.
3942 @param[in] Use The key of the structure.
3943 @param[in] Option The optional information.
3951 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_USE
), gShellDebug1HiiHandle
);
3952 PRINT_INFO_OPTION (Use
, Option
);
3953 PRINT_TABLE_ITEM (PMAUseTable
, Use
);
3957 Display Physical Memory Array (Type 16) Types.
3959 @param[in] Type The key of the structure.
3960 @param[in] Option The optional information.
3963 DisplayPMAErrorCorrectionTypes (
3968 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_ERROR
), gShellDebug1HiiHandle
);
3969 PRINT_INFO_OPTION (Type
, Option
);
3970 PRINT_TABLE_ITEM (PMAErrorCorrectionTypesTable
, Type
);
3974 Display Memory Device (Type 17) form factor.
3976 @param[in] FormFactor The key of the structure.
3977 @param[in] Option The optional information.
3980 DisplayMemoryDeviceFormFactor (
3981 IN UINT8 FormFactor
,
3985 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_FORM_FACTOR
), gShellDebug1HiiHandle
);
3986 PRINT_INFO_OPTION (FormFactor
, Option
);
3987 PRINT_TABLE_ITEM (MemoryDeviceFormFactorTable
, FormFactor
);
3991 Display Memory Device (Type 17) type.
3993 @param[in] Type The key of the structure.
3994 @param[in] Option The optional information.
3997 DisplayMemoryDeviceType (
4002 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4003 PRINT_INFO_OPTION (Type
, Option
);
4004 PRINT_TABLE_ITEM (MemoryDeviceTypeTable
, Type
);
4008 Display Memory Device (Type 17) details.
4010 @param[in] Para The key of the structure.
4011 @param[in] Option The optional information.
4014 DisplayMemoryDeviceTypeDetail (
4019 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE_DETAIL
), gShellDebug1HiiHandle
);
4020 PRINT_INFO_OPTION (Para
, Option
);
4021 PRINT_BITS_INFO (MemoryDeviceTypeDetailTable
, Para
);
4025 Display 32-bit Memory Error Information (Type 18) type.
4027 @param[in] ErrorType The key of the structure.
4028 @param[in] Option The optional information.
4031 DisplayMemoryErrorType (
4036 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_INFO
), gShellDebug1HiiHandle
);
4037 PRINT_INFO_OPTION (ErrorType
, Option
);
4038 PRINT_TABLE_ITEM (MemoryErrorTypeTable
, ErrorType
);
4042 Display 32-bit Memory Error Information (Type 18) error granularity.
4044 @param[in] Granularity The key of the structure.
4045 @param[in] Option The optional information.
4048 DisplayMemoryErrorGranularity (
4049 IN UINT8 Granularity
,
4053 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_GRANULARITY
), gShellDebug1HiiHandle
);
4054 PRINT_INFO_OPTION (Granularity
, Option
);
4055 PRINT_TABLE_ITEM (MemoryErrorGranularityTable
, Granularity
);
4059 Display 32-bit Memory Error Information (Type 18) error information.
4061 @param[in] Operation The key of the structure.
4062 @param[in] Option The optional information.
4065 DisplayMemoryErrorOperation (
4070 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_OP
), gShellDebug1HiiHandle
);
4071 PRINT_INFO_OPTION (Operation
, Option
);
4072 PRINT_TABLE_ITEM (MemoryErrorOperationTable
, Operation
);
4076 Display Built-in Pointing Device (Type 21) type information.
4078 @param[in] Type The key of the structure.
4079 @param[in] Option The optional information.
4082 DisplayPointingDeviceType (
4087 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4088 PRINT_INFO_OPTION (Type
, Option
);
4089 PRINT_TABLE_ITEM (PointingDeviceTypeTable
, Type
);
4093 Display Built-in Pointing Device (Type 21) information.
4095 @param[in] Interface The key of the structure.
4096 @param[in] Option The optional information.
4099 DisplayPointingDeviceInterface (
4104 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_INTERFACE
), gShellDebug1HiiHandle
);
4105 PRINT_INFO_OPTION (Interface
, Option
);
4106 PRINT_TABLE_ITEM (PointingDeviceInterfaceTable
, Interface
);
4110 Display Portable Battery (Type 22) information.
4112 @param[in] Key The key of the structure.
4113 @param[in] Option The optional information.
4116 DisplayPBDeviceChemistry (
4121 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORTABLE_BATT_DEV_CHEM
), gShellDebug1HiiHandle
);
4122 PRINT_INFO_OPTION (Key
, Option
);
4123 PRINT_TABLE_ITEM (PBDeviceChemistryTable
, Key
);
4127 Display Voltage Probe (Type 26) location information.
4129 @param[in] Key The key of the structure.
4130 @param[in] Option The optional information.
4140 Loc
= (UINT8
) ((Key
& 0xE0) >> 5);
4141 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4142 PRINT_INFO_OPTION (Loc
, Option
);
4143 PRINT_TABLE_ITEM (VPLocationTable
, Loc
);
4147 Display Voltage Probe (Type 26) status ype information.
4149 @param[in] Key The key of the structure.
4150 @param[in] Option The optional information.
4160 Status
= (UINT8
) (Key
& 0x1F);
4161 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_STATUS
), gShellDebug1HiiHandle
);
4162 PRINT_INFO_OPTION (Status
, Option
);
4163 PRINT_TABLE_ITEM (VPStatusTable
, Status
);
4167 Display Cooling (Type 27) status information.
4169 @param[in] Key The key of the structure.
4170 @param[in] Option The optional information.
4173 DisplayCoolingDeviceStatus (
4180 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4181 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_STATUS
), gShellDebug1HiiHandle
);
4182 PRINT_INFO_OPTION (Status
, Option
);
4183 PRINT_TABLE_ITEM (CoolingDeviceStatusTable
, Status
);
4187 Display Cooling (Type 27) type information.
4189 @param[in] Key The key of the structure.
4190 @param[in] Option The optional information.
4193 DisplayCoolingDeviceType (
4200 Type
= (UINT8
) (Key
& 0x1F);
4201 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_TYPE
), gShellDebug1HiiHandle
);
4202 PRINT_INFO_OPTION (Type
, Option
);
4203 PRINT_TABLE_ITEM (CoolingDeviceTypeTable
, Type
);
4207 Display Temperature Probe (Type 28) status information.
4209 @param[in] Key The key of the structure.
4210 @param[in] Option The optional information.
4213 DisplayTemperatureProbeStatus (
4220 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4221 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_TEMP_PROBE
), gShellDebug1HiiHandle
);
4222 PRINT_INFO_OPTION (Status
, Option
);
4223 PRINT_TABLE_ITEM (TemperatureProbeStatusTable
, Status
);
4227 Display Temperature Probe (Type 28) location information.
4229 @param[in] Key The key of the structure.
4230 @param[in] Option The optional information.
4233 DisplayTemperatureProbeLoc (
4240 Loc
= (UINT8
) (Key
& 0x1F);
4241 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4242 PRINT_INFO_OPTION (Loc
, Option
);
4243 PRINT_TABLE_ITEM (TemperatureProbeLocTable
, Loc
);
4247 Display Electrical Current Probe (Type 29) status information.
4249 @param[in] Key The key of the structure.
4250 @param[in] Option The optional information.
4260 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4261 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_STATUS
), gShellDebug1HiiHandle
);
4262 PRINT_INFO_OPTION (Status
, Option
);
4263 PRINT_TABLE_ITEM (ECPStatusTable
, Status
);
4267 Display Type 29 information.
4269 @param[in] Key The key of the structure.
4270 @param[in] Option The optional information.
4280 Loc
= (UINT8
) (Key
& 0x1F);
4281 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_LOC
), gShellDebug1HiiHandle
);
4282 PRINT_INFO_OPTION (Loc
, Option
);
4283 PRINT_TABLE_ITEM (ECPLocTable
, Loc
);
4287 Display Management Device (Type 34) Type.
4289 @param[in] Key The key of the structure.
4290 @param[in] Option The optional information.
4298 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_TYPE
), gShellDebug1HiiHandle
);
4299 PRINT_INFO_OPTION (Key
, Option
);
4300 PRINT_TABLE_ITEM (MDTypeTable
, Key
);
4304 Display Management Device (Type 34) Address Type.
4306 @param[in] Key The key of the structure.
4307 @param[in] Option The optional information.
4310 DisplayMDAddressType (
4315 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_ADDR_TYPE
), gShellDebug1HiiHandle
);
4316 PRINT_INFO_OPTION (Key
, Option
);
4317 PRINT_TABLE_ITEM (MDAddressTypeTable
, Key
);
4321 Display Memory Channel (Type 37) information.
4323 @param[in] Key The key of the structure.
4324 @param[in] Option The optional information.
4327 DisplayMemoryChannelType (
4332 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CHANNEL_TYPE
), gShellDebug1HiiHandle
);
4333 PRINT_INFO_OPTION (Key
, Option
);
4334 PRINT_TABLE_ITEM (MemoryChannelTypeTable
, Key
);
4338 Display IPMI Device Information (Type 38) information.
4340 @param[in] Key The key of the structure.
4341 @param[in] Option The optional information.
4344 DisplayIPMIDIBMCInterfaceType (
4349 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BMC_INTERFACE_TYPE
), gShellDebug1HiiHandle
);
4350 PRINT_INFO_OPTION (Key
, Option
);
4351 PRINT_TABLE_ITEM (IPMIDIBMCInterfaceTypeTable
, Key
);
4355 Display the structure type information.
4357 @param[in] Key The key of the structure.
4358 @param[in] Option The optional information.
4361 DisplayStructureTypeInfo (
4369 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_STRUCT_TYPE
), gShellDebug1HiiHandle
);
4370 PRINT_INFO_OPTION (Key
, Option
);
4371 PRINT_TABLE_ITEM (StructureTypeInfoTable
, Key
);