]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueDxeSmmDriverEntryPoint.h
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Include / Library / EdkIIGlueDxeSmmDriverEntryPoint.h
CommitLineData
3eb9473e 1/*++\r
2\r
2c7e5c2f
HT
3Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials \r
3eb9473e 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
12Module Name:\r
13\r
14 EdkIIGlueDxeSmmDriverEntryPoint.h\r
15 \r
16Abstract: \r
17\r
18 Public header file for DXE SMM Driver Entry Point Lib\r
19\r
20--*/\r
21\r
22#ifndef __EDKII_GLUE_MODULE_ENTRY_POINT_H__\r
23#define __EDKII_GLUE_MODULE_ENTRY_POINT_H__\r
24\r
25//\r
26// Declare the EFI/UEFI Specification Revision to which this driver is implemented \r
27//\r
28extern const UINT32 _gUefiDriverRevision;\r
29\r
30//\r
31// Declare the number of entry points in the image. \r
32//\r
33extern const UINT8 _gDriverEntryPointCount;\r
34\r
35//\r
36// Declare the number of unload handler in the image. \r
37//\r
38extern const UINT8 _gDriverUnloadImageCount;\r
39\r
40/**\r
41 Enrty point to DXE SMM Driver.\r
42\r
43 @param ImageHandle ImageHandle of the loaded driver.\r
44 @param SystemTable Pointer to the EFI System Table.\r
45\r
46 @retval EFI_SUCCESS One or more of the drivers returned a success code.\r
47 @retval !EFI_SUCESS The return status from the last driver entry point in the list.\r
48\r
49**/\r
50EFI_STATUS\r
51EFIAPI\r
52_ModuleEntryPoint (\r
53 IN EFI_HANDLE ImageHandle,\r
54 IN EFI_SYSTEM_TABLE *SystemTable\r
55 );\r
56\r
57/**\r
58 Enrty point wrapper of DXE SMM Driver.\r
59\r
60 @param ImageHandle ImageHandle of the loaded driver.\r
61 @param SystemTable Pointer to the EFI System Table.\r
62\r
63 @retval EFI_SUCCESS One or more of the drivers returned a success code.\r
64 @retval !EFI_SUCESS The return status from the last driver entry point in the list.\r
65\r
66**/\r
67EFI_STATUS\r
68EFIAPI\r
69EfiMain (\r
70 IN EFI_HANDLE ImageHandle,\r
71 IN EFI_SYSTEM_TABLE *SystemTable\r
72 );\r
73\r
74/**\r
75 Computes the cummulative return status for the driver entry point and perform\r
76 a long jump back into DriverEntryPoint().\r
77\r
78 @param Status Status returned by the driver that is exiting.\r
79\r
80**/\r
81VOID\r
82EFIAPI\r
83ExitDriver (\r
84 IN EFI_STATUS Status\r
85 );\r
86\r
87/**\r
88 Call constructs for all libraries. Automatics Generated by tool.\r
89\r
90 @param ImageHandle ImageHandle of the loaded driver.\r
91 @param SystemTable Pointer to the EFI System Table.\r
92\r
93**/\r
94VOID\r
95EFIAPI\r
96ProcessLibraryConstructorList (\r
97 IN EFI_HANDLE ImageHandle,\r
98 IN EFI_SYSTEM_TABLE *SystemTable\r
99 );\r
100\r
101/**\r
102 Call destructors 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
110ProcessLibraryDestructorList (\r
111 IN EFI_HANDLE ImageHandle,\r
112 IN EFI_SYSTEM_TABLE *SystemTable\r
113 );\r
114\r
115\r
116/**\r
117 Call the list of driver entry points. 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 @return Status returned by entry points of drivers. \r
123 \r
124**/\r
125EFI_STATUS\r
126EFIAPI\r
127ProcessModuleEntryPointList (\r
128 IN EFI_HANDLE ImageHandle,\r
129 IN EFI_SYSTEM_TABLE *SystemTable\r
130 );\r
131\r
132\r
133/**\r
134 Call the unload handlers for all the modules. Automatics Generated by tool.\r
135\r
136 @param ImageHandle ImageHandle of the loaded driver.\r
137 \r
138 @return Status returned by unload handlers of drivers.\r
139\r
140**/\r
141EFI_STATUS\r
142EFIAPI\r
143ProcessModuleUnloadList (\r
144 IN EFI_HANDLE ImageHandle\r
145 );\r
146\r
147#endif\r