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.
76 Call constructors for all libraries. Autogen tool inserts the implementation
77 of this function into Autogen.c.
79 @param ImageHandle ImageHandle of the loaded driver.
80 @param SystemTable Pointer to the EFI System Table.
87 ProcessLibraryConstructorList (
88 IN EFI_HANDLE ImageHandle
,
89 IN EFI_SYSTEM_TABLE
*SystemTable
94 Call destructors for all libraries. Autogen tool inserts the implementation
95 of this function into Autogen.c.
97 @param ImageHandle ImageHandle of the loaded driver.
98 @param SystemTable Pointer to the EFI System Table.
104 ProcessLibraryDestructorList (
105 IN EFI_HANDLE ImageHandle
,
106 IN EFI_SYSTEM_TABLE
*SystemTable
110 Call driver entry point. For UEFI application, user
111 can only specify one entry point. Tool will automatically insert
114 @param ImageHandle ImageHandle of the loaded driver.
115 @param SystemTable Pointer to the EFI System Table.
117 @return Status returned by entry points specified by
124 ProcessModuleEntryPointList (
125 IN EFI_HANDLE ImageHandle
,
126 IN EFI_SYSTEM_TABLE
*SystemTable