TianoCore EDK2 master
Loading...
Searching...
No Matches
X2Apic.c File Reference

Go to the source code of this file.

Functions

VOID *EFIAPI X2ApicGetConfigData (IN UINTN NumberOfProcessors)
 
BOOLEAN EFIAPI X2ApicSupport (IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
 
RETURN_STATUS EFIAPI X2ApicInitialize (IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
 

Detailed Description

X2Apic feature.

Copyright (c) 2017, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file X2Apic.c.

Function Documentation

◆ X2ApicGetConfigData()

VOID *EFIAPI X2ApicGetConfigData ( IN UINTN  NumberOfProcessors)

Prepares for the data used by CPU feature detection and initialization.

Parameters
[in]NumberOfProcessorsThe number of CPUs in the platform.
Returns
Pointer to a buffer of CPU related configuration data.
Note
This service could be called by BSP only.

Definition at line 22 of file X2Apic.c.

◆ X2ApicInitialize()

RETURN_STATUS EFIAPI X2ApicInitialize ( IN UINTN  ProcessorNumber,
IN REGISTER_CPU_FEATURE_INFORMATION CpuInfo,
IN VOID *ConfigData  OPTIONAL,
IN BOOLEAN  State 
)

Initializes X2Apci feature to specific state.

Parameters
[in]ProcessorNumberThe index of the CPU executing this function.
[in]CpuInfoA pointer to the REGISTER_CPU_FEATURE_INFORMATION structure for the CPU executing this function.
[in]ConfigDataA pointer to the configuration buffer returned by CPU_FEATURE_GET_CONFIG_DATA. NULL if CPU_FEATURE_GET_CONFIG_DATA was not provided in RegisterCpuFeature().
[in]StateIf TRUE, then the X2Apci feature must be enabled. If FALSE, then the X2Apci feature must be disabled.
Return values
RETURN_SUCCESSX2Apci feature is initialized.
Note
This service could be called by BSP only.

Definition at line 90 of file X2Apic.c.

◆ X2ApicSupport()

BOOLEAN EFIAPI X2ApicSupport ( IN UINTN  ProcessorNumber,
IN REGISTER_CPU_FEATURE_INFORMATION CpuInfo,
IN VOID *ConfigData  OPTIONAL 
)

Detects if X2Apci feature supported on current processor.

Detect if X2Apci has been already enabled.

Parameters
[in]ProcessorNumberThe index of the CPU executing this function.
[in]CpuInfoA pointer to the REGISTER_CPU_FEATURE_INFORMATION structure for the CPU executing this function.
[in]ConfigDataA pointer to the configuration buffer returned by CPU_FEATURE_GET_CONFIG_DATA. NULL if CPU_FEATURE_GET_CONFIG_DATA was not provided in RegisterCpuFeature().
Return values
TRUEX2Apci feature is supported.
FALSEX2Apci feature is not supported.
Note
This service could be called by BSP/APs.

Definition at line 53 of file X2Apic.c.