Home | History | Annotate | Download | only in RamDiskDxe
      1 ///** @file
      2 //  VFR file used by the RamDiskDxe driver.
      3 //
      4 //  Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
      5 //  (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
      6 //  This program and the accompanying materials
      7 //  are licensed and made available under the terms and conditions of the BSD License
      8 //  which accompanies this 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 IMPLIED.
     13 //
     14 //**/
     15 
     16 #include "RamDiskNVData.h"
     17 
     18 formset
     19   guid      = RAM_DISK_FORM_SET_GUID,
     20   title     = STRING_TOKEN(STR_FORM_SET_TITLE),
     21   help      = STRING_TOKEN(STR_FORM_SET_TITLE_HELP),
     22   classguid = EFI_HII_PLATFORM_SETUP_FORMSET_GUID,
     23 
     24   //
     25   // Form #1 "Main Form - Add/Remove/Show RAM Disks"
     26   //
     27   form formid = MAIN_FORM_ID,
     28     title  = STRING_TOKEN(STR_MAIN_FORM_TITLE);
     29 
     30     oneof
     31       questionid  = CREATE_RAW_MEMORY_TYPE_QUESTION_ID,
     32         prompt      = STRING_TOKEN(STR_MEMORY_TYPE_PROMPT),
     33         help        = STRING_TOKEN(STR_MEMORY_TYPE_HELP),
     34         flags       = NUMERIC_SIZE_1 | INTERACTIVE,
     35         option text = STRING_TOKEN(STR_RAM_DISK_BOOT_SERVICE_DATA_MEMORY), value = RAM_DISK_BOOT_SERVICE_DATA_MEMORY, flags = DEFAULT;
     36         option text = STRING_TOKEN(STR_RAM_DISK_RESERVED_MEMORY), value = RAM_DISK_RESERVED_MEMORY, flags = 0;
     37     endoneof;
     38 
     39     subtitle text = STRING_TOKEN(STR_RAM_DISK_NULL_STRING);
     40 
     41     goto CREATE_RAW_RAM_DISK_FORM_ID,
     42       prompt = STRING_TOKEN(STR_GOTO_ADD_RAW_FORM),
     43       help   = STRING_TOKEN(STR_GOTO_ADD_RAW_FORM_HELP);
     44 
     45     goto MAIN_FORM_ID,
     46       prompt = STRING_TOKEN(STR_GOTO_ADD_FROM_FILE_FORM),
     47       help   = STRING_TOKEN(STR_GOTO_ADD_FROM_FILE_FORM_HELP),
     48       flags  = INTERACTIVE,
     49       key    = MAIN_GOTO_FILE_EXPLORER_ID;
     50 
     51     subtitle text = STRING_TOKEN(STR_RAM_DISK_NULL_STRING);
     52     subtitle text = STRING_TOKEN(STR_RAM_DISK_LIST_TEXT);
     53 
     54     label MAIN_LABEL_LIST_START;
     55     label MAIN_LABEL_LIST_END;
     56 
     57     subtitle text = STRING_TOKEN(STR_RAM_DISK_NULL_STRING);
     58 
     59     text
     60       help   = STRING_TOKEN(STR_REMOVE_SEL_HELP),
     61       text   = STRING_TOKEN(STR_REMOVE_SEL_TEXT),
     62       flags  = INTERACTIVE,
     63       key    = MAIN_REMOVE_RD_QUESTION_ID;
     64 
     65   endform;
     66 
     67   //
     68   // Form #2 "Add New Raw RAM Disk"
     69   //
     70   form formid = CREATE_RAW_RAM_DISK_FORM_ID,
     71     title  = STRING_TOKEN(STR_ADD_RAW_FORM_TITLE);
     72 
     73     subtitle text = STRING_TOKEN(STR_RAM_DISK_NULL_STRING);
     74 
     75     numeric
     76       questionid = CREATE_RAW_SIZE_QUESTION_ID,
     77       prompt  = STRING_TOKEN(STR_SIZE_PROMPT),
     78       help    = STRING_TOKEN(STR_SIZE_HELP),
     79       flags   = NUMERIC_SIZE_8 | DISPLAY_UINT_HEX | INTERACTIVE,
     80       minimum = 1,
     81       maximum = 0xFFFFFFFFFFFFFFFF,
     82     endnumeric;
     83 
     84     subtitle text = STRING_TOKEN(STR_RAM_DISK_NULL_STRING);
     85 
     86     text
     87       help   = STRING_TOKEN(STR_CREATE_AND_EXIT_HELP),
     88       text   = STRING_TOKEN(STR_CREATE_AND_EXIT_PROMPT),
     89       flags  = INTERACTIVE,
     90       key    = CREATE_RAW_SUBMIT_QUESTION_ID;
     91 
     92     text
     93       help   = STRING_TOKEN(STR_DISCARD_AND_EXIT_HELP),
     94       text   = STRING_TOKEN(STR_DISCARD_AND_EXIT_PROMPT),
     95       flags  = INTERACTIVE,
     96       key    = CREATE_RAW_DISCARD_QUESTION_ID;
     97 
     98   endform;
     99 
    100 endformset;
    101