TianoCore EDK2 master
Loading...
Searching...
No Matches
UpdatePage.c File Reference

Go to the source code of this file.

Functions

VOID CreateUpdateData (VOID)
 
VOID RefreshUpdateData (VOID)
 
VOID UpdatePageStart (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdatePageEnd (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID CleanUpPage (IN UINT16 LabelId, IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdateConCOMPage (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdateBootDelPage (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdateDrvAddHandlePage (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdateDrvDelPage (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdateDriverAddHandleDescPage (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdateConsolePage (IN UINT16 UpdatePageId, IN BM_MENU_OPTION *ConsoleMenu, IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdateOrderPage (IN UINT16 UpdatePageId, IN BM_MENU_OPTION *OptionMenu, IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdateConModePage (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdateTerminalPage (IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdateOptionPage (IN BMM_CALLBACK_DATA *CallbackData, IN EFI_FORM_ID FormId, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath)
 
VOID UpdatePageBody (IN UINT16 UpdatePageId, IN BMM_CALLBACK_DATA *CallbackData)
 
VOID UpdatePageId (BMM_CALLBACK_DATA *Private, UINT16 NewPageId)
 

Detailed Description

Dynamically update the pages.

Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file UpdatePage.c.

Function Documentation

◆ CleanUpPage()

VOID CleanUpPage ( IN UINT16  LabelId,
IN BMM_CALLBACK_DATA CallbackData 
)

Clean up the dynamic opcode at label and form specified by both LabelId.

Parameters
LabelIdIt is both the Form ID and Label ID for opcode deletion.
CallbackDataThe BMM context data.

Definition at line 165 of file UpdatePage.c.

◆ CreateUpdateData()

VOID CreateUpdateData ( VOID  )

Create the global UpdateData structure.

Definition at line 16 of file UpdatePage.c.

◆ RefreshUpdateData()

VOID RefreshUpdateData ( VOID  )

Refresh the global UpdateData structure.

Definition at line 48 of file UpdatePage.c.

◆ UpdateBootDelPage()

VOID UpdateBootDelPage ( IN BMM_CALLBACK_DATA CallbackData)

Create a list of boot option from global BootOptionMenu. It allow user to delete the boot option.

Parameters
CallbackDataThe BMM context data.

Definition at line 227 of file UpdatePage.c.

◆ UpdateConCOMPage()

VOID UpdateConCOMPage ( IN BMM_CALLBACK_DATA CallbackData)

Create a list of Goto Opcode for all terminal devices logged by TerminaMenu. This list will be inserted to form FORM_CON_COM_SETUP_ID.

Parameters
CallbackDataThe BMM context data.

Definition at line 192 of file UpdatePage.c.

◆ UpdateConModePage()

VOID UpdateConModePage ( IN BMM_CALLBACK_DATA CallbackData)

Refresh the text mode page.

Parameters
CallbackDataThe BMM context data.

Definition at line 678 of file UpdatePage.c.

◆ UpdateConsolePage()

VOID UpdateConsolePage ( IN UINT16  UpdatePageId,
IN BM_MENU_OPTION ConsoleMenu,
IN BMM_CALLBACK_DATA CallbackData 
)

Update console page.

Parameters
UpdatePageIdThe form ID to be updated.
ConsoleMenuThe console menu list.
CallbackDataThe BMM context data.

Definition at line 445 of file UpdatePage.c.

◆ UpdateDriverAddHandleDescPage()

VOID UpdateDriverAddHandleDescPage ( IN BMM_CALLBACK_DATA CallbackData)

Prepare the page to allow user to add description for a Driver Option.

Parameters
CallbackDataThe BMM context data.

Definition at line 372 of file UpdatePage.c.

◆ UpdateDrvAddHandlePage()

VOID UpdateDrvAddHandlePage ( IN BMM_CALLBACK_DATA CallbackData)

Create a lit of driver option from global DriverMenu.

Parameters
CallbackDataThe BMM context data.

Definition at line 283 of file UpdatePage.c.

◆ UpdateDrvDelPage()

VOID UpdateDrvDelPage ( IN BMM_CALLBACK_DATA CallbackData)

Create a lit of driver option from global DriverOptionMenu. It allow user to delete the driver option.

Parameters
CallbackDataThe BMM context data.

Definition at line 318 of file UpdatePage.c.

◆ UpdateOptionPage()

VOID UpdateOptionPage ( IN BMM_CALLBACK_DATA CallbackData,
IN EFI_FORM_ID  FormId,
IN EFI_DEVICE_PATH_PROTOCOL DevicePath 
)

Update add boot/driver option page.

Parameters
CallbackDataThe BMM context data.
FormIdThe form ID to be updated.
DevicePathDevice path.

Definition at line 1035 of file UpdatePage.c.

◆ UpdateOrderPage()

VOID UpdateOrderPage ( IN UINT16  UpdatePageId,
IN BM_MENU_OPTION OptionMenu,
IN BMM_CALLBACK_DATA CallbackData 
)

Update the page's NV Map if user has changed the order a list. This list can be Boot Order or Driver Order.

Parameters
UpdatePageIdThe form ID to be updated.
OptionMenuThe new list.
CallbackDataThe BMM context data.

Definition at line 567 of file UpdatePage.c.

◆ UpdatePageBody()

VOID UpdatePageBody ( IN UINT16  UpdatePageId,
IN BMM_CALLBACK_DATA CallbackData 
)

Dispatch the correct update page function to call based on the UpdatePageId.

Parameters
UpdatePageIdThe form ID.
CallbackDataThe BMM context data.

Definition at line 1103 of file UpdatePage.c.

◆ UpdatePageEnd()

VOID UpdatePageEnd ( IN BMM_CALLBACK_DATA CallbackData)

Create the "Apply changes" and "Discard changes" tags. And ensure user can return to the main page.

Parameters
CallbackDataThe BMM context data.

Definition at line 110 of file UpdatePage.c.

◆ UpdatePageId()

VOID UpdatePageId ( BMM_CALLBACK_DATA Private,
UINT16  NewPageId 
)

Dispatch the display to the next page based on NewPageId.

Parameters
PrivateThe BMM context data.
NewPageIdThe original page ID.

Definition at line 1143 of file UpdatePage.c.

◆ UpdatePageStart()

VOID UpdatePageStart ( IN BMM_CALLBACK_DATA CallbackData)

Add a "Go back to main page" tag in front of the form when there are no "Apply changes" and "Discard changes" tags in the end of the form.

Parameters
CallbackDataThe BMM context data.

Definition at line 79 of file UpdatePage.c.

◆ UpdateTerminalPage()

VOID UpdateTerminalPage ( IN BMM_CALLBACK_DATA CallbackData)

Create the dynamic page which allows user to set the property such as Baud Rate, Data Bits, Parity, Stop Bits, Terminal Type.

Parameters
CallbackDataThe BMM context data.

Definition at line 805 of file UpdatePage.c.