]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Library/UefiDriverEntryPoint.h
MdePkg/UefiLib: Abstract driver model protocol uninstallation
[mirror_edk2.git] / MdePkg / Include / Library / UefiDriverEntryPoint.h
index ef9570ba04ae66cf9d2289c087ed3038312b76a4..4608c46b5ff3861d027f0f0066772131a4a853a7 100644 (file)
@@ -2,8 +2,8 @@
   Module entry point library for UEFI drivers, DXE Drivers, DXE Runtime Drivers,\r
   and DXE SMM Drivers.\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
 http://opensource.org/licenses/bsd-license.php\r
@@ -17,18 +17,23 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define __MODULE_ENTRY_POINT_H__\r
 \r
 ///\r
-/// Declare the EFI/UEFI Specification Revision to which this driver is implemented \r
+///Declare the PI Specification Revision that this driver requires to execute correctly.\r
+///\r
+extern CONST UINT32                   _gDxeRevision;\r
+\r
+///\r
+/// Declare the EFI/UEFI Specification Revision to which this driver is implemented\r
 ///\r
 extern CONST UINT32                   _gUefiDriverRevision;\r
 \r
 ///\r
-/// Declare the number of unload handler in the image. \r
+/// Declare the number of unload handler in the image.\r
 ///\r
 extern CONST UINT8                    _gDriverUnloadImageCount;\r
 \r
 \r
 /**\r
-  The entry point of PE/COFF Image for a DXE Driver, DXE Runtime Driver, DXE SMM Driver, or UEFI Driver. \r
+  The entry point of PE/COFF Image for a DXE Driver, DXE Runtime Driver, DXE SMM Driver, or UEFI Driver.\r
 \r
   This function is the entry point for a DXE Driver, DXE Runtime Driver, DXE SMM Driver,\r
   or UEFI Driver.  This function must call ProcessLibraryConstructorList() and\r
@@ -41,8 +46,8 @@ extern CONST UINT8                    _gDriverUnloadImageCount;
   then return EFI_INCOMPATIBLE_VERSION.\r
 \r
 \r
-  @param  ImageHandle  ImageHandle of the loaded driver.\r
-  @param  SystemTable  Pointer to the EFI System Table.\r
+  @param  ImageHandle  The image handle of the DXE Driver, DXE Runtime Driver, DXE SMM Driver, or UEFI Driver.\r
+  @param  SystemTable  A pointer to the EFI System Table.\r
 \r
   @retval  EFI_SUCCESS               The DXE Driver, DXE Runtime Driver, DXE SMM Driver,\r
                                      or UEFI Driver exited normally.\r
@@ -59,12 +64,12 @@ _ModuleEntryPoint (
 \r
 \r
 /**\r
-  Required by the EBC compiler and identical in functionality to _ModuleEntryPoint(). \r
+  Required by the EBC compiler and identical in functionality to _ModuleEntryPoint().\r
 \r
   This function is required to call _ModuleEntryPoint() passing in ImageHandle, and SystemTable.\r
 \r
-  @param  ImageHandle ImageHandle of the loaded driver.\r
-  @param  SystemTable Pointer to the EFI System Table.\r
+  @param  ImageHandle  The image handle of the DXE Driver, DXE Runtime Driver, DXE SMM Driver, or UEFI Driver.\r
+  @param  SystemTable  A pointer to the EFI System Table.\r
 \r
   @retval  EFI_SUCCESS               The DXE Driver, DXE Runtime Driver, DXE SMM Driver,\r
                                      or UEFI Driver exited normally.\r
@@ -80,8 +85,8 @@ EfiMain (
 \r
 \r
 /**\r
-  Invokes the library destructors fror all dependent libraries and terminates the\r
-  DXE Driver, DXE Runtime Driver, DXE SMM Driver, or UEFI Driver. \r
+  Invokes the library destructors for all dependent libraries and terminates the\r
+  DXE Driver, DXE Runtime Driver, DXE SMM Driver, or UEFI Driver.\r
 \r
   This function calls ProcessLibraryDestructorList() and the EFI Boot Service Exit()\r
   with a status specified by Status.\r
@@ -103,14 +108,14 @@ ExitDriver (
   This function must be called by _ModuleEntryPoint().\r
   This function calls the set of library constructors for the set of library instances\r
   that a module depends on.  This includes library instances that a module depends on\r
-  directly and library instances that a module depends on indirectly through other libraries.  \r
+  directly and library instances that a module depends on indirectly through other libraries.\r
   This function is autogenerated by build tools and those build tools are responsible\r
   for collecting the set of library instances, determine which ones have constructors,\r
   and calling the library constructors in the proper order based upon each of the library\r
   instances own dependencies.\r
 \r
-  @param  ImageHandle ImageHandle of the loaded driver.\r
-  @param  SystemTable Pointer to the EFI System Table.\r
+  @param  ImageHandle  The image handle of the DXE Driver, DXE Runtime Driver, DXE SMM Driver, or UEFI Driver.\r
+  @param  SystemTable  A pointer to the EFI System Table.\r
 \r
 **/\r
 VOID\r
