3 Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 EdkIIGlueUefiDriverEntryPoint.h
19 Public header file for UEFI Driver Entry Point Lib
23 #ifndef __EDKII_GLUE_UEFI_DRIVER_ENTRY_POINT_H__
24 #define __EDKII_GLUE_UEFI_DRIVER_ENTRY_POINT_H__
27 // Declare the EFI/UEFI Specification Revision to which this driver is implemented
29 extern const UINT32 _gUefiDriverRevision
;
32 // Declare the number of entry points in the image.
34 extern const UINT8 _gDriverEntryPointCount
;
37 // Declare the number of unload handler in the image.
39 extern const UINT8 _gDriverUnloadImageCount
;
42 // Declare the arrary of Boot Sevice Exit Event callbacks .
44 extern const EFI_EVENT_NOTIFY _gDriverExitBootServicesEvent
[];
47 // Declare the arrary of Virtual Address Change Event callbacks .
49 extern const EFI_EVENT_NOTIFY _gDriverSetVirtualAddressMapEvent
[];
52 Enrty point to DXE SMM Driver.
54 @param ImageHandle ImageHandle of the loaded driver.
55 @param SystemTable Pointer to the EFI System Table.
57 @retval EFI_SUCCESS One or more of the drivers returned a success code.
58 @retval !EFI_SUCESS The return status from the last driver entry point in the list.
64 IN EFI_HANDLE ImageHandle
,
65 IN EFI_SYSTEM_TABLE
*SystemTable
70 Enrty point wrapper of DXE Driver.
72 @param ImageHandle ImageHandle of the loaded driver.
73 @param SystemTable Pointer to the EFI System Table.
75 @retval EFI_SUCCESS One or more of the drivers returned a success code.
76 @retval !EFI_SUCESS The return status from the last driver entry point in the list.
82 IN EFI_HANDLE ImageHandle
,
83 IN EFI_SYSTEM_TABLE
*SystemTable
88 Computes the cummulative return status for the driver entry point and perform
89 a long jump back into DriverEntryPoint().
91 @param Status Status returned by the driver that is exiting.
102 Call constructs for all libraries. Automatics Generated by tool.
104 @param ImageHandle ImageHandle of the loaded driver.
105 @param SystemTable Pointer to the EFI System Table.
110 ProcessLibraryConstructorList (
111 IN EFI_HANDLE ImageHandle
,
112 IN EFI_SYSTEM_TABLE
*SystemTable
117 Call destructors for all libraries. Automatics Generated by tool.
119 @param ImageHandle ImageHandle of the loaded driver.
120 @param SystemTable Pointer to the EFI System Table.
125 ProcessLibraryDestructorList (
126 IN EFI_HANDLE ImageHandle
,
127 IN EFI_SYSTEM_TABLE
*SystemTable
131 Call the list of driver entry points. Automatics Generated by tool.
133 @param ImageHandle ImageHandle of the loaded driver.
134 @param SystemTable Pointer to the EFI System Table.
136 @return Status returned by entry points of drivers.
142 ProcessModuleEntryPointList (
143 IN EFI_HANDLE ImageHandle
,
144 IN EFI_SYSTEM_TABLE
*SystemTable
149 Call the unload handlers for all the modules. Automatics Generated by tool.
151 @param ImageHandle ImageHandle of the loaded driver.
153 @return Status returned by unload handlers of drivers.
158 ProcessModuleUnloadList (
159 IN EFI_HANDLE ImageHandle