]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFsp2WrapperPkg/Include/Library/FspWrapperApiLib.h
IntelFsp2WrapperPkg: Support FSP Dispatch mode
[mirror_edk2.git] / IntelFsp2WrapperPkg / Include / Library / FspWrapperApiLib.h
CommitLineData
cf1d4549
JY
1/** @file\r
2 Provide FSP wrapper API related function.\r
3\r
4 Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php.\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef __FSP_WRAPPER_API_LIB_H__\r
16#define __FSP_WRAPPER_API_LIB_H__\r
17\r
18#include <FspEas.h>\r
19\r
20/**\r
21 Find FSP header pointer.\r
22\r
23 @param[in] FlashFvFspBase Flash address of FSP FV.\r
24\r
25 @return FSP header pointer.\r
26**/\r
27FSP_INFO_HEADER *\r
28EFIAPI\r
29FspFindFspHeader (\r
30 IN EFI_PHYSICAL_ADDRESS FlashFvFspBase\r
31 );\r
32\r
33/**\r
34 Call FSP API - FspNotifyPhase.\r
35\r
36 @param[in] NotifyPhaseParams Address pointer to the NOTIFY_PHASE_PARAMS structure.\r
37\r
38 @return EFI status returned by FspNotifyPhase API.\r
39**/\r
40EFI_STATUS\r
41EFIAPI\r
42CallFspNotifyPhase (\r
43 IN NOTIFY_PHASE_PARAMS *NotifyPhaseParams\r
44 );\r
45\r
46/**\r
47 Call FSP API - FspMemoryInit.\r
48\r
49 @param[in] FspmUpdDataPtr Pointer to the FSPM_UPD data sructure.\r
50 @param[out] HobListPtr Pointer to receive the address of the HOB list.\r
51\r
52 @return EFI status returned by FspMemoryInit API.\r
53**/\r
54EFI_STATUS\r
55EFIAPI\r
56CallFspMemoryInit (\r
57 IN VOID *FspmUpdDataPtr,\r
58 OUT VOID **HobListPtr\r
59 );\r
60\r
61/**\r
62 Call FSP API - TempRamExit.\r
63\r
64 @param[in] TempRamExitParam Address pointer to the TempRamExit parameters structure.\r
65\r
66 @return EFI status returned by TempRamExit API.\r
67**/\r
68EFI_STATUS\r
69EFIAPI\r
70CallTempRamExit (\r
71 IN VOID *TempRamExitParam\r
72 );\r
73\r
74/**\r
75 Call FSP API - FspSiliconInit.\r
76\r
77 @param[in] FspsUpdDataPtr Pointer to the FSPS_UPD data structure.\r
78\r
79 @return EFI status returned by FspSiliconInit API.\r
80**/\r
81EFI_STATUS\r
82EFIAPI\r
83CallFspSiliconInit (\r
84 IN VOID *FspsUpdDataPtr\r
85 );\r
86\r
87#endif\r