-\r
/** @file\r
Entry point to a PEIM.\r
\r
\r
**/\r
\r
-//\r
-// The package level header files this module uses\r
-//\r
+\r
#include <PiPei.h>\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
-//\r
-// The Library classes this module consumes\r
-//\r
+\r
+\r
#include <Library/PeimEntryPoint.h>\r
#include <Library/DebugLib.h>\r
\r
/**\r
Image entry point of Peim.\r
\r
- @param FfsHeader Pointer to FFS header the loaded driver.\r
- @param PeiServices Pointer to the PEI services.\r
+ @param FileHandle Handle of the file being invoked. \r
+ Type EFI_PEI_FILE_HANDLE is defined in FfsFindNextFile().\r
+ @param PeiServices Describes the list of possible PEI Services.\r
\r
@return Status returned by entry points of Peims.\r
\r
EFI_STATUS\r
EFIAPI\r
_ModuleEntryPoint (\r
- IN EFI_FFS_FILE_HEADER *FfsHeader,\r
- IN EFI_PEI_SERVICES **PeiServices\r
+ IN EFI_PEI_FILE_HANDLE FileHandle,\r
+ IN CONST EFI_PEI_SERVICES **PeiServices\r
)\r
{\r
if (_gPeimRevision != 0) {\r
//\r
// Call constructor for all libraries\r
//\r
- ProcessLibraryConstructorList (FfsHeader, PeiServices);\r
+ ProcessLibraryConstructorList (FileHandle, PeiServices);\r
\r
//\r
// Call the driver entry point\r
//\r
- return ProcessModuleEntryPointList (FfsHeader, PeiServices);\r
+ return ProcessModuleEntryPointList (FileHandle, PeiServices);\r
}\r
\r
\r
/**\r
Wrapper of Peim image entry point.\r
\r
- @param FfsHeader Pointer to FFS header the loaded driver.\r
- @param PeiServices Pointer to the PEI services.\r
+ @param FileHandle Handle of the file being invoked. \r
+ Type EFI_PEI_FILE_HANDLE is defined in FfsFindNextFile().\r
+ @param PeiServices Describes the list of possible PEI Services.\r
\r
@return Status returned by entry points of Peims.\r
\r
EFI_STATUS\r
EFIAPI\r
EfiMain (\r
- IN EFI_FFS_FILE_HEADER *FfsHeader,\r
- IN EFI_PEI_SERVICES **PeiServices\r
+ IN EFI_PEI_FILE_HANDLE FileHandle,\r
+ IN CONST EFI_PEI_SERVICES **PeiServices\r
)\r
{\r
- return _ModuleEntryPoint (FfsHeader, PeiServices);\r
+ return _ModuleEntryPoint (FileHandle, PeiServices);\r
}\r