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