2 Entry point to a DXE Boot Services Driver
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 _gUefiDriverRevision
;
24 /// Declare the number of unload handler in the image.
26 extern CONST UINT8 _gDriverUnloadImageCount
;
30 Enrty point to DXE Driver.
32 @param ImageHandle ImageHandle of the loaded driver.
33 @param SystemTable Pointer to the EFI System Table.
35 @retval EFI_SUCCESS One or more of the drivers returned a success code.
36 @retval !EFI_SUCESS The return status from the last driver entry point in the list.
42 IN EFI_HANDLE ImageHandle
,
43 IN EFI_SYSTEM_TABLE
*SystemTable
48 Enrty point wrapper of DXE Driver.
50 @param ImageHandle ImageHandle of the loaded driver.
51 @param SystemTable Pointer to the EFI System Table.
53 @retval EFI_SUCCESS One or more of the drivers returned a success code.
54 @retval !EFI_SUCESS The return status from the last driver entry point in the list.
60 IN EFI_HANDLE ImageHandle
,
61 IN EFI_SYSTEM_TABLE
*SystemTable
66 Computes the cummulative return status for the driver entry point and perform
67 a long jump back into DriverEntryPoint().
69 @param Status Status returned by the driver that is exiting.
80 Call constructs for all libraries. Automatics Generated by tool.
82 @param ImageHandle ImageHandle of the loaded driver.
83 @param SystemTable Pointer to the EFI System Table.
88 ProcessLibraryConstructorList (
89 IN EFI_HANDLE ImageHandle
,
90 IN EFI_SYSTEM_TABLE
*SystemTable
95 Call destructors for all libraries. Automatics Generated by tool.
97 @param ImageHandle ImageHandle of the loaded driver.
98 @param SystemTable Pointer to the EFI System Table.
103 ProcessLibraryDestructorList (
104 IN EFI_HANDLE ImageHandle
,
105 IN EFI_SYSTEM_TABLE
*SystemTable
109 Call the list of driver entry points. Automatics Generated by tool.
111 @param ImageHandle ImageHandle of the loaded driver.
112 @param SystemTable Pointer to the EFI System Table.
114 @return Status returned by entry points of drivers.
119 Call the list of driver entry points. Automatics Generated by tool.
121 @param ImageHandle ImageHandle of the loaded driver.
122 @param SystemTable Pointer to the EFI System Table.
124 @return Status returned by entry points of drivers.
129 ProcessModuleEntryPointList (
130 IN EFI_HANDLE ImageHandle
,
131 IN EFI_SYSTEM_TABLE
*SystemTable
136 Call the unload handlers for all the modules. Automatics Generated by tool.
138 @param ImageHandle ImageHandle of the loaded driver.
140 @return Status returned by unload handlers of drivers.
145 ProcessModuleUnloadList (
146 IN EFI_HANDLE ImageHandle