3 This library class defines a set of interfaces to customize Ui module
5 Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #include <Protocol/HiiConfigAccess.h>
11 #include "BootMaintenanceManagerCustomizedUiSupport.h"
14 Customize menus in the page.
16 @param[in] HiiHandle The HII Handle of the form to update.
17 @param[in] StartOpCodeHandle The context used to insert opcode.
18 @param[in] CustomizePageType The page type need to be customized.
23 IN EFI_HII_HANDLE HiiHandle
,
24 IN VOID
*StartOpCodeHandle
28 // Create "Boot Option" menu.
30 BmmCreateBootOptionMenu(HiiHandle
, StartOpCodeHandle
);
32 // Create "Driver Option" menu.
34 BmmCreateDriverOptionMenu(HiiHandle
, StartOpCodeHandle
);
36 // Create "Com Option" menu.
38 BmmCreateComOptionMenu(HiiHandle
, StartOpCodeHandle
);
40 // Create "Boot From File" menu.
42 BmmCreateBootFromFileMenu(HiiHandle
, StartOpCodeHandle
);
45 // Find third party drivers which need to be shown in the Bmm page.
47 BmmListThirdPartyDrivers (HiiHandle
, &gEfiIfrBootMaintenanceGuid
, NULL
, StartOpCodeHandle
);
52 BmmCreateEmptyLine (HiiHandle
, StartOpCodeHandle
);
55 // Create "Boot Next" menu.
57 BmmCreateBootNextMenu (HiiHandle
, StartOpCodeHandle
);
59 // Create "Time Out" menu.
61 BmmCreateTimeOutMenu (HiiHandle
, StartOpCodeHandle
);
65 This function processes the results of changes in configuration.
68 @param HiiHandle Points to the hii handle for this formset.
69 @param Action Specifies the type of action taken by the browser.
70 @param QuestionId A unique value which is sent to the original exporting driver
71 so that it can identify the type of data to expect.
72 @param Type The type of value for the question.
73 @param Value A pointer to the data being sent to the original exporting driver.
74 @param ActionRequest On return, points to the action requested by the callback function.
76 @retval EFI_SUCCESS The callback successfully handled the action.
77 @retval EFI_OUT_OF_RESOURCES Not enough storage is available to hold the variable and its data.
78 @retval EFI_DEVICE_ERROR The variable could not be saved.
79 @retval EFI_UNSUPPORTED The specified Action is not supported by the callback.
83 UiBMMCallbackHandler (
84 IN EFI_HII_HANDLE HiiHandle
,
85 IN EFI_BROWSER_ACTION Action
,
86 IN EFI_QUESTION_ID QuestionId
,
88 IN EFI_IFR_TYPE_VALUE
*Value
,
89 OUT EFI_BROWSER_ACTION_REQUEST
*ActionRequest
92 return EFI_UNSUPPORTED
;