]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.h
IntelFrameworkModulePkg: Clean up source files
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / BdsDxe / FrontPage.h
index 420a474e35d96ebed77313ef72a95d4bfc45e218..bc2c0612d0495630361d56a1a361e15c8078f80d 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   FrontPage routines to handle the callbacks and browser calls\r
 \r
-Copyright (c) 2004 - 2008, Intel Corporation. <BR>\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
+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
 http://opensource.org/licenses/bsd-license.php\r
@@ -20,6 +20,33 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include "BootMngr/BootManager.h"\r
 #include "String.h"\r
 \r
+\r
+//\r
+// These are the VFR compiler generated data representing our VFR data.\r
+//\r
+extern UINT8  FrontPageVfrBin[];\r
+\r
+extern EFI_FORM_BROWSER2_PROTOCOL      *gFormBrowser2;\r
+\r
+extern UINTN    gCallbackKey;\r
+extern BOOLEAN  gConnectAllHappened;\r
+\r
+//\r
+// Boot video resolution and text mode.\r
+//\r
+extern UINT32    mBootHorizontalResolution;\r
+extern UINT32    mBootVerticalResolution;\r
+extern UINT32    mBootTextModeColumn;\r
+extern UINT32    mBootTextModeRow;\r
+//\r
+// BIOS setup video resolution and text mode.\r
+//\r
+extern UINT32    mSetupTextModeColumn;\r
+extern UINT32    mSetupTextModeRow;\r
+extern UINT32    mSetupHorizontalResolution;\r
+extern UINT32    mSetupVerticalResolution;\r
+\r
+\r
 #define ONE_SECOND  10000000\r
 \r
 ///\r
@@ -45,11 +72,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define FRONT_PAGE_KEY_BOOT_MAINTAIN   0x9876\r
 \r
 #define LABEL_SELECT_LANGUAGE          0x1000\r
-\r
-#define FRONT_PAGE_FORMSET_GUID \\r
-  { \\r
-    0x9e0c30bc, 0x3f06, 0x4ba6, {0x82, 0x88, 0x9, 0x17, 0x9b, 0x85, 0x5d, 0xbe} \\r
-  }\r
+#define LABEL_END                      0xffff\r
 \r
 #define FRONT_PAGE_CALLBACK_DATA_SIGNATURE  SIGNATURE_32 ('F', 'P', 'C', 'B')\r
 \r
@@ -76,19 +99,6 @@ typedef struct {
       FRONT_PAGE_CALLBACK_DATA_SIGNATURE \\r
       )\r
 \r
-//\r
-// These are the VFR compiler generated data representing our VFR data.\r
-//\r
-extern UINT8  FrontPageVfrBin[];\r
-\r
-extern EFI_HII_DATABASE_PROTOCOL       *gHiiDatabase;\r
-extern EFI_HII_STRING_PROTOCOL         *gHiiString;\r
-extern EFI_FORM_BROWSER2_PROTOCOL      *gFormBrowser2;\r
-extern EFI_HII_CONFIG_ROUTING_PROTOCOL *gHiiConfigRouting;\r
-\r
-extern UINTN    gCallbackKey;\r
-extern BOOLEAN  gConnectAllHappened;\r
-\r
 /**\r
   This function allows a caller to extract the current configuration for one\r
   or more named elements from the target driver.\r
@@ -206,23 +216,6 @@ GetProducerString (
   OUT     CHAR16                    **String\r
   );\r
 \r
-/**\r
-  Compare two EFI_TIME data.\r
-\r
-\r
-  @param FirstTime       - A pointer to the first EFI_TIME data.\r
-  @param SecondTime      - A pointer to the second EFI_TIME data.\r
-\r
-  @retval  TRUE              The FirstTime is not later than the SecondTime.\r
-  @retval  FALSE             The FirstTime is later than the SecondTime.\r
-\r
-**/\r
-BOOLEAN\r
-TimeCompare (\r
-  IN EFI_TIME               *FirstTime,\r
-  IN EFI_TIME               *SecondTime\r
-  );\r
-\r
 /**\r
   This function is the main entry of the platform setup entry.\r
   The function will present the main menu of the system setup,\r
@@ -232,7 +225,7 @@ TimeCompare (
   @param TimeoutDefault  - The fault time out value before the system\r
                          continue to boot.\r
   @param ConnectAllHappened - The indicater to check if the connect all have\r
-                         already happended.\r
+                         already happened.\r
 \r
 **/\r
 VOID\r
@@ -241,5 +234,21 @@ PlatformBdsEnterFrontPage (
   IN BOOLEAN                ConnectAllHappened\r
   );\r
 \r
+/**\r
+  This function will change video resolution and text mode\r
+  according to defined setup mode or defined boot mode\r
+\r
+  @param  IsSetupMode   Indicate mode is changed to setup mode or boot mode.\r
+\r
+  @retval  EFI_SUCCESS  Mode is changed successfully.\r
+  @retval  Others             Mode failed to be changed.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+BdsSetConsoleMode (\r
+  BOOLEAN  IsSetupMode\r
+  );\r
+\r
 #endif // _FRONT_PAGE_H_\r
 \r