]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Library/PeimEntryPoint.h
Synchronization of MDE Library Spec., Mde.dec, and corresponding head files in MdePkg...
[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
50a64e5b 4Copyright (c) 2006 - 2008 Intel Corporation<BR>\r
fb3df220 5All rights reserved. This program and the accompanying materials\r
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
25 Image entry point of Peim.\r
26\r
63766b6d 27 @param FileHandle Handle of the file being invoked. \r
28 Type EFI_PEI_FILE_HANDLE is defined in FfsFindNextFile().\r
29 @param PeiServices Describes the list of possible PEI Services.\r
fb3df220 30\r
31 @return Status returned by entry points of Peims.\r
32\r
33**/\r
34EFI_STATUS\r
35EFIAPI\r
36_ModuleEntryPoint (\r
0308e20d 37 IN EFI_PEI_FILE_HANDLE FileHandle,\r
38 IN CONST EFI_PEI_SERVICES **PeiServices\r
fb3df220 39 );\r
40\r
41\r
42/**\r
43 Wrapper of Peim image entry point.\r
44\r
63766b6d 45 @param FileHandle Handle of the file being invoked. \r
46 Type EFI_PEI_FILE_HANDLE is defined in FfsFindNextFile().\r
47 @param PeiServices Describes the list of possible PEI Services.\r
fb3df220 48\r
49 @return Status returned by entry points of Peims.\r
50\r
51**/\r
52EFI_STATUS\r
53EFIAPI\r
54EfiMain (\r
0308e20d 55 IN EFI_PEI_FILE_HANDLE FileHandle,\r
56 IN CONST EFI_PEI_SERVICES **PeiServices\r
fb3df220 57 );\r
58\r
59\r
60/**\r
61 Call constructs for all libraries. Automatics Generated by tool.\r
62\r
63766b6d 63 @param FileHandle Handle of the file being invoked. \r
64 Type EFI_PEI_FILE_HANDLE is defined in FfsFindNextFile().\r
65 @param PeiServices Describes the list of possible PEI Services.\r
fb3df220 66\r
67**/\r
68VOID\r
69EFIAPI\r
70ProcessLibraryConstructorList (\r
0308e20d 71 IN EFI_PEI_FILE_HANDLE FileHandle,\r
72 IN CONST EFI_PEI_SERVICES **PeiServices\r
fb3df220 73 );\r
74\r
75\r
76/**\r
77 Call destructors for all libraries. Automatics Generated by tool.\r
78\r
63766b6d 79 @param FileHandle Handle of the file being invoked. \r
80 Type EFI_PEI_FILE_HANDLE is defined in FfsFindNextFile().\r
81 @param PeiServices Describes the list of possible PEI Services.\r
fb3df220 82\r
83**/\r
84VOID\r
85EFIAPI\r
86ProcessLibraryDestructorList (\r
0308e20d 87 IN EFI_PEI_FILE_HANDLE FileHandle,\r
88 IN CONST EFI_PEI_SERVICES **PeiServices\r
fb3df220 89 );\r
90\r
91\r
92/**\r
93 Call the list of driver entry points. Automatics Generated by tool.\r
94\r
63766b6d 95 @param FileHandle Handle of the file being invoked. \r
96 Type EFI_PEI_FILE_HANDLE is defined in FfsFindNextFile().\r
97 @param PeiServices Describes the list of possible PEI Services.\r
fb3df220 98\r
99 @return Status returned by entry points of drivers. \r
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