]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Tcg/TrEEConfig/TrEEConfig.vfr
Add TPM2 implementation.
[mirror_edk2.git] / SecurityPkg / Tcg / TrEEConfig / TrEEConfig.vfr
diff --git a/SecurityPkg/Tcg/TrEEConfig/TrEEConfig.vfr b/SecurityPkg/Tcg/TrEEConfig/TrEEConfig.vfr
new file mode 100644 (file)
index 0000000..74e2363
--- /dev/null
@@ -0,0 +1,67 @@
+/** @file\r
+  VFR file used by the TREE configuration component.\r
+\r
+Copyright (c) 2013, 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
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#include "TrEEConfigNvData.h"\r
+\r
+formset\r
+  guid      = TREE_CONFIG_FORM_SET_GUID,\r
+  title     = STRING_TOKEN(STR_TREE_TITLE),\r
+  help      = STRING_TOKEN(STR_TREE_HELP),\r
+  classguid = EFI_HII_PLATFORM_SETUP_FORMSET_GUID,\r
+\r
+  varstore TREE_CONFIGURATION,\r
+    varid = TREE_CONFIGURATION_VARSTORE_ID,\r
+    name  = TREE_CONFIGURATION,\r
+    guid  = TREE_CONFIG_FORM_SET_GUID;\r
+\r
+  form formid = TREE_CONFIGURATION_FORM_ID,\r
+    title = STRING_TOKEN(STR_TREE_TITLE);\r
+\r
+    subtitle text = STRING_TOKEN(STR_NULL);\r
+\r
+    text\r
+      help   = STRING_TOKEN(STR_TREE_DEVICE_STATE_HELP),\r
+      text   = STRING_TOKEN(STR_TREE_DEVICE_STATE_PROMPT),\r
+        text   = STRING_TOKEN(STR_TREE_DEVICE_STATE_CONTENT);\r
+\r
+    oneof varid  = TREE_CONFIGURATION.TpmDevice,\r
+          questionid = KEY_TPM_DEVICE,\r
+          prompt = STRING_TOKEN(STR_TREE_DEVICE_PROMPT),\r
+          help   = STRING_TOKEN(STR_TREE_DEVICE_HELP),\r
+          flags  = INTERACTIVE,\r
+            option text = STRING_TOKEN(STR_TREE_TPM_DISABLE),      value = TPM_DEVICE_NULL,         flags = RESET_REQUIRED;\r
+            option text = STRING_TOKEN(STR_TREE_TPM_1_2),          value = TPM_DEVICE_1_2,          flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;\r
+            option text = STRING_TOKEN(STR_TREE_TPM_2_0_DTPM),     value = TPM_DEVICE_2_0_DTPM,     flags = RESET_REQUIRED;\r
+    endoneof;\r
+\r
+    subtitle text = STRING_TOKEN(STR_NULL);\r
+\r
+    suppressif ideqvallist TREE_CONFIGURATION.TpmDevice == TPM_DEVICE_NULL TPM_DEVICE_1_2;\r
+\r
+    subtitle text = STRING_TOKEN(STR_NULL);\r
+    subtitle text = STRING_TOKEN(STR_TREE_PP_OPERATION);\r
+\r
+    oneof varid  = TREE_CONFIGURATION.Tpm2Operation,\r
+          prompt = STRING_TOKEN(STR_TREE_OPERATION),\r
+          help   = STRING_TOKEN(STR_TREE_OPERATION_HELP),\r
+          flags  = INTERACTIVE,\r
+            option text = STRING_TOKEN(STR_TREE_NO_ACTION), value = TREE_PHYSICAL_PRESENCE_NO_ACTION, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;\r
+            option text = STRING_TOKEN(STR_TREE_CLEAR), value = TREE_PHYSICAL_PRESENCE_CLEAR_CONTROL_CLEAR, flags = RESET_REQUIRED;\r
+    endoneof;\r
+\r
+    endif;\r
+\r
+  endform;\r
+\r
+endformset;\r