TianoCore EDK2 master
Loading...
Searching...
No Matches
QueryTable.h
Go to the documentation of this file.
1
10#ifndef _SMBIOS_QUERY_TABLE_H_
11#define _SMBIOS_QUERY_TABLE_H_
12
14
15#define QUERY_TABLE_UNFOUND 0xFF
16
17typedef struct TABLE_ITEM {
18 UINT16 Key;
19 CHAR16 *Info;
21
22//
23// Print info by option
24//
25#define PRINT_INFO_OPTION(Value, Option) \
26 do { \
27 if (Option == SHOW_NONE) { \
28 return ; \
29 } \
30 if (Option < SHOW_DETAIL) { \
31 Print (L"0x%x\n", Value); \
32 return ; \
33 } \
34 } while (0);
35
60UINT8
62 IN TABLE_ITEM *Table,
63 IN UINTN Number,
64 IN UINT8 Key,
65 IN OUT CHAR16 *Info,
66 IN UINTN InfoLen
67 );
68
75VOID
77 IN UINT8 Key,
78 IN UINT8 Option
79 );
80
87VOID
89 IN UINT8 Type,
90 IN UINT8 Option
91 );
92
99VOID
101 IN UINT8 FeatureFlags,
102 IN UINT8 Option
103 );
104
111VOID
113 IN UINT8 Type,
114 IN UINT8 Option
115 );
116
123VOID
125 IN UINT8 Type,
126 IN UINT8 Option
127 );
128
135VOID
137 IN UINT8 Status,
138 IN UINT8 Option
139 );
140
147VOID
149 IN UINT8 Status,
150 IN UINT8 Option
151 )
152;
153
160VOID
162 IN UINT8 Type,
163 IN UINT8 Option
164 );
165
172VOID
174 IN UINT8 Upgrade,
175 IN UINT8 Option
176 );
177
184VOID
186 IN UINT16 Type,
187 IN UINT8 Option
188 );
189
196VOID
198 IN UINT8 Method,
199 IN UINT8 Option
200 );
201
208VOID
210 IN UINT8 Capability,
211 IN UINT8 Option
212 );
213
220VOID
222 IN UINT8 Support,
223 IN UINT8 Option
224 );
225
232VOID
234 IN UINT16 Speed,
235 IN UINT8 Option
236 );
237
244VOID
246 IN UINT8 Voltage,
247 IN UINT8 Option
248 );
249
256VOID
258 IN UINT16 Type,
259 IN UINT8 Option
260 );
261
268VOID
270 IN UINT8 Status,
271 IN UINT8 Option
272 );
273
280VOID
282 IN UINT16 Type,
283 IN UINT8 Option
284 );
285
292VOID
294 IN UINT8 Type,
295 IN UINT8 Option
296 );
297
304VOID
306 IN UINT8 Type,
307 IN UINT8 Option
308 );
309
316VOID
318 IN UINT8 Associativity,
319 IN UINT8 Option
320 );
321
328VOID
330 IN UINT8 Type,
331 IN UINT8 Option
332 );
333
340VOID
342 IN UINT8 Type,
343 IN UINT8 Option
344 );
345
352VOID
354 IN UINT8 Type,
355 IN UINT8 Option
356 );
357
364VOID
366 IN UINT8 Width,
367 IN UINT8 Option
368 );
369
376VOID
378 IN UINT8 Usage,
379 IN UINT8 Option
380 );
381
388VOID
390 IN UINT8 Length,
391 IN UINT8 Option
392 );
393
400VOID
402 IN UINT8 Chara1,
403 IN UINT8 Option
404 );
405
412VOID
414 IN UINT8 Chara2,
415 IN UINT8 Option
416 );
417
424VOID
426 IN UINT8 Width,
427 IN UINT8 Option
428 );
429
436VOID
438 IN UINT8 Width,
439 IN UINT8 Option
440 );
441
448VOID
450 IN UINT8 Length,
451 IN UINT8 Option
452 );
453
460VOID
462 IN UINT8 Type,
463 IN UINT8 Option
464 );
465
472VOID
474 IN UINT8 Type,
475 IN UINT8 Option
476 );
477
484VOID
486 IN UINT8 Type,
487 IN UINT8 Option
488 );
489
496VOID
498 IN UINT32 Key,
499 IN UINT8 Option
500 );
501
508VOID
510 IN UINT32 Key,
511 IN UINT8 Option
512 );
513
520VOID
522 IN UINT32 SMType,
523 IN UINT8 Option
524 );
525
532VOID
534 IN UINT8 Location,
535 IN UINT8 Option
536 );
537
544VOID
546 IN UINT8 Use,
547 IN UINT8 Option
548 );
549
556VOID
558 IN UINT8 Type,
559 IN UINT8 Option
560 );
561
568VOID
570 IN UINT8 FormFactor,
571 IN UINT8 Option
572 );
573
580VOID
582 IN UINT8 Type,
583 IN UINT8 Option
584 );
585
592VOID
594 IN UINT16 Para,
595 IN UINT8 Option
596 );
597
604VOID
606 IN UINT8 Para,
607 IN UINT8 Option
608 );
609
616VOID
618 IN UINT16 Para,
619 IN UINT8 Option
620 );
621
628VOID
630 IN UINT8 ErrorType,
631 IN UINT8 Option
632 );
633
640VOID
642 IN UINT8 Granularity,
643 IN UINT8 Option
644 );
645
652VOID
654 IN UINT8 Operation,
655 IN UINT8 Option
656 );
657
664VOID
666 IN UINT8 Type,
667 IN UINT8 Option
668 );
669
676VOID
678 IN UINT8 Interface,
679 IN UINT8 Option
680 );
681
688VOID
690 IN UINT8 Key,
691 IN UINT8 Option
692 );
693
700VOID
702 IN UINT8 Key,
703 IN UINT8 Option
704 );
705
712VOID
714 IN UINT8 Key,
715 IN UINT8 Option
716 );
717
724VOID
726 IN UINT8 Key,
727 IN UINT8 Option
728 );
729
736VOID
738 IN UINT8 Key,
739 IN UINT8 Option
740 );
741
748VOID
750 IN UINT8 Key,
751 IN UINT8 Option
752 );
753
760VOID
762 IN UINT8 Key,
763 IN UINT8 Option
764 );
765
772VOID
774 IN UINT8 Key,
775 IN UINT8 Option
776 );
777
784VOID
786 IN UINT8 Key,
787 IN UINT8 Option
788 );
789
796VOID
798 IN UINT8 Key,
799 IN UINT8 Option
800 );
801
808VOID
810 IN UINT8 Key,
811 IN UINT8 Option
812 );
813
820VOID
822 IN UINT8 Key,
823 IN UINT8 Option
824 );
825
832VOID
834 IN UINT8 Key,
835 IN UINT8 Option
836 );
837
844VOID
846 IN UINT8 Key,
847 IN UINT8 Option
848 );
849
850#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
VOID DisplayECPStatus(IN UINT8 Key, IN UINT8 Option)
Definition: QueryTable.c:5109
VOID DisplayPBDeviceChemistry(IN UINT8 Key, IN UINT8 Option)
Definition: QueryTable.c:4972
VOID DisplayMemoryDeviceTypeDetail(IN UINT16 Para, IN UINT8 Option)
Definition: QueryTable.c:4836
VOID DisplaySESecurityStatus(IN UINT8 Status, IN UINT8 Option)
Definition: QueryTable.c:4187
VOID DisplayBaseBoardBoardType(IN UINT8 Type, IN UINT8 Option)
Definition: QueryTable.c:4129
VOID DisplayTemperatureProbeLoc(IN UINT8 Key, IN UINT8 Option)
Definition: QueryTable.c:5089
VOID DisplayMDAddressType(IN UINT8 Key, IN UINT8 Option)
Definition: QueryTable.c:5166
VOID DisplaySystemEnclosureStatus(IN UINT8 Status, IN UINT8 Option)
Definition: QueryTable.c:4170
VOID DisplayMmMemoryType(IN UINT16 Type, IN UINT8 Option)
Definition: QueryTable.c:4340
VOID DisplayBaseBoardFeatureFlags(IN UINT8 FeatureFlags, IN UINT8 Option)
Definition: QueryTable.c:4112
VOID DisplayProcessorCharacteristics(IN UINT16 Type, IN UINT8 Option)
Definition: QueryTable.c:4238
VOID DisplayIPMIDIBMCInterfaceType(IN UINT8 Key, IN UINT8 Option)
Definition: QueryTable.c:5200
VOID DisplayMemoryErrorType(IN UINT8 ErrorType, IN UINT8 Option)
Definition: QueryTable.c:4887
VOID DisplayProcessorType(IN UINT8 Type, IN UINT8 Option)
Definition: QueryTable.c:4204
VOID DisplayVPLocation(IN UINT8 Key, IN UINT8 Option)
Definition: QueryTable.c:4989
VOID DisplaySystemSlotHeight(IN UINT8 Length, IN UINT8 Option)
Definition: QueryTable.c:4612
VOID DisplaySystemWakeupType(IN UINT8 Type, IN UINT8 Option)
Definition: QueryTable.c:4095
UINT8 QueryTable(IN TABLE_ITEM *Table, IN UINTN Number, IN UINT8 Key, IN OUT CHAR16 *Info, IN UINTN InfoLen)
Definition: QueryTable.c:3956
VOID DisplayCacheAssociativity(IN UINT8 Associativity, IN UINT8 Option)
Definition: QueryTable.c:4425
VOID DisplayMCHostInterfaceType(IN UINT8 Key, IN UINT8 Option)
Definition: QueryTable.c:5217
VOID DisplayMemoryModuleVoltage(IN UINT8 Voltage, IN UINT8 Option)
Definition: QueryTable.c:4323
VOID DisplayMcInterleaveSupport(IN UINT8 Support, IN UINT8 Option)
Definition: QueryTable.c:4289
VOID DisplayMemoryDeviceMemoryOperatingModeCapability(IN UINT16 Para, IN UINT8 Option)
Definition: QueryTable.c:4870
VOID DisplayCacheErrCorrectingType(IN UINT8 Type, IN UINT8 Option)
Definition: QueryTable.c:4391
VOID DisplaySlotCharacteristics1(IN UINT8 Chara1, IN UINT8 Option)
Definition: QueryTable.c:4544
VOID DisplayProcessorUpgrade(IN UINT8 Upgrade, IN UINT8 Option)
Definition: QueryTable.c:4221
VOID DisplayMemoryChannelType(IN UINT8 Key, IN UINT8 Option)
Definition: QueryTable.c:5183
VOID DisplayMcErrorCorrectCapability(IN UINT8 Capability, IN UINT8 Option)
Definition: QueryTable.c:4272
VOID DisplayMcMemorySpeeds(IN UINT16 Speed, IN UINT8 Option)
Definition: QueryTable.c:4306
VOID DisplayPointingDeviceType(IN UINT8 Type, IN UINT8 Option)
Definition: QueryTable.c:4938
VOID DisplayMemoryErrorGranularity(IN UINT8 Granularity, IN UINT8 Option)
Definition: QueryTable.c:4904
VOID DisplaySystemSlotType(IN UINT8 Type, IN UINT8 Option)
Definition: QueryTable.c:4476
VOID DisplaySystemSlotLength(IN UINT8 Length, IN UINT8 Option)
Definition: QueryTable.c:4527
VOID DisplayOnboardDeviceTypes(IN UINT8 Type, IN UINT8 Option)
Definition: QueryTable.c:4629
VOID DisplayCacheSystemCacheType(IN UINT8 Type, IN UINT8 Option)
Definition: QueryTable.c:4408
VOID DisplaySystemSlotCurrentUsage(IN UINT8 Usage, IN UINT8 Option)
Definition: QueryTable.c:4510
VOID DisplaySlotCharacteristics2(IN UINT8 Chara2, IN UINT8 Option)
Definition: QueryTable.c:4561
VOID DisplayMemoryErrorOperation(IN UINT8 Operation, IN UINT8 Option)
Definition: QueryTable.c:4921
VOID DisplaySELSysManagementTypes(IN UINT32 SMType, IN UINT8 Option)
Definition: QueryTable.c:4714
VOID DisplayMemoryDeviceFormFactor(IN UINT8 FormFactor, IN UINT8 Option)
Definition: QueryTable.c:4802
VOID DisplayPointingDeviceInterface(IN UINT8 Interface, IN UINT8 Option)
Definition: QueryTable.c:4955
VOID DisplayTemperatureProbeStatus(IN UINT8 Key, IN UINT8 Option)
Definition: QueryTable.c:5069
VOID DisplayStructureTypeInfo(IN UINT8 Key, IN UINT8 Option)
Definition: QueryTable.c:5285
VOID DisplayCoolingDeviceType(IN UINT8 Key, IN UINT8 Option)
Definition: QueryTable.c:5049
VOID DisplaySELVarDataFormatType(IN UINT8 Type, IN UINT8 Option)
Definition: QueryTable.c:4663
VOID DisplayECPLoc(IN UINT8 Key, IN UINT8 Option)
Definition: QueryTable.c:5129
VOID DisplayPMALocation(IN UINT8 Location, IN UINT8 Option)
Definition: QueryTable.c:4751
VOID DisplayMemoryDeviceMemoryTechnology(IN UINT8 Para, IN UINT8 Option)
Definition: QueryTable.c:4853
VOID DisplayCacheSRAMType(IN UINT16 Type, IN UINT8 Option)
Definition: QueryTable.c:4374
VOID DisplayPostResultsBitmapDw2(IN UINT32 Key, IN UINT8 Option)
Definition: QueryTable.c:4697
VOID DisplayMDType(IN UINT8 Key, IN UINT8 Option)
Definition: QueryTable.c:5149
VOID DisplayMmErrorStatus(IN UINT8 Status, IN UINT8 Option)
Definition: QueryTable.c:4357
VOID DisplaySystemSlotInformation(IN UINT8 Width, IN UINT8 Option)
Definition: QueryTable.c:4578
VOID DisplaySystemSlotDataBusWidth(IN UINT8 Width, IN UINT8 Option)
Definition: QueryTable.c:4493
VOID DisplaySystemSlotPhysicalWidth(IN UINT8 Width, IN UINT8 Option)
Definition: QueryTable.c:4595
VOID DisplaySELTypes(IN UINT8 Type, IN UINT8 Option)
Definition: QueryTable.c:4646
VOID DisplayPostResultsBitmapDw1(IN UINT32 Key, IN UINT8 Option)
Definition: QueryTable.c:4680
VOID DisplayPMAUse(IN UINT8 Use, IN UINT8 Option)
Definition: QueryTable.c:4768
VOID DisplayMemoryDeviceType(IN UINT8 Type, IN UINT8 Option)
Definition: QueryTable.c:4819
VOID DisplaySystemEnclosureType(IN UINT8 Type, IN UINT8 Option)
Definition: QueryTable.c:4146
VOID DisplayVPStatus(IN UINT8 Key, IN UINT8 Option)
Definition: QueryTable.c:5009
VOID DisplayCoolingDeviceStatus(IN UINT8 Key, IN UINT8 Option)
Definition: QueryTable.c:5029
VOID DisplayPortConnectorType(IN UINT8 Type, IN UINT8 Option)
Definition: QueryTable.c:4442
VOID DisplayPMAErrorCorrectionTypes(IN UINT8 Type, IN UINT8 Option)
Definition: QueryTable.c:4785
VOID DisplayPortType(IN UINT8 Type, IN UINT8 Option)
Definition: QueryTable.c:4459
VOID DisplayMcErrorDetectMethod(IN UINT8 Method, IN UINT8 Option)
Definition: QueryTable.c:4255