and manage the legacy boot option, all legacy boot option is getting from\r
the legacy BBS table.\r
\r
-Copyright (c) 2004 - 2008, Intel Corporation. <BR>\r
+Copyright (c) 2004 - 2009, Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
Print the BBS Table.\r
\r
@param LocalBbsTable The BBS table.\r
-\r
+ @param BbsCount The count of entry in BBS table.\r
**/\r
VOID\r
PrintBbsTable (\r
/** @file\r
The functions for Boot Maintainence Main menu.\r
\r
-Copyright (c) 2004 - 2008, Intel Corporation. <BR>\r
+Copyright (c) 2004 - 2009, Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
if (QuestionId < CONFIG_OPTION_OFFSET) {\r
switch (QuestionId) {\r
case KEY_VALUE_BOOT_FROM_FILE:\r
- Private->FeCurrentState = BOOT_FROM_FILE_STATE;\r
+ Private->FeCurrentState = FileExplorerStateBootFromFile;\r
\r
//\r
// Exit Bmm main formset to send File Explorer formset.\r
break;\r
\r
case FORM_BOOT_ADD_ID:\r
- Private->FeCurrentState = ADD_BOOT_OPTION_STATE;\r
+ Private->FeCurrentState = FileExplorerStateAddBootOption;\r
\r
//\r
// Exit Bmm main formset to send File Explorer formset.\r
break;\r
\r
case FORM_DRV_ADD_FILE_ID:\r
- Private->FeCurrentState = ADD_DRIVER_OPTION_STATE;\r
+ Private->FeCurrentState = FileExplorerStateAddDriverOptionState;\r
\r
//\r
// Exit Bmm main formset to send File Explorer formset.\r
BmmCallbackInfo->FeConfigAccess.ExtractConfig = FakeExtractConfig;\r
BmmCallbackInfo->FeConfigAccess.RouteConfig = FakeRouteConfig;\r
BmmCallbackInfo->FeConfigAccess.Callback = FileExplorerCallback;\r
- BmmCallbackInfo->FeCurrentState = INACTIVE_STATE;\r
- BmmCallbackInfo->FeDisplayContext = UNKNOWN_CONTEXT;\r
+ BmmCallbackInfo->FeCurrentState = FileExplorerStateInActive;\r
+ BmmCallbackInfo->FeDisplayContext = FileExplorerDisplayUnknown;\r
\r
//\r
// Install Device Path Protocol and Config Access protocol to driver handle\r
//\r
// When this Formset returns, check if we are going to explore files.\r
//\r
- if (INACTIVE_STATE != CallbackData->FeCurrentState) {\r
+ if (FileExplorerStateInActive != CallbackData->FeCurrentState) {\r
UpdateFileExplorer (CallbackData, 0);\r
\r
ActionRequest = EFI_BROWSER_ACTION_REQUEST_NONE;\r
EnableResetRequired ();\r
}\r
\r
- CallbackData->FeCurrentState = INACTIVE_STATE;\r
- CallbackData->FeDisplayContext = UNKNOWN_CONTEXT;\r
+ CallbackData->FeCurrentState = FileExplorerStateInActive;\r
+ CallbackData->FeDisplayContext = FileExplorerDisplayUnknown;\r
ReclaimStringDepository ();\r
} else {\r
break;\r
/** @file\r
Header file for boot maintenance module.\r
\r
-Copyright (c) 2004 - 2008, Intel Corporation. <BR>\r
+Copyright (c) 2004 - 2009, Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
//\r
typedef UINT8 BBS_TYPE;\r
\r
-typedef enum {\r
- PC_ANSI = 0,\r
- VT_100,\r
- VT_100_PLUS,\r
- VT_UTF8\r
+typedef enum _TYPE_OF_TERMINAL {\r
+ TerminalTypePcAnsi = 0,\r
+ TerminalTypeVt100,\r
+ TerminalTypeVt100Plus,\r
+ TerminalTypeVtUtf8\r
} TYPE_OF_TERMINAL;\r
\r
-typedef enum {\r
- COM1 = 0,\r
- COM2,\r
- UNKNOW_COM\r
-} TYPE_OF_COM;\r
-\r
-typedef enum {\r
- CONIN = 0,\r
- CONOUT,\r
- CONERR,\r
- UNKNOWN_CON\r
-} TYPE_OF_CON;\r
-\r
-typedef enum {\r
- BAUDRATE = 0,\r
- DATABITS,\r
- PARITY,\r
- STOPBITS,\r
- UNKNOW_ATTR\r
-} TYPE_OF_ATTRIBUTE;\r
-\r
-typedef enum {\r
- MANNER_GOTO = 0,\r
- MANNER_CHECK,\r
- MANNER_ONEOF,\r
- MANNER_USER_DEFINE\r
-} TYPE_OF_UPATE_MANNER;\r
-\r
-typedef enum {\r
- INACTIVE_STATE = 0,\r
- BOOT_FROM_FILE_STATE,\r
- ADD_BOOT_OPTION_STATE,\r
- ADD_DRIVER_OPTION_STATE,\r
- UNKNOWN_STATE\r
+typedef enum _FILE_EXPLORER_STATE {\r
+ FileExplorerStateInActive = 0,\r
+ FileExplorerStateBootFromFile,\r
+ FileExplorerStateAddBootOption,\r
+ FileExplorerStateAddDriverOptionState,\r
+ FileExplorerStateUnknown\r
} FILE_EXPLORER_STATE;\r
\r
-typedef enum {\r
- FILE_SYSTEM,\r
- DIRECTORY,\r
- UNKNOWN_CONTEXT\r
+typedef enum _FILE_EXPLORER_DISPLAY_CONTEXT {\r
+ FileExplorerDisplayFileSystem,\r
+ FileExplorerDisplayDirectory,\r
+ FileExplorerDisplayUnknown\r
} FILE_EXPLORER_DISPLAY_CONTEXT;\r
\r
//\r
FILE_EXPLORER_NV_DATA FeFakeNvData;\r
} BMM_CALLBACK_DATA;\r
\r
-typedef struct _STRING_LIST_NODE {\r
+typedef struct _STRING_LIST_NODE STRING_LIST_NODE;\r
+\r
+struct _STRING_LIST_NODE {\r
EFI_STRING_ID StringToken;\r
- struct _STRING_LIST_NODE *Next;\r
-} STRING_LIST_NODE;\r
+ STRING_LIST_NODE *Next;\r
+};\r
\r
typedef struct _STRING_DEPOSITORY {\r
UINTN TotalNodeNumber;\r
/** @file\r
handles console redirection from boot manager\r
\r
-Copyright (c) 2004 - 2008, Intel Corporation. <BR>\r
+Copyright (c) 2004 - 2009, Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
CopyMem (&TempGuid, &Vendor->Guid, sizeof (EFI_GUID));\r
\r
if (CompareGuid (&TempGuid, &TerminalTypeGuid[0])) {\r
- *Termi = PC_ANSI;\r
+ *Termi = TerminalTypePcAnsi;\r
IsTerminal = TRUE;\r
} else {\r
if (CompareGuid (&TempGuid, &TerminalTypeGuid[1])) {\r
- *Termi = VT_100;\r
+ *Termi = TerminalTypeVt100;\r
IsTerminal = TRUE;\r
} else {\r
if (CompareGuid (&TempGuid, &TerminalTypeGuid[2])) {\r
- *Termi = VT_100_PLUS;\r
+ *Termi = TerminalTypeVt100Plus;\r
IsTerminal = TRUE;\r
} else {\r
if (CompareGuid (&TempGuid, &TerminalTypeGuid[3])) {\r
- *Termi = VT_UTF8;\r
+ *Termi = TerminalTypeVtUtf8;\r
IsTerminal = TRUE;\r
} else {\r
IsTerminal = FALSE;\r
/** @file\r
File explorer related functions.\r
\r
-Copyright (c) 2004 - 2008, Intel Corporation. <BR>\r
+Copyright (c) 2004 - 2009, Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
continue;\r
}\r
\r
- if ((NewFileContext->IsDir) || (BOOT_FROM_FILE_STATE == CallbackData->FeCurrentState)) {\r
+ if ((NewFileContext->IsDir) || (FileExplorerStateBootFromFile == CallbackData->FeCurrentState)) {\r
//\r
- // Create Text opcode for directory, also create Text opcode for file in BOOT_FROM_FILE_STATE.\r
+ // Create Text opcode for directory, also create Text opcode for file in FileExplorerStateBootFromFile.\r
//\r
HiiCreateActionOpCode (\r
mStartOpCodeHandle,\r
);\r
} else {\r
//\r
- // Create Goto opcode for file in ADD_BOOT_OPTION_STATE or ADD_DRIVER_OPTION_STATE.\r
+ // Create Goto opcode for file in FileExplorerStateAddBootOption or FileExplorerStateAddDriverOptionState.\r
//\r
- if (ADD_BOOT_OPTION_STATE == CallbackData->FeCurrentState) {\r
+ if (FileExplorerStateAddBootOption == CallbackData->FeCurrentState) {\r
FormId = FORM_BOOT_ADD_DESCRIPTION_ID;\r
- } else if (ADD_DRIVER_OPTION_STATE == CallbackData->FeCurrentState) {\r
+ } else if (FileExplorerStateAddDriverOptionState == CallbackData->FeCurrentState) {\r
FormId = FORM_DRIVER_ADD_FILE_DESCRIPTION_ID;\r
}\r
\r
\r
FileOptionMask = (UINT16) (FILE_OPTION_MASK & KeyValue);\r
\r
- if (UNKNOWN_CONTEXT == CallbackData->FeDisplayContext) {\r
+ if (FileExplorerDisplayUnknown == CallbackData->FeDisplayContext) {\r
//\r
// First in, display file system.\r
//\r
\r
UpdateFileExplorePage (CallbackData, &FsOptionMenu);\r
\r
- CallbackData->FeDisplayContext = FILE_SYSTEM;\r
+ CallbackData->FeDisplayContext = FileExplorerDisplayFileSystem;\r
} else {\r
- if (FILE_SYSTEM == CallbackData->FeDisplayContext) {\r
+ if (FileExplorerDisplayFileSystem == CallbackData->FeDisplayContext) {\r
NewMenuEntry = BOpt_GetMenuEntry (&FsOptionMenu, FileOptionMask);\r
- } else if (DIRECTORY == CallbackData->FeDisplayContext) {\r
+ } else if (FileExplorerDisplayDirectory == CallbackData->FeDisplayContext) {\r
NewMenuEntry = BOpt_GetMenuEntry (&DirectoryMenu, FileOptionMask);\r
}\r
\r
- CallbackData->FeDisplayContext = DIRECTORY;\r
+ CallbackData->FeDisplayContext = FileExplorerDisplayDirectory;\r
\r
NewFileContext = (BM_FILE_CONTEXT *) NewMenuEntry->VariableContext;\r
\r
\r
} else {\r
switch (CallbackData->FeCurrentState) {\r
- case BOOT_FROM_FILE_STATE:\r
+ case FileExplorerStateBootFromFile:\r
//\r
// Here boot from file\r
//\r
ExitFileExplorer = TRUE;\r
break;\r
\r
- case ADD_BOOT_OPTION_STATE:\r
- case ADD_DRIVER_OPTION_STATE:\r
- if (ADD_BOOT_OPTION_STATE == CallbackData->FeCurrentState) {\r
+ case FileExplorerStateAddBootOption:\r
+ case FileExplorerStateAddDriverOptionState:\r
+ if (FileExplorerStateAddBootOption == CallbackData->FeCurrentState) {\r
FormId = FORM_BOOT_ADD_DESCRIPTION_ID;\r
} else {\r
FormId = FORM_DRIVER_ADD_FILE_DESCRIPTION_ID;\r
//\r
// Apply changes and exit formset\r
//\r
- if (ADD_BOOT_OPTION_STATE == Private->FeCurrentState) {\r
+ if (FileExplorerStateAddBootOption == Private->FeCurrentState) {\r
Status = Var_UpdateBootOption (Private, NvRamMap);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
\r
BOpt_GetBootOptions (Private);\r
CreateMenuStringToken (Private, Private->FeHiiHandle, &BootOptionMenu);\r
- } else if (ADD_DRIVER_OPTION_STATE == Private->FeCurrentState) {\r
+ } else if (FileExplorerStateAddDriverOptionState == Private->FeCurrentState) {\r
Status = Var_UpdateDriverOption (\r
Private,\r
Private->FeHiiHandle,\r
}\r
\r
/**\r
- Convert Processor Frequency Data to a string\r
+ Convert Processor Frequency Data to a string.\r
\r
@param ProcessorFrequency The frequency data to process\r
@param String The string that is created\r
/** @file\r
String support\r
\r
-Copyright (c) 2004 - 2008, Intel Corporation. <BR>\r
+Copyright (c) 2004 - 2009, Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
};\r
\r
/**\r
- Initialize HII global accessor for string support\r
+ Initialize HII global accessor for string support.\r
\r
**/\r
VOID\r
/** @file\r
String support\r
\r
-Copyright (c) 2004 - 2008, Intel Corporation. <BR>\r
+Copyright (c) 2004 - 2009, Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
);\r
\r
/**\r
- Initialize HII global accessor for string support\r
+ Initialize HII global accessor for string support.\r
\r
**/\r
VOID\r