Update IntelFspPkg according to FSP1.1.
[mirror_edk2.git] / IntelFspWrapperPkg / Include / Library / FspApiLib.h
CommitLineData
a33a2f62
JY
1/** @file\r
2 Provide FSP API related function.\r
3\r
4 Copyright (c) 2014, 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_API_LIB_H__\r
16#define __FSP_API_LIB_H__\r
17\r
18#include <FspApi.h>\r
19#include <FspInfoHeader.h>\r
20\r
21/**\r
22 Find FSP header pointer.\r
23\r
24 @param[in] FlashFvFspBase Flash address of FSP FV.\r
25\r
26 @return FSP header pointer.\r
27**/\r
28FSP_INFO_HEADER *\r
29EFIAPI\r
30FspFindFspHeader (\r
31 IN EFI_PHYSICAL_ADDRESS FlashFvFspBase\r
32 );\r
33\r
34/**\r
35 Call FSP API - FspInit.\r
36\r
37 @param[in] FspHeader FSP header pointer.\r
38 @param[in] FspInitParams Address pointer to the FSP_INIT_PARAMS structure.\r
39\r
40 @return FSP status returned by FspInit API.\r
41**/\r
42FSP_STATUS\r
43EFIAPI\r
44CallFspInit (\r
45 IN FSP_INFO_HEADER *FspHeader,\r
46 IN FSP_INIT_PARAMS *FspInitParams\r
47 );\r
48\r
49/**\r
50 Call FSP API - FspNotifyPhase.\r
51\r
52 @param[in] FspHeader FSP header pointer.\r
53 @param[in] NotifyPhaseParams Address pointer to the NOTIFY_PHASE_PARAMS structure.\r
54\r
55 @return FSP status returned by FspNotifyPhase API.\r
56**/\r
57FSP_STATUS\r
58EFIAPI\r
59CallFspNotifyPhase (\r
60 IN FSP_INFO_HEADER *FspHeader,\r
61 IN NOTIFY_PHASE_PARAMS *NotifyPhaseParams\r
62 );\r
63\r
64#endif\r