summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskHii.vfr
blob: 9c3e3e44d24524455c224f02e3dc0b6f7ebdbeb8 (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
///** @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;