diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-11 01:59:35 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-11 01:59:35 +0000 |
commit | 38ebfecb6279417259db116d6b03cdcb03ecc6bb (patch) | |
tree | e8bb7b3d461d542338cb71794b66ba75940a19d3 /MdeModulePkg/Universal/DriverSampleDxe/DriverSample.h | |
parent | a6d7123ebc57243b405fa12cf5a6e2da9eb73895 (diff) | |
download | edk2-platforms-38ebfecb6279417259db116d6b03cdcb03ecc6bb.tar.xz |
Add example of Name/Value pair var store to DriverSample
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9975 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/DriverSampleDxe/DriverSample.h')
-rw-r--r-- | MdeModulePkg/Universal/DriverSampleDxe/DriverSample.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.h b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.h index ebe40a2948..86f41a107b 100644 --- a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.h +++ b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.h @@ -48,13 +48,6 @@ Revision History #include "NVDataStruc.h"
//
-// This is the generated <AltResp> for defaults defined in VFR
-//
-extern UINT8 VfrMyIfrNVDataDefault0000[];
-extern UINT8 VfrMyIfrNVDataDefault0001[];
-extern UINT8 VfrMyIfrNVDataBlockName[];
-
-//
// This is the generated IFR binary data for each formset defined in VFR.
// This data array is ready to be used as input of HiiAddPackages() to
// create a packagelist (which contains Form packages, String packages, etc).
@@ -72,6 +65,11 @@ extern UINT8 DriverSampleStrings[]; #define DYNAMIC_ONE_OF_VAR_OFFSET OFFSET_OF (DRIVER_SAMPLE_CONFIGURATION, DynamicOneof)
#define DYNAMIC_ORDERED_LIST_VAR_OFFSET OFFSET_OF (DRIVER_SAMPLE_CONFIGURATION, DynamicOrderedList)
+//
+// Number of name in Name/Value storage
+//
+#define NAME_VALUE_NAME_NUMBER 3
+
#define DRIVER_SAMPLE_PRIVATE_SIGNATURE SIGNATURE_32 ('D', 'S', 'p', 's')
typedef struct {
@@ -83,6 +81,12 @@ typedef struct { UINT8 PasswordState;
//
+ // Name/Value storage Name list
+ //
+ EFI_STRING_ID NameStringId[NAME_VALUE_NAME_NUMBER];
+ EFI_STRING NameValueName[NAME_VALUE_NAME_NUMBER];
+
+ //
// Consumed protocol
//
EFI_HII_DATABASE_PROTOCOL *HiiDatabase;
|