]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2004 - 2006, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | \r | |
13 | Module Name:\r | |
14 | \r | |
15 | EdkIIGlueUefiDriverEntryPoint.h\r | |
16 | \r | |
17 | Abstract: \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 | |
29 | extern const UINT32 _gUefiDriverRevision;\r | |
30 | \r | |
31 | //\r | |
32 | // Declare the number of entry points in the image. \r | |
33 | //\r | |
34 | extern const UINT8 _gDriverEntryPointCount;\r | |
35 | \r | |
36 | //\r | |
37 | // Declare the number of unload handler in the image. \r | |
38 | //\r | |
39 | extern const UINT8 _gDriverUnloadImageCount;\r | |
40 | \r | |
41 | //\r | |
42 | // Declare the arrary of Boot Sevice Exit Event callbacks . \r | |
43 | //\r | |
44 | extern const EFI_EVENT_NOTIFY _gDriverExitBootServicesEvent[];\r | |
45 | \r | |
46 | //\r | |
47 | // Declare the arrary of Virtual Address Change Event callbacks . \r | |
48 | //\r | |
49 | extern 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 | |
61 | EFI_STATUS\r | |
62 | EFIAPI\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 | |
79 | EFI_STATUS\r | |
80 | EFIAPI\r | |
81 | EfiMain (\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 | |
94 | VOID\r | |
95 | EFIAPI\r | |
96 | ExitDriver (\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 | |
108 | VOID\r | |
109 | EFIAPI\r | |
110 | ProcessLibraryConstructorList (\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 | |
123 | VOID\r | |
124 | EFIAPI\r | |
125 | ProcessLibraryDestructorList (\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 | |
140 | EFI_STATUS\r | |
141 | EFIAPI\r | |
142 | ProcessModuleEntryPointList (\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 | |
156 | EFI_STATUS\r | |
157 | EFIAPI\r | |
158 | ProcessModuleUnloadList (\r | |
159 | IN EFI_HANDLE ImageHandle\r | |
160 | );\r | |
161 | \r | |
162 | #endif\r |