TianoCore EDK2 master
|
#include <IndustryStandard/SmBios.h>
Go to the source code of this file.
Data Structures | |
struct | TABLE_ITEM |
Macros | |
#define | QUERY_TABLE_UNFOUND 0xFF |
#define | PRINT_INFO_OPTION(Value, Option) |
Typedefs | |
typedef struct TABLE_ITEM | TABLE_ITEM |
Functions | |
UINT8 | QueryTable (IN TABLE_ITEM *Table, IN UINTN Number, IN UINT8 Key, IN OUT CHAR16 *Info, IN UINTN InfoLen) |
VOID | DisplayStructureTypeInfo (IN UINT8 Key, IN UINT8 Option) |
VOID | DisplaySystemWakeupType (IN UINT8 Type, IN UINT8 Option) |
VOID | DisplayBaseBoardFeatureFlags (IN UINT8 FeatureFlags, IN UINT8 Option) |
VOID | DisplayBaseBoardBoardType (IN UINT8 Type, IN UINT8 Option) |
VOID | DisplaySystemEnclosureType (IN UINT8 Type, IN UINT8 Option) |
VOID | DisplaySystemEnclosureStatus (IN UINT8 Status, IN UINT8 Option) |
VOID | DisplaySESecurityStatus (IN UINT8 Status, IN UINT8 Option) |
VOID | DisplayProcessorType (IN UINT8 Type, IN UINT8 Option) |
VOID | DisplayProcessorUpgrade (IN UINT8 Upgrade, IN UINT8 Option) |
VOID | DisplayProcessorCharacteristics (IN UINT16 Type, IN UINT8 Option) |
VOID | DisplayMcErrorDetectMethod (IN UINT8 Method, IN UINT8 Option) |
VOID | DisplayMcErrorCorrectCapability (IN UINT8 Capability, IN UINT8 Option) |
VOID | DisplayMcInterleaveSupport (IN UINT8 Support, IN UINT8 Option) |
VOID | DisplayMcMemorySpeeds (IN UINT16 Speed, IN UINT8 Option) |
VOID | DisplayMemoryModuleVoltage (IN UINT8 Voltage, IN UINT8 Option) |
VOID | DisplayMmMemoryType (IN UINT16 Type, IN UINT8 Option) |
VOID | DisplayMmErrorStatus (IN UINT8 Status, IN UINT8 Option) |
VOID | DisplayCacheSRAMType (IN UINT16 Type, IN UINT8 Option) |
VOID | DisplayCacheErrCorrectingType (IN UINT8 Type, IN UINT8 Option) |
VOID | DisplayCacheSystemCacheType (IN UINT8 Type, IN UINT8 Option) |
VOID | DisplayCacheAssociativity (IN UINT8 Associativity, IN UINT8 Option) |
VOID | DisplayPortConnectorType (IN UINT8 Type, IN UINT8 Option) |
VOID | DisplayPortType (IN UINT8 Type, IN UINT8 Option) |
VOID | DisplaySystemSlotType (IN UINT8 Type, IN UINT8 Option) |
VOID | DisplaySystemSlotDataBusWidth (IN UINT8 Width, IN UINT8 Option) |
VOID | DisplaySystemSlotCurrentUsage (IN UINT8 Usage, IN UINT8 Option) |
VOID | DisplaySystemSlotLength (IN UINT8 Length, IN UINT8 Option) |
VOID | DisplaySlotCharacteristics1 (IN UINT8 Chara1, IN UINT8 Option) |
VOID | DisplaySlotCharacteristics2 (IN UINT8 Chara2, IN UINT8 Option) |
VOID | DisplaySystemSlotInformation (IN UINT8 Width, IN UINT8 Option) |
VOID | DisplaySystemSlotPhysicalWidth (IN UINT8 Width, IN UINT8 Option) |
VOID | DisplaySystemSlotHeight (IN UINT8 Length, IN UINT8 Option) |
VOID | DisplayOnboardDeviceTypes (IN UINT8 Type, IN UINT8 Option) |
VOID | DisplaySELTypes (IN UINT8 Type, IN UINT8 Option) |
VOID | DisplaySELVarDataFormatType (IN UINT8 Type, IN UINT8 Option) |
VOID | DisplayPostResultsBitmapDw1 (IN UINT32 Key, IN UINT8 Option) |
VOID | DisplayPostResultsBitmapDw2 (IN UINT32 Key, IN UINT8 Option) |
VOID | DisplaySELSysManagementTypes (IN UINT32 SMType, IN UINT8 Option) |
VOID | DisplayPMALocation (IN UINT8 Location, IN UINT8 Option) |
VOID | DisplayPMAUse (IN UINT8 Use, IN UINT8 Option) |
VOID | DisplayPMAErrorCorrectionTypes (IN UINT8 Type, IN UINT8 Option) |
VOID | DisplayMemoryDeviceFormFactor (IN UINT8 FormFactor, IN UINT8 Option) |
VOID | DisplayMemoryDeviceType (IN UINT8 Type, IN UINT8 Option) |
VOID | DisplayMemoryDeviceTypeDetail (IN UINT16 Para, IN UINT8 Option) |
VOID | DisplayMemoryDeviceMemoryTechnology (IN UINT8 Para, IN UINT8 Option) |
VOID | DisplayMemoryDeviceMemoryOperatingModeCapability (IN UINT16 Para, IN UINT8 Option) |
VOID | DisplayMemoryErrorType (IN UINT8 ErrorType, IN UINT8 Option) |
VOID | DisplayMemoryErrorGranularity (IN UINT8 Granularity, IN UINT8 Option) |
VOID | DisplayMemoryErrorOperation (IN UINT8 Operation, IN UINT8 Option) |
VOID | DisplayPointingDeviceType (IN UINT8 Type, IN UINT8 Option) |
VOID | DisplayPointingDeviceInterface (IN UINT8 Interface, IN UINT8 Option) |
VOID | DisplayPBDeviceChemistry (IN UINT8 Key, IN UINT8 Option) |
VOID | DisplayVPLocation (IN UINT8 Key, IN UINT8 Option) |
VOID | DisplayVPStatus (IN UINT8 Key, IN UINT8 Option) |
VOID | DisplayCoolingDeviceStatus (IN UINT8 Key, IN UINT8 Option) |
VOID | DisplayCoolingDeviceType (IN UINT8 Key, IN UINT8 Option) |
VOID | DisplayTemperatureProbeStatus (IN UINT8 Key, IN UINT8 Option) |
VOID | DisplayTemperatureProbeLoc (IN UINT8 Key, IN UINT8 Option) |
VOID | DisplayECPStatus (IN UINT8 Key, IN UINT8 Option) |
VOID | DisplayECPLoc (IN UINT8 Key, IN UINT8 Option) |
VOID | DisplayMDType (IN UINT8 Key, IN UINT8 Option) |
VOID | DisplayMDAddressType (IN UINT8 Key, IN UINT8 Option) |
VOID | DisplayMemoryChannelType (IN UINT8 Key, IN UINT8 Option) |
VOID | DisplayIPMIDIBMCInterfaceType (IN UINT8 Key, IN UINT8 Option) |
VOID | DisplayMCHostInterfaceType (IN UINT8 Key, IN UINT8 Option) |
Build a table, each item is (key, info) pair. and give a interface of query a string out of a table.
Copyright (c) 2005 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file QueryTable.h.
#define PRINT_INFO_OPTION | ( | Value, | |
Option | |||
) |
Definition at line 25 of file QueryTable.h.
#define QUERY_TABLE_UNFOUND 0xFF |
Definition at line 15 of file QueryTable.h.
Display Base Board (Type 2) Board Type.
[in] | Type | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4129 of file QueryTable.c.
Display Base Board (Type 2) Feature Flags.
[in] | FeatureFlags | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4112 of file QueryTable.c.
Display Cache Information (Type 7) Associativity.
[in] | Associativity | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4425 of file QueryTable.c.
Display Cache Information (Type 7) correcting Type.
[in] | Type | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4391 of file QueryTable.c.
Display Cache Information (Type 7) SRAM Type.
[in] | Type | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4374 of file QueryTable.c.
Display Cache Information (Type 7) Type.
[in] | Type | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4408 of file QueryTable.c.
Display Cooling (Type 27) status information.
[in] | Key | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 5029 of file QueryTable.c.
Display Cooling (Type 27) type information.
[in] | Key | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 5049 of file QueryTable.c.
Display Electrical Current Probe (Type 29) location information.
[in] | Key | The key of the structure. |
[in] | Option | The optional information. |
Display Type 29 information.
[in] | Key | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 5129 of file QueryTable.c.
Display Electrical Current Probe (Type 29) status information.
[in] | Key | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 5109 of file QueryTable.c.
Display IPMI Device Information (Type 38) information.
[in] | Key | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 5200 of file QueryTable.c.
Display Memory Controller Information (Type 5) Capability.
[in] | Capability | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4272 of file QueryTable.c.
Display Memory Controller Information (Type 5) method.
[in] | Method | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4255 of file QueryTable.c.
Display Management Controller Host Interface (Type 42) information.
[in] | Key | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 5217 of file QueryTable.c.
Display Memory Controller Information (Type 5) Support.
[in] | Support | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4289 of file QueryTable.c.
Display Memory Controller Information (Type 5) speeds.
[in] | Speed | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4306 of file QueryTable.c.
Display Management Device (Type 34) Address Type.
[in] | Key | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 5166 of file QueryTable.c.
Display Management Device (Type 34) Type.
[in] | Key | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 5149 of file QueryTable.c.
Display Memory Channel (Type 37) information.
[in] | Key | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 5183 of file QueryTable.c.
Display Memory Device (Type 17) form factor.
[in] | FormFactor | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4802 of file QueryTable.c.
Display Memory Device (Type 17) memory operating mode capability.
[in] | Para | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4870 of file QueryTable.c.
Display Memory Device (Type 17) memory technology.
[in] | Para | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4853 of file QueryTable.c.
Display Memory Device (Type 17) type.
[in] | Type | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4819 of file QueryTable.c.
Display Memory Device (Type 17) details.
[in] | Para | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4836 of file QueryTable.c.
Display 32-bit Memory Error Information (Type 18) error granularity.
[in] | Granularity | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4904 of file QueryTable.c.
Display 32-bit Memory Error Information (Type 18) error information.
[in] | Operation | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4921 of file QueryTable.c.
Display 32-bit Memory Error Information (Type 18) type.
[in] | ErrorType | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4887 of file QueryTable.c.
Display Memory Controller Information (Type 5) voltage.
[in] | Voltage | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4323 of file QueryTable.c.
Display Memory Module Information (Type 6) status.
[in] | Status | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4357 of file QueryTable.c.
Display Memory Module Information (Type 6) type.
[in] | Type | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4340 of file QueryTable.c.
Display On Board Devices Information (Type 10) types.
[in] | Type | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4629 of file QueryTable.c.
Display Portable Battery (Type 22) information.
[in] | Key | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4972 of file QueryTable.c.
Display Physical Memory Array (Type 16) Types.
[in] | Type | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4785 of file QueryTable.c.
Display Physical Memory Array (Type 16) Location.
[in] | Location | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4751 of file QueryTable.c.
Display Physical Memory Array (Type 16) Use.
[in] | Use | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4768 of file QueryTable.c.
Display Built-in Pointing Device (Type 21) information.
[in] | Interface | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4955 of file QueryTable.c.
Display Built-in Pointing Device (Type 21) type information.
[in] | Type | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4938 of file QueryTable.c.
Display Port Connector Information (Type 8) type.
[in] | Type | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4442 of file QueryTable.c.
Display Port Connector Information (Type 8) port type.
[in] | Type | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4459 of file QueryTable.c.
Display System Event Log (Type 15) dw1.
[in] | Key | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4680 of file QueryTable.c.
Display System Event Log (Type 15) dw2.
[in] | Key | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4697 of file QueryTable.c.
Display Processor Information (Type 4) Characteristics.
[in] | Type | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4238 of file QueryTable.c.
Display Processor Information (Type 4) Type.
[in] | Type | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4204 of file QueryTable.c.
Display Processor Information (Type 4) Upgrade.
[in] | Upgrade | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4221 of file QueryTable.c.
Display System Event Log (Type 15) type.
[in] | SMType | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4714 of file QueryTable.c.
Display System Event Log (Type 15) types.
[in] | Type | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4646 of file QueryTable.c.
Display System Event Log (Type 15) format type.
[in] | Type | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4663 of file QueryTable.c.
Display System Enclosure (Type 3) Security Status.
[in] | Status | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4187 of file QueryTable.c.
Display System Slots (Type 9) characteristics.
[in] | Chara1 | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4544 of file QueryTable.c.
Display System Slots (Type 9) characteristics.
[in] | Chara2 | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4561 of file QueryTable.c.
Display the structure type information.
[in] | Key | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 5285 of file QueryTable.c.
Display System Enclosure (Type 3) Enclosure Status.
[in] | Status | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4170 of file QueryTable.c.
Display System Enclosure (Type 3) Enclosure Type.
[in] | Type | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4146 of file QueryTable.c.
Display System Slots (Type 9) usage information.
[in] | Usage | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4510 of file QueryTable.c.
Display System Slots (Type 9) data bus width.
[in] | Width | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4493 of file QueryTable.c.
Display System Slots (Type 9) slot height.
[in] | Length | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4612 of file QueryTable.c.
Display System Slots (Type 9) Information.
[in] | Width | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4578 of file QueryTable.c.
Display System Slots (Type 9) slot length.
[in] | Length | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4527 of file QueryTable.c.
Display System Slots (Type 9) Physical Width.
[in] | Width | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4595 of file QueryTable.c.
Display System Slots (Type 9) slot type.
[in] | Type | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4476 of file QueryTable.c.
Display System Information (Type 1) Type.
[in] | Type | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4095 of file QueryTable.c.
Display Temperature Probe (Type 28) location information.
[in] | Key | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 5089 of file QueryTable.c.
Display Temperature Probe (Type 28) status information.
[in] | Key | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 5069 of file QueryTable.c.
Display Voltage Probe (Type 26) location information.
[in] | Key | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 4989 of file QueryTable.c.
Display Voltage Probe (Type 26) status ype information.
[in] | Key | The key of the structure. |
[in] | Option | The optional information. |
Definition at line 5009 of file QueryTable.c.
UINT8 QueryTable | ( | IN TABLE_ITEM * | Table, |
IN UINTN | Number, | ||
IN UINT8 | Key, | ||
IN OUT CHAR16 * | Info, | ||
IN UINTN | InfoLen | ||
) |
Given a table and a Key, return the responding info.
Notes: Table[Index].Key is change from UINT8 to UINT16, in order to deal with "0xaa - 0xbb".
For example: DisplaySELVariableDataFormatTypes(UINT8 Type, UINT8 Option) has a item: "0x07-0x7F, Unused" Now define Key = 0x7F07, that is to say: High = 0x7F, Low = 0x07. Then all the Key Value between Low and High gets the same string L"Unused".
[in] | Table | The begin address of table. |
[in] | Number | The number of table items. |
[in] | Key | The query Key. |
[in,out] | Info | Input as empty buffer; output as data buffer. |
[in] | InfoLen | The max number of characters for Info. |
QUERY_TABLE_UNFOUND | and Info should be NULL. |
Definition at line 3956 of file QueryTable.c.