29 ASSERT (ConfigData !=
NULL);
54 IN VOID *ConfigData OPTIONAL
59 if (CpuInfo->CpuIdVersionInfoEcx.Bits.AESNI == 1) {
61 ASSERT (MsrFeatureConfig !=
NULL);
91 IN VOID *ConfigData OPTIONAL,
105 if (CpuInfo->ProcessorInfo.Location.Thread == 0) {
107 ASSERT (MsrFeatureConfig !=
NULL);
108 if ((MsrFeatureConfig[ProcessorNumber].Bits.AESConfiguration & BIT0) == 0) {
114 Bits.AESConfiguration,
115 BIT0 | ((State) ? 0 : BIT1)
VOID *EFIAPI AesniGetConfigData(IN UINTN NumberOfProcessors)
BOOLEAN EFIAPI AesniSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
RETURN_STATUS EFIAPI AesniInitialize(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
VOID *EFIAPI AllocateZeroPool(IN UINTN AllocationSize)
UINT64 EFIAPI AsmReadMsr64(IN UINT32 Index)
#define CPU_REGISTER_TABLE_WRITE_FIELD(ProcessorNumber, RegisterType, Index, Type, Field, Value)
#define MSR_SANDY_BRIDGE_FEATURE_CONFIG