X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=IntelFrameworkModulePkg%2FUniversal%2FBdsDxe%2FBootMaint%2FBootMaint.h;h=673324475ca4beadccc4f6f32b52db3fb72ea658;hp=1a6f076ecc0c80d9ad9a6bacbebdfb6f27726df6;hb=180a5a35cb49699bd249dee19e41cee34c856a58;hpb=dedfc3bbc97e726e259bfadbdf22502133faa8a8 diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BootMaint.h b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BootMaint.h index 1a6f076ecc..673324475c 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BootMaint.h +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BootMaint.h @@ -1,8 +1,8 @@ /** @file Header file for boot maintenance module. -Copyright (c) 2004 - 2008, Intel Corporation.
-All rights reserved. This program and the accompanying materials +Copyright (c) 2004 - 2009, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -55,12 +55,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. // #define VAR_FLAG EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_NON_VOLATILE -// -// Define Maxmim characters that will be accepted -// -#define MAX_CHAR 480 -#define MAX_CHAR_SIZE (MAX_CHAR * 2) - extern EFI_GUID mBootMaintGuid; extern EFI_GUID mFileExplorerGuid; extern CHAR16 mFileExplorerStorageName[]; @@ -93,53 +87,25 @@ extern UINT8 FEBin[]; // typedef UINT8 BBS_TYPE; -typedef enum { - PC_ANSI = 0, - VT_100, - VT_100_PLUS, - VT_UTF8 +typedef enum _TYPE_OF_TERMINAL { + TerminalTypePcAnsi = 0, + TerminalTypeVt100, + TerminalTypeVt100Plus, + TerminalTypeVtUtf8 } TYPE_OF_TERMINAL; -typedef enum { - COM1 = 0, - COM2, - UNKNOW_COM -} TYPE_OF_COM; - -typedef enum { - CONIN = 0, - CONOUT, - CONERR, - UNKNOWN_CON -} TYPE_OF_CON; - -typedef enum { - BAUDRATE = 0, - DATABITS, - PARITY, - STOPBITS, - UNKNOW_ATTR -} TYPE_OF_ATTRIBUTE; - -typedef enum { - MANNER_GOTO = 0, - MANNER_CHECK, - MANNER_ONEOF, - MANNER_USER_DEFINE -} TYPE_OF_UPATE_MANNER; - -typedef enum { - INACTIVE_STATE = 0, - BOOT_FROM_FILE_STATE, - ADD_BOOT_OPTION_STATE, - ADD_DRIVER_OPTION_STATE, - UNKNOWN_STATE +typedef enum _FILE_EXPLORER_STATE { + FileExplorerStateInActive = 0, + FileExplorerStateBootFromFile, + FileExplorerStateAddBootOption, + FileExplorerStateAddDriverOptionState, + FileExplorerStateUnknown } FILE_EXPLORER_STATE; -typedef enum { - FILE_SYSTEM, - DIRECTORY, - UNKNOWN_CONTEXT +typedef enum _FILE_EXPLORER_DISPLAY_CONTEXT { + FileExplorerDisplayFileSystem, + FileExplorerDisplayDirectory, + FileExplorerDisplayUnknown } FILE_EXPLORER_DISPLAY_CONTEXT; // @@ -436,10 +402,12 @@ typedef struct { FILE_EXPLORER_NV_DATA FeFakeNvData; } BMM_CALLBACK_DATA; -typedef struct _STRING_LIST_NODE { +typedef struct _STRING_LIST_NODE STRING_LIST_NODE; + +struct _STRING_LIST_NODE { EFI_STRING_ID StringToken; - struct _STRING_LIST_NODE *Next; -} STRING_LIST_NODE; + STRING_LIST_NODE *Next; +}; typedef struct _STRING_DEPOSITORY { UINTN TotalNodeNumber; @@ -623,6 +591,20 @@ BOpt_IsEfiApp ( Get the Option Number that has not been allocated for use. + @param Type The type of Option. + + @return The available Option Number. + +**/ +UINT16 +BOpt_GetOptionNumber ( + CHAR16 *Type + ); + +/** + + Get the Option Number for Boot#### that does not used. + @return The available Option Number. **/ @@ -633,9 +615,9 @@ BOpt_GetBootOptionNumber ( /** - Get the Option Number that is not in use. +Get the Option Number for Driver#### that does not used. - @return The unused Option Number. +@return The unused Option Number. **/ UINT16