summaryrefslogtreecommitdiff
path: root/OptionRomPkg/DriverHealthDxe/DriverHealthVfr.Vfr
diff options
context:
space:
mode:
authorgikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>2009-12-04 03:49:48 +0000
committergikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>2009-12-04 03:49:48 +0000
commit432cf05bcffa00c084bff8a8fcffb477c3227aa4 (patch)
tree2e59b859708b800adc0c6b82b9a817f8019c2809 /OptionRomPkg/DriverHealthDxe/DriverHealthVfr.Vfr
parentbaf46e70a58d125b30b62fa24a59dd321b283fdc (diff)
A sample driver produces driver health protocol. This driver use DiskIO driver as a template.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9516 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OptionRomPkg/DriverHealthDxe/DriverHealthVfr.Vfr')
-rw-r--r--OptionRomPkg/DriverHealthDxe/DriverHealthVfr.Vfr60
1 files changed, 60 insertions, 0 deletions
diff --git a/OptionRomPkg/DriverHealthDxe/DriverHealthVfr.Vfr b/OptionRomPkg/DriverHealthDxe/DriverHealthVfr.Vfr
new file mode 100644
index 000000000..2d7d4db9d
--- /dev/null
+++ b/OptionRomPkg/DriverHealthDxe/DriverHealthVfr.Vfr
@@ -0,0 +1,60 @@
+// *++
+//
+// Copyright (c) 2009, Intel Corporation
+// All rights reserved. This program and the accompanying materials
+// are licensed and made available under the terms and conditions of the BSD License
+// which accompanies this distribution. The full text of the license may be found at
+// http://opensource.org/licenses/bsd-license.php
+//
+// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+//
+// Module Name:
+//
+// Vfr.vfr
+//
+// Abstract:
+//
+// Sample Setup formset
+//
+// Revision History:
+//
+// --*/
+
+
+
+#include "NVDataStruc.h"
+#include <Guid/HiiPlatformSetupFormset.h>
+
+formset
+ guid = EFI_CALLER_ID_GUID,
+ title = STRING_TOKEN(STR_FORM_SET_TITLE),
+ help = STRING_TOKEN(STR_FORM_SET_TITLE_HELP),
+ classguid = EFI_HII_DRIVER_HEALTH_FORMSET_GUID,
+
+ //
+ // Define a Buffer Storage (EFI_IFR_VARSTORE)
+ //
+ varstore DISK_IO_NV_DATA, // This is the data structure type
+ varid = 0x1234, // Optional VarStore ID
+ name = Config, // Define referenced name in vfr
+ guid = EFI_CALLER_ID_GUID; // GUID of this buffer storage
+
+ form formid = 1,
+
+ title = STRING_TOKEN(STR_TITLE);
+ //
+ // Define a numeric
+ //
+ numeric varid = Config.ConfigGood,
+ prompt = STRING_TOKEN(STR_CONFIG_CONTROLLER_LIST),
+ help = STRING_TOKEN(STR_CONFIG_CONTROLLER_LIST_HELP),
+ flags = DISPLAY_UINT_DEC,
+ key = 0x1236,
+ minimum = 0,
+ maximum = 0xff,
+ default = 0,
+ endnumeric;
+ endform;
+
+endformset;