alder_lake_bios/Intel/AlderLake/ClientOneSiliconPkg/Include/Library/PeiSiPolicyUpdateLib.h

237 lines
6.2 KiB
C

/** @file
Header file for PEI SiPolicyUpdate Library.
@copyright
INTEL CONFIDENTIAL
Copyright 2014 - 2021 Intel Corporation.
The source code contained or described herein and all documents related to the
source code ("Material") are owned by Intel Corporation or its suppliers or
licensors. Title to the Material remains with Intel Corporation or its suppliers
and licensors. The Material may contain trade secrets and proprietary and
confidential information of Intel Corporation and its suppliers and licensors,
and is protected by worldwide copyright and trade secret laws and treaty
provisions. No part of the Material may be used, copied, reproduced, modified,
published, uploaded, posted, transmitted, distributed, or disclosed in any way
without Intel's prior express written permission.
No license under any patent, copyright, trade secret or other intellectual
property right is granted to or conferred upon you by disclosure or delivery
of the Materials, either expressly, by implication, inducement, estoppel or
otherwise. Any license under such intellectual property rights must be
express and approved by Intel in writing.
Unless otherwise agreed by Intel in writing, you may not remove or alter
this notice or any other notice embedded in Materials by Intel or
Intel's suppliers or licensors in any way.
This file contains an 'Intel Peripheral Driver' and is uniquely identified as
"Intel Reference Module" and is licensed for Intel CPUs and chipsets under
the terms of your license agreement with Intel or your vendor. This file may
be modified by the user, subject to additional terms of the license agreement.
@par Specification Reference:
**/
#ifndef _PEI_SI_POLICY_UPDATE_LIB_H_
#define _PEI_SI_POLICY_UPDATE_LIB_H_
#include <Ppi/SiPolicy.h>
/**
This function performs Initinalize global variable for PolicyDefaultCheck using
@retval EFI_SUCCESS The function completed successfully
**/
EFI_STATUS
EFIAPI
PolicyDefaultCheckInit (
);
/**
This function performs Check First Boot and Rvp Support to see if Policy Default Check Required
@retval BOOLEAN Required TURE or FALSE
**/
BOOLEAN
EFIAPI
IsPolicyDefaultCheckRequired (
);
/**
This function performs Silicon PEI Policy initialization.
@retval EFI_SUCCESS The function completed successfully
**/
EFI_STATUS
EFIAPI
UpdatePeiSiPolicyPreMem (
VOID
);
/**
This function performs Silicon PEI Policy initialization.
@retval EFI_SUCCESS The function completed successfully
**/
EFI_STATUS
EFIAPI
UpdatePeiSiPolicy (
VOID
);
/**
This function performs CPU PEI Policy initialization in Post-memory.
@retval EFI_SUCCESS The PPI is installed and initialized.
@retval EFI ERRORS The PPI is not successfully installed.
@retval EFI_OUT_OF_RESOURCES Do not have enough resources to initialize the driver
**/
EFI_STATUS
EFIAPI
UpdatePeiCpuPolicy (
VOID
);
/**
This function performs CPU PEI Policy initialization in PreMem.
@retval EFI_SUCCESS The PPI is installed and initialized.
@retval EFI ERRORS The PPI is not successfully installed.
@retval EFI_OUT_OF_RESOURCES Do not have enough resources to initialize the driver
**/
EFI_STATUS
EFIAPI
UpdatePeiCpuPolicyPreMem (
VOID
);
/**
This function performs SA PEI Policy initialization.
@retval EFI_SUCCESS The PPI is installed and initialized.
**/
EFI_STATUS
EFIAPI
UpdatePeiSaPolicy (
VOID
);
/**
This function performs SA PEI Policy initialization for PreMem.
@retval EFI_SUCCESS Update complete.
**/
EFI_STATUS
EFIAPI
UpdatePeiSaPolicyPreMem (
VOID
);
/**
This function performs PCH PEI Policy initialization.
@retval EFI_SUCCESS The PPI is installed and initialized.
@retval EFI ERRORS The PPI is not successfully installed.
@retval EFI_OUT_OF_RESOURCES Do not have enough resources to initialize the driver
**/
EFI_STATUS
EFIAPI
UpdatePeiPchPolicy (
VOID
);
/**
This function performs PCH PEI Policy initialization.
@retval EFI_SUCCESS The PPI is installed and initialized.
@retval EFI ERRORS The PPI is not successfully installed.
@retval EFI_OUT_OF_RESOURCES Do not have enough resources to initialize the driver
**/
EFI_STATUS
EFIAPI
UpdatePeiPchPolicyPreMem (
VOID
);
/**
Update the ME Policy Library
@retval EFI_SUCCESS Update complete.
@retval Others Update unsuccessful.
**/
EFI_STATUS
EFIAPI
UpdatePeiMePolicy (
VOID
);
/**
Update the ME Policy Library
@retval EFI_SUCCESS Update complete.
**/
EFI_STATUS
EFIAPI
UpdatePeiMePolicyPreMem (
VOID
);
/**
Install the Active Management Policy Ppi Library
@retval EFI_SUCCESS Initialization complete.
@retval EFI_UNSUPPORTED The chipset is unsupported by this driver.
@retval EFI_OUT_OF_RESOURCES Do not have enough resources to initialize the driver.
@retval EFI_DEVICE_ERROR Device error, driver exits abnormally.
**/
EFI_STATUS
EFIAPI
UpdatePeiAmtPolicy (
VOID
);
/**
Update the TBT Policy Library
@retval EFI_SUCCESS Update complete.
**/
EFI_STATUS
EFIAPI
UpdatePeiTbtPolicy (
VOID
);
/**
Update the ME Server Policy Ppi (pre mem)
@param[in, out] SiPreMemPolicyPpi PEI Pre Mem Si Policy
@retval EFI_SUCCESS Initialization complete.
@retval EFI_UNSUPPORTED The chipset is unsupported by this driver.
@retval EFI_OUT_OF_RESOURCES Do not have enough resources to initialize the driver.
@retval EFI_DEVICE_ERROR Device error, driver exits abnormally.
@retval EFI_INVALID_PARAMETER Wrong pointer passed to the function
**/
EFI_STATUS
UpdatePeiMeServerPreMemPolicy (
IN OUT SI_PREMEM_POLICY_PPI *SiPreMemPolicy
);
/**
Update the ME Server Policy Ppi (post mem)
@param[in, out] SiPolicyPpi PEI Si Policy
@retval EFI_SUCCESS Initialization complete.
@retval EFI_UNSUPPORTED The chipset is unsupported by this driver.
@retval EFI_DEVICE_ERROR Device error, driver exits abnormally.
@retval EFI_INVALID_PARAMETER Wrong pointer passed to the function
**/
EFI_STATUS
UpdatePeiMeServerPolicy (
IN OUT SI_POLICY_PPI *SiPolicyPpi
);
#endif