]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGluePeimEntryPoint.h
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Include / Library / EdkIIGluePeimEntryPoint.h
CommitLineData
3eb9473e 1/*++\r
2\r
3Copyright (c) 2004 - 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12\r
13Module Name:\r
14\r
15 EdkIIGluePeimEntryPoint.h\r
16 \r
17Abstract: \r
18\r
19 Public header file for PEIM Entry Point Lib\r
20\r
21--*/\r
22\r
23#ifndef __EDKII_GLUE_PEIM_ENTRY_POINT_H__\r
24#define __EDKII_GLUE_PEIM_ENTRY_POINT_H__\r
25\r
26//\r
27// Declare the EFI/UEFI Specification Revision to which this driver is implemented \r
28//\r
29extern const UINT32 _gPeimRevision;\r
30\r
31/**\r
32 Image entry point of Peim.\r
33\r
34 @param FfsHeader Pointer to FFS header the loaded driver.\r
35 @param PeiServices Pointer to the PEI services.\r
36\r
37 @return Status returned by entry points of Peims.\r
38\r
39**/\r
40EFI_STATUS\r
41EFIAPI\r
42_ModuleEntryPoint (\r
43 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
44 IN EFI_PEI_SERVICES **PeiServices\r
45 );\r
46\r
47\r
48/**\r
49 Wrapper of Peim image entry point.\r
50\r
51 @param FfsHeader Pointer to FFS header the loaded driver.\r
52 @param PeiServices Pointer to the PEI services.\r
53\r
54 @return Status returned by entry points of Peims.\r
55\r
56**/\r
57EFI_STATUS\r
58EFIAPI\r
59EfiMain (\r
60 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
61 IN EFI_PEI_SERVICES **PeiServices\r
62 );\r
63\r
64\r
65/**\r
66 Call constructs for all libraries. Automatics Generated by tool.\r
67\r
68 @param FfsHeader Pointer to FFS header the loaded driver.\r
69 @param PeiServices Pointer to the PEI services.\r
70\r
71**/\r
72VOID\r
73EFIAPI\r
74ProcessLibraryConstructorList (\r
75 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
76 IN EFI_PEI_SERVICES **PeiServices\r
77 );\r
78\r
79\r
80/**\r
81 Call destructors for all libraries. Automatics Generated by tool.\r
82\r
83 @param FfsHeader Pointer to FFS header the loaded driver.\r
84 @param PeiServices Pointer to the PEI services.\r
85\r
86**/\r
87VOID\r
88EFIAPI\r
89ProcessLibraryDestructorList (\r
90 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
91 IN EFI_PEI_SERVICES **PeiServices\r
92 );\r
93\r
94\r
95/**\r
96 Call the list of driver entry points. Automatics Generated by tool.\r
97\r
98 @param FfsHeader Pointer to FFS header the loaded driver.\r
99 @param PeiServices Pointer to the PEI services.\r
100\r
101 @return Status returned by entry points of drivers. \r
102 \r
103**/\r
104EFI_STATUS\r
105EFIAPI\r
106ProcessModuleEntryPointList (\r
107 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
108 IN EFI_PEI_SERVICES **PeiServices\r
109 );\r
110\r
111#endif\r