]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerCustomizedUiSupport.h
BootMaintenanceMangerUiLib: Save mode info for later use.
[mirror_edk2.git] / MdeModulePkg / Library / BootMaintenanceManagerUiLib / BootMaintenanceManagerCustomizedUiSupport.h
CommitLineData
a85be3ae
ED
1/** @file\r
2 This library class defines a set of interfaces to be used by customize Ui module\r
3\r
4Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials are licensed and made available under\r
6the terms and conditions of the BSD License that accompanies this distribution.\r
7The 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 __BOOT_MAINTENANCE_MANAGER_UI_LIB_H__\r
16#define __BOOT_MAINTENANCE_MANAGER_UI_LIB_H__\r
17\r
18/**\r
19 Create Time Out Menu in the page.\r
20\r
21 @param[in] HiiHandle The hii handle for the Uiapp driver.\r
22 @param[in] StartOpCodeHandle The opcode handle to save the new opcode.\r
23\r
24**/\r
25VOID\r
26BmmCreateTimeOutMenu (\r
27 IN EFI_HII_HANDLE HiiHandle,\r
28 IN VOID *StartOpCodeHandle\r
29 );\r
30\r
31/**\r
32 Create the dynamic item to allow user to set the "BootNext" vaule.\r
33\r
34 @param CallbackData The BMM context data.\r
35\r
36**/\r
37VOID\r
38BmmCreateBootNextMenu(\r
39 IN EFI_HII_HANDLE HiiHandle,\r
40 IN VOID *StartOpCodeHandle\r
41 );\r
42\r
43/**\r
44 Create Boot Option menu in the page.\r
45\r
46 @param[in] HiiHandle The hii handle for the Uiapp driver.\r
47 @param[in] StartOpCodeHandle The opcode handle to save the new opcode.\r
48\r
49**/\r
50VOID\r
51BmmCreateBootOptionMenu (\r
52 IN EFI_HII_HANDLE HiiHandle,\r
53 IN VOID *StartOpCodeHandle\r
54 );\r
55\r
56/**\r
57 Create Driver Option menu in the page.\r
58\r
59 @param[in] HiiHandle The hii handle for the Uiapp driver.\r
60 @param[in] StartOpCodeHandle The opcode handle to save the new opcode.\r
61\r
62**/\r
63VOID\r
64BmmCreateDriverOptionMenu (\r
65 IN EFI_HII_HANDLE HiiHandle,\r
66 IN VOID *StartOpCodeHandle\r
67 );\r
68\r
69/**\r
70 Create Com Option menu in the page.\r
71\r
72 @param[in] HiiHandle The hii handle for the Uiapp driver.\r
73 @param[in] StartOpCodeHandle The opcode handle to save the new opcode.\r
74\r
75**/\r
76VOID\r
77BmmCreateComOptionMenu (\r
78 IN EFI_HII_HANDLE HiiHandle,\r
79 IN VOID *StartOpCodeHandle\r
80 );\r
81\r
82/**\r
83 Create Com Option menu in the page.\r
84\r
85 @param[in] HiiHandle The hii handle for the Uiapp driver.\r
86 @param[in] StartOpCodeHandle The opcode handle to save the new opcode.\r
87\r
88**/\r
89VOID\r
90BmmCreateBootFromFileMenu (\r
91 IN EFI_HII_HANDLE HiiHandle,\r
92 IN VOID *StartOpCodeHandle\r
93 );\r
94\r
95/**\r
96 Create empty line menu in the front page.\r
97\r
98 @param HiiHandle The hii handle for the Uiapp driver.\r
99 @param StartOpCodeHandle The opcode handle to save the new opcode.\r
100\r
101**/\r
102VOID\r
103BmmCreateEmptyLine (\r
104 IN EFI_HII_HANDLE HiiHandle,\r
105 IN VOID *StartOpCodeHandle\r
106 );\r
107\r
108/**\r
109 Rename the driver name if necessary.\r
110\r
111 @param DriverName Input the driver name.\r
112 @param NewDriverName Return the new driver name.\r
113 @param EmptyLineAfter Whether need to insert empty line.\r
114\r
115 @retval New driver name if compared, else NULL.\r
116\r
117**/\r
118typedef\r
119EFI_STATUS\r
120(EFIAPI *DRIVER_SPECIAL_HANDLER)(\r
121 IN CHAR16 *DriverName,\r
122 OUT CHAR16 **NewName,\r
123 OUT BOOLEAN *EmptyLineAfter\r
124);\r
125\r
126/**\r
127 Search the drivers in the system which need to show in the front page\r
128 and insert the menu to the front page.\r
129\r
130 @param HiiHandle The hii handle for the Uiapp driver.\r
131 @param ClassGuid The class guid for the driver which is the target.\r
132 @param StartOpCodeHandle The opcode handle to save the new opcode.\r
133 @param SpecialHandler The pointer to the specail handler function, if any.\r
134\r
135 @retval EFI_SUCCESS Search the driver success\r
136\r
137**/\r
138EFI_STATUS\r
139BmmListThirdPartyDrivers (\r
140 IN EFI_HII_HANDLE HiiHandle,\r
141 IN EFI_GUID *ClassGuid,\r
142 IN DRIVER_SPECIAL_HANDLER SpecialHandlerFn,\r
143 IN VOID *StartOpCodeHandle\r
144 );\r
145\r
146#endif\r