\r
**/\r
\r
-#ifndef _BOOT_MAINT_H\r
-#define _BOOT_MAINT_H\r
+#ifndef _BOOT_MAINT_H_\r
+#define _BOOT_MAINT_H_\r
\r
#include "Bds.h"\r
#include "BBSsupport.h"\r
//\r
// Constants which are variable names used to access variables\r
//\r
-#define VarLegacyDevOrder L"LegacyDevOrder"\r
+#define VAR_LEGACY_DEV_ORDER L"LegacyDevOrder"\r
\r
-#define VarConOutMode L"ConOutMode"\r
+#define VAR_CON_OUT_MODE L"ConOutMode"\r
\r
//\r
// Guid of a NV Variable which store the information about the\r
//\r
// String Contant\r
//\r
-#define StrFloppy L"Floppy Drive #%02x"\r
-#define StrHardDisk L"HardDisk Drive #%02x"\r
-#define StrCDROM L"ATAPI CDROM Drive #%02x"\r
-#define StrNET L"NET Drive #%02x"\r
-#define StrBEV L"BEV Drive #%02x"\r
-#define StrFloppyHelp L"Select Floppy Drive #%02x"\r
-#define StrHardDiskHelp L"Select HardDisk Drive #%02x"\r
-#define StrCDROMHelp L"Select ATAPI CDROM Drive #%02x"\r
-#define StrNETHelp L"NET Drive #%02x"\r
-#define StrBEVHelp L"BEV Drive #%02x"\r
+#define STR_FLOPPY L"Floppy Drive #%02x"\r
+#define STR_HARDDISK L"HardDisk Drive #%02x"\r
+#define STR_CDROM L"ATAPI CDROM Drive #%02x"\r
+#define STR_NET L"NET Drive #%02x"\r
+#define STR_BEV L"BEV Drive #%02x"\r
+#define STR_FLOPPY_HELP L"Select Floppy Drive #%02x"\r
+#define STR_HARDDISK_HELP L"Select HardDisk Drive #%02x"\r
+#define STR_CDROM_HELP L"Select ATAPI CDROM Drive #%02x"\r
+#define STR_NET_HELP L"NET Drive #%02x"\r
+#define STR_BEV_HELP L"BEV Drive #%02x"\r
\r
//\r
// Variable created with this flag will be "Efi:...."\r
#define MAX_CHAR 480\r
#define MAX_CHAR_SIZE (MAX_CHAR * 2)\r
\r
-//\r
-// Check to see if current build support option active feature of\r
-// some driver option\r
-//\r
-#ifndef LOAD_OPTION_ACTIVE\r
-#define LOAD_OPTION_ACTIVE 0x00000001\r
-#endif\r
-\r
-//\r
-// Check to see if current build support force reconnect feature of\r
-// some driver option\r
-//\r
-#ifndef LOAD_OPTION_FORCE_RECONNECT\r
-#define LOAD_OPTION_FORCE_RECONNECT 0x00000002\r
-#endif\r
-\r
extern EFI_GUID mBootMaintGuid;\r
extern EFI_GUID mFileExplorerGuid;\r
\r
All files and sub-directories in current directory\r
will be stored in DirectoryMenu for future use.\r
\r
- @param FileOption Pointer for Dir to explore.\r
+ @param CallbackData The BMM context data.\r
+ @param MenuEntry The Menu Entry.\r
\r
- @retval TRUE Get files from current dir successfully.\r
- @retval FALSE Can't get files from current dir.\r
+ @retval EFI_SUCCESS Get files from current dir successfully.\r
+ @return Other value if can't get files from current dir.\r
\r
**/\r
EFI_STATUS\r
All valid handles in the system except those consume SimpleFs, LoadFile\r
are stored in DriverMenu for future use.\r
\r
- @param VOID \r
+ \r
\r
@retval EFI_SUCCESS The function complets successfully.\r
@return Other value if failed to build the DriverMenu.\r
Build the BootOptionMenu according to BootOrder Variable.\r
This Routine will access the Boot#### to get EFI_LOAD_OPTION.\r
\r
- @param None\r
+ @param CallbackData The BMM context data.\r
\r
@return The number of the Var Boot####.\r
\r
/**\r
Build the LegacyFDMenu LegacyHDMenu LegacyCDMenu according to LegacyBios.GetBbsInfo().\r
\r
- @param VOID\r
+ \r
\r
@retval EFI_SUCCESS The function complete successfully.\r
@retval EFI_OUT_OF_RESOURCES No enough memory to complete this function.\r
/**\r
Free out resouce allocated from Legacy Boot Options.\r
\r
- @param VOID.\r
+ .\r
\r
- @return VOID.\r
+ .\r
\r
**/\r
VOID\r
);\r
\r
/**\r
- Free resources allocated in Allocate Rountine\r
+ Free resources allocated in Allocate Rountine.\r
\r
@param FreeMenu Menu to be freed\r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
\r
Get the Option Number that has not been allocated for use.\r
\r
- @param VOID\r
+ \r
\r
@return The available Option Number.\r
\r
\r
Get the Option Number that is not in use.\r
\r
- @param VOID\r
+ \r
\r
@return The unused Option Number.\r
\r
// Locate all serial io devices for console\r
//\r
/**\r
- Build a list containing all serial devices\r
-\r
+ Build a list containing all serial devices.\r
\r
- @param VOID EDES_TODO: Add parameter description\r
\r
- @return EDES_TODO: Add description for return value\r
+ @retval EFI_SUCCESS The function complete successfully.\r
+ @retval EFI_UNSUPPORTED No serial ports present.\r
\r
**/\r
EFI_STATUS\r
Build up ConsoleOutMenu, ConsoleInpMenu and ConsoleErrMenu\r
\r
\r
- @param VOID\r
+ \r
\r
@retval EFI_SUCCESS The function always complete successfully.\r
\r
\r
@param CallbackData The BMM context data.\r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
Free ConsoleOutMenu, ConsoleInpMenu and ConsoleErrMenu\r
\r
\r
- @param VOID EDES_TODO: Add parameter description\r
+ EDES_TODO: Add parameter description\r
\r
@retval EFI_SUCCESS The function always complete successfully.\r
**/\r
\r
@param DevicePath\r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
ChangeVariableDevicePath (\r
- EFI_DEVICE_PATH_PROTOCOL *DevicePath\r
-);\r
+ IN OUT EFI_DEVICE_PATH_PROTOCOL *DevicePath\r
+ )\r
+;\r
\r
/**\r
Update the multi-instance device path of Terminal Device based on\r
**/\r
EFI_STATUS\r
ChangeTerminalDevicePath (\r
- EFI_DEVICE_PATH_PROTOCOL *DevicePath,\r
- BOOLEAN ChangeTerminal\r
-);\r
+ IN OUT EFI_DEVICE_PATH_PROTOCOL *DevicePath,\r
+ IN BOOLEAN ChangeTerminal\r
+ );\r
//\r
// Variable operation by menu selection\r
//\r
make sure BootOrder is in valid state.\r
\r
\r
- @param VOID EDES_TODO: Add parameter description\r
+ EDES_TODO: Add parameter description\r
\r
@retval EFI_SUCCESS If all boot load option EFI Variables corresponding to \r
BM_LOAD_CONTEXT marked for deletion is deleted\r
scratch by content from BootOptionMenu is needed.\r
\r
\r
- @param VOID\r
+ \r
\r
@retval EFI_SUCCESS The boot order is updated successfully.\r
@return EFI_STATUS other than EFI_SUCCESS if failed to\r
make sure DriverOrder is in valid state.\r
\r
\r
- @param VOID\r
+ \r
\r
@retval EFI_SUCCESS Load Option is successfully updated.\r
@return Other value than EFI_SUCCESS if failed to update "Driver Order" EFI\r
needed.\r
\r
\r
- @param VOID\r
+ \r
\r
@retval EFI_SUCCESS The driver order is updated successfully.\r
@return EFI_STATUS other than EFI_SUCCESS if failed to\r
console device.\r
\r
\r
- @param VOID\r
+ \r
\r
@retval EFI_SUCCESS The function complete successfully.\r
@return The EFI variable can be saved. See gRT->SetVariable \r
console device.\r
\r
\r
- @param VOID\r
+ \r
\r
@retval EFI_SUCCESS The function complete successfully.\r
@return The EFI variable can be saved. See gRT->SetVariable \r
console device.\r
\r
\r
- @param VOID\r
+ \r
\r
@retval EFI_SUCCESS The function complete successfully.\r
@return The EFI variable can be saved. See gRT->SetVariable \r
based on the new BaudRate, Data Bits, parity and Stop Bits\r
set.\r
\r
- @param VOID\r
+ \r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
/**\r
Refresh the global UpdateData structure.\r
\r
- @param VOID\r
+ \r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
opcode deletion.\r
@param CallbackData The BMM context data.\r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
\r
@param CallbackData The BMM context data.\r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
\r
@param CallbackData The BMM context data.\r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
\r
@param CallbackData The BMM context data.\r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
\r
@param CallbackData The BMM context data.\r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
@param UpdatePageId The form ID.\r
@param CallbackData The BMM context data.\r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
\r
@param CallbackData The BMM context data.\r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
\r
@param CallbackData The BMM context data.\r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
\r
@param CallbackData The BMM context data.\r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
\r
@param CallbackData The BMM context data.\r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
\r
@param CallbackData The BMM context data.\r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
@param UpdatePageId The form ID. It also spefies the legacy device type.\r
@param CallbackData The BMM context data.\r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
UpdateSetLegacyDeviceOrderPage (\r
IN UINT16 UpdatePageId,\r
IN BMM_CALLBACK_DATA *CallbackData\r
-);\r
+ );\r
\r
\r
/**\r
/**\r
\r
Find the first instance of this Protocol\r
- in the system and return it's interface\r
+ in the system and return it's interface.\r
\r
\r
@param ProtocolGuid Provides the protocol to search for\r
\r
@param Name String part of EFI variable name\r
@param VendorGuid GUID part of EFI variable name\r
- @param VariableSize Returns the size of the EFI variable that was read\r
+ @param VarSize Returns the size of the EFI variable that was read\r
\r
@return Dynamically allocated memory that contains a copy of the EFI variable.\r
@return Caller is responsible freeing the buffer.\r
@param VarName - A Null-terminated Unicode string that is\r
the name of the vendor's variable.\r
\r
- @param VendorGuid - A unique identifier for the vendor.\r
+ @param VarGuid - A unique identifier for the vendor.\r
\r
@retval EFI_SUCCESS The variable was found and removed\r
@retval EFI_UNSUPPORTED The variable store was inaccessible\r
@param OptionIndex Returns the index number (#### in Boot####).\r
@param OptionSize Return the size of the Boot### variable.\r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID *\r
IN UINTN DeviceType,\r
OUT UINTN *OptionIndex,\r
OUT UINTN *OptionSize\r
- );\r
+ );\r
\r
/**\r
- Initialize the Boot Maintenance Utitliy\r
-\r
+ Initialize the Boot Maintenance Utitliy.\r
\r
- @param VOID EDES_TODO: Add parameter description\r
-\r
- @retval EFI_SUCCESS utility ended successfully\r
- @retval others contain some errors\r
+ @retval EFI_SUCCESS utility ended successfully.\r
+ @retval others contain some errors.\r
\r
**/\r
EFI_STATUS\r
Start boot maintenance manager\r
\r
\r
- @param VOID\r
+ \r
\r
@retval EFI_SUCCESS If BMM is invoked successfully.\r
@return Other value if BMM return unsuccessfully.\r
Intialize all the string depositories.\r
\r
\r
- @param VOID\r
+ \r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
Reclaim string depositories by moving the current node pointer to list head..\r
\r
\r
- @param VOID \r
+ \r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
Release resource for all the string depositories.\r
\r
\r
- @param VOID\r
+ \r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
@param Private The BMM context data.\r
@param CurrentFakeNVMap The current Fack NV Map.\r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
@param Private The BMM context data.\r
@param NewPageId The original page ID.\r
\r
- @return VOID\r
+ \r
\r
**/\r
VOID\r
of the file to be boot from.\r
\r
@retval EFI_SUCCESS The function completed successfull.\r
- @retun Other value if the boot from the file fails.\r
+ @return Other value if the boot from the file fails.\r
\r
**/\r
EFI_STATUS\r
@param CallbackData The BMM context data.\r
\r
@retval EFI_SUCCESS If function complete successfully.\r
- @retturn Other value if the Setup Browser process BMM's pages and\r
+ @return Other value if the Setup Browser process BMM's pages and\r
return unsuccessfully.\r
\r
**/\r