X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=IntelFrameworkModulePkg%2FUniversal%2FBdsDxe%2FFrontPage.h;h=a9cc1eee06b5b1c766bf7763b8b4b96dc33e6479;hp=420a474e35d96ebed77313ef72a95d4bfc45e218;hb=2df686c67c7819e01a1487dd703faffef2b59dce;hpb=da96258f9e8df36a884b6c2be491a150cf8a46e4 diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.h b/IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.h index 420a474e35..a9cc1eee06 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.h +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.h @@ -1,8 +1,8 @@ /** @file FrontPage routines to handle the callbacks and browser calls -Copyright (c) 2004 - 2008, Intel Corporation.
-All rights reserved. This program and the accompanying materials +Copyright (c) 2004 - 2012, 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 @@ -20,6 +20,33 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include "BootMngr/BootManager.h" #include "String.h" + +// +// These are the VFR compiler generated data representing our VFR data. +// +extern UINT8 FrontPageVfrBin[]; + +extern EFI_FORM_BROWSER2_PROTOCOL *gFormBrowser2; + +extern UINTN gCallbackKey; +extern BOOLEAN gConnectAllHappened; + +// +// Boot video resolution and text mode. +// +extern UINT32 mBootHorizontalResolution; +extern UINT32 mBootVerticalResolution; +extern UINT32 mBootTextModeColumn; +extern UINT32 mBootTextModeRow; +// +// BIOS setup video resolution and text mode. +// +extern UINT32 mSetupTextModeColumn; +extern UINT32 mSetupTextModeRow; +extern UINT32 mSetupHorizontalResolution; +extern UINT32 mSetupVerticalResolution; + + #define ONE_SECOND 10000000 /// @@ -45,11 +72,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #define FRONT_PAGE_KEY_BOOT_MAINTAIN 0x9876 #define LABEL_SELECT_LANGUAGE 0x1000 - -#define FRONT_PAGE_FORMSET_GUID \ - { \ - 0x9e0c30bc, 0x3f06, 0x4ba6, {0x82, 0x88, 0x9, 0x17, 0x9b, 0x85, 0x5d, 0xbe} \ - } +#define LABEL_END 0xffff #define FRONT_PAGE_CALLBACK_DATA_SIGNATURE SIGNATURE_32 ('F', 'P', 'C', 'B') @@ -76,19 +99,6 @@ typedef struct { FRONT_PAGE_CALLBACK_DATA_SIGNATURE \ ) -// -// These are the VFR compiler generated data representing our VFR data. -// -extern UINT8 FrontPageVfrBin[]; - -extern EFI_HII_DATABASE_PROTOCOL *gHiiDatabase; -extern EFI_HII_STRING_PROTOCOL *gHiiString; -extern EFI_FORM_BROWSER2_PROTOCOL *gFormBrowser2; -extern EFI_HII_CONFIG_ROUTING_PROTOCOL *gHiiConfigRouting; - -extern UINTN gCallbackKey; -extern BOOLEAN gConnectAllHappened; - /** This function allows a caller to extract the current configuration for one or more named elements from the target driver. @@ -232,7 +242,7 @@ TimeCompare ( @param TimeoutDefault - The fault time out value before the system continue to boot. @param ConnectAllHappened - The indicater to check if the connect all have - already happended. + already happened. **/ VOID @@ -241,5 +251,22 @@ PlatformBdsEnterFrontPage ( IN BOOLEAN ConnectAllHappened ); +/** + This function will change video resolution and text mode + according to defined setup mode or defined boot mode + + @param IsSetupMode Indicate mode is changed to setup mode or boot mode. + + @retval EFI_SUCCESS Mode is changed successfully. + @retval Others Mode failed to be changed. + +**/ + +EFI_STATUS +EFIAPI +BdsSetConsoleMode ( + BOOLEAN IsSetupMode + ); + #endif // _FRONT_PAGE_H_