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"
508 TABLE_ITEM ProcessorCharacteristicsTable
[] = {
527 L
" Execute Protection"
531 L
" Enhanced Virtualization"
535 L
" Power/Performance Control"
540 TABLE_ITEM McErrorDetectMethodTable
[] = {
575 TABLE_ITEM McErrorCorrectCapabilityTable
[] = {
590 L
"Single Bit Error Correcting"
594 L
"Double Bit Error Correcting"
602 TABLE_ITEM McInterleaveSupportTable
[] = {
613 L
"One Way Interleave"
617 L
"Two Way Interleave"
621 L
"Four Way Interleave"
625 L
"Eight Way Interleave"
629 L
"Sixteen Way Interleave"
633 TABLE_ITEM McMemorySpeedsTable
[] = {
656 TABLE_ITEM MemoryModuleVoltageTable
[] = {
671 TABLE_ITEM MmMemoryTypeTable
[] = {
718 TABLE_ITEM MmErrorStatusTable
[] = {
721 L
" Uncorrectable errors received"
725 L
" Correctable errors received"
729 L
" Error Status obtained from the event log"
733 TABLE_ITEM CacheSRAMTypeTable
[] = {
764 TABLE_ITEM CacheErrCorrectingTypeTable
[] = {
791 TABLE_ITEM CacheSystemCacheTypeTable
[] = {
814 TABLE_ITEM CacheAssociativityTable
[] = {
829 L
"2-way Set-Associative"
833 L
"4-way Set-Associative"
841 L
"8-way Set-Associative"
845 L
"16-way Set-Associative"
849 L
"12-way Set-Associative"
853 L
"24-way Set-Associative"
857 L
"32-way Set-Associative"
861 L
"48-way Set-Associative"
865 L
"64-way Set-Associative"
869 L
"20-way Set-Associative"
873 TABLE_ITEM PortConnectorTypeTable
[] = {
956 L
"Circular DIN-8 male"
960 L
"Circular DIN-8 female"
972 L
"9 Pin Dual Inline (pin 10 cut)"
976 L
"25 Pin Dual Inline (pin 26 cut)"
980 L
"50 Pin Dual Inline"
984 L
"68 Pin Dual Inline"
988 L
"On Board Sound Input from CD-ROM"
992 L
"Mini-Centronics Type-14"
996 L
"Mini-Centronics Type-26"
1000 L
"Mini-jack (headphones)"
1012 L
"SAS/SATA Plug Receptacle"
1040 TABLE_ITEM PortTypeTable
[] = {
1047 L
"Parallel Port XT/AT Compatible"
1051 L
"Parallel Port PS/2"
1055 L
"Parallel Port ECP"
1059 L
"Parallel Port EPP"
1063 L
"Parallel Port ECP/EPP"
1067 L
"Serial Port XT/AT Compatible"
1071 L
"Serial Port 16450 Compatible"
1075 L
"Serial Port 16550 Compatible"
1079 L
"Serial Port 16550A Compatible"
1111 L
"FireWire (IEEE P1394)"
1183 L
"8251 FIFO Compatible"
1191 TABLE_ITEM SystemSlotTypeTable
[] = {
1230 L
"Processor Card Slot"
1234 L
"Proprietary Memory Card Slot"
1238 L
"I/O Riser Card Slot"
1246 L
"PCI - 66MHz Capable"
1310 L
"PCI Express Gen 2"
1314 L
"PCI Express Gen 2 X1"
1318 L
"PCI Express Gen 2 X2"
1322 L
"PCI Express Gen 2 X4"
1326 L
"PCI Express Gen 2 X8"
1330 L
"PCI Express Gen 2 X16"
1334 L
"PCI Express Gen 3"
1338 L
"PCI Express Gen 3 X1"
1342 L
"PCI Express Gen 3 X2"
1346 L
"PCI Express Gen 3 X4"
1350 L
"PCI Express Gen 3 X8"
1354 L
"PCI Express Gen 3 X16"
1358 TABLE_ITEM SystemSlotDataBusWidthTable
[] = {
1417 TABLE_ITEM SystemSlotCurrentUsageTable
[] = {
1436 TABLE_ITEM SystemSlotLengthTable
[] = {
1455 TABLE_ITEM SlotCharacteristics1Table
[] = {
1458 L
" Characteristics Unknown"
1462 L
" Provides 5.0 Volts"
1466 L
" Provides 3.3 Volts"
1470 L
" Slot's opening is shared with another slot, e.g. PCI/EISA shared slot."
1475 L
" PC Card slot supports PC Card-16"
1479 L
" PC Card slot supports CardBus"
1483 L
" PC Card slot supports Zoom Video "
1487 L
" PC Card slot supports Modem Ring Resume "
1491 TABLE_ITEM SlotCharacteristics2Table
[] = {
1494 L
" PCI slot supports Power Management Enable (PME#) signal"
1498 L
" Slot supports hot-plug devices"
1502 L
" PCI slot supports SMBus signal"
1506 TABLE_ITEM OnboardDeviceTypesTable
[] = {
1549 TABLE_ITEM SELTypesTable
[] = {
1556 L
" Single-bit ECC memory error"
1560 L
" Multi-bit ECC memory error"
1564 L
" Parity memory error"
1572 L
" I/O Channel Check"
1580 L
" POST Memory Resize"
1588 L
" PCI Parity Error"
1592 L
" PCI System Error"
1600 L
" EISA FailSafe Timer time-out"
1604 L
" Correctable memory log disabled"
1608 L
" Logging disabled for a specific Event Type"
1616 L
" System Limit Exceeded"
1620 L
" Asynchronous hardware timer expired and issued a system reset"
1624 L
" System configuration information"
1628 L
" Hard-disk information"
1632 L
" System reconfigured"
1636 L
" Uncorrectable CPU-complex error"
1640 L
" Log Area Reset/Cleared"
1648 L
" Unused by SMBIOS specification"
1652 L
" System and OEM specified"
1660 TABLE_ITEM SELVarDataFormatTypeTable
[] = {
1675 L
" Multiple-Event Handle "
1679 L
" POST Results Bitmap "
1686 L
" System Management Type"
1693 L
" Multiple-Event System Management Type "
1705 TABLE_ITEM PostResultsBitmapDw1Table
[] = {
1708 L
" Channel 2 Timer error "
1712 L
" Master PIC (8259 #1) error "
1716 L
" Slave PIC (8259 #2) error "
1720 L
" CMOS Battery Failure "
1724 L
" CMOS System Options Not Set "
1728 L
" CMOS Checksum Error "
1732 L
" CMOS Configuration Error "
1736 L
" Mouse and Keyboard Swapped "
1740 L
" Keyboard Locked "
1744 L
" Keyboard Not Functional "
1748 L
" Keyboard Controller Not Functional "
1752 L
" CMOS Memory Size Different "
1756 L
" Memory Decreased in Size "
1760 L
" Cache Memory Error "
1764 L
" Floppy Drive 0 Error "
1768 L
" Floppy Drive 1 Error "
1772 L
" Floppy Controller Failure "
1776 L
" Number of ATA Drives Reduced Error "
1780 L
" CMOS Time Not Set "
1784 L
" DDC Monitor Configuration Change "
1788 L
" Reserved, set to 0 "
1792 L
" Reserved, set to 0 "
1796 L
" Reserved, set to 0 "
1800 L
" Reserved, set to 0 "
1804 L
" Second DWORD has valid data "
1808 L
" Reserved, set to 0 "
1812 L
" Reserved, set to 0 "
1816 L
" Reserved, set to 0 "
1820 L
" Normally 0; available for OEM assignment "
1824 L
" Normally 0; available for OEM assignment "
1828 L
" Normally 0; available for OEM assignment "
1832 L
" Normally 0; available for OEM assignment "
1836 TABLE_ITEM PostResultsBitmapDw2Table
[] = {
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
" Normally 0; available for OEM assignment "
1863 L
" Normally 0; available for OEM assignment "
1867 L
" PCI Memory Conflict "
1871 L
" PCI I/O Conflict "
1875 L
" PCI IRQ Conflict "
1879 L
" PNP Memory Conflict "
1883 L
" PNP 32 bit Memory Conflict "
1887 L
" PNP I/O Conflict "
1891 L
" PNP IRQ Conflict "
1895 L
" PNP DMA Conflict "
1899 L
" Bad PNP Serial ID Checksum "
1903 L
" Bad PNP Resource Data Checksum "
1907 L
" Static Resource Conflict "
1911 L
" NVRAM Checksum Error, NVRAM Cleared "
1915 L
" System Board Device Resource Conflict "
1919 L
" Primary Output Device Not Found "
1923 L
" Primary Input Device Not Found "
1927 L
" Primary Boot Device Not Found "
1931 L
" NVRAM Cleared By Jumper "
1935 L
" NVRAM Data Invalid, NVRAM Cleared "
1939 L
" FDC Resource Conflict "
1943 L
" Primary ATA Controller Resource Conflict "
1947 L
" Secondary ATA Controller Resource Conflict "
1951 L
" Parallel Port Resource Conflict "
1955 L
" Serial Port 1 Resource Conflict "
1959 L
" Serial Port 2 Resource Conflict "
1963 L
" Audio Resource Conflict "
1967 TABLE_ITEM SELSysManagementTypesTable
[] = {
1970 L
" +2.5V Out of range, #2 "
1974 L
" +3.3V Out of range "
1978 L
" +5V Out of range "
1982 L
" -5V Out of range "
1986 L
" +12V Out of range "
1990 L
" -12V Out of range "
1994 L
" Reserved for future out-of-range voltage levels "
1998 L
" System board temperature out of range "
2002 L
" Processor #1 temperature out of range "
2006 L
" Processor #2 temperature out of range "
2010 L
" Processor #3 temperature out of range "
2014 L
" Processor #4 temperature out of range "
2018 L
" Reserved for future out-of-range temperatures"
2022 L
" Fan n (n = 0 to 7) Out of range "
2026 L
" Reserved for future assignment via this specification "
2030 L
" Chassis secure switch activated "
2034 TABLE_ITEM PMALocationTable
[] = {
2045 L
" System board or motherboard"
2053 L
" EISA add-on card"
2065 L
" PCMCIA add-on card"
2069 L
" Proprietary add-on card"
2077 L
" PC-98/C20 add-on card"
2081 L
" PC-98/C24 add-on card"
2085 L
" PC-98/E add-on card"
2089 L
" PC-98/Local bus add-on card"
2093 TABLE_ITEM PMAUseTable
[] = {
2116 L
" Non-volatile RAM"
2124 TABLE_ITEM PMAErrorCorrectionTypesTable
[] = {
2155 TABLE_ITEM MemoryDeviceFormFactorTable
[] = {
2186 L
" Proprietary Card"
2218 TABLE_ITEM MemoryDeviceTypeTable
[] = {
2309 TABLE_ITEM MemoryDeviceTypeDetailTable
[] = {
2360 L
" Registered(Buffered)"
2364 L
" Unbuffered(Unregistered)"
2368 TABLE_ITEM MemoryErrorTypeTable
[] = {
2391 L
" Single-bit error"
2395 L
" Double-bit error"
2415 L
" Corrected single-bit error"
2423 L
" Uncorrectable error"
2427 TABLE_ITEM MemoryErrorGranularityTable
[] = {
2442 L
" Memory partition level"
2446 TABLE_ITEM MemoryErrorOperationTable
[] = {
2469 TABLE_ITEM PointingDeviceTypeTable
[] = {
2500 TABLE_ITEM PointingDeviceInterfaceTable
[] = {
2531 L
" ADB(Apple Desktop Bus"
2539 L
" Bus mouse mirco-DIN"
2547 TABLE_ITEM PBDeviceChemistryTable
[] = {
2566 L
" Nickel metal hydride "
2578 L
" Lithium Polymer "
2582 TABLE_ITEM VPLocationTable
[] = {
2605 L
" Non-recoverable "
2609 TABLE_ITEM VPStatusTable
[] = {
2632 L
" System Management Module "
2644 L
" Processor Module "
2656 TABLE_ITEM CoolingDeviceStatusTable
[] = {
2679 L
" Non-recoverable "
2683 TABLE_ITEM CoolingDeviceTypeTable
[] = {
2698 L
" Centrifugal Blower "
2710 L
" Power Supply Fan "
2718 L
" Integrated Refrigeration "
2726 L
" Passive Cooling "
2730 TABLE_ITEM TemperatureProbeStatusTable
[] = {
2753 L
" Non-recoverable "
2757 TABLE_ITEM TemperatureProbeLocTable
[] = {
2780 L
" System Management Module "
2792 L
" Processor Module "
2804 TABLE_ITEM ECPStatusTable
[] = {
2827 L
" Non-recoverable "
2831 TABLE_ITEM ECPLocTable
[] = {
2854 L
" System Management Module "
2866 L
" Processor Module "
2878 TABLE_ITEM MDTypeTable
[] = {
2889 L
" National Semiconductor LM75 "
2893 L
" National Semiconductor LM78 "
2897 L
" National Semiconductor LM79 "
2901 L
" National Semiconductor LM80 "
2905 L
" National Semiconductor LM81 "
2909 L
" Analog Devices ADM9240 "
2913 L
" Dallas Semiconductor DS1780 "
2921 L
" Genesys GL518SM "
2925 L
" Winbond W83781D "
2929 L
" Holtek HT82H791 "
2933 TABLE_ITEM MDAddressTypeTable
[] = {
2956 TABLE_ITEM MemoryChannelTypeTable
[] = {
2975 TABLE_ITEM IPMIDIBMCInterfaceTypeTable
[] = {
2982 L
" KCS: Keyboard Controller Style "
2986 L
" SMIC: Server Management Interface Chip "
2990 L
" BT: Block Transfer "
2994 L
" Reserved for future assignment by this specification "
2998 TABLE_ITEM StructureTypeInfoTable
[] = {
3001 L
" BIOS Information"
3005 L
" System Information"
3009 L
" Base Board Information"
3013 L
" System Enclosure"
3017 L
" Processor Information"
3021 L
" Memory Controller Information "
3025 L
" Memory Module Information "
3029 L
" Cache Information "
3033 L
" Port Connector Information "
3041 L
" On Board Devices Information "
3049 L
" System Configuration Options "
3053 L
" BIOS Language Information "
3057 L
" Group Associations "
3061 L
" System Event Log "
3065 L
" Physical Memory Array "
3073 L
" 32-bit Memory Error Information "
3077 L
" Memory Array Mapped Address "
3081 L
" Memory Device Mapped Address "
3085 L
" Built-in Pointing Device "
3089 L
" Portable Battery "
3097 L
" Hardware Security "
3101 L
" System Power Controls "
3113 L
" Temperature Probe "
3117 L
" Electrical Current Probe "
3121 L
" Out-of-Band Remote Access "
3125 L
" Boot Integrity Services (BIS) Entry Point"
3129 L
" System Boot Information "
3133 L
" 64-bit Memory Error Information "
3137 L
" Management Device "
3141 L
" Management Device Component "
3145 L
" Management Device Threshold Data "
3153 L
" IPMI Device Information "
3157 L
" System Power Supply"
3161 L
" Additional Information"
3165 L
" Onboard Devices Extended Information"
3169 L
" Management Controller Host Interface"
3183 Given a table and a Key, return the responding info.
3186 Table[Index].Key is change from UINT8 to UINT16,
3187 in order to deal with "0xaa - 0xbb".
3190 DisplaySELVariableDataFormatTypes(UINT8 Type, UINT8 Option)
3193 Now define Key = 0x7F07, that is to say: High = 0x7F, Low = 0x07.
3194 Then all the Key Value between Low and High gets the same string
3197 @param[in] Table The begin address of table.
3198 @param[in] Number The number of table items.
3199 @param[in] Key The query Key.
3200 @param[in, out] Info Input as empty buffer; output as data buffer.
3201 @param[in] InfoLen The max number of characters for Info.
3203 @return the found Key and Info is valid.
3204 @retval QUERY_TABLE_UNFOUND and Info should be NULL.
3208 IN TABLE_ITEM
*Table
,
3211 IN OUT CHAR16
*Info
,
3217 // High byte and Low byte of word
3222 for (Index
= 0; Index
< Number
; Index
++) {
3223 High
= (UINT8
) (Table
[Index
].Key
>> 8);
3224 Low
= (UINT8
) (Table
[Index
].Key
& 0x00FF);
3227 // Check if Key is in the range
3228 // or if Key == Value in the table
3230 if ((High
> Low
&& Key
>= Low
&& Key
<= High
)
3231 || (Table
[Index
].Key
== Key
)) {
3232 StrnCpy (Info
, Table
[Index
].Info
, InfoLen
-1);
3233 StrnCat (Info
, L
"\n", InfoLen
- 1 - StrLen(Info
));
3238 StrnCpy (Info
, L
"Undefined Value\n", InfoLen
- 1);
3239 return QUERY_TABLE_UNFOUND
;
3243 Given a table of bit info and a Key, return the responding info to the Key.
3245 @param[in] Table Point to a table which maintains a map of 'bit' to 'message'.
3246 @param[in] Number Number of table items.
3247 @param[in] Bits The Key of query the bit map information.
3251 IN TABLE_ITEM
*Table
,
3257 // Get certain bit of 'Value':
3259 #define BIT(Value, bit) ((Value) & ((UINT32) 1) << (bit))
3261 // Clear certain bit of 'Value':
3263 #define CLR_BIT(Value, bit) ((Value) -= (BIT (Value, bit)))
3272 // query the table and print information
3274 for (Index
= 0; Index
< Number
; Index
++) {
3275 if (BIT (Value
, Table
[Index
].Key
) != 0) {
3276 Print (Table
[Index
].Info
);
3281 // clear the bit, for reserved bits test
3283 CLR_BIT (Value
, Table
[Index
].Key
);
3288 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_NO_INFO
), gShellDebug1HiiHandle
);
3292 ShellPrintHiiEx(-1,-1,NULL
,
3293 STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_BITS_SET
),
3294 gShellDebug1HiiHandle
,
3302 // //////////////////////////////////////////////////////////////////
3304 // Following uses QueryTable functions to simplify the coding.
3305 // QueryTable(), PrintBitsInfo()
3308 #define PRINT_TABLE_ITEM(Table, Key) \
3312 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3313 ZeroMem (Info, sizeof (Info)); \
3314 QueryTable (Table, Num, Key, Info, sizeof(Info)/sizeof(Info[0])); \
3318 #define PRINT_BITS_INFO(Table, bits) \
3321 Num = sizeof (Table) / sizeof (TABLE_ITEM); \
3322 PrintBitsInfo (Table, Num, (UINT32) bits); \
3326 Display System Information (Type 1) Type.
3328 @param[in] Type The key of the structure.
3329 @param[in] Option The optional information.
3332 DisplaySystemWakeupType (
3337 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_WAKEUP_TYPE
), gShellDebug1HiiHandle
);
3338 PRINT_INFO_OPTION (Type
, Option
);
3339 PRINT_TABLE_ITEM (SystemWakeupTypeTable
, Type
);
3343 Display Base Board (Type 2) Feature Flags.
3345 @param[in] FeatureFlags The key of the structure.
3346 @param[in] Option The optional information.
3349 DisplayBaseBoardFeatureFlags (
3350 IN UINT8 FeatureFlags
,
3354 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_FEATURE_FLAGS
), gShellDebug1HiiHandle
);
3355 PRINT_INFO_OPTION (FeatureFlags
, Option
);
3356 PRINT_BITS_INFO (BaseBoardFeatureFlagsTable
, FeatureFlags
);
3360 Display Base Board (Type 2) Board Type.
3362 @param[in] Type The key of the structure.
3363 @param[in] Option The optional information.
3366 DisplayBaseBoardBoardType(
3371 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BASE_BOARD_BOARD_TYPE
), gShellDebug1HiiHandle
);
3372 PRINT_INFO_OPTION (Type
, Option
);
3373 PRINT_TABLE_ITEM (BaseBoardBoardTypeTable
, Type
);
3377 Display System Enclosure (Type 3) Enclosure Type.
3379 @param[in] Type The key of the structure.
3380 @param[in] Option The optional information.
3383 DisplaySystemEnclosureType (
3388 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_TYPE
), gShellDebug1HiiHandle
);
3389 PRINT_INFO_OPTION (Type
, Option
);
3391 // query table and print info
3393 PRINT_TABLE_ITEM (SystemEnclosureTypeTable
, Type
);
3395 if (BIT (Type
, 7) != 0) {
3396 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CHASSIS_LOCK_PRESENT
), gShellDebug1HiiHandle
);
3401 Display System Enclosure (Type 3) Enclosure Status.
3403 @param[in] Status The key of the structure.
3404 @param[in] Option The optional information.
3407 DisplaySystemEnclosureStatus (
3412 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_STATUS
), gShellDebug1HiiHandle
);
3413 PRINT_INFO_OPTION (Status
, Option
);
3414 PRINT_TABLE_ITEM (SystemEnclosureStatusTable
, Status
);
3418 Display System Enclosure (Type 3) Security Status.
3420 @param[in] Status The key of the structure.
3421 @param[in] Option The optional information.
3424 DisplaySESecurityStatus (
3429 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_CHASSIS_SECURITY
), gShellDebug1HiiHandle
);
3430 PRINT_INFO_OPTION (Status
, Option
);
3431 PRINT_TABLE_ITEM (SESecurityStatusTable
, Status
);
3435 Display Processor Information (Type 4) Type.
3437 @param[in] Type The key of the structure.
3438 @param[in] Option The optional information.
3441 DisplayProcessorType (
3446 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_TYPE
), gShellDebug1HiiHandle
);
3447 PRINT_INFO_OPTION (Type
, Option
);
3448 PRINT_TABLE_ITEM (ProcessorTypeTable
, Type
);
3452 Display Processor Information (Type 4) Upgrade.
3454 @param[in] Upgrade The key of the structure.
3455 @param[in] Option The optional information.
3458 DisplayProcessorUpgrade (
3463 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_UPDATE
), gShellDebug1HiiHandle
);
3464 PRINT_INFO_OPTION (Upgrade
, Option
);
3465 PRINT_TABLE_ITEM (ProcessorUpgradeTable
, Upgrade
);
3469 Display Processor Information (Type 4) Characteristics.
3471 @param[in] Type The key of the structure.
3472 @param[in] Option The optional information.
3475 DisplayProcessorCharacteristics (
3480 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PROC_CHARACTERISTICS
), gShellDebug1HiiHandle
);
3481 PRINT_INFO_OPTION (Type
, Option
);
3482 PRINT_BITS_INFO (ProcessorCharacteristicsTable
, Type
);
3486 Display Memory Controller Information (Type 5) method.
3488 @param[in] Method The key of the structure.
3489 @param[in] Option The optional information.
3492 DisplayMcErrorDetectMethod (
3497 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DETECTMETHOD
), gShellDebug1HiiHandle
);
3498 PRINT_INFO_OPTION (Method
, Option
);
3499 PRINT_TABLE_ITEM (McErrorDetectMethodTable
, Method
);
3503 Display Memory Controller Information (Type 5) Capability.
3505 @param[in] Capability The key of the structure.
3506 @param[in] Option The optional information.
3509 DisplayMcErrorCorrectCapability (
3510 IN UINT8 Capability
,
3514 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CORRECT_CAPABILITY
), gShellDebug1HiiHandle
);
3515 PRINT_INFO_OPTION (Capability
, Option
);
3516 PRINT_BITS_INFO (McErrorCorrectCapabilityTable
, Capability
);
3520 Display Memory Controller Information (Type 5) Support.
3522 @param[in] Support The key of the structure.
3523 @param[in] Option The optional information.
3526 DisplayMcInterleaveSupport (
3531 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_INTERLEAVE_SUPPORT
), gShellDebug1HiiHandle
);
3532 PRINT_INFO_OPTION (Support
, Option
);
3533 PRINT_TABLE_ITEM (McInterleaveSupportTable
, Support
);
3537 Display Memory Controller Information (Type 5) speeds.
3539 @param[in] Speed The key of the structure.
3540 @param[in] Option The optional information.
3543 DisplayMcMemorySpeeds (
3548 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MEMORY_SPEED
), gShellDebug1HiiHandle
);
3549 PRINT_INFO_OPTION (Speed
, Option
);
3550 PRINT_BITS_INFO (McMemorySpeedsTable
, Speed
);
3554 Display Memory Controller Information (Type 5) voltage.
3556 @param[in] Voltage The key of the structure.
3557 @param[in] Option The optional information.
3560 DisplayMemoryModuleVoltage (
3565 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_REQUIRED_VOLTAGES
), gShellDebug1HiiHandle
);
3566 PRINT_INFO_OPTION (Voltage
, Option
);
3567 PRINT_BITS_INFO (MemoryModuleVoltageTable
, Voltage
);
3571 Display Memory Module Information (Type 6) type.
3573 @param[in] Type The key of the structure.
3574 @param[in] Option The optional information.
3577 DisplayMmMemoryType (
3582 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_TYPE
), gShellDebug1HiiHandle
);
3583 PRINT_INFO_OPTION (Type
, Option
);
3584 PRINT_BITS_INFO (MmMemoryTypeTable
, Type
);
3588 Display Memory Module Information (Type 6) status.
3590 @param[in] Status The key of the structure.
3591 @param[in] Option The optional information.
3594 DisplayMmErrorStatus (
3599 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_MODULE_ERROR_STATUS
), gShellDebug1HiiHandle
);
3600 PRINT_INFO_OPTION (Status
, Option
);
3601 PRINT_BITS_INFO (MmErrorStatusTable
, Status
);
3605 Display Cache Information (Type 7) SRAM Type.
3607 @param[in] Type The key of the structure.
3608 @param[in] Option The optional information.
3611 DisplayCacheSRAMType (
3616 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SRAM_TYPE
), gShellDebug1HiiHandle
);
3617 PRINT_INFO_OPTION ((UINT8
) Type
, Option
);
3618 PRINT_BITS_INFO (CacheSRAMTypeTable
, (UINT8
) Type
);
3622 Display Cache Information (Type 7) correcting Type.
3624 @param[in] Type The key of the structure.
3625 @param[in] Option The optional information.
3628 DisplayCacheErrCorrectingType (
3633 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ERROR_CORRECTING
), gShellDebug1HiiHandle
);
3634 PRINT_INFO_OPTION (Type
, Option
);
3635 PRINT_TABLE_ITEM (CacheErrCorrectingTypeTable
, Type
);
3639 Display Cache Information (Type 7) Type.
3641 @param[in] Type The key of the structure.
3642 @param[in] Option The optional information.
3645 DisplayCacheSystemCacheType (
3650 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_SYSTEM_TYPE
), gShellDebug1HiiHandle
);
3651 PRINT_INFO_OPTION (Type
, Option
);
3652 PRINT_TABLE_ITEM (CacheSystemCacheTypeTable
, Type
);
3656 Display Cache Information (Type 7) Associativity.
3658 @param[in] Associativity The key of the structure.
3659 @param[in] Option The optional information.
3662 DisplayCacheAssociativity (
3663 IN UINT8 Associativity
,
3667 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_CACHE_ASSOCIATIVITY
), gShellDebug1HiiHandle
);
3668 PRINT_INFO_OPTION (Associativity
, Option
);
3669 PRINT_TABLE_ITEM (CacheAssociativityTable
, Associativity
);
3673 Display Port Connector Information (Type 8) type.
3675 @param[in] Type The key of the structure.
3676 @param[in] Option The optional information.
3679 DisplayPortConnectorType (
3684 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_CONNECTOR_TYPE
), gShellDebug1HiiHandle
);
3685 PRINT_INFO_OPTION (Type
, Option
);
3686 PRINT_TABLE_ITEM (PortConnectorTypeTable
, Type
);
3690 Display Port Connector Information (Type 8) port type.
3692 @param[in] Type The key of the structure.
3693 @param[in] Option The optional information.
3701 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORT_TYPE
), gShellDebug1HiiHandle
);
3702 PRINT_INFO_OPTION (Type
, Option
);
3703 PRINT_TABLE_ITEM (PortTypeTable
, Type
);
3707 Display System Slots (Type 9) slot type.
3709 @param[in] Type The key of the structure.
3710 @param[in] Option The optional information.
3713 DisplaySystemSlotType (
3718 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_TYPE
), gShellDebug1HiiHandle
);
3719 PRINT_INFO_OPTION (Type
, Option
);
3720 PRINT_TABLE_ITEM (SystemSlotTypeTable
, Type
);
3724 Display System Slots (Type 9) data bus width.
3726 @param[in] Width The key of the structure.
3727 @param[in] Option The optional information.
3730 DisplaySystemSlotDataBusWidth (
3735 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_DATA
), gShellDebug1HiiHandle
);
3736 PRINT_INFO_OPTION (Width
, Option
);
3737 PRINT_TABLE_ITEM (SystemSlotDataBusWidthTable
, Width
);
3741 Display System Slots (Type 9) usage information.
3743 @param[in] Usage The key of the structure.
3744 @param[in] Option The optional information.
3747 DisplaySystemSlotCurrentUsage (
3752 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_CURRENT_USAGE
), gShellDebug1HiiHandle
);
3753 PRINT_INFO_OPTION (Usage
, Option
);
3754 PRINT_TABLE_ITEM (SystemSlotCurrentUsageTable
, Usage
);
3758 Display System Slots (Type 9) slot length.
3760 @param[in] Length The key of the structure.
3761 @param[in] Option The optional information.
3764 DisplaySystemSlotLength (
3769 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_SLOT_LENGTH
), gShellDebug1HiiHandle
);
3770 PRINT_INFO_OPTION (Length
, Option
);
3771 PRINT_TABLE_ITEM (SystemSlotLengthTable
, Length
);
3775 Display System Slots (Type 9) characteristics.
3777 @param[in] Chara1 The key of the structure.
3778 @param[in] Option The optional information.
3781 DisplaySlotCharacteristics1 (
3786 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS
), gShellDebug1HiiHandle
);
3787 PRINT_INFO_OPTION (Chara1
, Option
);
3788 PRINT_BITS_INFO (SlotCharacteristics1Table
, Chara1
);
3792 Display System Slots (Type 9) characteristics.
3794 @param[in] Chara2 The key of the structure.
3795 @param[in] Option The optional information.
3798 DisplaySlotCharacteristics2 (
3803 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SLOT_CHARACTERISTICS_2
), gShellDebug1HiiHandle
);
3804 PRINT_INFO_OPTION (Chara2
, Option
);
3805 PRINT_BITS_INFO (SlotCharacteristics2Table
, Chara2
);
3809 Display On Board Devices Information (Type 10) types.
3811 @param[in] Type The key of the structure.
3812 @param[in] Option The optional information.
3815 DisplayOnboardDeviceTypes (
3820 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ONBOARD_DEVICE_TYPE
), gShellDebug1HiiHandle
);
3821 PRINT_INFO_OPTION (Type
, Option
);
3822 PRINT_TABLE_ITEM (OnboardDeviceTypesTable
, Type
);
3826 Display System Event Log (Type 15) types.
3828 @param[in] Type The key of the structure.
3829 @param[in] Option The optional information.
3837 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_EVENT_LOG_TYPE
), gShellDebug1HiiHandle
);
3838 PRINT_INFO_OPTION (Type
, Option
);
3839 PRINT_TABLE_ITEM (SELTypesTable
, Type
);
3843 Display System Event Log (Type 15) format type.
3845 @param[in] Type The key of the structure.
3846 @param[in] Option The optional information.
3849 DisplaySELVarDataFormatType (
3854 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_EVENT_LOG_VAR_DATA_FORMAT
), gShellDebug1HiiHandle
);
3855 PRINT_INFO_OPTION (Type
, Option
);
3856 PRINT_TABLE_ITEM (SELVarDataFormatTypeTable
, Type
);
3860 Display System Event Log (Type 15) dw1.
3862 @param[in] Key The key of the structure.
3863 @param[in] Option The optional information.
3866 DisplayPostResultsBitmapDw1 (
3871 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_BITMAP
), gShellDebug1HiiHandle
);
3872 PRINT_INFO_OPTION (Key
, Option
);
3873 PRINT_BITS_INFO (PostResultsBitmapDw1Table
, Key
);
3877 Display System Event Log (Type 15) dw2.
3879 @param[in] Key The key of the structure.
3880 @param[in] Option The optional information.
3883 DisplayPostResultsBitmapDw2 (
3888 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POST_RESULTS_SECOND_DWORD
), gShellDebug1HiiHandle
);
3889 PRINT_INFO_OPTION (Key
, Option
);
3890 PRINT_BITS_INFO (PostResultsBitmapDw2Table
, Key
);
3894 Display System Event Log (Type 15) type.
3896 @param[in] SMType The key of the structure.
3897 @param[in] Option The optional information.
3900 DisplaySELSysManagementTypes (
3907 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_TYPES
), gShellDebug1HiiHandle
);
3908 PRINT_INFO_OPTION (SMType
, Option
);
3911 // Deal with wide range Value
3913 if (SMType
>= 0x80000000) {
3914 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_OEM_ASSIGNED
), gShellDebug1HiiHandle
);
3915 } else if (SMType
>= 0x00020000) {
3916 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
3917 } else if (SMType
>= 0x00010000) {
3918 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_SYSTEM_MANAGEMENT_PROBE
), gShellDebug1HiiHandle
);
3919 } else if (SMType
>= 0x31) {
3920 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_RSVD_FOR_FUTURE_ASSIGN
), gShellDebug1HiiHandle
);
3923 // Deal with One byte data
3925 Temp
= (UINT8
) (SMType
& 0x3F);
3926 PRINT_TABLE_ITEM (SELSysManagementTypesTable
, Temp
);
3931 Display Physical Memory Array (Type 16) Location.
3933 @param[in] Location The key of the structure.
3934 @param[in] Option The optional information.
3937 DisplayPMALocation (
3942 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_LOCATION
), gShellDebug1HiiHandle
);
3943 PRINT_INFO_OPTION (Location
, Option
);
3944 PRINT_TABLE_ITEM (PMALocationTable
, Location
);
3948 Display Physical Memory Array (Type 16) Use.
3950 @param[in] Use The key of the structure.
3951 @param[in] Option The optional information.
3959 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_USE
), gShellDebug1HiiHandle
);
3960 PRINT_INFO_OPTION (Use
, Option
);
3961 PRINT_TABLE_ITEM (PMAUseTable
, Use
);
3965 Display Physical Memory Array (Type 16) Types.
3967 @param[in] Type The key of the structure.
3968 @param[in] Option The optional information.
3971 DisplayPMAErrorCorrectionTypes (
3976 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PHYS_MEM_ARRAY_ERROR
), gShellDebug1HiiHandle
);
3977 PRINT_INFO_OPTION (Type
, Option
);
3978 PRINT_TABLE_ITEM (PMAErrorCorrectionTypesTable
, Type
);
3982 Display Memory Device (Type 17) form factor.
3984 @param[in] FormFactor The key of the structure.
3985 @param[in] Option The optional information.
3988 DisplayMemoryDeviceFormFactor (
3989 IN UINT8 FormFactor
,
3993 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_FORM_FACTOR
), gShellDebug1HiiHandle
);
3994 PRINT_INFO_OPTION (FormFactor
, Option
);
3995 PRINT_TABLE_ITEM (MemoryDeviceFormFactorTable
, FormFactor
);
3999 Display Memory Device (Type 17) type.
4001 @param[in] Type The key of the structure.
4002 @param[in] Option The optional information.
4005 DisplayMemoryDeviceType (
4010 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4011 PRINT_INFO_OPTION (Type
, Option
);
4012 PRINT_TABLE_ITEM (MemoryDeviceTypeTable
, Type
);
4016 Display Memory Device (Type 17) details.
4018 @param[in] Para The key of the structure.
4019 @param[in] Option The optional information.
4022 DisplayMemoryDeviceTypeDetail (
4027 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_DEVICE_TYPE_DETAIL
), gShellDebug1HiiHandle
);
4028 PRINT_INFO_OPTION (Para
, Option
);
4029 PRINT_BITS_INFO (MemoryDeviceTypeDetailTable
, Para
);
4033 Display 32-bit Memory Error Information (Type 18) type.
4035 @param[in] ErrorType The key of the structure.
4036 @param[in] Option The optional information.
4039 DisplayMemoryErrorType (
4044 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_INFO
), gShellDebug1HiiHandle
);
4045 PRINT_INFO_OPTION (ErrorType
, Option
);
4046 PRINT_TABLE_ITEM (MemoryErrorTypeTable
, ErrorType
);
4050 Display 32-bit Memory Error Information (Type 18) error granularity.
4052 @param[in] Granularity The key of the structure.
4053 @param[in] Option The optional information.
4056 DisplayMemoryErrorGranularity (
4057 IN UINT8 Granularity
,
4061 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_GRANULARITY
), gShellDebug1HiiHandle
);
4062 PRINT_INFO_OPTION (Granularity
, Option
);
4063 PRINT_TABLE_ITEM (MemoryErrorGranularityTable
, Granularity
);
4067 Display 32-bit Memory Error Information (Type 18) error information.
4069 @param[in] Operation The key of the structure.
4070 @param[in] Option The optional information.
4073 DisplayMemoryErrorOperation (
4078 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_ERROR_OP
), gShellDebug1HiiHandle
);
4079 PRINT_INFO_OPTION (Operation
, Option
);
4080 PRINT_TABLE_ITEM (MemoryErrorOperationTable
, Operation
);
4084 Display Built-in Pointing Device (Type 21) type information.
4086 @param[in] Type The key of the structure.
4087 @param[in] Option The optional information.
4090 DisplayPointingDeviceType (
4095 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_TYPE
), gShellDebug1HiiHandle
);
4096 PRINT_INFO_OPTION (Type
, Option
);
4097 PRINT_TABLE_ITEM (PointingDeviceTypeTable
, Type
);
4101 Display Built-in Pointing Device (Type 21) information.
4103 @param[in] Interface The key of the structure.
4104 @param[in] Option The optional information.
4107 DisplayPointingDeviceInterface (
4112 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_POINTING_DEVICE_INTERFACE
), gShellDebug1HiiHandle
);
4113 PRINT_INFO_OPTION (Interface
, Option
);
4114 PRINT_TABLE_ITEM (PointingDeviceInterfaceTable
, Interface
);
4118 Display Portable Battery (Type 22) information.
4120 @param[in] Key The key of the structure.
4121 @param[in] Option The optional information.
4124 DisplayPBDeviceChemistry (
4129 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_PORTABLE_BATT_DEV_CHEM
), gShellDebug1HiiHandle
);
4130 PRINT_INFO_OPTION (Key
, Option
);
4131 PRINT_TABLE_ITEM (PBDeviceChemistryTable
, Key
);
4135 Display Voltage Probe (Type 26) location information.
4137 @param[in] Key The key of the structure.
4138 @param[in] Option The optional information.
4148 Loc
= (UINT8
) ((Key
& 0xE0) >> 5);
4149 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4150 PRINT_INFO_OPTION (Loc
, Option
);
4151 PRINT_TABLE_ITEM (VPLocationTable
, Loc
);
4155 Display Voltage Probe (Type 26) status ype information.
4157 @param[in] Key The key of the structure.
4158 @param[in] Option The optional information.
4168 Status
= (UINT8
) (Key
& 0x1F);
4169 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_STATUS
), gShellDebug1HiiHandle
);
4170 PRINT_INFO_OPTION (Status
, Option
);
4171 PRINT_TABLE_ITEM (VPStatusTable
, Status
);
4175 Display Cooling (Type 27) status information.
4177 @param[in] Key The key of the structure.
4178 @param[in] Option The optional information.
4181 DisplayCoolingDeviceStatus (
4188 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4189 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_STATUS
), gShellDebug1HiiHandle
);
4190 PRINT_INFO_OPTION (Status
, Option
);
4191 PRINT_TABLE_ITEM (CoolingDeviceStatusTable
, Status
);
4195 Display Cooling (Type 27) type information.
4197 @param[in] Key The key of the structure.
4198 @param[in] Option The optional information.
4201 DisplayCoolingDeviceType (
4208 Type
= (UINT8
) (Key
& 0x1F);
4209 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_COOLING_DEV_TYPE
), gShellDebug1HiiHandle
);
4210 PRINT_INFO_OPTION (Type
, Option
);
4211 PRINT_TABLE_ITEM (CoolingDeviceTypeTable
, Type
);
4215 Display Temperature Probe (Type 28) status information.
4217 @param[in] Key The key of the structure.
4218 @param[in] Option The optional information.
4221 DisplayTemperatureProbeStatus (
4228 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4229 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_TEMP_PROBE
), gShellDebug1HiiHandle
);
4230 PRINT_INFO_OPTION (Status
, Option
);
4231 PRINT_TABLE_ITEM (TemperatureProbeStatusTable
, Status
);
4235 Display Temperature Probe (Type 28) location information.
4237 @param[in] Key The key of the structure.
4238 @param[in] Option The optional information.
4241 DisplayTemperatureProbeLoc (
4248 Loc
= (UINT8
) (Key
& 0x1F);
4249 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_VOLTAGE_PROBE_LOC
), gShellDebug1HiiHandle
);
4250 PRINT_INFO_OPTION (Loc
, Option
);
4251 PRINT_TABLE_ITEM (TemperatureProbeLocTable
, Loc
);
4255 Display Electrical Current Probe (Type 29) status information.
4257 @param[in] Key The key of the structure.
4258 @param[in] Option The optional information.
4268 Status
= (UINT8
) ((Key
& 0xE0) >> 5);
4269 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_STATUS
), gShellDebug1HiiHandle
);
4270 PRINT_INFO_OPTION (Status
, Option
);
4271 PRINT_TABLE_ITEM (ECPStatusTable
, Status
);
4275 Display Type 29 information.
4277 @param[in] Key The key of the structure.
4278 @param[in] Option The optional information.
4288 Loc
= (UINT8
) (Key
& 0x1F);
4289 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_ELEC_PROBE_LOC
), gShellDebug1HiiHandle
);
4290 PRINT_INFO_OPTION (Loc
, Option
);
4291 PRINT_TABLE_ITEM (ECPLocTable
, Loc
);
4295 Display Management Device (Type 34) Type.
4297 @param[in] Key The key of the structure.
4298 @param[in] Option The optional information.
4306 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_TYPE
), gShellDebug1HiiHandle
);
4307 PRINT_INFO_OPTION (Key
, Option
);
4308 PRINT_TABLE_ITEM (MDTypeTable
, Key
);
4312 Display Management Device (Type 34) Address Type.
4314 @param[in] Key The key of the structure.
4315 @param[in] Option The optional information.
4318 DisplayMDAddressType (
4323 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_ADDR_TYPE
), gShellDebug1HiiHandle
);
4324 PRINT_INFO_OPTION (Key
, Option
);
4325 PRINT_TABLE_ITEM (MDAddressTypeTable
, Key
);
4329 Display Memory Channel (Type 37) information.
4331 @param[in] Key The key of the structure.
4332 @param[in] Option The optional information.
4335 DisplayMemoryChannelType (
4340 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MEM_CHANNEL_TYPE
), gShellDebug1HiiHandle
);
4341 PRINT_INFO_OPTION (Key
, Option
);
4342 PRINT_TABLE_ITEM (MemoryChannelTypeTable
, Key
);
4346 Display IPMI Device Information (Type 38) information.
4348 @param[in] Key The key of the structure.
4349 @param[in] Option The optional information.
4352 DisplayIPMIDIBMCInterfaceType (
4357 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_BMC_INTERFACE_TYPE
), gShellDebug1HiiHandle
);
4358 PRINT_INFO_OPTION (Key
, Option
);
4359 PRINT_TABLE_ITEM (IPMIDIBMCInterfaceTypeTable
, Key
);
4363 Display the structure type information.
4365 @param[in] Key The key of the structure.
4366 @param[in] Option The optional information.
4369 DisplayStructureTypeInfo (
4377 ShellPrintHiiEx(-1,-1,NULL
,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_STRUCT_TYPE
), gShellDebug1HiiHandle
);
4378 PRINT_INFO_OPTION (Key
, Option
);
4379 PRINT_TABLE_ITEM (StructureTypeInfoTable
, Key
);