]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Library/StandaloneMmDriverEntryPoint.h
MdeModulePkg: Fix coding style issues
[mirror_edk2.git] / MdePkg / Include / Library / StandaloneMmDriverEntryPoint.h
CommitLineData
7df4764e
AB
1/** @file\r
2 Module entry point library for Standalone MM Drivers.\r
3\r
4Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
5Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.<BR>\r
6Copyright (c) 2018, Linaro, Limited. All rights reserved.<BR>\r
7\r
8This program and the accompanying materials are licensed and made available\r
9under the terms and conditions of the BSD License which accompanies this\r
10distribution. The full text of the license may be found at\r
11http://opensource.org/licenses/bsd-license.php\r
12\r
13THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
14WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
15\r
16**/\r
17\r
18#ifndef __MODULE_ENTRY_POINT_H__\r
19#define __MODULE_ENTRY_POINT_H__\r
20\r
21///\r
22/// Declare the PI Specification Revision that this driver requires to execute\r
23/// correctly.\r
24///\r
25extern CONST UINT32 _gMmRevision;\r
26\r
27/**\r
28 The entry point of PE/COFF Image for a Standalone MM Driver.\r
29\r
30 This function is the entry point for a Standalone MM Driver.\r
31 This function must call ProcessLibraryConstructorList() and\r
32 ProcessModuleEntryPointList().\r
33 If the return status from ProcessModuleEntryPointList()\r
34 is an error status, then ProcessLibraryDestructorList() must be called.\r
35 The return value from ProcessModuleEntryPointList() is returned.\r
36 If _gMmRevision is not zero and MmSystemTable->Hdr.Revision is\r
37 less than _gMmRevision, then return EFI_INCOMPATIBLE_VERSION.\r
38\r
39 @param ImageHandle The image handle of the Standalone MM Driver.\r
40 @param SystemTable A pointer to the EFI System Table.\r
41\r
42 @retval EFI_SUCCESS The Standalone MM Driver exited normally.\r
43 @retval EFI_INCOMPATIBLE_VERSION _gMmRevision is greater than\r
44 MmSystemTable->Hdr.Revision.\r
45 @retval Other Return value from\r
46 ProcessModuleEntryPointList().\r
47\r
48**/\r
49EFI_STATUS\r
50EFIAPI\r
51_ModuleEntryPoint (\r
52 IN EFI_HANDLE ImageHandle,\r
53 IN EFI_MM_SYSTEM_TABLE *MmSystemTable\r
54 );\r
55\r
56\r
57/**\r
58 Auto generated function that calls the library constructors for all of the\r
59 module's dependent libraries.\r
60\r
61 This function must be called by _ModuleEntryPoint().\r
62 This function calls the set of library constructors for the set of library\r
63 instances that a module depends on. This includes library instances that a\r
64 module depends on directly and library instances that a module depends on\r
65 indirectly through other libraries. This function is auto generated by build\r
66 tools and those build tools are responsible for collecting the set of library\r
67 instances, determine which ones have constructors, and calling the library\r
68 constructors in the proper order based upon each of the library instances own\r
69 dependencies.\r
70\r
71 @param ImageHandle The image handle of the Standalone MM Driver.\r
72 @param SystemTable A pointer to the MM System Table.\r
73\r
74**/\r
75VOID\r
76EFIAPI\r
77ProcessLibraryConstructorList (\r
78 IN EFI_HANDLE ImageHandle,\r
79 IN EFI_MM_SYSTEM_TABLE *MmSystemTable\r
80 );\r
81\r
82\r
83/**\r
84 Auto generated function that calls the library descructors for all of the\r
85 module's dependent libraries.\r
86\r
87 This function may be called by _ModuleEntryPoint().\r
88 This function calls the set of library destructors for the set of library\r
89 instances that a module depends on. This includes library instances that a\r
90 module depends on directly and library instances that a module depends on\r
91 indirectly through other libraries.\r
92 This function is auto generated by build tools and those build tools are\r
93 responsible for collecting the set of library instances, determine which ones\r
94 have destructors, and calling the library destructors in the proper order\r
95 based upon each of the library instances own dependencies.\r
96\r
97 @param ImageHandle The image handle of the Standalone MM Driver.\r
98 @param SystemTable A pointer to the MM System Table.\r
99\r
100**/\r
101VOID\r
102EFIAPI\r
103ProcessLibraryDestructorList (\r
104 IN EFI_HANDLE ImageHandle,\r
105 IN EFI_MM_SYSTEM_TABLE *MmSystemTable\r
106 );\r
107\r
108\r
109/**\r
110 Auto generated function that calls a set of module entry points.\r
111\r
112 This function must be called by _ModuleEntryPoint().\r
113 This function calls the set of module entry points.\r
114 This function is auto generated by build tools and those build tools are\r
115 responsible for collecting the module entry points and calling them in a\r
116 specified order.\r
117\r
118 @param ImageHandle The image handle of the Standalone MM Driver.\r
119 @param SystemTable A pointer to the EFI System Table.\r
120\r
121 @retval EFI_SUCCESS The Standalone MM Driver executed normally.\r
122 @retval !EFI_SUCCESS The Standalone MM Driver failed to execute normally.\r
123**/\r
124EFI_STATUS\r
125EFIAPI\r
126ProcessModuleEntryPointList (\r
127 IN EFI_HANDLE ImageHandle,\r
128 IN EFI_MM_SYSTEM_TABLE *MmSystemTable\r
129 );\r
130\r
131#endif\r