]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFspPkg/FspSecCore/SecFsp.h
Rollback file GUID change, because it is VTF file and GUID is predefined.
[mirror_edk2.git] / IntelFspPkg / FspSecCore / SecFsp.h
CommitLineData
c8ec22a2
JY
1/** @file\r
2\r
3 Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
4 This program and the accompanying materials\r
5 are licensed and made available under the terms and conditions of the BSD License\r
6 which accompanies this distribution. The full text of the license may be found at\r
7 http://opensource.org/licenses/bsd-license.php.\r
8\r
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11\r
12**/\r
13\r
14#ifndef _SEC_FSP_H_\r
15#define _SEC_FSPE_H_\r
16\r
17#include <PiPei.h>\r
18#include <Library/PcdLib.h>\r
19#include <Library/BaseLib.h>\r
20#include <Library/DebugLib.h>\r
21#include <Library/SerialPortLib.h>\r
22#include <Library/BaseMemoryLib.h>\r
23#include <Library/FspCommonLib.h>\r
24\r
25#include <FspApi.h>\r
26\r
27#define FSP_MCUD_SIGNATURE SIGNATURE_32 ('M', 'C', 'U', 'D')\r
28#define FSP_PER0_SIGNATURE SIGNATURE_32 ('P', 'E', 'R', '0')\r
29\r
30/**\r
31\r
32 Calculate the FSP IDT gate descriptor.\r
33\r
34 @param[in] IdtEntryTemplate IDT gate descriptor template.\r
35\r
36 @return FSP specific IDT gate descriptor.\r
37\r
38**/\r
39UINT64\r
40FspGetExceptionHandler(\r
41 IN UINT64 IdtEntryTemplate\r
42 );\r
43\r
44/**\r
45\r
46 Initialize the FSP global data region.\r
47 It needs to be done as soon as possible after the stack is setup.\r
48\r
49 @param[in,out] PeiFspData Pointer of the FSP global data.\r
50 @param[in] BootFirmwareVolume Point to the address of BootFirmwareVolume in stack.\r
51\r
52**/\r
53VOID\r
54FspGlobalDataInit (\r
55 IN OUT FSP_GLOBAL_DATA *PeiFspData,\r
56 IN VOID **BootFirmwareVolume\r
57 );\r
58\r
59\r
60/**\r
61\r
62 Adjust the FSP data pointers after the stack is migrated to memory.\r
63\r
64 @param[in] OffsetGap The offset gap between the old stack and the new stack.\r
65\r
66**/\r
67VOID\r
68FspDataPointerFixUp (\r
69 IN UINT32 OffsetGap\r
70 );\r
71\r
72\r
73/**\r
74 This interface returns the base address of FSP binary.\r
75\r
76 @return FSP binary base address.\r
77\r
78**/\r
79UINT32\r
80EFIAPI\r
81GetFspBaseAddress (\r
82 VOID\r
83 );\r
84\r
85/**\r
86 This function gets the FSP UPD region offset in flash.\r
87\r
88 @return the offset of the UPD region.\r
89\r
90**/\r
91UINT32\r
92EFIAPI\r
93GetFspUpdRegionOffset (\r
94 VOID\r
95 );\r
96\r
97#endif\r