]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Library/UefiApplicationEntryPoint.h
Use doxygen comment style for document entity such as struct, enum, variable that...
[mirror_edk2.git] / MdePkg / Include / Library / UefiApplicationEntryPoint.h
CommitLineData
fb3df220 1/** @file\r
2 Entry point to a UEFI Application.\r
3\r
4Copyright (c) 2007, Intel Corporation<BR>\r
5All rights reserved. This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef __UEFI_APPLICATION_ENTRY_POINT_H__\r
16#define __UEFI_APPLICATION_ENTRY_POINT_H__\r
17\r
fc30687f 18///\r
19/// Declare the EFI/UEFI Specification Revision to which this driver is implemented \r
20///\r
fb3df220 21extern const UINT32 _gUefiDriverRevision;\r
22\r
23/**\r
24 Enrty point to UEFI Application.\r
25\r
26 @param ImageHandle ImageHandle of the loaded driver.\r
27 @param SystemTable Pointer to the EFI System Table.\r
28\r
29 @retval EFI_SUCCESS One or more of the drivers returned a success code.\r
30 @retval !EFI_SUCESS The return status from the last driver entry point in the list.\r
31\r
32**/\r
33EFI_STATUS\r
34EFIAPI\r
35_ModuleEntryPoint (\r
36 IN EFI_HANDLE ImageHandle,\r
37 IN EFI_SYSTEM_TABLE *SystemTable\r
38 );\r
39\r
40\r
41/**\r
42 Enrty point wrapper of UEFI Application.\r
43\r
44 @param ImageHandle ImageHandle of the loaded driver.\r
45 @param SystemTable Pointer to the EFI System Table.\r
46\r
47 @retval EFI_SUCCESS One or more of the drivers returned a success code.\r
48 @retval !EFI_SUCESS The return status from the last driver entry point in the list.\r
49\r
50**/\r
51EFI_STATUS\r
52EFIAPI\r
53EfiMain (\r
54 IN EFI_HANDLE ImageHandle,\r
55 IN EFI_SYSTEM_TABLE *SystemTable\r
56 );\r
57\r
58\r
59/**\r
60 Invoke the destuctors of all libraries and call gBS->Exit\r
61 to return control to firmware core.\r
62\r
63 @param Status Status returned by the application that is exiting.\r
64 \r
fb3df220 65**/\r
66VOID\r
67EFIAPI\r
68Exit (\r
69 IN EFI_STATUS Status\r
70 );\r
71\r
72\r
73/**\r
74 Call constructors for all libraries. Autogen tool inserts the implementation\r
75 of this function into Autogen.c.\r
76\r
77 @param ImageHandle ImageHandle of the loaded driver.\r
78 @param SystemTable Pointer to the EFI System Table.\r
79 \r
fb3df220 80**/\r
81VOID\r
82EFIAPI\r
83ProcessLibraryConstructorList (\r
84 IN EFI_HANDLE ImageHandle,\r
85 IN EFI_SYSTEM_TABLE *SystemTable\r
86 );\r
87\r
88\r
89/**\r
90 Call destructors for all libraries. Autogen tool inserts the implementation\r
91 of this function into Autogen.c.\r
92\r
93 @param ImageHandle ImageHandle of the loaded driver.\r
94 @param SystemTable Pointer to the EFI System Table.\r
95\r
fb3df220 96**/\r
97VOID\r
98EFIAPI\r
99ProcessLibraryDestructorList (\r
100 IN EFI_HANDLE ImageHandle,\r
101 IN EFI_SYSTEM_TABLE *SystemTable\r
102 );\r
103\r
104/**\r
105 Call driver entry point. For UEFI application, user\r
106 can only specify one entry point. Tool will automatically insert\r
107 this to Autogen.c.\r
108\r
109 @param ImageHandle ImageHandle of the loaded driver.\r
110 @param SystemTable Pointer to the EFI System Table.\r
111\r
112 @return Status returned by entry points specified by\r
113 the user. \r
114 \r
115**/\r
fb3df220 116EFI_STATUS\r
117EFIAPI\r
118ProcessModuleEntryPointList (\r
119 IN EFI_HANDLE ImageHandle,\r
120 IN EFI_SYSTEM_TABLE *SystemTable\r
121 );\r
122\r
123#endif\r