PlatformForms.vfr 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // *++
  2. //
  3. // Copyright (C) 2014, Red Hat, Inc.
  4. // Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
  5. //
  6. // SPDX-License-Identifier: BSD-2-Clause-Patent
  7. //
  8. // Module Name:
  9. //
  10. // PlatformForms.vfr
  11. //
  12. // Abstract:
  13. //
  14. // Form definitions for exposing some of OVMF's platform knobs via HII.
  15. //
  16. // --*/
  17. #include <Guid/OvmfPlatformConfig.h>
  18. #include "Platform.h"
  19. formset
  20. guid = OVMF_PLATFORM_CONFIG_GUID,
  21. title = STRING_TOKEN(STR_FORMSET_TITLE),
  22. help = STRING_TOKEN(STR_FORMSET_HELP),
  23. varstore MAIN_FORM_STATE,
  24. varid = FORMSTATEID_MAIN_FORM,
  25. name = MainFormState,
  26. guid = OVMF_PLATFORM_CONFIG_GUID;
  27. form
  28. formid = FORMID_MAIN_FORM,
  29. title = STRING_TOKEN(STR_MAIN_FORM_TITLE);
  30. //
  31. // Display the current preference in a read-only string field.
  32. //
  33. string
  34. varid = MainFormState.CurrentPreferredResolution,
  35. questionid = QUESTION_RES_CUR,
  36. prompt = STRING_TOKEN(STR_RES_CUR),
  37. help = STRING_TOKEN(STR_RES_CUR_HELP),
  38. flags = READ_ONLY,
  39. minsize = 0,
  40. maxsize = MAXSIZE_RES_CUR,
  41. endstring;
  42. //
  43. // We'll dynamically generate a one-of-many selection at this label.
  44. //
  45. label LABEL_RES_NEXT;
  46. text
  47. help = STRING_TOKEN(STR_SAVE_EXIT),
  48. text = STRING_TOKEN(STR_SAVE_EXIT),
  49. flags = INTERACTIVE,
  50. key = QUESTION_SAVE_EXIT;
  51. text
  52. help = STRING_TOKEN(STR_DISCARD_EXIT),
  53. text = STRING_TOKEN(STR_DISCARD_EXIT),
  54. flags = INTERACTIVE,
  55. key = QUESTION_DISCARD_EXIT;
  56. endform;
  57. endformset;