mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-03 20:04:23 +02:00
Refine function comments for BdsDxe module.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7093 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
dddb694d3e
commit
2e9f9668a9
@ -1,5 +1,5 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Boot Maintainence Main File
|
The functions for Boot Maintainence Main menu.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2008, Intel Corporation. <BR>
|
Copyright (c) 2004 - 2008, Intel Corporation. <BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
@ -59,14 +59,12 @@ FreeAllMenu (
|
|||||||
/**
|
/**
|
||||||
Create string tokens for a menu from its help strings and display strings
|
Create string tokens for a menu from its help strings and display strings
|
||||||
|
|
||||||
|
@param CallbackData The BMM context data.
|
||||||
|
@param HiiHandle Hii Handle of the package to be updated.
|
||||||
|
@param MenuOption The Menu whose string tokens need to be created
|
||||||
|
|
||||||
@param CallbackData The BMM context data.
|
@retval EFI_SUCCESS String tokens created successfully
|
||||||
@param HiiHandle Hii Handle of the package to be updated.
|
|
||||||
@param MenuOption The Menu whose string tokens need to be created
|
|
||||||
|
|
||||||
@retval EFI_SUCCESS string tokens created successfully
|
|
||||||
@retval others contain some errors
|
@retval others contain some errors
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CreateMenuStringToken (
|
CreateMenuStringToken (
|
||||||
@ -137,7 +135,7 @@ BootMaintExtractConfig (
|
|||||||
BMM_CALLBACK_DATA *Private;
|
BMM_CALLBACK_DATA *Private;
|
||||||
|
|
||||||
if (Request == NULL) {
|
if (Request == NULL) {
|
||||||
return EFI_NOT_FOUND;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
Private = BMM_CALLBACK_DATA_FROM_THIS (This);
|
Private = BMM_CALLBACK_DATA_FROM_THIS (This);
|
||||||
@ -161,29 +159,29 @@ BootMaintExtractConfig (
|
|||||||
This function processes the results of changes in configuration.
|
This function processes the results of changes in configuration.
|
||||||
|
|
||||||
|
|
||||||
@param This - Points to the EFI_HII_CONFIG_ACCESS_PROTOCOL.
|
@param This Points to the EFI_HII_CONFIG_ACCESS_PROTOCOL.
|
||||||
@param Action - Specifies the type of action taken by the browser.
|
@param Action Specifies the type of action taken by the browser.
|
||||||
@param QuestionId - A unique value which is sent to the original exporting driver
|
@param QuestionId A unique value which is sent to the original exporting driver
|
||||||
so that it can identify the type of data to expect.
|
so that it can identify the type of data to expect.
|
||||||
@param Type - The type of value for the question.
|
@param Type The type of value for the question.
|
||||||
@param Value - A pointer to the data being sent to the original exporting driver.
|
@param Value A pointer to the data being sent to the original exporting driver.
|
||||||
@param ActionRequest - On return, points to the action requested by the callback function.
|
@param ActionRequest On return, points to the action requested by the callback function.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The callback successfully handled the action.
|
|
||||||
@retval EFI_OUT_OF_RESOURCES Not enough storage is available to hold the variable and its data.
|
|
||||||
@retval EFI_DEVICE_ERROR The variable could not be saved.
|
|
||||||
@retval EFI_UNSUPPORTED The specified Action is not supported by the callback.
|
|
||||||
|
|
||||||
|
@retval EFI_SUCCESS The callback successfully handled the action.
|
||||||
|
@retval EFI_OUT_OF_RESOURCES Not enough storage is available to hold the variable and its data.
|
||||||
|
@retval EFI_DEVICE_ERROR The variable could not be saved.
|
||||||
|
@retval EFI_UNSUPPORTED The specified Action is not supported by the callback.
|
||||||
|
@retval EFI_INVALID_PARAMETER The parameter of Value or ActionRequest is invalid.
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
BootMaintCallback (
|
BootMaintCallback (
|
||||||
IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This,
|
IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This,
|
||||||
IN EFI_BROWSER_ACTION Action,
|
IN EFI_BROWSER_ACTION Action,
|
||||||
IN EFI_QUESTION_ID QuestionId,
|
IN EFI_QUESTION_ID QuestionId,
|
||||||
IN UINT8 Type,
|
IN UINT8 Type,
|
||||||
IN EFI_IFR_TYPE_VALUE *Value,
|
IN EFI_IFR_TYPE_VALUE *Value,
|
||||||
OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest
|
OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
BMM_CALLBACK_DATA *Private;
|
BMM_CALLBACK_DATA *Private;
|
||||||
@ -1104,8 +1102,8 @@ InitializeStringDepository (
|
|||||||
/**
|
/**
|
||||||
Fetch a usable string node from the string depository and return the string token.
|
Fetch a usable string node from the string depository and return the string token.
|
||||||
|
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
@param StringDepository The string repository.
|
@param StringDepository The string repository.
|
||||||
|
|
||||||
@retval EFI_STRING_ID String token.
|
@retval EFI_STRING_ID String token.
|
||||||
|
|
||||||
@ -1206,9 +1204,6 @@ CleanUpStringDepository (
|
|||||||
/**
|
/**
|
||||||
Start boot maintenance manager
|
Start boot maintenance manager
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@retval EFI_SUCCESS If BMM is invoked successfully.
|
@retval EFI_SUCCESS If BMM is invoked successfully.
|
||||||
@return Other value if BMM return unsuccessfully.
|
@return Other value if BMM return unsuccessfully.
|
||||||
|
|
||||||
@ -1317,7 +1312,7 @@ FormSetDispatcher (
|
|||||||
Deletete the Boot Option from EFI Variable. The Boot Order Arrray
|
Deletete the Boot Option from EFI Variable. The Boot Order Arrray
|
||||||
is also updated.
|
is also updated.
|
||||||
|
|
||||||
@param OptionNumber EDES_TODO: Add parameter description
|
@param OptionNumber The number of Boot option want to be deleted.
|
||||||
@param BootOrder The Boot Order array.
|
@param BootOrder The Boot Order array.
|
||||||
@param BootOrderSize The size of the Boot Order Array.
|
@param BootOrderSize The size of the Boot Order Array.
|
||||||
|
|
||||||
@ -1342,6 +1337,7 @@ BdsDeleteBootOption (
|
|||||||
|
|
||||||
UnicodeSPrint (BootOption, sizeof (BootOption), L"Boot%04x", OptionNumber);
|
UnicodeSPrint (BootOption, sizeof (BootOption), L"Boot%04x", OptionNumber);
|
||||||
Status = EfiLibDeleteVariable (BootOption, &gEfiGlobalVariableGuid);
|
Status = EfiLibDeleteVariable (BootOption, &gEfiGlobalVariableGuid);
|
||||||
|
|
||||||
//
|
//
|
||||||
// adjust boot order array
|
// adjust boot order array
|
||||||
//
|
//
|
||||||
|
@ -27,10 +27,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
|
|
||||||
#define VAR_CON_OUT_MODE L"ConOutMode"
|
#define VAR_CON_OUT_MODE L"ConOutMode"
|
||||||
|
|
||||||
//
|
///
|
||||||
// Guid of a NV Variable which store the information about the
|
/// Guid of a NV Variable which store the information about the
|
||||||
// FD/HD/CD/NET/BEV order
|
/// FD/HD/CD/NET/BEV order
|
||||||
//
|
///
|
||||||
#define EFI_LEGACY_DEV_ORDER_VARIABLE_GUID \
|
#define EFI_LEGACY_DEV_ORDER_VARIABLE_GUID \
|
||||||
{ \
|
{ \
|
||||||
0xa56074db, 0x65fe, 0x45f7, {0xbd, 0x21, 0x2d, 0x2b, 0xdd, 0x8e, 0x96, 0x52} \
|
0xa56074db, 0x65fe, 0x45f7, {0xbd, 0x21, 0x2d, 0x2b, 0xdd, 0x8e, 0x96, 0x52} \
|
||||||
@ -291,9 +291,9 @@ typedef struct {
|
|||||||
#pragma pack(1)
|
#pragma pack(1)
|
||||||
typedef struct {
|
typedef struct {
|
||||||
BBS_TYPE BbsType;
|
BBS_TYPE BbsType;
|
||||||
//
|
///
|
||||||
// Length = sizeof (UINT16) + SIZEOF (Data)
|
/// Length = sizeof (UINT16) + SIZEOF (Data)
|
||||||
//
|
///
|
||||||
UINT16 Length;
|
UINT16 Length;
|
||||||
UINT16 *Data;
|
UINT16 *Data;
|
||||||
} BM_LEGACY_DEV_ORDER_CONTEXT;
|
} BM_LEGACY_DEV_ORDER_CONTEXT;
|
||||||
@ -538,8 +538,6 @@ BOpt_GetDriverOptions (
|
|||||||
/**
|
/**
|
||||||
Build the LegacyFDMenu LegacyHDMenu LegacyCDMenu according to LegacyBios.GetBbsInfo().
|
Build the LegacyFDMenu LegacyHDMenu LegacyCDMenu according to LegacyBios.GetBbsInfo().
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@retval EFI_SUCCESS The function complete successfully.
|
@retval EFI_SUCCESS The function complete successfully.
|
||||||
@retval EFI_OUT_OF_RESOURCES No enough memory to complete this function.
|
@retval EFI_OUT_OF_RESOURCES No enough memory to complete this function.
|
||||||
|
|
||||||
@ -552,10 +550,6 @@ BOpt_GetLegacyOptions (
|
|||||||
/**
|
/**
|
||||||
Free out resouce allocated from Legacy Boot Options.
|
Free out resouce allocated from Legacy Boot Options.
|
||||||
|
|
||||||
.
|
|
||||||
|
|
||||||
.
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
BOpt_FreeLegacyOptions (
|
BOpt_FreeLegacyOptions (
|
||||||
@ -567,8 +561,6 @@ BOpt_FreeLegacyOptions (
|
|||||||
|
|
||||||
@param FreeMenu Menu to be freed
|
@param FreeMenu Menu to be freed
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
BOpt_FreeMenu (
|
BOpt_FreeMenu (
|
||||||
@ -587,7 +579,7 @@ BOpt_FreeMenu (
|
|||||||
Caller is responsible to free the returned string.
|
Caller is responsible to free the returned string.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
CHAR16 *
|
CHAR16*
|
||||||
BOpt_AppendFileName (
|
BOpt_AppendFileName (
|
||||||
IN CHAR16 *Str1,
|
IN CHAR16 *Str1,
|
||||||
IN CHAR16 *Str2
|
IN CHAR16 *Str2
|
||||||
@ -700,7 +692,6 @@ BOpt_GetMenuEntry (
|
|||||||
/**
|
/**
|
||||||
Build a list containing all serial devices.
|
Build a list containing all serial devices.
|
||||||
|
|
||||||
|
|
||||||
@retval EFI_SUCCESS The function complete successfully.
|
@retval EFI_SUCCESS The function complete successfully.
|
||||||
@retval EFI_UNSUPPORTED No serial ports present.
|
@retval EFI_UNSUPPORTED No serial ports present.
|
||||||
|
|
||||||
@ -716,9 +707,6 @@ LocateSerialIo (
|
|||||||
/**
|
/**
|
||||||
Build up ConsoleOutMenu, ConsoleInpMenu and ConsoleErrMenu
|
Build up ConsoleOutMenu, ConsoleInpMenu and ConsoleErrMenu
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@retval EFI_SUCCESS The function always complete successfully.
|
@retval EFI_SUCCESS The function always complete successfully.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -733,11 +721,7 @@ GetAllConsoles(
|
|||||||
/**
|
/**
|
||||||
Get mode number according to column and row
|
Get mode number according to column and row
|
||||||
|
|
||||||
|
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
GetConsoleOutMode (
|
GetConsoleOutMode (
|
||||||
@ -750,9 +734,6 @@ GetConsoleOutMode (
|
|||||||
/**
|
/**
|
||||||
Free ConsoleOutMenu, ConsoleInpMenu and ConsoleErrMenu
|
Free ConsoleOutMenu, ConsoleInpMenu and ConsoleErrMenu
|
||||||
|
|
||||||
|
|
||||||
EDES_TODO: Add parameter description
|
|
||||||
|
|
||||||
@retval EFI_SUCCESS The function always complete successfully.
|
@retval EFI_SUCCESS The function always complete successfully.
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -765,9 +746,7 @@ FreeAllConsoles (
|
|||||||
based on the new BaudRate, Data Bits, parity and Stop Bits
|
based on the new BaudRate, Data Bits, parity and Stop Bits
|
||||||
set.
|
set.
|
||||||
|
|
||||||
@param DevicePath
|
@param DevicePath The devicepath protocol instance wanted to be updated.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
@ -792,6 +771,7 @@ ChangeTerminalDevicePath (
|
|||||||
IN OUT EFI_DEVICE_PATH_PROTOCOL *DevicePath,
|
IN OUT EFI_DEVICE_PATH_PROTOCOL *DevicePath,
|
||||||
IN BOOLEAN ChangeTerminal
|
IN BOOLEAN ChangeTerminal
|
||||||
);
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Variable operation by menu selection
|
// Variable operation by menu selection
|
||||||
//
|
//
|
||||||
@ -801,11 +781,11 @@ ChangeTerminalDevicePath (
|
|||||||
the "BootOrder" list. It also append this Boot Opotion to the end
|
the "BootOrder" list. It also append this Boot Opotion to the end
|
||||||
of BootOptionMenu.
|
of BootOptionMenu.
|
||||||
|
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
@param NvRamMap The file explorer formset internal state.
|
@param NvRamMap The file explorer formset internal state.
|
||||||
|
|
||||||
@retval EFI_OUT_OF_RESOURCES If not enought memory to complete the operation.
|
@retval EFI_OUT_OF_RESOURCES If not enought memory to complete the operation.
|
||||||
@retval EFI_SUCCESS If function completes successfully.
|
@retval EFI_SUCCESS If function completes successfully.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -819,9 +799,6 @@ Var_UpdateBootOption (
|
|||||||
After deleting this boot option, call Var_ChangeBootOrder to
|
After deleting this boot option, call Var_ChangeBootOrder to
|
||||||
make sure BootOrder is in valid state.
|
make sure BootOrder is in valid state.
|
||||||
|
|
||||||
|
|
||||||
EDES_TODO: Add parameter description
|
|
||||||
|
|
||||||
@retval EFI_SUCCESS If all boot load option EFI Variables corresponding to
|
@retval EFI_SUCCESS If all boot load option EFI Variables corresponding to
|
||||||
BM_LOAD_CONTEXT marked for deletion is deleted
|
BM_LOAD_CONTEXT marked for deletion is deleted
|
||||||
@return Others If failed to update the "BootOrder" variable after deletion.
|
@return Others If failed to update the "BootOrder" variable after deletion.
|
||||||
@ -838,12 +815,8 @@ Var_DelBootOption (
|
|||||||
not reflected by BootOrder. Then a function rebuild BootOrder from
|
not reflected by BootOrder. Then a function rebuild BootOrder from
|
||||||
scratch by content from BootOptionMenu is needed.
|
scratch by content from BootOptionMenu is needed.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@retval EFI_SUCCESS The boot order is updated successfully.
|
@retval EFI_SUCCESS The boot order is updated successfully.
|
||||||
@return EFI_STATUS other than EFI_SUCCESS if failed to
|
@return other than EFI_SUCCESS if failed to change the "BootOrder" EFI Variable.
|
||||||
Set the "BootOrder" EFI Variable.
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -861,7 +834,7 @@ Var_ChangeBootOrder (
|
|||||||
@param HiiHandle The HII handle associated with the BMM formset.
|
@param HiiHandle The HII handle associated with the BMM formset.
|
||||||
@param DescriptionData The description of this driver option.
|
@param DescriptionData The description of this driver option.
|
||||||
@param OptionalData The optional load option.
|
@param OptionalData The optional load option.
|
||||||
@param ForceReconnect EDES_TODO: Add parameter description
|
@param ForceReconnect If to force reconnect.
|
||||||
|
|
||||||
@retval EFI_OUT_OF_RESOURCES If not enought memory to complete the operation.
|
@retval EFI_OUT_OF_RESOURCES If not enought memory to complete the operation.
|
||||||
@retval EFI_SUCCESS If function completes successfully.
|
@retval EFI_SUCCESS If function completes successfully.
|
||||||
@ -881,9 +854,6 @@ Var_UpdateDriverOption (
|
|||||||
After deleting this Driver option, call Var_ChangeDriverOrder to
|
After deleting this Driver option, call Var_ChangeDriverOrder to
|
||||||
make sure DriverOrder is in valid state.
|
make sure DriverOrder is in valid state.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@retval EFI_SUCCESS Load Option is successfully updated.
|
@retval EFI_SUCCESS Load Option is successfully updated.
|
||||||
@return Other value than EFI_SUCCESS if failed to update "Driver Order" EFI
|
@return Other value than EFI_SUCCESS if failed to update "Driver Order" EFI
|
||||||
Variable.
|
Variable.
|
||||||
@ -901,12 +871,8 @@ Var_DelDriverOption (
|
|||||||
rebuild DriverOrder from scratch by content from DriverOptionMenu is
|
rebuild DriverOrder from scratch by content from DriverOptionMenu is
|
||||||
needed.
|
needed.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@retval EFI_SUCCESS The driver order is updated successfully.
|
@retval EFI_SUCCESS The driver order is updated successfully.
|
||||||
@return EFI_STATUS other than EFI_SUCCESS if failed to
|
@return other than EFI_SUCCESS if failed to set the "DriverOrder" EFI Variable.
|
||||||
Set the "DriverOrder" EFI Variable.
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -918,12 +884,8 @@ Var_ChangeDriverOrder (
|
|||||||
This function delete and build multi-instance device path ConIn
|
This function delete and build multi-instance device path ConIn
|
||||||
console device.
|
console device.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@retval EFI_SUCCESS The function complete successfully.
|
@retval EFI_SUCCESS The function complete successfully.
|
||||||
@return The EFI variable can be saved. See gRT->SetVariable
|
@return The EFI variable can not be saved. See gRT->SetVariable for detail return information.
|
||||||
for detail return information.
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
Var_UpdateConsoleInpOption (
|
Var_UpdateConsoleInpOption (
|
||||||
@ -931,15 +893,10 @@ Var_UpdateConsoleInpOption (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function delete and build multi-instance device path ConOut
|
This function delete and build multi-instance device path ConOut console device.
|
||||||
console device.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@retval EFI_SUCCESS The function complete successfully.
|
@retval EFI_SUCCESS The function complete successfully.
|
||||||
@return The EFI variable can be saved. See gRT->SetVariable
|
@return The EFI variable can not be saved. See gRT->SetVariable for detail return information.
|
||||||
for detail return information.
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
Var_UpdateConsoleOutOption (
|
Var_UpdateConsoleOutOption (
|
||||||
@ -947,15 +904,10 @@ Var_UpdateConsoleOutOption (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function delete and build multi-instance device path ErrOut
|
This function delete and build multi-instance device path ErrOut console device.
|
||||||
console device.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@retval EFI_SUCCESS The function complete successfully.
|
@retval EFI_SUCCESS The function complete successfully.
|
||||||
@return The EFI variable can be saved. See gRT->SetVariable
|
@return The EFI variable can not be saved. See gRT->SetVariable for detail return information.
|
||||||
for detail return information.
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
Var_UpdateErrorOutOption (
|
Var_UpdateErrorOutOption (
|
||||||
@ -963,13 +915,8 @@ Var_UpdateErrorOutOption (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Update the device path of "ConOut", "ConIn" and "ErrOut"
|
Update the device path of "ConOut", "ConIn" and "ErrOut" based on the new BaudRate, Data Bits,
|
||||||
based on the new BaudRate, Data Bits, parity and Stop Bits
|
parity and stop Bits set.
|
||||||
set.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
@ -978,16 +925,14 @@ Var_UpdateAllConsoleOption (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function update the "BootNext" EFI Variable. If there is
|
This function update the "BootNext" EFI Variable. If there is no "BootNex" specified in BMM,
|
||||||
no "BootNex" specified in BMM, this EFI Variable is deleted.
|
this EFI Variable is deleted.
|
||||||
It also update the BMM context data specified the "BootNext"
|
It also update the BMM context data specified the "BootNext" value.
|
||||||
vaule.
|
|
||||||
|
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The function complete successfully.
|
@retval EFI_SUCCESS The function complete successfully.
|
||||||
@return The EFI variable can be saved. See gRT->SetVariable
|
@return The EFI variable can not be saved. See gRT->SetVariable for detail return information.
|
||||||
for detail return information.
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -996,16 +941,14 @@ Var_UpdateBootNext (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function update the "BootOrder" EFI Variable based on
|
This function update the "BootOrder" EFI Variable based on BMM Formset's NV map. It then refresh
|
||||||
BMM Formset's NV map. It then refresh BootOptionMenu
|
BootOptionMenu with the new "BootOrder" list.
|
||||||
with the new "BootOrder" list.
|
|
||||||
|
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The function complete successfully.
|
@retval EFI_SUCCESS The function complete successfully.
|
||||||
@retval EFI_SUCCESS Not enough memory to complete the function.
|
@retval EFI_OUT_OF_RESOURCES Not enough memory to complete the function.
|
||||||
@return The EFI variable can be saved. See gRT->SetVariable
|
@return not The EFI variable can not be saved. See gRT->SetVariable for detail return information.
|
||||||
for detail return information.
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -1020,10 +963,9 @@ Var_UpdateBootOrder (
|
|||||||
|
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The function complete successfully.
|
@retval EFI_SUCCESS The function complete successfully.
|
||||||
@retval EFI_SUCCESS Not enough memory to complete the function.
|
@retval EFI_OUT_OF_RESOURCES Not enough memory to complete the function.
|
||||||
@return The EFI variable can be saved. See gRT->SetVariable
|
@return The EFI variable can not be saved. See gRT->SetVariable for detail return information.
|
||||||
for detail return information.
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -1039,7 +981,7 @@ Var_UpdateDriverOrder (
|
|||||||
@param CallbackData The context data for BMM.
|
@param CallbackData The context data for BMM.
|
||||||
|
|
||||||
@return EFI_SUCCESS The function completed successfully.
|
@return EFI_SUCCESS The function completed successfully.
|
||||||
@retval EFI_NOT_FOUND If L"LegacyDevOrder" and EfiLegacyDevOrderGuid EFI Variable can be found.
|
@retval EFI_NOT_FOUND If L"LegacyDevOrder" and EfiLegacyDevOrderGuid EFI Variable can not be found.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -1067,10 +1009,6 @@ Var_UpdateConMode (
|
|||||||
/**
|
/**
|
||||||
Refresh the global UpdateData structure.
|
Refresh the global UpdateData structure.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
RefreshUpdateData (
|
RefreshUpdateData (
|
||||||
@ -1085,8 +1023,6 @@ RefreshUpdateData (
|
|||||||
opcode deletion.
|
opcode deletion.
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
CleanUpPage (
|
CleanUpPage (
|
||||||
@ -1100,8 +1036,6 @@ CleanUpPage (
|
|||||||
|
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
UpdateBootDelPage (
|
UpdateBootDelPage (
|
||||||
@ -1112,9 +1046,6 @@ UpdateBootDelPage (
|
|||||||
Create a lit of driver option from global DriverMenu.
|
Create a lit of driver option from global DriverMenu.
|
||||||
|
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
UpdateDrvAddHandlePage (
|
UpdateDrvAddHandlePage (
|
||||||
@ -1125,11 +1056,7 @@ UpdateDrvAddHandlePage (
|
|||||||
Create a lit of driver option from global DriverOptionMenu. It
|
Create a lit of driver option from global DriverOptionMenu. It
|
||||||
allow user to delete the driver option.
|
allow user to delete the driver option.
|
||||||
|
|
||||||
|
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
UpdateDrvDelPage (
|
UpdateDrvDelPage (
|
||||||
@ -1137,13 +1064,9 @@ UpdateDrvDelPage (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Prepare the page to allow user to add description for
|
Prepare the page to allow user to add description for a Driver Option.
|
||||||
a Driver Option.
|
|
||||||
|
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
UpdateDriverAddHandleDescPage (
|
UpdateDriverAddHandleDescPage (
|
||||||
@ -1151,14 +1074,10 @@ UpdateDriverAddHandleDescPage (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Dispatch the correct update page function to call based on
|
Dispatch the correct update page function to call based on the UpdatePageId.
|
||||||
the UpdatePageId.
|
|
||||||
|
|
||||||
@param UpdatePageId The form ID.
|
@param UpdatePageId The form ID.
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
UpdatePageBody (
|
UpdatePageBody (
|
||||||
@ -1167,13 +1086,9 @@ UpdatePageBody (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Create the dynamic page to allow user to set
|
Create the dynamic page to allow user to set the "BootNext" vaule.
|
||||||
the "BootNext" vaule.
|
|
||||||
|
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
UpdateBootNextPage (
|
UpdateBootNextPage (
|
||||||
@ -1181,13 +1096,9 @@ UpdateBootNextPage (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Create the dynamic page to allow user to set
|
Create the dynamic page to allow user to set the "TimeOut" vaule.
|
||||||
the "TimeOut" vaule.
|
|
||||||
|
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
UpdateTimeOutPage (
|
UpdateTimeOutPage (
|
||||||
@ -1195,14 +1106,10 @@ UpdateTimeOutPage (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Create the dynamic page which allows user to
|
Create the dynamic page which allows user to set the property such as Baud Rate, Data Bits,
|
||||||
set the property such as Baud Rate, Data Bits,
|
|
||||||
Parity, Stop Bits, Terminal Type.
|
Parity, Stop Bits, Terminal Type.
|
||||||
|
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
UpdateTerminalPage (
|
UpdateTerminalPage (
|
||||||
@ -1212,11 +1119,7 @@ UpdateTerminalPage (
|
|||||||
/**
|
/**
|
||||||
Refresh the text mode page
|
Refresh the text mode page
|
||||||
|
|
||||||
|
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
UpdateConModePage (
|
UpdateConModePage (
|
||||||
@ -1228,9 +1131,6 @@ UpdateConModePage (
|
|||||||
by TerminaMenu. This list will be inserted to form FORM_CON_COM_SETUP_ID.
|
by TerminaMenu. This list will be inserted to form FORM_CON_COM_SETUP_ID.
|
||||||
|
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
UpdateConCOMPage (
|
UpdateConCOMPage (
|
||||||
@ -1243,9 +1143,6 @@ UpdateConCOMPage (
|
|||||||
|
|
||||||
@param UpdatePageId The form ID. It also spefies the legacy device type.
|
@param UpdatePageId The form ID. It also spefies the legacy device type.
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
UpdateSetLegacyDeviceOrderPage (
|
UpdateSetLegacyDeviceOrderPage (
|
||||||
@ -1255,14 +1152,10 @@ UpdateSetLegacyDeviceOrderPage (
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
Function opens and returns a file handle to the root directory of a volume.
|
Function opens and returns a file handle to the root directory of a volume.
|
||||||
|
|
||||||
|
@param DeviceHandle A handle for a device
|
||||||
@param DeviceHandle - A handle for a device
|
|
||||||
|
|
||||||
@return A valid file handle or NULL is returned
|
@return A valid file handle or NULL is returned
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_FILE_HANDLE
|
EFI_FILE_HANDLE
|
||||||
EfiLibOpenRoot (
|
EfiLibOpenRoot (
|
||||||
@ -1270,16 +1163,13 @@ EfiLibOpenRoot (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
Function gets the file system information from an open file descriptor,
|
Function gets the file system information from an open file descriptor,
|
||||||
and stores it in a buffer allocated from pool.
|
and stores it in a buffer allocated from pool.
|
||||||
|
|
||||||
|
|
||||||
@param FHand The file handle.
|
@param FHand The file handle.
|
||||||
|
|
||||||
@return A pointer to a buffer with file information.
|
@return A pointer to a buffer with file information.
|
||||||
@retval NULL is returned if failed to get Vaolume Label Info.
|
NULL is returned if failed to get Vaolume Label Info.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_FILE_SYSTEM_VOLUME_LABEL *
|
EFI_FILE_SYSTEM_VOLUME_LABEL *
|
||||||
EfiLibFileSystemVolumeLabelInfo (
|
EfiLibFileSystemVolumeLabelInfo (
|
||||||
@ -1296,7 +1186,7 @@ EfiLibFileSystemVolumeLabelInfo (
|
|||||||
@return A pointer to a buffer with file information or NULL is returned
|
@return A pointer to a buffer with file information or NULL is returned
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_FILE_INFO *
|
EFI_FILE_INFO *
|
||||||
EfiLibFileInfo (
|
EfiLibFileInfo (
|
||||||
IN EFI_FILE_HANDLE FHand
|
IN EFI_FILE_HANDLE FHand
|
||||||
);
|
);
|
||||||
@ -1309,16 +1199,13 @@ EfiLibFileInfo (
|
|||||||
@return A new allocated Unicode string that represents the device path.
|
@return A new allocated Unicode string that represents the device path.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
CHAR16 *
|
CHAR16 *
|
||||||
DevicePathToStr (
|
DevicePathToStr (
|
||||||
EFI_DEVICE_PATH_PROTOCOL *DevPath
|
EFI_DEVICE_PATH_PROTOCOL *DevPath
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Find the first instance of this Protocol in the system and return it's interface.
|
||||||
Find the first instance of this Protocol
|
|
||||||
in the system and return it's interface.
|
|
||||||
|
|
||||||
|
|
||||||
@param ProtocolGuid Provides the protocol to search for
|
@param ProtocolGuid Provides the protocol to search for
|
||||||
@param Interface On return, a pointer to the first interface
|
@param Interface On return, a pointer to the first interface
|
||||||
@ -1337,16 +1224,14 @@ EfiLibLocateProtocol (
|
|||||||
/**
|
/**
|
||||||
Adjusts the size of a previously allocated buffer.
|
Adjusts the size of a previously allocated buffer.
|
||||||
|
|
||||||
|
@param OldPool A pointer to the buffer whose size is being adjusted.
|
||||||
|
@param OldSize The size of the current buffer.
|
||||||
|
@param NewSize The size of the new buffer.
|
||||||
|
|
||||||
@param OldPool - A pointer to the buffer whose size is being adjusted.
|
@return The newly allocated buffer. if NULL, allocation failed.
|
||||||
@param OldSize - The size of the current buffer.
|
|
||||||
@param NewSize - The size of the new buffer.
|
|
||||||
|
|
||||||
@return The newly allocated buffer.
|
|
||||||
@retval NULL Allocation failed.
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID*
|
||||||
EfiReallocatePool (
|
EfiReallocatePool (
|
||||||
IN VOID *OldPool,
|
IN VOID *OldPool,
|
||||||
IN UINTN OldSize,
|
IN UINTN OldSize,
|
||||||
@ -1359,14 +1244,14 @@ EfiReallocatePool (
|
|||||||
|
|
||||||
@param Name String part of EFI variable name
|
@param Name String part of EFI variable name
|
||||||
@param VendorGuid GUID part of EFI variable name
|
@param VendorGuid GUID part of EFI variable name
|
||||||
@param VarSize Returns the size of the EFI variable that was read
|
@param VarSize Returns the size of the EFI variable that was read
|
||||||
|
|
||||||
@return Dynamically allocated memory that contains a copy of the EFI variable.
|
@return Dynamically allocated memory that contains a copy of the EFI variable.
|
||||||
@return Caller is responsible freeing the buffer.
|
@return Caller is responsible freeing the buffer.
|
||||||
@retval NULL Variable was not read
|
@retval NULL Variable was not read
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
BdsLibGetVariableAndSize (
|
BdsLibGetVariableAndSize (
|
||||||
IN CHAR16 *Name,
|
IN CHAR16 *Name,
|
||||||
IN EFI_GUID *VendorGuid,
|
IN EFI_GUID *VendorGuid,
|
||||||
@ -1377,10 +1262,10 @@ BdsLibGetVariableAndSize (
|
|||||||
Function deletes the variable specified by VarName and VarGuid.
|
Function deletes the variable specified by VarName and VarGuid.
|
||||||
|
|
||||||
|
|
||||||
@param VarName - A Null-terminated Unicode string that is
|
@param VarName A Null-terminated Unicode string that is
|
||||||
the name of the vendor's variable.
|
the name of the vendor's variable.
|
||||||
|
|
||||||
@param VarGuid - A unique identifier for the vendor.
|
@param VarGuid A unique identifier for the vendor.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The variable was found and removed
|
@retval EFI_SUCCESS The variable was found and removed
|
||||||
@retval EFI_UNSUPPORTED The variable store was inaccessible
|
@retval EFI_UNSUPPORTED The variable store was inaccessible
|
||||||
@ -1454,7 +1339,7 @@ CreateMenuStringToken (
|
|||||||
@retval NULL If failed to get the String from Data Hub.
|
@retval NULL If failed to get the String from Data Hub.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
UINT16 *
|
UINT16 *
|
||||||
EfiLibStrFromDatahub (
|
EfiLibStrFromDatahub (
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *DevPath
|
IN EFI_DEVICE_PATH_PROTOCOL *DevPath
|
||||||
);
|
);
|
||||||
@ -1468,10 +1353,8 @@ EfiLibStrFromDatahub (
|
|||||||
@param OptionIndex Returns the index number (#### in Boot####).
|
@param OptionIndex Returns the index number (#### in Boot####).
|
||||||
@param OptionSize Return the size of the Boot### variable.
|
@param OptionSize Return the size of the Boot### variable.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
GetLegacyBootOptionVar (
|
GetLegacyBootOptionVar (
|
||||||
IN UINTN DeviceType,
|
IN UINTN DeviceType,
|
||||||
OUT UINTN *OptionIndex,
|
OUT UINTN *OptionIndex,
|
||||||
@ -1493,9 +1376,6 @@ InitializeBM (
|
|||||||
/**
|
/**
|
||||||
Start boot maintenance manager
|
Start boot maintenance manager
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@retval EFI_SUCCESS If BMM is invoked successfully.
|
@retval EFI_SUCCESS If BMM is invoked successfully.
|
||||||
@return Other value if BMM return unsuccessfully.
|
@return Other value if BMM return unsuccessfully.
|
||||||
|
|
||||||
@ -1518,10 +1398,10 @@ InitializeStringDepository (
|
|||||||
Fetch a usable string node from the string depository and return the string token.
|
Fetch a usable string node from the string depository and return the string token.
|
||||||
|
|
||||||
|
|
||||||
@param CallbackData EDES_TODO: Add parameter description
|
@param CallbackData The BMM context data.
|
||||||
@param StringDepository - Pointer of the string depository.
|
@param StringDepository Pointer of the string depository.
|
||||||
|
|
||||||
@retval EFI_STRING_ID String token.
|
@retval EFI_STRING_ID String token.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STRING_ID
|
EFI_STRING_ID
|
||||||
@ -1550,13 +1430,12 @@ CleanUpStringDepository (
|
|||||||
/**
|
/**
|
||||||
Function handling request to apply changes for BMM pages.
|
Function handling request to apply changes for BMM pages.
|
||||||
|
|
||||||
|
@param Private Pointer to callback data buffer.
|
||||||
|
@param CurrentFakeNVMap Pointer to buffer holding data of various values used by BMM
|
||||||
|
@param FormId ID of the form which has sent the request to apply change.
|
||||||
|
|
||||||
@param Private - Pointer to callback data buffer.
|
@retval EFI_SUCCESS Change successfully applied.
|
||||||
@param CurrentFakeNVMap - Pointer to buffer holding data of various values used by BMM
|
@retval Other Error occurs while trying to apply changes.
|
||||||
@param FormId - ID of the form which has sent the request to apply change.
|
|
||||||
|
|
||||||
@retval EFI_SUCCESS Change successfully applied.
|
|
||||||
@retval Other Error occurs while trying to apply changes.
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
@ -384,8 +384,7 @@ Var_UpdateAllConsoleOption (
|
|||||||
to be processed.
|
to be processed.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The function complete successfully.
|
@retval EFI_SUCCESS The function complete successfully.
|
||||||
@return The EFI variable can be saved. See gRT->SetVariable
|
@return The EFI variable can not be saved. See gRT->SetVariable for detail return information.
|
||||||
for detail return information.
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -937,10 +936,9 @@ Var_UpdateBootNext (
|
|||||||
|
|
||||||
@param CallbackData The BMM context data.
|
@param CallbackData The BMM context data.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The function complete successfully.
|
@retval EFI_SUCCESS The function complete successfully.
|
||||||
@retval EFI_SUCCESS Not enough memory to complete the function.
|
@retval EFI_OUT_OF_RESOURCES Not enough memory to complete the function.
|
||||||
@return The EFI variable can be saved. See gRT->SetVariable
|
@return The EFI variable can not be saved. See gRT->SetVariable for detail return information.
|
||||||
for detail return information.
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user