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