2014-03-22 08:13:18 +01:00
|
|
|
// *++
|
|
|
|
//
|
|
|
|
// Copyright (C) 2014, Red Hat, Inc.
|
|
|
|
// Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
|
|
|
|
//
|
2019-04-04 01:06:33 +02:00
|
|
|
// SPDX-License-Identifier: BSD-2-Clause-Patent
|
2014-03-22 08:13:18 +01:00
|
|
|
//
|
|
|
|
// 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),
|
|
|
|
|
2014-03-22 08:13:24 +01:00
|
|
|
varstore MAIN_FORM_STATE,
|
|
|
|
varid = FORMSTATEID_MAIN_FORM,
|
|
|
|
name = MainFormState,
|
|
|
|
guid = OVMF_PLATFORM_CONFIG_GUID;
|
|
|
|
|
2014-03-22 08:13:18 +01:00
|
|
|
form
|
|
|
|
formid = FORMID_MAIN_FORM,
|
|
|
|
title = STRING_TOKEN(STR_MAIN_FORM_TITLE);
|
2014-03-22 08:13:31 +01:00
|
|
|
|
|
|
|
//
|
|
|
|
// 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;
|
2014-03-22 08:13:57 +01:00
|
|
|
|
|
|
|
text
|
|
|
|
help = STRING_TOKEN(STR_SAVE_EXIT),
|
|
|
|
text = STRING_TOKEN(STR_SAVE_EXIT),
|
|
|
|
flags = INTERACTIVE,
|
|
|
|
key = QUESTION_SAVE_EXIT;
|
|
|
|
|
|
|
|
text
|
|
|
|
help = STRING_TOKEN(STR_DISCARD_EXIT),
|
|
|
|
text = STRING_TOKEN(STR_DISCARD_EXIT),
|
|
|
|
flags = INTERACTIVE,
|
|
|
|
key = QUESTION_DISCARD_EXIT;
|
|
|
|
|
2014-03-22 08:13:18 +01:00
|
|
|
endform;
|
|
|
|
|
|
|
|
endformset;
|