]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Tcg/Tcg2Config/Tcg2Config.vfr
SecurityPkg Tcg2ConfigDxe: Typecast to (CHAR8*) as para of AsciiStrSize
[mirror_edk2.git] / SecurityPkg / Tcg / Tcg2Config / Tcg2Config.vfr
index 48e99430f3962e2a686c2f22769d57429b37e879..a1167137f2cc861e36b344267cf42103a2c98cfb 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   VFR file used by the TCG2 configuration component.\r
 \r
-Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2015 - 2017, 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
@@ -32,6 +32,12 @@ formset
     name  = TCG2_CONFIGURATION,\r
     guid  = TCG2_CONFIG_FORM_SET_GUID;\r
 \r
+  efivarstore TCG2_VERSION,\r
+    varid = TCG2_VERSION_VARSTORE_ID,\r
+    attribute = 0x03,  // EFI variable attribures  EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_NON_VOLATILE\r
+    name  = TCG2_VERSION,\r
+    guid  = TCG2_CONFIG_FORM_SET_GUID;\r
+\r
   form formid = TCG2_CONFIGURATION_FORM_ID,\r
     title = STRING_TOKEN(STR_TCG2_TITLE);\r
 \r
@@ -52,6 +58,14 @@ formset
     endoneof;\r
 \r
     suppressif ideqvallist TCG2_CONFIGURATION.TpmDevice == TPM_DEVICE_NULL TPM_DEVICE_1_2;\r
+\r
+    subtitle text = STRING_TOKEN(STR_NULL);\r
+\r
+    text\r
+      help   = STRING_TOKEN(STR_TPM2_ACPI_HID_HELP),\r
+      text   = STRING_TOKEN(STR_TPM2_ACPI_HID_PROMPT),\r
+        text   = STRING_TOKEN(STR_TPM2_ACPI_HID_CONTENT);\r
+\r
     text\r
       help   = STRING_TOKEN(STR_TCG2_DEVICE_INTERFACE_STATE_HELP),\r
       text   = STRING_TOKEN(STR_TCG2_DEVICE_INTERFACE_STATE_PROMPT),\r
@@ -96,6 +110,20 @@ formset
     subtitle text = STRING_TOKEN(STR_NULL);\r
     subtitle text = STRING_TOKEN(STR_TCG2_PP_OPERATION);\r
 \r
+    text\r
+      help   = STRING_TOKEN(STR_TCG2_PPI_VERSION_STATE_HELP),\r
+      text   = STRING_TOKEN(STR_TCG2_PPI_VERSION_STATE_PROMPT),\r
+        text   = STRING_TOKEN(STR_TCG2_PPI_VERSION_STATE_CONTENT);\r
+\r
+    oneof varid  = TCG2_VERSION.PpiVersion,\r
+          questionid = KEY_TCG2_PPI_VERSION,\r
+          prompt = STRING_TOKEN(STR_TCG2_PPI_VERSION_PROMPT),\r
+          help   = STRING_TOKEN(STR_TCG2_PPI_VERSION_HELP),\r
+          flags  = INTERACTIVE,\r
+            option text = STRING_TOKEN(STR_TCG2_PPI_VERSION_1_2), value = TCG2_PPI_VERSION_1_2, flags = RESET_REQUIRED;\r
+            option text = STRING_TOKEN(STR_TCG2_PPI_VERSION_1_3), value = TCG2_PPI_VERSION_1_3, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;\r
+    endoneof;\r
+\r
     oneof name = Tpm2Operation,\r
           questionid = KEY_TPM2_OPERATION,\r
           prompt = STRING_TOKEN(STR_TCG2_OPERATION),\r
@@ -154,7 +182,7 @@ formset
             questionid = KEY_TPM2_PCR_BANKS_REQUEST_0,\r
             prompt     = STRING_TOKEN(STR_TCG2_PCR_BANK_SHA1),\r
             help       = STRING_TOKEN(STR_TCG2_PCR_BANK_SHA1_HELP),\r
-            flags      = INTERACTIVE,\r
+            flags      = INTERACTIVE | RESET_REQUIRED,\r
             default    = 1,\r
     endcheckbox;\r
   endif;\r
@@ -164,7 +192,7 @@ formset
             questionid = KEY_TPM2_PCR_BANKS_REQUEST_1,\r
             prompt     = STRING_TOKEN(STR_TCG2_PCR_BANK_SHA256),\r
             help       = STRING_TOKEN(STR_TCG2_PCR_BANK_SHA256_HELP),\r
-            flags      = INTERACTIVE,\r
+            flags      = INTERACTIVE | RESET_REQUIRED,\r
             default    = 0,\r
     endcheckbox;\r
   endif;\r
@@ -174,7 +202,7 @@ formset
             questionid = KEY_TPM2_PCR_BANKS_REQUEST_2,\r
             prompt     = STRING_TOKEN(STR_TCG2_PCR_BANK_SHA384),\r
             help       = STRING_TOKEN(STR_TCG2_PCR_BANK_SHA384_HELP),\r
-            flags      = INTERACTIVE,\r
+            flags      = INTERACTIVE | RESET_REQUIRED,\r
             default    = 0,\r
     endcheckbox;\r
   endif;\r
@@ -184,7 +212,7 @@ formset
             questionid = KEY_TPM2_PCR_BANKS_REQUEST_3,\r
             prompt     = STRING_TOKEN(STR_TCG2_PCR_BANK_SHA512),\r
             help       = STRING_TOKEN(STR_TCG2_PCR_BANK_SHA512_HELP),\r
-            flags      = INTERACTIVE,\r
+            flags      = INTERACTIVE | RESET_REQUIRED,\r
             default    = 0,\r
     endcheckbox;\r
   endif;\r
@@ -194,7 +222,7 @@ formset
             questionid = KEY_TPM2_PCR_BANKS_REQUEST_4,\r
             prompt     = STRING_TOKEN(STR_TCG2_PCR_BANK_SM3_256),\r
             help       = STRING_TOKEN(STR_TCG2_PCR_BANK_SM3_256_HELP),\r
-            flags      = INTERACTIVE,\r
+            flags      = INTERACTIVE | RESET_REQUIRED,\r
             default    = 0,\r
     endcheckbox;\r
   endif;\r