]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/PlatformDxe/PlatformForms.vfr
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / OvmfPkg / PlatformDxe / PlatformForms.vfr
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
18 #include <Guid/OvmfPlatformConfig.h>
19 #include "Platform.h"
20
21 formset
22 guid = OVMF_PLATFORM_CONFIG_GUID,
23 title = STRING_TOKEN(STR_FORMSET_TITLE),
24 help = STRING_TOKEN(STR_FORMSET_HELP),
25
26 varstore MAIN_FORM_STATE,
27 varid = FORMSTATEID_MAIN_FORM,
28 name = MainFormState,
29 guid = OVMF_PLATFORM_CONFIG_GUID;
30
31 form
32 formid = FORMID_MAIN_FORM,
33 title = STRING_TOKEN(STR_MAIN_FORM_TITLE);
34
35 //
36 // Display the current preference in a read-only string field.
37 //
38 string
39 varid = MainFormState.CurrentPreferredResolution,
40 questionid = QUESTION_RES_CUR,
41 prompt = STRING_TOKEN(STR_RES_CUR),
42 help = STRING_TOKEN(STR_RES_CUR_HELP),
43 flags = READ_ONLY,
44 minsize = 0,
45 maxsize = MAXSIZE_RES_CUR,
46 endstring;
47
48 //
49 // We'll dynamically generate a one-of-many selection at this label.
50 //
51 label LABEL_RES_NEXT;
52
53 text
54 help = STRING_TOKEN(STR_SAVE_EXIT),
55 text = STRING_TOKEN(STR_SAVE_EXIT),
56 flags = INTERACTIVE,
57 key = QUESTION_SAVE_EXIT;
58
59 text
60 help = STRING_TOKEN(STR_DISCARD_EXIT),
61 text = STRING_TOKEN(STR_DISCARD_EXIT),
62 flags = INTERACTIVE,
63 key = QUESTION_DISCARD_EXIT;
64
65 endform;
66
67 endformset;