2016-02-03 07:14:47 +01:00
|
|
|
///** @file
|
|
|
|
// VFR file used by the RamDiskDxe driver.
|
|
|
|
//
|
|
|
|
// Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
|
2016-06-02 20:34:10 +02:00
|
|
|
// (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
|
2016-02-03 07:14:47 +01:00
|
|
|
// 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,
|
|
|
|
|
|
|
|
//
|
|
|
|
// Form #1 "Main Form - Add/Remove/Show RAM Disks"
|
|
|
|
//
|
|
|
|
form formid = MAIN_FORM_ID,
|
|
|
|
title = STRING_TOKEN(STR_MAIN_FORM_TITLE);
|
|
|
|
|
2016-06-02 20:34:10 +02:00
|
|
|
oneof
|
|
|
|
questionid = CREATE_RAW_MEMORY_TYPE_QUESTION_ID,
|
|
|
|
prompt = STRING_TOKEN(STR_MEMORY_TYPE_PROMPT),
|
|
|
|
help = STRING_TOKEN(STR_MEMORY_TYPE_HELP),
|
|
|
|
flags = NUMERIC_SIZE_1 | INTERACTIVE,
|
|
|
|
option text = STRING_TOKEN(STR_RAM_DISK_BOOT_SERVICE_DATA_MEMORY), value = RAM_DISK_BOOT_SERVICE_DATA_MEMORY, flags = DEFAULT;
|
|
|
|
option text = STRING_TOKEN(STR_RAM_DISK_RESERVED_MEMORY), value = RAM_DISK_RESERVED_MEMORY, flags = 0;
|
|
|
|
endoneof;
|
|
|
|
|
|
|
|
subtitle text = STRING_TOKEN(STR_RAM_DISK_NULL_STRING);
|
|
|
|
|
2016-02-03 07:14:47 +01:00
|
|
|
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);
|
|
|
|
|
2016-06-06 07:02:52 +02:00
|
|
|
numeric
|
2016-02-03 07:14:47 +01:00
|
|
|
questionid = CREATE_RAW_SIZE_QUESTION_ID,
|
|
|
|
prompt = STRING_TOKEN(STR_SIZE_PROMPT),
|
|
|
|
help = STRING_TOKEN(STR_SIZE_HELP),
|
2016-06-06 07:02:52 +02:00
|
|
|
flags = NUMERIC_SIZE_8 | DISPLAY_UINT_HEX | INTERACTIVE,
|
2016-02-03 07:14:47 +01:00
|
|
|
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;
|