]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueUefiDriverEntryPoint.h
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Include / Library / EdkIIGlueUefiDriverEntryPoint.h
CommitLineData
3eb9473e 1/*++\r
2\r
3Copyright (c) 2004 - 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12\r
13Module Name:\r
14\r
15 EdkIIGlueUefiDriverEntryPoint.h\r
16 \r
17Abstract: \r
18\r
19 Public header file for UEFI Driver Entry Point Lib\r
20\r
21--*/\r
22\r
23#ifndef __EDKII_GLUE_UEFI_DRIVER_ENTRY_POINT_H__\r
24#define __EDKII_GLUE_UEFI_DRIVER_ENTRY_POINT_H__\r
25\r
26//\r
27// Declare the EFI/UEFI Specification Revision to which this driver is implemented \r
28//\r
29extern const UINT32 _gUefiDriverRevision;\r
30\r
31//\r
32// Declare the number of entry points in the image. \r
33//\r
34extern const UINT8 _gDriverEntryPointCount;\r
35\r
36//\r
37// Declare the number of unload handler in the image. \r
38//\r
39extern const UINT8 _gDriverUnloadImageCount;\r
40\r
41//\r
42// Declare the arrary of Boot Sevice Exit Event callbacks . \r
43//\r
44extern const EFI_EVENT_NOTIFY _gDriverExitBootServicesEvent[];\r
45\r
46//\r
47// Declare the arrary of Virtual Address Change Event callbacks . \r
48//\r
49extern const EFI_EVENT_NOTIFY _gDriverSetVirtualAddressMapEvent[];\r
50\r
51/**\r
52 Enrty point to DXE SMM Driver.\r
53\r
54 @param ImageHandle ImageHandle of the loaded driver.\r
55 @param SystemTable Pointer to the EFI System Table.\r
56\r
57 @retval EFI_SUCCESS One or more of the drivers returned a success code.\r
58 @retval !EFI_SUCESS The return status from the last driver entry point in the list.\r
59\r
60**/\r
61EFI_STATUS\r
62EFIAPI\r
63_ModuleEntryPoint (\r
64 IN EFI_HANDLE ImageHandle,\r
65 IN EFI_SYSTEM_TABLE *SystemTable\r
66 );\r
67\r
68\r
69/**\r
70 Enrty point wrapper of DXE Driver.\r
71\r
72 @param ImageHandle ImageHandle of the loaded driver.\r
73 @param SystemTable Pointer to the EFI System Table.\r
74\r
75 @retval EFI_SUCCESS One or more of the drivers returned a success code.\r
76 @retval !EFI_SUCESS The return status from the last driver entry point in the list.\r
77\r
78**/\r
79EFI_STATUS\r
80EFIAPI\r
81EfiMain (\r
82 IN EFI_HANDLE ImageHandle,\r
83 IN EFI_SYSTEM_TABLE *SystemTable\r
84 );\r
85\r
86\r
87/**\r
88 Computes the cummulative return status for the driver entry point and perform\r
89 a long jump back into DriverEntryPoint().\r
90\r
91 @param Status Status returned by the driver that is exiting.\r
92\r
93**/\r
94VOID\r
95EFIAPI\r
96ExitDriver (\r
97 IN EFI_STATUS Status\r
98 );\r
99\r
100\r
101/**\r
102 Call constructs for all libraries. Automatics Generated by tool.\r
103\r
104 @param ImageHandle ImageHandle of the loaded driver.\r
105 @param SystemTable Pointer to the EFI System Table.\r
106\r
107**/\r
108VOID\r
109EFIAPI\r
110ProcessLibraryConstructorList (\r
111 IN EFI_HANDLE ImageHandle,\r
112 IN EFI_SYSTEM_TABLE *SystemTable\r
113 );\r
114\r
115\r
116/**\r
117 Call destructors for all libraries. Automatics Generated by tool.\r
118\r
119 @param ImageHandle ImageHandle of the loaded driver.\r
120 @param SystemTable Pointer to the EFI System Table.\r
121\r
122**/\r
123VOID\r
124EFIAPI\r
125ProcessLibraryDestructorList (\r
126 IN EFI_HANDLE ImageHandle,\r
127 IN EFI_SYSTEM_TABLE *SystemTable\r
128 );\r
129\r
130/**\r
131 Call the list of driver entry points. Automatics Generated by tool.\r
132\r
133 @param ImageHandle ImageHandle of the loaded driver.\r
134 @param SystemTable Pointer to the EFI System Table.\r
135\r
136 @return Status returned by entry points of drivers. \r
137 \r
138**/\r
139\r
140EFI_STATUS\r
141EFIAPI\r
142ProcessModuleEntryPointList (\r
143 IN EFI_HANDLE ImageHandle,\r
144 IN EFI_SYSTEM_TABLE *SystemTable\r
145 );\r
146\r
147\r
148/**\r
149 Call the unload handlers for all the modules. Automatics Generated by tool.\r
150\r
151 @param ImageHandle ImageHandle of the loaded driver.\r
152 \r
153 @return Status returned by unload handlers of drivers.\r
154\r
155**/\r
156EFI_STATUS\r
157EFIAPI\r
158ProcessModuleUnloadList (\r
159 IN EFI_HANDLE ImageHandle\r
160 );\r
161\r
162#endif\r