]>
Commit | Line | Data |
---|---|---|
fb3df220 | 1 | /** @file\r |
50a64e5b | 2 | Module entry point library for PEIM.\r |
fb3df220 | 3 | \r |
50a64e5b | 4 | Copyright (c) 2006 - 2008 Intel Corporation<BR>\r |
fb3df220 | 5 | All rights reserved. This program and the accompanying materials\r |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT 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 | 21 | extern 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 |
6a0e332d | 31 | @retval EFI_SUCCESS The PEIM executed normally.\r |
32 | @retval !EFI_SUCCESS The PEIM failed to execute normally.\r | |
fb3df220 | 33 | **/\r |
34 | EFI_STATUS\r | |
35 | EFIAPI\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 | |
6a0e332d | 43 | Required by the EBC compiler and identical in functionality to _ModuleEntryPoint().\r |
fb3df220 | 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 |
6a0e332d | 49 | @retval EFI_SUCCESS The PEIM executed normally.\r |
50 | @retval !EFI_SUCCESS The PEIM failed to execute normally.\r | |
fb3df220 | 51 | \r |
52 | **/\r | |
53 | EFI_STATUS\r | |
54 | EFIAPI\r | |
55 | EfiMain (\r | |
0308e20d | 56 | IN EFI_PEI_FILE_HANDLE FileHandle,\r |
57 | IN CONST EFI_PEI_SERVICES **PeiServices\r | |
fb3df220 | 58 | );\r |
59 | \r | |
60 | \r | |
61 | /**\r | |
62 | Call constructs for all libraries. Automatics Generated by tool.\r | |
63 | \r | |
63766b6d | 64 | @param FileHandle Handle of the file being invoked. \r |
65 | Type EFI_PEI_FILE_HANDLE is defined in FfsFindNextFile().\r | |
66 | @param PeiServices Describes the list of possible PEI Services.\r | |
fb3df220 | 67 | \r |
68 | **/\r | |
69 | VOID\r | |
70 | EFIAPI\r | |
71 | ProcessLibraryConstructorList (\r | |
0308e20d | 72 | IN EFI_PEI_FILE_HANDLE FileHandle,\r |
73 | IN CONST EFI_PEI_SERVICES **PeiServices\r | |
fb3df220 | 74 | );\r |
75 | \r | |
76 | \r | |
77 | /**\r | |
78 | Call destructors for all libraries. Automatics Generated by tool.\r | |
79 | \r | |
63766b6d | 80 | @param FileHandle Handle of the file being invoked. \r |
81 | Type EFI_PEI_FILE_HANDLE is defined in FfsFindNextFile().\r | |
82 | @param PeiServices Describes the list of possible PEI Services.\r | |
fb3df220 | 83 | \r |
84 | **/\r | |
85 | VOID\r | |
86 | EFIAPI\r | |
87 | ProcessLibraryDestructorList (\r | |
0308e20d | 88 | IN EFI_PEI_FILE_HANDLE FileHandle,\r |
89 | IN CONST EFI_PEI_SERVICES **PeiServices\r | |
fb3df220 | 90 | );\r |
91 | \r | |
92 | \r | |
93 | /**\r | |
94 | Call the list of driver entry points. Automatics Generated by tool.\r | |
95 | \r | |
63766b6d | 96 | @param FileHandle Handle of the file being invoked. \r |
97 | Type EFI_PEI_FILE_HANDLE is defined in FfsFindNextFile().\r | |
98 | @param PeiServices Describes the list of possible PEI Services.\r | |
fb3df220 | 99 | \r |
6a0e332d | 100 | @retval EFI_SUCCESS The PEIM executed normally.\r |
101 | @retval !EFI_SUCCESS The PEIM failed to execute normally.\r | |
fb3df220 | 102 | \r |
103 | **/\r | |
104 | EFI_STATUS\r | |
105 | EFIAPI\r | |
106 | ProcessModuleEntryPointList (\r | |
0308e20d | 107 | IN EFI_PEI_FILE_HANDLE FileHandle,\r |
108 | IN CONST EFI_PEI_SERVICES **PeiServices\r | |
fb3df220 | 109 | );\r |
110 | \r | |
111 | #endif\r |