3 This library class defines a set of interfaces to customize Ui module
5 Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials are licensed and made available under
7 the terms and conditions of the BSD License that accompanies this distribution.
8 The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php.
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #include <Protocol/HiiConfigAccess.h>
17 #include "BootMaintenanceManagerCustomizedUiSupport.h"
20 Customize menus in the page.
22 @param[in] HiiHandle The HII Handle of the form to update.
23 @param[in] StartOpCodeHandle The context used to insert opcode.
24 @param[in] CustomizePageType The page type need to be customized.
29 IN EFI_HII_HANDLE HiiHandle
,
30 IN VOID
*StartOpCodeHandle
34 // Create "Boot Option" menu.
36 BmmCreateBootOptionMenu(HiiHandle
, StartOpCodeHandle
);
38 // Create "Driver Option" menu.
40 BmmCreateDriverOptionMenu(HiiHandle
, StartOpCodeHandle
);
42 // Create "Com Option" menu.
44 BmmCreateComOptionMenu(HiiHandle
, StartOpCodeHandle
);
46 // Create "Boot From File" menu.
48 BmmCreateBootFromFileMenu(HiiHandle
, StartOpCodeHandle
);
51 // Find third party drivers which need to be shown in the Bmm page.
53 BmmListThirdPartyDrivers (HiiHandle
, &gEfiIfrBootMaintenanceGuid
, NULL
, StartOpCodeHandle
);
58 BmmCreateEmptyLine (HiiHandle
, StartOpCodeHandle
);
61 // Create "Boot Next" menu.
63 BmmCreateBootNextMenu (HiiHandle
, StartOpCodeHandle
);
65 // Create "Time Out" menu.
67 BmmCreateTimeOutMenu (HiiHandle
, StartOpCodeHandle
);
71 This function processes the results of changes in configuration.
74 @param HiiHandle Points to the hii handle for this formset.
75 @param Action Specifies the type of action taken by the browser.
76 @param QuestionId A unique value which is sent to the original exporting driver
77 so that it can identify the type of data to expect.
78 @param Type The type of value for the question.
79 @param Value A pointer to the data being sent to the original exporting driver.
80 @param ActionRequest On return, points to the action requested by the callback function.
82 @retval EFI_SUCCESS The callback successfully handled the action.
83 @retval EFI_OUT_OF_RESOURCES Not enough storage is available to hold the variable and its data.
84 @retval EFI_DEVICE_ERROR The variable could not be saved.
85 @retval EFI_UNSUPPORTED The specified Action is not supported by the callback.
89 UiBMMCallbackHandler (
90 IN EFI_HII_HANDLE HiiHandle
,
91 IN EFI_BROWSER_ACTION Action
,
92 IN EFI_QUESTION_ID QuestionId
,
94 IN EFI_IFR_TYPE_VALUE
*Value
,
95 OUT EFI_BROWSER_ACTION_REQUEST
*ActionRequest
98 return EFI_UNSUPPORTED
;