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
;
24 Image entry point of Peim.
26 @param FfsHeader Pointer to FFS header the loaded driver.
27 @param PeiServices Pointer to the PEI services.
29 @return Status returned by entry points of Peims.
35 IN EFI_FFS_FILE_HEADER
*FfsHeader
,
36 IN EFI_PEI_SERVICES
**PeiServices
41 Wrapper of Peim image entry point.
43 @param FfsHeader Pointer to FFS header the loaded driver.
44 @param PeiServices Pointer to the PEI services.
46 @return Status returned by entry points of Peims.
52 IN EFI_FFS_FILE_HEADER
*FfsHeader
,
53 IN EFI_PEI_SERVICES
**PeiServices
58 Call constructs for all libraries. Automatics Generated by tool.
60 @param FfsHeader Pointer to FFS header the loaded driver.
61 @param PeiServices Pointer to the PEI services.
66 ProcessLibraryConstructorList (
67 IN EFI_FFS_FILE_HEADER
*FfsHeader
,
68 IN EFI_PEI_SERVICES
**PeiServices
73 Call destructors for all libraries. Automatics Generated by tool.
75 @param FfsHeader Pointer to FFS header the loaded driver.
76 @param PeiServices Pointer to the PEI services.
81 ProcessLibraryDestructorList (
82 IN EFI_FFS_FILE_HEADER
*FfsHeader
,
83 IN EFI_PEI_SERVICES
**PeiServices
88 Call the list of driver entry points. Automatics Generated by tool.
90 @param FfsHeader Pointer to FFS header the loaded driver.
91 @param PeiServices Pointer to the PEI services.
93 @return Status returned by entry points of drivers.
98 ProcessModuleEntryPointList (
99 IN EFI_FFS_FILE_HEADER
*FfsHeader
,
100 IN EFI_PEI_SERVICES
**PeiServices