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

Go to the source code of this file.

Functions

VOID *EFIAPI PpinGetConfigData (IN UINTN NumberOfProcessors)
 
BOOLEAN EFIAPI PpinSupport (IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
 
RETURN_STATUS EFIAPI PpinInitialize (IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
 

Detailed Description

Protected Processor Inventory Number(PPIN) feature.

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

Definition in file Ppin.c.

Function Documentation

◆ PpinGetConfigData()

VOID *EFIAPI PpinGetConfigData ( 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 Ppin.c.

◆ PpinInitialize()

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

Initializes Protected Processor Inventory Number 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 Protected Processor Inventory Number feature must be enabled. If FALSE, then the Protected Processor Inventory Number feature must be disabled.
Return values
RETURN_SUCCESSProtected Processor Inventory Number feature is initialized.
RETURN_DEVICE_ERRORDevice can't change state because it has been locked.
Note
This service could be called by BSP only.

Definition at line 109 of file Ppin.c.

◆ PpinSupport()

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

Detects if Protected Processor Inventory Number feature supported on current processor.

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
TRUEProtected Processor Inventory Number feature is supported.
FALSEProtected Processor Inventory Number feature is not supported.
Note
This service could be called by BSP/APs.

Definition at line 52 of file Ppin.c.