]> git.proxmox.com Git - mirror_edk2.git/blob - EmbeddedPkg/Drivers/ConsolePrefDxe/ConsolePrefHii.vfr
a1e603abf0cee272771ccce339fdb147e818526c
[mirror_edk2.git] / EmbeddedPkg / Drivers / ConsolePrefDxe / ConsolePrefHii.vfr
1 /** @file
2 *
3 * Copyright (c) 2017, Linaro, Ltd. All rights reserved.
4 *
5 * This program and the accompanying materials are licensed and made available
6 * under the terms and conditions of the BSD License which accompanies this
7 * distribution. The full text of the license may be found at
8 * http://opensource.org/licenses/bsd-license.php
9 *
10 * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 *
13 **/
14
15 #include "ConsolePrefDxe.h"
16
17 //
18 // EFI Variable attributes
19 //
20 #define EFI_VARIABLE_NON_VOLATILE 0x00000001
21 #define EFI_VARIABLE_BOOTSERVICE_ACCESS 0x00000002
22 #define EFI_VARIABLE_RUNTIME_ACCESS 0x00000004
23 #define EFI_VARIABLE_READ_ONLY 0x00000008
24
25 formset
26 guid = CONSOLE_PREF_FORMSET_GUID,
27 title = STRING_TOKEN(STR_FORM_SET_TITLE),
28 help = STRING_TOKEN(STR_FORM_SET_TITLE_HELP),
29 classguid = EFI_HII_PLATFORM_SETUP_FORMSET_GUID,
30
31 efivarstore CONSOLE_PREF_VARSTORE_DATA,
32 attribute = EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_NON_VOLATILE, // EFI variable attributes
33 name = ConsolePref,
34 guid = CONSOLE_PREF_FORMSET_GUID;
35
36 form formid = 0x1000,
37 title = STRING_TOKEN(STR_MAIN_FORM_TITLE);
38
39 oneof varid = ConsolePref.Console,
40 prompt = STRING_TOKEN(STR_CONSOLE_PREF_SELECT_PROMPT),
41 help = STRING_TOKEN(STR_CONSOLE_PREF_SELECT_HELP),
42 flags = NUMERIC_SIZE_1 | INTERACTIVE,
43 option text = STRING_TOKEN(STR_CONSOLE_PREF_GRAPHICAL), value = CONSOLE_PREF_GRAPHICAL, flags = DEFAULT;
44 option text = STRING_TOKEN(STR_CONSOLE_PREF_SERIAL), value = CONSOLE_PREF_SERIAL, flags = 0;
45 endoneof;
46
47 subtitle text = STRING_TOKEN(STR_NULL_STRING);
48
49 endform;
50
51 endformset;