]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFsp2Pkg/Include/Library/FspMultiPhaseLib.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / IntelFsp2Pkg / Include / Library / FspMultiPhaseLib.h
1 /** @file
2 FSP MultiPhase Library.
3
4 Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #ifndef _FSP_MULTIPHASE_LIB_H_
10 #define _FSP_MULTIPHASE_LIB_H_
11
12 EFI_STATUS
13 EFIAPI
14 FspMultiPhaseSwitchStack (
15 );
16
17 EFI_STATUS
18 EFIAPI
19 FspVariableRequestSwitchStack (
20 IN FSP_MULTI_PHASE_VARIABLE_REQUEST_INFO_PARAMS *FspVariableRequestParams
21 );
22
23 /**
24 This function handles FspMultiPhaseMemInitApi.
25
26 @param[in] ApiIdx Internal index of the FSP API.
27 @param[in] ApiParam Parameter of the FSP API.
28
29 @retval EFI_SUCCESS FSP execution was successful.
30 @retval EFI_INVALID_PARAMETER Input parameters are invalid.
31 @retval EFI_UNSUPPORTED The FSP calling conditions were not met.
32 @retval EFI_DEVICE_ERROR FSP initialization failed.
33 **/
34 EFI_STATUS
35 EFIAPI
36 FspMultiPhaseMemInitApiHandler (
37 IN UINT32 ApiIdx,
38 IN VOID *ApiParam
39 );
40
41 /**
42 This function handles FspMultiPhaseSiInitApi.
43
44 @param[in] ApiIdx Internal index of the FSP API.
45 @param[in] ApiParam Parameter of the FSP API.
46
47 **/
48 EFI_STATUS
49 EFIAPI
50 FspMultiPhaseSiInitApiHandlerV2 (
51 IN UINT32 ApiIdx,
52 IN VOID *ApiParam
53 );
54
55 #endif