2 Entry point to a UEFI Application.
4 Copyright (c) 2007, Intel Corporation<BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef __UEFI_APPLICATION_ENTRY_POINT_H__
16 #define __UEFI_APPLICATION_ENTRY_POINT_H__
19 // Declare the EFI/UEFI Specification Revision to which this driver is implemented
21 extern const UINT32 _gUefiDriverRevision
;
24 Enrty point to UEFI Application.
26 @param ImageHandle ImageHandle of the loaded driver.
27 @param SystemTable Pointer to the EFI System Table.
29 @retval EFI_SUCCESS One or more of the drivers returned a success code.
30 @retval !EFI_SUCESS The return status from the last driver entry point in the list.
36 IN EFI_HANDLE ImageHandle
,
37 IN EFI_SYSTEM_TABLE
*SystemTable
42 Enrty point wrapper of UEFI Application.
44 @param ImageHandle ImageHandle of the loaded driver.
45 @param SystemTable Pointer to the EFI System Table.
47 @retval EFI_SUCCESS One or more of the drivers returned a success code.
48 @retval !EFI_SUCESS The return status from the last driver entry point in the list.
54 IN EFI_HANDLE ImageHandle
,
55 IN EFI_SYSTEM_TABLE
*SystemTable
60 Invoke the destuctors of all libraries and call gBS->Exit
61 to return control to firmware core.
63 @param Status Status returned by the application that is exiting.
74 Call constructors for all libraries. Autogen tool inserts the implementation
75 of this function into Autogen.c.
77 @param ImageHandle ImageHandle of the loaded driver.
78 @param SystemTable Pointer to the EFI System Table.
83 ProcessLibraryConstructorList (
84 IN EFI_HANDLE ImageHandle
,
85 IN EFI_SYSTEM_TABLE
*SystemTable
90 Call destructors for all libraries. Autogen tool inserts the implementation
91 of this function into Autogen.c.
93 @param ImageHandle ImageHandle of the loaded driver.
94 @param SystemTable Pointer to the EFI System Table.
99 ProcessLibraryDestructorList (
100 IN EFI_HANDLE ImageHandle
,
101 IN EFI_SYSTEM_TABLE
*SystemTable
105 Call driver entry point. For UEFI application, user
106 can only specify one entry point. Tool will automatically insert
109 @param ImageHandle ImageHandle of the loaded driver.
110 @param SystemTable Pointer to the EFI System Table.
112 @return Status returned by entry points specified by
119 ProcessModuleEntryPointList (
120 IN EFI_HANDLE ImageHandle
,
121 IN EFI_SYSTEM_TABLE
*SystemTable