summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr')
-rw-r--r--MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr19
1 files changed, 10 insertions, 9 deletions
diff --git a/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr b/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr
index 799cdf2d3a..ed431a5e72 100644
--- a/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr
+++ b/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr
@@ -44,15 +44,6 @@
#define EFI_VARIABLE_READ_ONLY 0x00000008
//
-// NV data structure definition
-//
-typedef struct {
- UINT8 Field8;
- UINT16 Field16;
- UINT8 OrderedList[3];
-} MY_DATA2;
-
-//
// Labels definition
//
#define LABEL_1_VALUE 0x01
@@ -331,6 +322,16 @@ formset
endnumeric;
+ numeric varid = MyIfrNVData2.Field8, // Reference of MyIfrNVData2 storage
+ prompt = STRING_TOKEN(STR_MYIFRNVDATA2_HEX_PROMPT),
+ help = STRING_TOKEN(STR_MYIFRNVDATA2_HEX_HELP),
+ flags = DISPLAY_UINT_HEX, // Display in HEX format (if not specified, default is in decimal format)
+ minimum = 0,
+ maximum = 250,
+ default = 175,
+
+ endnumeric;
+
label LABEL_1_VALUE;
label LABEL_2_VALUE;