summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/PlatformDxe/PlatformForms.vfr
blob: 61935c386be11d0a619ec8bd9345fd86caec95d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// *++
//
// Copyright (C) 2014, Red Hat, Inc.
// Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
//
// This program and the accompanying materials are licensed and made available
// under the terms and conditions of the BSD License which accompanies this
// distribution. The full text of the license may be found at
// http://opensource.org/licenses/bsd-license.php
//
// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR
// IMPLIED.
//
// Module Name:
//
//   PlatformForms.vfr
//
// Abstract:
//
//   Form definitions for exposing some of OVMF's platform knobs via HII.
//
// --*/

#include <Guid/OvmfPlatformConfig.h>
#include "Platform.h"

formset
  guid  = OVMF_PLATFORM_CONFIG_GUID,
  title = STRING_TOKEN(STR_FORMSET_TITLE),
  help  = STRING_TOKEN(STR_FORMSET_HELP),

  varstore MAIN_FORM_STATE,
    varid = FORMSTATEID_MAIN_FORM,
    name  = MainFormState,
    guid  = OVMF_PLATFORM_CONFIG_GUID;

  form
    formid = FORMID_MAIN_FORM,
    title  = STRING_TOKEN(STR_MAIN_FORM_TITLE);

    //
    // Display the current preference in a read-only string field.
    //
    string
      varid      = MainFormState.CurrentPreferredResolution,
      questionid = QUESTION_RES_CUR,
      prompt     = STRING_TOKEN(STR_RES_CUR),
      help       = STRING_TOKEN(STR_RES_CUR_HELP),
      flags      = READ_ONLY,
      minsize    = 0,
      maxsize    = MAXSIZE_RES_CUR,
    endstring;

    //
    // We'll dynamically generate a one-of-many selection at this label.
    //
    label LABEL_RES_NEXT;
  endform;

endformset;