]> git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/Tcg/TcgConfigDxe/TcgConfig.vfr
SecurityPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / SecurityPkg / Tcg / TcgConfigDxe / TcgConfig.vfr
1 /** @file
2 VFR file used by the TCG configuration component.
3
4 Copyright (c) 2011 - 2019, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #include "TcgConfigNvData.h"
10
11 formset
12 guid = TCG_CONFIG_FORM_SET_GUID,
13 title = STRING_TOKEN(STR_TPM_TITLE),
14 help = STRING_TOKEN(STR_TPM_HELP),
15 classguid = EFI_HII_PLATFORM_SETUP_FORMSET_GUID,
16
17 varstore TCG_CONFIGURATION,
18 varid = TCG_CONFIGURATION_VARSTORE_ID,
19 name = TCG_CONFIGURATION,
20 guid = TCG_CONFIG_FORM_SET_GUID;
21
22 form formid = TCG_CONFIGURATION_FORM_ID,
23 title = STRING_TOKEN(STR_TPM_TITLE);
24
25 subtitle text = STRING_TOKEN(STR_NULL);
26
27 text
28 help = STRING_TOKEN(STR_TPM_STATE_HELP),
29 text = STRING_TOKEN(STR_TPM_STATE_PROMPT),
30 text = STRING_TOKEN(STR_TPM_STATE_CONTENT);
31
32 subtitle text = STRING_TOKEN(STR_NULL);
33
34 oneof varid = TCG_CONFIGURATION.TpmOperation,
35 questionid = KEY_TPM_ACTION,
36 prompt = STRING_TOKEN(STR_TPM_OPERATION),
37 help = STRING_TOKEN(STR_TPM_OPERATION_HELP),
38 flags = INTERACTIVE | RESET_REQUIRED,
39 //
40 // Default the form to NO ACTION to allow toggling other options
41 //
42 option text = STRING_TOKEN(STR_NO_ACTION), value = PHYSICAL_PRESENCE_NO_ACTION, flags = DEFAULT;
43 //
44 // Disable (TPM_ORD_PhysicalDisable) command is not available when disabled.
45 // Activate/deactivate (TPM_ORD_physicalSetDeactivated) command is not available when disabled.
46 //
47 suppressif ideqval TCG_CONFIGURATION.TpmEnable == 0;
48 option text = STRING_TOKEN(STR_DISABLE), value = PHYSICAL_PRESENCE_DISABLE, flags = 0;
49 option text = STRING_TOKEN(STR_TPM_ACTIVATE), value = PHYSICAL_PRESENCE_ACTIVATE, flags = 0;
50 option text = STRING_TOKEN(STR_TPM_DEACTIVATE), value = PHYSICAL_PRESENCE_DEACTIVATE, flags = 0;
51 option text = STRING_TOKEN(STR_TPM_DEACTIVATE_DISABLE), value = PHYSICAL_PRESENCE_DEACTIVATE_DISABLE, flags = 0;
52 endif
53 //
54 // Clear (TPM_ORD_ForceClear) command is not available when disabled or deactivated.
55 //
56 suppressif ideqval TCG_CONFIGURATION.TpmEnable == 0 OR
57 ideqval TCG_CONFIGURATION.TpmActivate == 0;
58 option text = STRING_TOKEN(STR_TPM_CLEAR), value = PHYSICAL_PRESENCE_CLEAR, flags = 0;
59 option text = STRING_TOKEN(STR_TPM_CLEAR_ENABLE_ACTIVATE), value = PHYSICAL_PRESENCE_CLEAR_ENABLE_ACTIVATE, flags = 0;
60 endif
61
62 option text = STRING_TOKEN(STR_ENABLE), value = PHYSICAL_PRESENCE_ENABLE, flags = 0;
63 option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE, flags = 0;
64 option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE_CLEAR), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR, flags = 0;
65 option text = STRING_TOKEN(STR_TPM_ENABLE_ACTIVATE_CLEAR_E_A), value = PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR_ENABLE_ACTIVATE, flags = 0;
66 endoneof;
67
68 subtitle text = STRING_TOKEN(STR_NULL);
69
70 endform;
71
72 endformset;