]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Include/Library/PeiCoreEntryPoint.h
76afc594cb8dcab147a573c054c50ec9c2e7528e
[mirror_edk2.git] / MdePkg / Include / Library / PeiCoreEntryPoint.h
1 /** @file
2 Entry point to the PEI Core
3
4 Copyright (c) 2006, Intel Corporation<BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #ifndef __MODULE_ENTRY_POINT_H__
16 #define __MODULE_ENTRY_POINT_H__
17
18 /**
19 Enrty point to PEI core.
20
21 @param PeiStartupDescriptor Pointer of start up information.
22
23 @return Status returned by entry points of core and drivers.
24
25 **/
26 EFI_STATUS
27 EFIAPI
28 _ModuleEntryPoint (
29 IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData,
30 IN CONST EFI_PEI_PPI_DESCRIPTOR *PpiList
31 );
32
33 /**
34 Wrapper of enrty point to PEI core.
35
36 @param PeiStartupDescriptor Pointer of start up information.
37
38 @return Status returned by entry points of core and drivers.
39
40 **/
41 EFI_STATUS
42 EFIAPI
43 EfiMain (
44 IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData,
45 IN CONST EFI_PEI_PPI_DESCRIPTOR *PpiList
46 );
47
48 /**
49 Call constructs for all libraries. Automatics Generated by tool.
50
51 @param FfsHeader Pointer to header of FFS.
52 @param PeiServices Pointer to the PEI Services Table.
53
54 **/
55 VOID
56 EFIAPI
57 ProcessLibraryConstructorList (
58 IN EFI_FFS_FILE_HEADER *FfsHeader,
59 IN EFI_PEI_SERVICES **PeiServices
60 );
61
62
63 /**
64 Call the list of driver entry points. Automatics Generated by tool.
65
66 @param PeiStartupDescriptor Pointer to startup information .
67 @param OldCoreData Pointer to Original startup information.
68
69 @return Status returned by entry points of drivers.
70
71 **/
72 EFI_STATUS
73 EFIAPI
74 ProcessModuleEntryPointList (
75 IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData,
76 IN CONST EFI_PEI_PPI_DESCRIPTOR *PpiList,
77 IN VOID *OldCoreData
78 );
79
80 #endif