]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Library/PeimEntryPoint.h
Update the copyright notice format
[mirror_edk2.git] / MdePkg / Include / Library / PeimEntryPoint.h
CommitLineData
fb3df220 1/** @file\r
50a64e5b 2 Module entry point library for PEIM.\r
fb3df220 3\r
9df063a0
HT
4Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials\r
fb3df220 6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef __MODULE_ENTRY_POINT_H__\r
16#define __MODULE_ENTRY_POINT_H__\r
17\r
fc30687f 18///\r
19/// Declare the EFI/UEFI Specification Revision to which this driver is implemented \r
20///\r
0308e20d 21extern CONST UINT32 _gPeimRevision;\r
22\r
fb3df220 23\r
24/**\r
f6d2bcc6
LG
25 The entry point of PE/COFF Image for a PEIM.\r
26\r
27 This function is the entry point for a PEIM. This function must call ProcessLibraryConstructorList() \r
28 and ProcessModuleEntryPointList(). The return value from ProcessModuleEntryPointList() is returned.\r
29 If _gPeimRevision is not zero and PeiServices->Hdr.Revision is less than _gPeimRevison, then ASSERT().\r
fb3df220 30\r
63766b6d 31 @param FileHandle Handle of the file being invoked. \r
63766b6d 32 @param PeiServices Describes the list of possible PEI Services.\r
fb3df220 33\r
6a0e332d 34 @retval EFI_SUCCESS The PEIM executed normally.\r
35 @retval !EFI_SUCCESS The PEIM failed to execute normally.\r
fb3df220 36**/\r
37EFI_STATUS\r
38EFIAPI\r
39_ModuleEntryPoint (\r
0308e20d 40 IN EFI_PEI_FILE_HANDLE FileHandle,\r
41 IN CONST EFI_PEI_SERVICES **PeiServices\r
fb3df220 42 );\r
43\r
44\r
45/**\r
6a0e332d 46 Required by the EBC compiler and identical in functionality to _ModuleEntryPoint().\r
f6d2bcc6
LG
47 \r
48 This function is required to call _ModuleEntryPoint() passing in FileHandle and PeiServices.\r
fb3df220 49\r
63766b6d 50 @param FileHandle Handle of the file being invoked. \r
63766b6d 51 @param PeiServices Describes the list of possible PEI Services.\r
fb3df220 52\r
6a0e332d 53 @retval EFI_SUCCESS The PEIM executed normally.\r
54 @retval !EFI_SUCCESS The PEIM failed to execute normally.\r
fb3df220 55\r
56**/\r
57EFI_STATUS\r
58EFIAPI\r
59EfiMain (\r
0308e20d 60 IN EFI_PEI_FILE_HANDLE FileHandle,\r
61 IN CONST EFI_PEI_SERVICES **PeiServices\r
fb3df220 62 );\r
63\r
fb3df220 64/**\r
f6d2bcc6
LG
65 Autogenerated function that calls the library constructors for all of the module's\r
66 dependent libraries.\r
fb3df220 67\r
34860f7a 68 This function must be called by _ModuleEntryPoint().\r
f6d2bcc6 69 This function calls the set of library constructors for the set of library instances that a\r
34860f7a 70 module depends on. This includes library instances that a module depends on directly and library\r
f6d2bcc6
LG
71 instances that a module depends on indirectly through other libraries. \r
72 This function is autogenerated by build tools and those build tools are responsible for collecting\r
73 the set of library instances, determine which ones have constructors, and calling the library\r
74 constructors in the proper order based upon each of the library instances own dependencies.\r
75\r
76 @param FileHandle Handle of the file being invoked.\r
77 @param PeiServices Describes the list of possible PEI Services.\r
fb3df220 78\r
79**/\r
80VOID\r
81EFIAPI\r
82ProcessLibraryConstructorList (\r
0308e20d 83 IN EFI_PEI_FILE_HANDLE FileHandle,\r
84 IN CONST EFI_PEI_SERVICES **PeiServices\r
fb3df220 85 );\r
86\r
fb3df220 87/**\r
f6d2bcc6 88 Autogenerated function that calls a set of module entry points.\r
fb3df220 89\r
f6d2bcc6
LG
90 This function must be called by _ModuleEntryPoint().\r
91 This function calls the set of module entry points. \r
92 This function is autogenerated by build tools and those build tools are responsible\r
93 for collecting the module entry points and calling them in a specified order.\r
fb3df220 94\r
63766b6d 95 @param FileHandle Handle of the file being invoked. \r
63766b6d 96 @param PeiServices Describes the list of possible PEI Services.\r
fb3df220 97\r
6a0e332d 98 @retval EFI_SUCCESS The PEIM executed normally.\r
99 @retval !EFI_SUCCESS The PEIM failed to execute normally.\r
fb3df220 100 \r
101**/\r
102EFI_STATUS\r
103EFIAPI\r
104ProcessModuleEntryPointList (\r
0308e20d 105 IN EFI_PEI_FILE_HANDLE FileHandle,\r
106 IN CONST EFI_PEI_SERVICES **PeiServices\r
fb3df220 107 );\r
108\r
109#endif\r