/** @file
Prototype of the DxeSaPolicyLib library.
Copyright (c) 2017, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _DXE_SA_POLICY_LIB_H_
#define _DXE_SA_POLICY_LIB_H_
#include
/**
This function prints the DXE phase policy.
@param[in] SaPolicy - SA DXE Policy protocol
**/
VOID
SaPrintPolicyProtocol (
IN SA_POLICY_PROTOCOL *SaPolicy
)
;
/**
CreateSaDxeConfigBlocks generates the config blocksg of SA DXE Policy.
It allocates and zero out buffer, and fills in the Intel default settings.
@param[out] SaPolicy The pointer to get SA Policy Protocol instance
@retval EFI_SUCCESS The policy default is initialized.
@retval EFI_OUT_OF_RESOURCES Insufficient resources to create buffer
**/
EFI_STATUS
EFIAPI
CreateSaDxeConfigBlocks(
IN OUT SA_POLICY_PROTOCOL **SaPolicy
);
/**
SaInstallPolicyProtocol installs SA Policy.
While installed, RC assumes the Policy is ready and finalized. So please update and override
any setting before calling this function.
@param[in] ImageHandle Image handle of this driver.
@param[in] SaPolicy The pointer to SA Policy Protocol instance
@retval EFI_SUCCESS The policy is installed.
@retval EFI_OUT_OF_RESOURCES Insufficient resources to create buffer
**/
EFI_STATUS
EFIAPI
SaInstallPolicyProtocol (
IN EFI_HANDLE ImageHandle,
IN SA_POLICY_PROTOCOL *SaPolicy
)
;
#endif // _DXE_SA_POLICY_LIB_H_