]>
Commit | Line | Data |
---|---|---|
877a4dbb LE |
1 | // *++\r |
2 | //\r | |
3 | // Copyright (C) 2014, Red Hat, Inc.\r | |
4 | // Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r | |
5 | //\r | |
6 | // This program and the accompanying materials are licensed and made available\r | |
7 | // under the terms and conditions of the BSD License which accompanies this\r | |
8 | // distribution. The full text of the license may be found at\r | |
9 | // http://opensource.org/licenses/bsd-license.php\r | |
10 | //\r | |
11 | // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR\r | |
13 | // IMPLIED.\r | |
14 | //\r | |
15 | // Module Name:\r | |
16 | //\r | |
17 | // PlatformForms.vfr\r | |
18 | //\r | |
19 | // Abstract:\r | |
20 | //\r | |
21 | // Form definitions for exposing some of OVMF's platform knobs via HII.\r | |
22 | //\r | |
23 | // --*/\r | |
24 | \r | |
25 | #include <Guid/OvmfPlatformConfig.h>\r | |
26 | #include "Platform.h"\r | |
27 | \r | |
28 | formset\r | |
29 | guid = OVMF_PLATFORM_CONFIG_GUID,\r | |
30 | title = STRING_TOKEN(STR_FORMSET_TITLE),\r | |
31 | help = STRING_TOKEN(STR_FORMSET_HELP),\r | |
32 | \r | |
276a7ea1 LE |
33 | varstore MAIN_FORM_STATE,\r |
34 | varid = FORMSTATEID_MAIN_FORM,\r | |
35 | name = MainFormState,\r | |
36 | guid = OVMF_PLATFORM_CONFIG_GUID;\r | |
37 | \r | |
877a4dbb LE |
38 | form\r |
39 | formid = FORMID_MAIN_FORM,\r | |
40 | title = STRING_TOKEN(STR_MAIN_FORM_TITLE);\r | |
92e74550 LE |
41 | \r |
42 | //\r | |
43 | // Display the current preference in a read-only string field.\r | |
44 | //\r | |
45 | string\r | |
46 | varid = MainFormState.CurrentPreferredResolution,\r | |
47 | questionid = QUESTION_RES_CUR,\r | |
48 | prompt = STRING_TOKEN(STR_RES_CUR),\r | |
49 | help = STRING_TOKEN(STR_RES_CUR_HELP),\r | |
50 | flags = READ_ONLY,\r | |
51 | minsize = 0,\r | |
52 | maxsize = MAXSIZE_RES_CUR,\r | |
53 | endstring;\r | |
54 | \r | |
55 | //\r | |
56 | // We'll dynamically generate a one-of-many selection at this label.\r | |
57 | //\r | |
58 | label LABEL_RES_NEXT;\r | |
1df57ba3 LE |
59 | \r |
60 | text\r | |
61 | help = STRING_TOKEN(STR_SAVE_EXIT),\r | |
62 | text = STRING_TOKEN(STR_SAVE_EXIT),\r | |
63 | flags = INTERACTIVE,\r | |
64 | key = QUESTION_SAVE_EXIT;\r | |
65 | \r | |
66 | text\r | |
67 | help = STRING_TOKEN(STR_DISCARD_EXIT),\r | |
68 | text = STRING_TOKEN(STR_DISCARD_EXIT),\r | |
69 | flags = INTERACTIVE,\r | |
70 | key = QUESTION_DISCARD_EXIT;\r | |
71 | \r | |
877a4dbb LE |
72 | endform;\r |
73 | \r | |
74 | endformset;\r |