@@ -128,13 +133,13 @@ ProcessLibraryConstructorList (
   This function may be called by _ModuleEntryPoint() or ExitDriver().\r
   This function calls the set of library destructors for the set of library instances\r
   that a module depends on. This includes library instances that a module depends on\r
-  directly and library instances that a module depends on indirectly through other libraries.  \r
+  directly and library instances that a module depends on indirectly through other libraries.\r
   This function is autogenerated by build tools and those build tools are responsible for\r
   collecting the set of library instances, determine which ones have destructors, and calling\r
   the library destructors in the proper order based upon each of the library instances own dependencies.\r
 \r
-  @param  ImageHandle ImageHandle of the loaded driver.\r
-  @param  SystemTable Pointer to the EFI System Table.\r
+  @param  ImageHandle  The image handle of the DXE Driver, DXE Runtime Driver, DXE SMM Driver, or UEFI Driver.\r
+  @param  SystemTable  A pointer to the EFI System Table.\r
 \r
 **/\r
 VOID\r
@@ -149,15 +154,15 @@ ProcessLibraryDestructorList (
   Autogenerated function that calls a set of module entry points.\r
 \r
   This function must be called by _ModuleEntryPoint().\r
-  This function calls the set of module entry points.  \r
+  This function calls the set of module entry points.\r
   This function is autogenerated by build tools and those build tools are responsible\r
   for collecting the module entry points and calling them in a specified order.\r
 \r
-  @param  ImageHandle ImageHandle of the loaded driver.\r
-  @param  SystemTable Pointer to the EFI System Table.\r
+  @param  ImageHandle  The image handle of the DXE Driver, DXE Runtime Driver, DXE SMM Driver, or UEFI Driver.\r
+  @param  SystemTable  A pointer to the EFI System Table.\r
 \r
-  @retval  EFI_SUCCESS   The UEFI Application executed normally.\r
-  @retval  !EFI_SUCCESS  The UEFI Application failed to execute normally.\r
+  @retval  EFI_SUCCESS   The DXE Driver, DXE Runtime Driver, DXE SMM Driver, or UEFI Driver executed normally.\r
+  @retval  !EFI_SUCCESS  The DXE Driver, DXE Runtime Driver, DXE SMM Driver, or UEFI Driver failed to execute normally.\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -171,13 +176,13 @@ ProcessModuleEntryPointList (
   Autogenerated function that calls a set of module unload handlers.\r
 \r
   This function must be called from the unload handler registered by _ModuleEntryPoint().\r
-  This function calls the set of module unload handlers.  \r
+  This function calls the set of module unload handlers.\r
   This function is autogenerated by build tools and those build tools are responsible\r
   for collecting the module unload handlers and calling them in a specified order.\r
 \r
-  @param  ImageHandle ImageHandle of the loaded driver.\r
+  @param  ImageHandle  The image handle of the DXE Driver, DXE Runtime Driver, DXE SMM Driver, or UEFI Driver.\r
 \r
-  @retval  EFI_SUCCESS  The unoad handlers executed normally.\r
+  @retval  EFI_SUCCESS  The unload handlers executed normally.\r
   @retval  !EFI_SUCCESS The unload handlers failed to execute normally.\r
 \r
 **/\r