summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/BdsDxe/BootMngr/BootManager.c
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-07-10 11:38:22 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-07-10 11:38:22 +0000
commit2fbae53e51037e148e5e4db913532e3ee8e4bd34 (patch)
tree8030e440a67cdbc970f3dca79d88bf5a4db5640e /MdeModulePkg/Universal/BdsDxe/BootMngr/BootManager.c
parent744fc758191ec6c03ea0d487d3a6a829e7ae7ae3 (diff)
downloadedk2-2fbae53e51037e148e5e4db913532e3ee8e4bd34.zip
edk2-2fbae53e51037e148e5e4db913532e3ee8e4bd34.tar.gz
edk2-2fbae53e51037e148e5e4db913532e3ee8e4bd34.tar.bz2
Clean up Boot Manager module in BdsDxe.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5447 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/BdsDxe/BootMngr/BootManager.c')
-rw-r--r--MdeModulePkg/Universal/BdsDxe/BootMngr/BootManager.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/MdeModulePkg/Universal/BdsDxe/BootMngr/BootManager.c b/MdeModulePkg/Universal/BdsDxe/BootMngr/BootManager.c
index 0abd781..5dd1e31 100644
--- a/MdeModulePkg/Universal/BdsDxe/BootMngr/BootManager.c
+++ b/MdeModulePkg/Universal/BdsDxe/BootMngr/BootManager.c
@@ -31,7 +31,9 @@ BOOT_MANAGER_CALLBACK_DATA gBootManagerPrivate = {
};
/**
- This function processes the results of changes in configuration.
+ This call back funtion is registered with Boot Manager formset.
+ When user selects a boot option, this call back function will
+ be triggered. The boot option is saved for later processing.
@param This Points to the EFI_HII_CONFIG_ACCESS_PROTOCOL.
@@ -43,9 +45,7 @@ BOOT_MANAGER_CALLBACK_DATA gBootManagerPrivate = {
@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_INVALID_PARAMETER The setup browser call this function with invalid parameters.
**/
EFI_STATUS
@@ -101,11 +101,10 @@ BootManagerCallback (
/**
- Initialize HII information for the FrontPage
+ Registers HII packages for the Boot Manger to HII Database.
+ It also registers the browser call back function.
- @param VOID EDES_TODO: Add parameter description
-
@return EDES_TODO: Add description for return value
**/
@@ -154,8 +153,11 @@ InitializeBootManager (
}
/**
- Invoke Boot Manager. Hook to enable UI timeout override behavior.
-
+ This funtion invokees Boot Manager. If all devices have not a chance to be connected,
+ the connect all will be triggered. It then enumerate all boot options. If
+ a boot option from the Boot Manager page is selected, Boot Manager will boot
+ from this boot option.
+
**/
VOID
CallBootManager (