TianoCore EDK2 master
Loading...
Searching...
No Matches
CpuCommonFeatures.h
Go to the documentation of this file.
1
9#ifndef _CPU_COMMON_FEATURES_H_
10#define _CPU_COMMON_FEATURES_H_
11
12#include <PiDxe.h>
13
14#include <Library/BaseLib.h>
15#include <Library/PcdLib.h>
16#include <Library/DebugLib.h>
21
23#include <Register/Intel/Msr.h>
24
34VOID *
35EFIAPI
37 IN UINTN NumberOfProcessors
38 );
39
56BOOLEAN
57EFIAPI
59 IN UINTN ProcessorNumber,
61 IN VOID *ConfigData OPTIONAL
62 );
63
81RETURN_STATUS
82EFIAPI
84 IN UINTN ProcessorNumber,
86 IN VOID *ConfigData OPTIONAL,
87 IN BOOLEAN State
88 );
89
99VOID *
100EFIAPI
102 IN UINTN NumberOfProcessors
103 );
104
121BOOLEAN
122EFIAPI
124 IN UINTN ProcessorNumber,
126 IN VOID *ConfigData OPTIONAL
127 );
128
146RETURN_STATUS
147EFIAPI
149 IN UINTN ProcessorNumber,
151 IN VOID *ConfigData OPTIONAL,
152 IN BOOLEAN State
153 );
154
171BOOLEAN
172EFIAPI
174 IN UINTN ProcessorNumber,
176 IN VOID *ConfigData OPTIONAL
177 );
178
198RETURN_STATUS
199EFIAPI
201 IN UINTN ProcessorNumber,
203 IN VOID *ConfigData OPTIONAL,
204 IN BOOLEAN State
205 );
206
223BOOLEAN
224EFIAPI
226 IN UINTN ProcessorNumber,
228 IN VOID *ConfigData OPTIONAL
229 );
230
248RETURN_STATUS
249EFIAPI
251 IN UINTN ProcessorNumber,
253 IN VOID *ConfigData OPTIONAL,
254 IN BOOLEAN State
255 );
256
274RETURN_STATUS
275EFIAPI
277 IN UINTN ProcessorNumber,
279 IN VOID *ConfigData OPTIONAL,
280 IN BOOLEAN State
281 );
282
299BOOLEAN
300EFIAPI
302 IN UINTN ProcessorNumber,
304 IN VOID *ConfigData OPTIONAL
305 );
306
324RETURN_STATUS
325EFIAPI
327 IN UINTN ProcessorNumber,
329 IN VOID *ConfigData OPTIONAL,
330 IN BOOLEAN State
331 );
332
349BOOLEAN
350EFIAPI
352 IN UINTN ProcessorNumber,
354 IN VOID *ConfigData OPTIONAL
355 );
356
374RETURN_STATUS
375EFIAPI
377 IN UINTN ProcessorNumber,
379 IN VOID *ConfigData OPTIONAL,
380 IN BOOLEAN State
381 );
382
399BOOLEAN
400EFIAPI
402 IN UINTN ProcessorNumber,
404 IN VOID *ConfigData OPTIONAL
405 );
406
424RETURN_STATUS
425EFIAPI
427 IN UINTN ProcessorNumber,
429 IN VOID *ConfigData OPTIONAL,
430 IN BOOLEAN State
431 );
432
449BOOLEAN
450EFIAPI
452 IN UINTN ProcessorNumber,
454 IN VOID *ConfigData OPTIONAL
455 );
456
475RETURN_STATUS
476EFIAPI
478 IN UINTN ProcessorNumber,
480 IN VOID *ConfigData OPTIONAL,
481 IN BOOLEAN State
482 );
483
500BOOLEAN
501EFIAPI
503 IN UINTN ProcessorNumber,
505 IN VOID *ConfigData OPTIONAL
506 );
507
525RETURN_STATUS
526EFIAPI
528 IN UINTN ProcessorNumber,
530 IN VOID *ConfigData OPTIONAL,
531 IN BOOLEAN State
532 );
533
550BOOLEAN
551EFIAPI
553 IN UINTN ProcessorNumber,
555 IN VOID *ConfigData OPTIONAL
556 );
557
575RETURN_STATUS
576EFIAPI
578 IN UINTN ProcessorNumber,
580 IN VOID *ConfigData OPTIONAL,
581 IN BOOLEAN State
582 );
583
600BOOLEAN
601EFIAPI
603 IN UINTN ProcessorNumber,
605 IN VOID *ConfigData OPTIONAL
606 );
607
625RETURN_STATUS
626EFIAPI
628 IN UINTN ProcessorNumber,
630 IN VOID *ConfigData OPTIONAL,
631 IN BOOLEAN State
632 );
633
650BOOLEAN
651EFIAPI
653 IN UINTN ProcessorNumber,
655 IN VOID *ConfigData OPTIONAL
656 );
657
675RETURN_STATUS
676EFIAPI
678 IN UINTN ProcessorNumber,
680 IN VOID *ConfigData OPTIONAL,
681 IN BOOLEAN State
682 );
683
700BOOLEAN
701EFIAPI
703 IN UINTN ProcessorNumber,
705 IN VOID *ConfigData OPTIONAL
706 );
707
725RETURN_STATUS
726EFIAPI
728 IN UINTN ProcessorNumber,
730 IN VOID *ConfigData OPTIONAL,
731 IN BOOLEAN State
732 );
733
750BOOLEAN
751EFIAPI
753 IN UINTN ProcessorNumber,
755 IN VOID *ConfigData OPTIONAL
756 );
757
775RETURN_STATUS
776EFIAPI
778 IN UINTN ProcessorNumber,
780 IN VOID *ConfigData OPTIONAL,
781 IN BOOLEAN State
782 );
783
793VOID *
794EFIAPI
796 IN UINTN NumberOfProcessors
797 );
798
817BOOLEAN
818EFIAPI
820 IN UINTN ProcessorNumber,
822 IN VOID *ConfigData OPTIONAL
823 );
824
842RETURN_STATUS
843EFIAPI
845 IN UINTN ProcessorNumber,
847 IN VOID *ConfigData OPTIONAL,
848 IN BOOLEAN State
849 );
850
860VOID *
861EFIAPI
863 IN UINTN NumberOfProcessors
864 );
865
883BOOLEAN
884EFIAPI
886 IN UINTN ProcessorNumber,
888 IN VOID *ConfigData OPTIONAL
889 );
890
912RETURN_STATUS
913EFIAPI
915 IN UINTN ProcessorNumber,
917 IN VOID *ConfigData OPTIONAL,
918 IN BOOLEAN State
919 );
920
938BOOLEAN
939EFIAPI
941 IN UINTN ProcessorNumber,
943 IN VOID *ConfigData OPTIONAL
944 );
945
964RETURN_STATUS
965EFIAPI
967 IN UINTN ProcessorNumber,
969 IN VOID *ConfigData OPTIONAL,
970 IN BOOLEAN State
971 );
972
982VOID *
983EFIAPI
985 IN UINTN NumberOfProcessors
986 );
987
1004BOOLEAN
1005EFIAPI
1007 IN UINTN ProcessorNumber,
1009 IN VOID *ConfigData OPTIONAL
1010 );
1011
1030RETURN_STATUS
1031EFIAPI
1033 IN UINTN ProcessorNumber,
1035 IN VOID *ConfigData OPTIONAL,
1036 IN BOOLEAN State
1037 );
1038
1039#endif
UINT64 UINTN
RETURN_STATUS EFIAPI McaInitialize(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
Definition: MachineCheck.c:128
BOOLEAN EFIAPI C1eSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
Definition: C1e.c:29
VOID *EFIAPI AesniGetConfigData(IN UINTN NumberOfProcessors)
Definition: Aesni.c:22
RETURN_STATUS EFIAPI FastStringsInitialize(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
Definition: FastStrings.c:30
BOOLEAN EFIAPI McgCtlSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
Definition: MachineCheck.c:209
RETURN_STATUS EFIAPI X2ApicInitialize(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
Definition: X2Apic.c:90
VOID *EFIAPI ProcTraceGetConfigData(IN UINTN NumberOfProcessors)
Definition: ProcTrace.c:71
BOOLEAN EFIAPI PpinSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
Definition: Ppin.c:52
RETURN_STATUS EFIAPI ClockModulationInitialize(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
BOOLEAN EFIAPI PendingBreakSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
Definition: PendingBreak.c:29
RETURN_STATUS EFIAPI MonitorMwaitInitialize(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
Definition: MonitorMwait.c:57
RETURN_STATUS EFIAPI ProcTraceInitialize(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
Definition: ProcTrace.c:176
RETURN_STATUS EFIAPI McgCtlInitialize(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
Definition: MachineCheck.c:244
BOOLEAN EFIAPI LimitCpuidMaxvalSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
RETURN_STATUS EFIAPI MceInitialize(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
Definition: MachineCheck.c:57
RETURN_STATUS EFIAPI LimitCpuidMaxvalInitialize(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
RETURN_STATUS EFIAPI LockFeatureControlRegisterInitialize(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
RETURN_STATUS EFIAPI C1eInitialize(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
Definition: C1e.c:57
RETURN_STATUS EFIAPI VmxInitialize(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
BOOLEAN EFIAPI SmxSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
BOOLEAN EFIAPI VmxSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
BOOLEAN EFIAPI EistSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
Definition: Eist.c:29
BOOLEAN EFIAPI AesniSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
Definition: Aesni.c:51
VOID *EFIAPI X2ApicGetConfigData(IN UINTN NumberOfProcessors)
Definition: X2Apic.c:22
RETURN_STATUS EFIAPI PendingBreakInitialize(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
Definition: PendingBreak.c:66
BOOLEAN EFIAPI X2ApicSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
Definition: X2Apic.c:53
RETURN_STATUS EFIAPI LmceInitialize(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
Definition: MachineCheck.c:316
BOOLEAN EFIAPI LmceSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
Definition: MachineCheck.c:279
BOOLEAN EFIAPI MceSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
Definition: MachineCheck.c:29
BOOLEAN EFIAPI McaSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
Definition: MachineCheck.c:96
VOID *EFIAPI PpinGetConfigData(IN UINTN NumberOfProcessors)
Definition: Ppin.c:22
BOOLEAN EFIAPI ProcTraceSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
Definition: ProcTrace.c:109
BOOLEAN EFIAPI LockFeatureControlRegisterSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
VOID *EFIAPI ClockModulationGetConfigData(IN UINTN NumberOfProcessors)
RETURN_STATUS EFIAPI AesniInitialize(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
Definition: Aesni.c:88
BOOLEAN EFIAPI ExecuteDisableSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
BOOLEAN EFIAPI MonitorMwaitSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
Definition: MonitorMwait.c:29
RETURN_STATUS EFIAPI PpinInitialize(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
Definition: Ppin.c:109
BOOLEAN EFIAPI ClockModulationSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
RETURN_STATUS EFIAPI ExecuteDisableInitialize(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
RETURN_STATUS EFIAPI EistInitialize(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
Definition: Eist.c:59
RETURN_STATUS EFIAPI SmxInitialize(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
#define IN
Definition: Base.h:279