]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr
MdeModulePkg/DriverSampleDxe: Refine the sample case for UNION type
[mirror_edk2.git] / MdeModulePkg / Universal / DriverSampleDxe / Vfr.vfr
index b1017d9fd07151e93a35a7b757a31bd5908faaa6..9d99dcf205e3b078f36e9bb273b2b150c3fb9894 100644 (file)
@@ -2,7 +2,7 @@
 //\r
 //    Sample Setup formset.\r
 //\r
 //\r
 //    Sample Setup formset.\r
 //\r
-//  Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>\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
 //  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
@@ -915,7 +915,7 @@ formset
     subtitle text = STRING_TOKEN(STR_SUBTITLE_TEXT2);\r
     subtitle text = STRING_TOKEN(STR_UNION_EFI_VARSTORE);\r
 \r
     subtitle text = STRING_TOKEN(STR_SUBTITLE_TEXT2);\r
     subtitle text = STRING_TOKEN(STR_UNION_EFI_VARSTORE);\r
 \r
-    numeric varid   = MyEfiUnionVar.ByteField,\r
+    numeric varid   = MyEfiUnionVar.UnionNumeric,\r
             prompt  = STRING_TOKEN(STR_UNION_BYTE_NUMERIC_PROMPT),\r
             help    = STRING_TOKEN(STR_UNION_BYTE_NUMERIC_HELP),\r
             minimum = 0,\r
             prompt  = STRING_TOKEN(STR_UNION_BYTE_NUMERIC_PROMPT),\r
             help    = STRING_TOKEN(STR_UNION_BYTE_NUMERIC_HELP),\r
             minimum = 0,\r
@@ -925,16 +925,6 @@ formset
             default = 8, defaultstore = MyManufactureDefault,\r
     endnumeric;\r
 \r
             default = 8, defaultstore = MyManufactureDefault,\r
     endnumeric;\r
 \r
-    numeric varid   = MyEfiUnionVar.BitField,\r
-            prompt  = STRING_TOKEN(STR_UNION_BIT_NUMERIC_PROMPT),\r
-            help    = STRING_TOKEN(STR_UNION_BIT_NUMERIC_HELP),\r
-            minimum = 0,\r
-            maximum = 20,\r
-            step    = 0,\r
-            default = 7, defaultstore = MyStandardDefault,\r
-            default = 8, defaultstore = MyManufactureDefault,\r
-    endnumeric;\r
-\r
     guidop\r
       guid = DRIVER_SAMPLE_FORMSET_GUID,\r
       datatype = MY_EFI_BITS_VARSTORE_DATA,\r
     guidop\r
       guid = DRIVER_SAMPLE_FORMSET_GUID,\r
       datatype = MY_EFI_BITS_VARSTORE_DATA,\r