audk/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskHii.vfr

94 lines
2.9 KiB
Plaintext

///** @file
// VFR file used by the RamDiskDxe driver.
//
// Copyright (c) 2016, 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.
//
//**/
#include "RamDiskNVData.h"
formset
guid = RAM_DISK_FORM_SET_GUID,
title = STRING_TOKEN(STR_FORM_SET_TITLE),
help = STRING_TOKEN(STR_FORM_SET_TITLE_HELP),
classguid = EFI_HII_PLATFORM_SETUP_FORMSET_GUID,
varstore RAM_DISK_CONFIGURATION,
varid = RAM_DISK_CONFIGURATION_VARSTORE_ID,
name = RAM_DISK_CONFIGURATION,
guid = RAM_DISK_FORM_SET_GUID;
//
// Form #1 "Main Form - Add/Remove/Show RAM Disks"
//
form formid = MAIN_FORM_ID,
title = STRING_TOKEN(STR_MAIN_FORM_TITLE);
goto CREATE_RAW_RAM_DISK_FORM_ID,
prompt = STRING_TOKEN(STR_GOTO_ADD_RAW_FORM),
help = STRING_TOKEN(STR_GOTO_ADD_RAW_FORM_HELP);
goto MAIN_FORM_ID,
prompt = STRING_TOKEN(STR_GOTO_ADD_FROM_FILE_FORM),
help = STRING_TOKEN(STR_GOTO_ADD_FROM_FILE_FORM_HELP),
flags = INTERACTIVE,
key = MAIN_GOTO_FILE_EXPLORER_ID;
subtitle text = STRING_TOKEN(STR_RAM_DISK_NULL_STRING);
subtitle text = STRING_TOKEN(STR_RAM_DISK_LIST_TEXT);
label MAIN_LABEL_LIST_START;
label MAIN_LABEL_LIST_END;
subtitle text = STRING_TOKEN(STR_RAM_DISK_NULL_STRING);
text
help = STRING_TOKEN(STR_REMOVE_SEL_HELP),
text = STRING_TOKEN(STR_REMOVE_SEL_TEXT),
flags = INTERACTIVE,
key = MAIN_REMOVE_RD_QUESTION_ID;
endform;
//
// Form #2 "Add New Raw RAM Disk"
//
form formid = CREATE_RAW_RAM_DISK_FORM_ID,
title = STRING_TOKEN(STR_ADD_RAW_FORM_TITLE);
subtitle text = STRING_TOKEN(STR_RAM_DISK_NULL_STRING);
numeric varid = RAM_DISK_CONFIGURATION.Size,
questionid = CREATE_RAW_SIZE_QUESTION_ID,
prompt = STRING_TOKEN(STR_SIZE_PROMPT),
help = STRING_TOKEN(STR_SIZE_HELP),
flags = DISPLAY_UINT_HEX | INTERACTIVE,
minimum = 1,
maximum = 0xFFFFFFFFFFFFFFFF,
endnumeric;
subtitle text = STRING_TOKEN(STR_RAM_DISK_NULL_STRING);
text
help = STRING_TOKEN(STR_CREATE_AND_EXIT_HELP),
text = STRING_TOKEN(STR_CREATE_AND_EXIT_PROMPT),
flags = INTERACTIVE,
key = CREATE_RAW_SUBMIT_QUESTION_ID;
text
help = STRING_TOKEN(STR_DISCARD_AND_EXIT_HELP),
text = STRING_TOKEN(STR_DISCARD_AND_EXIT_PROMPT),
flags = INTERACTIVE,
key = CREATE_RAW_DISCARD_QUESTION_ID;
endform;
endformset;