]>
Commit | Line | Data |
---|---|---|
a85be3ae ED |
1 | /** @file\r |
2 | \r | |
3 | This library class defines a set of interfaces to customize Ui module\r | |
4 | \r | |
5 | Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r | |
9d510e61 | 6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
a85be3ae ED |
7 | \r |
8 | **/\r | |
9 | #include <Uefi.h>\r | |
10 | #include <Protocol/HiiConfigAccess.h>\r | |
11 | #include "BootMaintenanceManagerCustomizedUiSupport.h"\r | |
12 | \r | |
13 | /**\r | |
14 | Customize menus in the page.\r | |
15 | \r | |
16 | @param[in] HiiHandle The HII Handle of the form to update.\r | |
17 | @param[in] StartOpCodeHandle The context used to insert opcode.\r | |
18 | @param[in] CustomizePageType The page type need to be customized.\r | |
19 | \r | |
20 | **/\r | |
21 | VOID\r | |
22 | UiCustomizeBMMPage (\r | |
23 | IN EFI_HII_HANDLE HiiHandle,\r | |
24 | IN VOID *StartOpCodeHandle\r | |
25 | )\r | |
26 | {\r | |
27 | //\r | |
28 | // Create "Boot Option" menu.\r | |
29 | //\r | |
30 | BmmCreateBootOptionMenu(HiiHandle, StartOpCodeHandle);\r | |
31 | //\r | |
32 | // Create "Driver Option" menu.\r | |
33 | //\r | |
34 | BmmCreateDriverOptionMenu(HiiHandle, StartOpCodeHandle);\r | |
35 | //\r | |
36 | // Create "Com Option" menu.\r | |
37 | //\r | |
38 | BmmCreateComOptionMenu(HiiHandle, StartOpCodeHandle);\r | |
39 | //\r | |
40 | // Create "Boot From File" menu.\r | |
41 | //\r | |
42 | BmmCreateBootFromFileMenu(HiiHandle, StartOpCodeHandle);\r | |
43 | \r | |
44 | //\r | |
45 | // Find third party drivers which need to be shown in the Bmm page.\r | |
46 | //\r | |
47 | BmmListThirdPartyDrivers (HiiHandle, &gEfiIfrBootMaintenanceGuid, NULL, StartOpCodeHandle);\r | |
48 | \r | |
49 | //\r | |
50 | // Create empty line.\r | |
51 | //\r | |
52 | BmmCreateEmptyLine (HiiHandle, StartOpCodeHandle);\r | |
53 | \r | |
54 | //\r | |
55 | // Create "Boot Next" menu.\r | |
56 | //\r | |
57 | BmmCreateBootNextMenu (HiiHandle, StartOpCodeHandle);\r | |
58 | //\r | |
59 | // Create "Time Out" menu.\r | |
60 | //\r | |
61 | BmmCreateTimeOutMenu (HiiHandle, StartOpCodeHandle);\r | |
62 | }\r | |
63 | \r | |
64 | /**\r | |
65 | This function processes the results of changes in configuration.\r | |
66 | \r | |
67 | \r | |
68 | @param HiiHandle Points to the hii handle for this formset.\r | |
69 | @param Action Specifies the type of action taken by the browser.\r | |
70 | @param QuestionId A unique value which is sent to the original exporting driver\r | |
71 | so that it can identify the type of data to expect.\r | |
72 | @param Type The type of value for the question.\r | |
73 | @param Value A pointer to the data being sent to the original exporting driver.\r | |
74 | @param ActionRequest On return, points to the action requested by the callback function.\r | |
75 | \r | |
76 | @retval EFI_SUCCESS The callback successfully handled the action.\r | |
77 | @retval EFI_OUT_OF_RESOURCES Not enough storage is available to hold the variable and its data.\r | |
78 | @retval EFI_DEVICE_ERROR The variable could not be saved.\r | |
79 | @retval EFI_UNSUPPORTED The specified Action is not supported by the callback.\r | |
80 | \r | |
81 | **/\r | |
82 | EFI_STATUS\r | |
83 | UiBMMCallbackHandler (\r | |
84 | IN EFI_HII_HANDLE HiiHandle,\r | |
85 | IN EFI_BROWSER_ACTION Action,\r | |
86 | IN EFI_QUESTION_ID QuestionId,\r | |
87 | IN UINT8 Type,\r | |
88 | IN EFI_IFR_TYPE_VALUE *Value,\r | |
89 | OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest\r | |
90 | )\r | |
91 | {\r | |
92 | return EFI_UNSUPPORTED;\r | |
93 | }\r |