summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-05-22 09:30:18 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-05-22 09:30:18 +0000
commit03836d005d57957f0aeb1244bd16e2dd1d1547f6 (patch)
tree7550625052a57ea45cdbbe357a5f22312e9c0041
parent6960e9ae7a4e63838da7628f60ef886ae3e77315 (diff)
downloadedk2-03836d005d57957f0aeb1244bd16e2dd1d1547f6.tar.gz
edk2-03836d005d57957f0aeb1244bd16e2dd1d1547f6.tar.bz2
edk2-03836d005d57957f0aeb1244bd16e2dd1d1547f6.zip
Add a reference of 2nd buffer storage in a formset.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5271 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdeModulePkg/Universal/DriverSampleDxe/NVDataStruc.h11
-rw-r--r--MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr19
-rw-r--r--MdeModulePkg/Universal/DriverSampleDxe/VfrStrings.unibin38072 -> 38446 bytes
3 files changed, 21 insertions, 9 deletions
diff --git a/MdeModulePkg/Universal/DriverSampleDxe/NVDataStruc.h b/MdeModulePkg/Universal/DriverSampleDxe/NVDataStruc.h
index 0ed3c8da71..6a1c728012 100644
--- a/MdeModulePkg/Universal/DriverSampleDxe/NVDataStruc.h
+++ b/MdeModulePkg/Universal/DriverSampleDxe/NVDataStruc.h
@@ -59,6 +59,17 @@ typedef struct {
UINT8 BootOrderLarge;
UINT8 DynamicCheck;
} DRIVER_SAMPLE_CONFIGURATION;
+
+//
+// 2nd NV data structure definition
+//
+typedef struct {
+ UINT8 Field8;
+ UINT16 Field16;
+ UINT8 OrderedList[3];
+} MY_DATA2;
+
+
#pragma pack()
#endif
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;
diff --git a/MdeModulePkg/Universal/DriverSampleDxe/VfrStrings.uni b/MdeModulePkg/Universal/DriverSampleDxe/VfrStrings.uni
index b065abd555..32e93b513c 100644
--- a/MdeModulePkg/Universal/DriverSampleDxe/VfrStrings.uni
+++ b/MdeModulePkg/Universal/DriverSampleDxe/VfrStrings.uni
Binary files differ