]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFspWrapperPkg/FspWrapperSecCore/SecMain.h
IntelFspPkg: Fix typos in comments
[mirror_edk2.git] / IntelFspWrapperPkg / FspWrapperSecCore / SecMain.h
CommitLineData
a33a2f62
JY
1/** @file\r
2 Master header file for SecCore.\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 _SEC_CORE_H_\r
16#define _SEC_CORE_H_\r
17\r
18\r
19#include <PiPei.h>\r
20\r
21#include <Ppi/TopOfTemporaryRam.h>\r
22\r
23#include <Library/BaseLib.h>\r
24#include <Library/DebugLib.h>\r
25#include <Library/PcdLib.h>\r
26#include <Library/BaseMemoryLib.h>\r
27#include <Library/FspPlatformSecLib.h>\r
28#include <Library/FspPlatformInfoLib.h>\r
29#include <Library/UefiCpuLib.h>\r
30#include <Library/PeCoffGetEntryPointLib.h>\r
31#include <Library/PeCoffExtraActionLib.h>\r
32#include <Library/DebugAgentLib.h>\r
33\r
34#include <FspApi.h>\r
35#include <FspInfoHeader.h>\r
36\r
37#define SEC_IDT_ENTRY_COUNT 34\r
38\r
39typedef struct _SEC_IDT_TABLE {\r
40 //\r
41 // Reserved 8 bytes preceding IDT to store EFI_PEI_SERVICES**, since IDT base\r
42 // address should be 8-byte alignment.\r
43 // Note: For IA32, only the 4 bytes immediately preceding IDT is used to store\r
44 // EFI_PEI_SERVICES**\r
45 //\r
46 UINT64 PeiService;\r
47 UINT64 IdtTable[SEC_IDT_ENTRY_COUNT];\r
48} SEC_IDT_TABLE;\r
49\r
50/**\r
51 Entry point to the C language phase of SEC. After the SEC assembly\r
52 code has initialized some temporary memory and set up the stack,\r
53 the control is transferred to this function.\r
54\r
55 @param[in] SizeOfRam Size of the temporary memory available for use.\r
56 @param[in] TempRamBase Base address of tempory ram\r
57 @param[in] BootFirmwareVolume Base address of the Boot Firmware Volume.\r
58**/\r
59VOID\r
60EFIAPI\r
61SecStartup (\r
62 IN UINT32 SizeOfRam,\r
63 IN UINT32 TempRamBase,\r
64 IN VOID *BootFirmwareVolume\r
65 );\r
66\r
67/**\r
68 Find and return Pei Core entry point.\r
69\r
70 It also find SEC and PEI Core file debug inforamtion. It will report them if\r
71 remote debug is enabled.\r
72\r
73 @param[in] BootFirmwareVolumePtr Point to the boot firmware volume.\r
74 @param[out] PeiCoreEntryPoint Point to the PEI core entry point.\r
75\r
76**/\r
77VOID\r
78EFIAPI\r
79FindAndReportEntryPoints (\r
80 IN EFI_FIRMWARE_VOLUME_HEADER *BootFirmwareVolumePtr,\r
81 OUT EFI_PEI_CORE_ENTRY_POINT *PeiCoreEntryPoint\r
82 );\r
83\r
84/**\r
85 Autogenerated function that calls the library constructors for all of the module's\r
86 dependent libraries. This function must be called by the SEC Core once a stack has\r
87 been established.\r
88\r
89**/\r
90VOID\r
91EFIAPI\r
92ProcessLibraryConstructorList (\r
93 VOID\r
94 );\r
95\r
96#endif\r