]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/PlatformDxe/PlatformForms.vfr
IntelFsp2Pkg/SplitFspBin.py: Support rebasing 1.x binary.
[mirror_edk2.git] / OvmfPkg / PlatformDxe / PlatformForms.vfr
index e9ae0de057cb2b6f4d620c29919010c0f8da3731..59520ef9d4e14149edcd155a84a0c92e760be40a 100644 (file)
@@ -3,14 +3,7 @@
 // Copyright (C) 2014, Red Hat, Inc.\r
 // Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
 //\r
-// This program and the accompanying materials are licensed and made available\r
-// under the terms and conditions of the BSD License which accompanies this\r
-// distribution. The full text of the license may be found at\r
-// http://opensource.org/licenses/bsd-license.php\r
-//\r
-// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR\r
-// IMPLIED.\r
+// SPDX-License-Identifier: BSD-2-Clause-Patent\r
 //\r
 // Module Name:\r
 //\r
@@ -30,9 +23,45 @@ formset
   title = STRING_TOKEN(STR_FORMSET_TITLE),\r
   help  = STRING_TOKEN(STR_FORMSET_HELP),\r
 \r
+  varstore MAIN_FORM_STATE,\r
+    varid = FORMSTATEID_MAIN_FORM,\r
+    name  = MainFormState,\r
+    guid  = OVMF_PLATFORM_CONFIG_GUID;\r
+\r
   form\r
     formid = FORMID_MAIN_FORM,\r
     title  = STRING_TOKEN(STR_MAIN_FORM_TITLE);\r
+\r
+    //\r
+    // Display the current preference in a read-only string field.\r
+    //\r
+    string\r
+      varid      = MainFormState.CurrentPreferredResolution,\r
+      questionid = QUESTION_RES_CUR,\r
+      prompt     = STRING_TOKEN(STR_RES_CUR),\r
+      help       = STRING_TOKEN(STR_RES_CUR_HELP),\r
+      flags      = READ_ONLY,\r
+      minsize    = 0,\r
+      maxsize    = MAXSIZE_RES_CUR,\r
+    endstring;\r
+\r
+    //\r
+    // We'll dynamically generate a one-of-many selection at this label.\r
+    //\r
+    label LABEL_RES_NEXT;\r
+\r
+    text\r
+      help  = STRING_TOKEN(STR_SAVE_EXIT),\r
+      text  = STRING_TOKEN(STR_SAVE_EXIT),\r
+      flags = INTERACTIVE,\r
+      key   = QUESTION_SAVE_EXIT;\r
+\r
+    text\r
+      help  = STRING_TOKEN(STR_DISCARD_EXIT),\r
+      text  = STRING_TOKEN(STR_DISCARD_EXIT),\r
+      flags = INTERACTIVE,\r
+      key   = QUESTION_DISCARD_EXIT;\r
+\r
   endform;\r
 \r
 endformset;\r