]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr
Add sample code for vfr opcode "guidop"
[mirror_edk2.git] / MdeModulePkg / Universal / DriverSampleDxe / Vfr.vfr
index fce22fef2fcfdc8234664aed79992b2fd0eb213a..d695ce6659fd83de885c37cf8217cf53db3c3015 100644 (file)
@@ -2,7 +2,7 @@
 //\r
 //    Sample Setup formset.\r
 //\r
-//  Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
+//  Copyright (c) 2004 - 2011, 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
@@ -141,6 +141,19 @@ formset
       flags  = INTERACTIVE,\r
       key    = 0x1238;\r
 \r
+    text\r
+      help   = STRING_TOKEN(STR_SAVE_CURRENT),\r
+      text   = STRING_TOKEN(STR_SAVE_CURRENT),\r
+        text   = STRING_TOKEN(STR_SAVE_CURRENT),\r
+      flags  = INTERACTIVE,\r
+      key    = 0x1243;\r
+\r
+    text\r
+      help   = STRING_TOKEN(STR_DISCARD_CURRENT_AND_EXIT),\r
+      text   = STRING_TOKEN(STR_DISCARD_CURRENT_AND_EXIT),\r
+        text   = STRING_TOKEN(STR_DISCARD_CURRENT_AND_EXIT),\r
+      flags  = INTERACTIVE,\r
+      key    = 0x1244;\r
     //\r
     // Define oneof (EFI_IFR_ONE_OF)\r
     //\r
@@ -470,6 +483,15 @@ formset
       prompt = STRING_TOKEN(STR_GOTO_FORM4), //FourthSetupPage  // this too has no end-op and basically it's a jump to a form ONLY\r
       help   = STRING_TOKEN(STR_GOTO_HELP);\r
 \r
+    guidop \r
+      guid = FORMSET_GUID,\r
+      datatype = MY_DATA2,\r
+        data.Field8  = 0x21, \r
+        data.Field16 = 0x2121,\r
+        data.OrderedList[0] = 0x21,        \r
+    endguidop;\r
+\r
+\r
   endform;\r
 \r
   suppressif ideqval MyIfrNVData.BootOrderLarge == 0;\r
@@ -530,6 +552,20 @@ formset
 \r
       enddate;\r
 \r
+      text\r
+        help   = STRING_TOKEN(STR_SAVE_CURRENT_AND_EXIT),\r
+        text   = STRING_TOKEN(STR_SAVE_CURRENT_AND_EXIT),\r
+          text   = STRING_TOKEN(STR_SAVE_CURRENT_AND_EXIT),\r
+        flags  = INTERACTIVE,\r
+        key    = 0x1241;\r
+\r
+      text\r
+        help   = STRING_TOKEN(STR_DISCARD_CURRENT),\r
+        text   = STRING_TOKEN(STR_DISCARD_CURRENT),\r
+          text   = STRING_TOKEN(STR_DISCARD_CURRENT),\r
+        flags  = INTERACTIVE,\r
+        key    = 0x1242;\r
+\r
       time    hour varid  = Time.Hours,         // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from\r
               prompt      = STRING_TOKEN(STR_TIME_PROMPT),\r
               help        = STRING_TOKEN(STR_TIME_HELP),\r