HddPassword.vfr 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. /** @file
  2. HDD Password Configuration Formset.
  3. Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #include "HddPasswordHiiDataStruc.h"
  7. formset
  8. guid = HDD_PASSWORD_CONFIG_GUID,
  9. title = STRING_TOKEN(STR_HDD_SECURITY_CONFIG),
  10. help = STRING_TOKEN(STR_HDD_SECURITY_CONFIG),
  11. classguid = EFI_HII_PLATFORM_SETUP_FORMSET_GUID,
  12. varstore HDD_PASSWORD_CONFIG,
  13. name = HDD_PASSWORD_CONFIG,
  14. guid = HDD_PASSWORD_CONFIG_GUID;
  15. form formid = FORMID_HDD_MAIN_FORM,
  16. title = STRING_TOKEN(STR_HDD_SECURITY_CONFIG);
  17. label HDD_DEVICE_ENTRY_LABEL;
  18. label HDD_DEVICE_LABEL_END;
  19. endform;
  20. form
  21. formid = FORMID_HDD_DEVICE_FORM,
  22. title = STRING_TOKEN(STR_HDD_SECURITY_HD);
  23. subtitle text = STRING_TOKEN(STR_SECURITY_HDD_PWD_DESC);
  24. subtitle text = STRING_TOKEN(STR_NULL);
  25. subtitle text = STRING_TOKEN(STR_SECURITY_HDD_BANNER_ONE);
  26. subtitle text = STRING_TOKEN(STR_SECURITY_HDD_BANNER_TWO);
  27. subtitle text = STRING_TOKEN(STR_SECURITY_HDD_BANNER_THREE);
  28. subtitle text = STRING_TOKEN(STR_SECURITY_HDD_BANNER_FOUR);
  29. subtitle text = STRING_TOKEN(STR_SECURITY_HDD_BANNER_FIVE);
  30. subtitle text = STRING_TOKEN(STR_NULL);
  31. subtitle text = STRING_TOKEN(STR_HDD_PASSWORD_CONFIG);
  32. subtitle text = STRING_TOKEN(STR_NULL);
  33. grayoutif TRUE;
  34. suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Supported == 0;
  35. text
  36. help = STRING_TOKEN(STR_EMPTY),
  37. text = STRING_TOKEN(STR_SEC_SUPPORTED),
  38. text = STRING_TOKEN(STR_YES),
  39. flags = 0,
  40. key = 0;
  41. endif;
  42. suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Supported == 1;
  43. text
  44. help = STRING_TOKEN(STR_EMPTY),
  45. text = STRING_TOKEN(STR_SEC_SUPPORTED),
  46. text = STRING_TOKEN(STR_NO),
  47. flags = 0,
  48. key = 0;
  49. endif;
  50. suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Enabled == 0;
  51. text
  52. help = STRING_TOKEN(STR_EMPTY),
  53. text = STRING_TOKEN(STR_SEC_ENABLED),
  54. text = STRING_TOKEN(STR_YES),
  55. flags = 0,
  56. key = 0;
  57. endif;
  58. suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Enabled == 1;
  59. text
  60. help = STRING_TOKEN(STR_EMPTY),
  61. text = STRING_TOKEN(STR_SEC_ENABLED),
  62. text = STRING_TOKEN(STR_NO),
  63. flags = 0,
  64. key = 0;
  65. endif;
  66. suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Locked == 0;
  67. text
  68. help = STRING_TOKEN(STR_EMPTY),
  69. text = STRING_TOKEN(STR_SEC_LOCKED),
  70. text = STRING_TOKEN(STR_YES),
  71. flags = 0,
  72. key = 0;
  73. endif;
  74. suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Locked == 1;
  75. text
  76. help = STRING_TOKEN(STR_EMPTY),
  77. text = STRING_TOKEN(STR_SEC_LOCKED),
  78. text = STRING_TOKEN(STR_NO),
  79. flags = 0,
  80. key = 0;
  81. endif;
  82. suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Frozen == 0;
  83. text
  84. help = STRING_TOKEN(STR_EMPTY),
  85. text = STRING_TOKEN(STR_SEC_FROZEN),
  86. text = STRING_TOKEN(STR_YES),
  87. flags = 0,
  88. key = 0;
  89. endif;
  90. suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.Frozen == 1;
  91. text
  92. help = STRING_TOKEN(STR_EMPTY),
  93. text = STRING_TOKEN(STR_SEC_FROZEN),
  94. text = STRING_TOKEN(STR_NO),
  95. flags = 0,
  96. key = 0;
  97. endif;
  98. suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.UserPasswordStatus == 0;
  99. text
  100. help = STRING_TOKEN(STR_EMPTY),
  101. text = STRING_TOKEN(STR_HDD_USER_PASSWORD_STS),
  102. text = STRING_TOKEN(STR_INSTALLED),
  103. flags = 0,
  104. key = 0;
  105. endif;
  106. suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.UserPasswordStatus == 1;
  107. text
  108. help = STRING_TOKEN(STR_EMPTY),
  109. text = STRING_TOKEN(STR_HDD_USER_PASSWORD_STS),
  110. text = STRING_TOKEN(STR_NOT_INSTALLED),
  111. flags = 0,
  112. key = 0;
  113. endif;
  114. suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.MasterPasswordStatus == 0;
  115. text
  116. help = STRING_TOKEN(STR_EMPTY),
  117. text = STRING_TOKEN(STR_HDD_MASTER_PASSWORD_STS),
  118. text = STRING_TOKEN(STR_INSTALLED),
  119. flags = 0,
  120. key = 0;
  121. endif;
  122. suppressif ideqvallist HDD_PASSWORD_CONFIG.SecurityStatus.MasterPasswordStatus == 1;
  123. text
  124. help = STRING_TOKEN(STR_EMPTY),
  125. text = STRING_TOKEN(STR_HDD_MASTER_PASSWORD_STS),
  126. text = STRING_TOKEN(STR_NOT_INSTALLED),
  127. flags = 0,
  128. key = 0;
  129. endif;
  130. endif;
  131. subtitle text = STRING_TOKEN(STR_NULL);
  132. grayoutif ideqval HDD_PASSWORD_CONFIG.SecurityStatus.Supported == 0;
  133. checkbox varid = HDD_PASSWORD_CONFIG.Request.UserPassword,
  134. prompt = STRING_TOKEN(STR_HDD_USER_PASSWORD),
  135. help = STRING_TOKEN(STR_HDD_USER_PASSWORD_HELP),
  136. flags = INTERACTIVE | RESET_REQUIRED,
  137. key = KEY_HDD_USER_PASSWORD,
  138. endcheckbox;
  139. endif;
  140. grayoutif ideqval HDD_PASSWORD_CONFIG.SecurityStatus.Supported == 0;
  141. checkbox varid = HDD_PASSWORD_CONFIG.Request.MasterPassword,
  142. prompt = STRING_TOKEN(STR_HDD_MASTER_PASSWORD),
  143. help = STRING_TOKEN(STR_HDD_MASTER_PASSWORD_HELP),
  144. flags = INTERACTIVE | RESET_REQUIRED,
  145. key = KEY_HDD_MASTER_PASSWORD,
  146. endcheckbox;
  147. endif;
  148. endform;
  149. endformset;