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
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.
15 #ifndef __MODULE_ENTRY_POINT_H__
16 #define __MODULE_ENTRY_POINT_H__
19 /// Declare the EFI/UEFI Specification Revision to which this driver is implemented
21 extern CONST UINT32 _gPeimRevision
;
25 Image entry point of Peim.
27 @param FfsHeader Pointer to FFS header the loaded driver.
28 @param PeiServices Pointer to the PEI services.
30 @return Status returned by entry points of Peims.
36 IN EFI_PEI_FILE_HANDLE FileHandle
,
37 IN CONST EFI_PEI_SERVICES
**PeiServices
42 Wrapper of Peim image entry point.
44 @param FfsHeader Pointer to FFS header the loaded driver.
45 @param PeiServices Pointer to the PEI services.
47 @return Status returned by entry points of Peims.
53 IN EFI_PEI_FILE_HANDLE FileHandle
,
54 IN CONST EFI_PEI_SERVICES
**PeiServices
59 Call constructs for all libraries. Automatics Generated by tool.
61 @param FfsHeader Pointer to FFS header the loaded driver.
62 @param PeiServices Pointer to the PEI services.
67 ProcessLibraryConstructorList (
68 IN EFI_PEI_FILE_HANDLE FileHandle
,
69 IN CONST EFI_PEI_SERVICES
**PeiServices
74 Call destructors for all libraries. Automatics Generated by tool.
76 @param FfsHeader Pointer to FFS header the loaded driver.
77 @param PeiServices Pointer to the PEI services.
82 ProcessLibraryDestructorList (
83 IN EFI_PEI_FILE_HANDLE FileHandle
,
84 IN CONST EFI_PEI_SERVICES
**PeiServices
89 Call the list of driver entry points. Automatics Generated by tool.
91 @param FfsHeader Pointer to FFS header the loaded driver.
92 @param PeiServices Pointer to the PEI services.
94 @return Status returned by entry points of drivers.
99 ProcessModuleEntryPointList (
100 IN EFI_PEI_FILE_HANDLE FileHandle
,
101 IN CONST EFI_PEI_SERVICES
**PeiServices