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
|
#include <Uefi/UefiMultiPhase.h>
#include "Data.h"
formset
guid = FORMSET_GUID,
title = STRING_TOKEN(FORMSET_TITLE),
help = STRING_TOKEN(FORMSET_HELP),
varstore VARIABLE_STRUCTURE,
name = FormData,
guid = STORAGE_GUID;
efivarstore VARIABLE_STRUCTURE,
attribute = EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_NON_VOLATILE,
name = FormEfiData,
guid = STORAGE_EFI_GUID;
defaultstore StandardDefault,
prompt = STRING_TOKEN(STANDARD_DEFAULT_PROMPT),
attribute = 0x0000;
form
formid = 1,
title = STRING_TOKEN(FORMID1_TITLE);
suppressif TRUE;
checkbox
varid = FormData.CheckboxValue,
prompt = STRING_TOKEN(CHECKBOX_PROMPT),
help = STRING_TOKEN(CHECKBOX_HELP),
default = FALSE, defaultstore = StandardDefault,
endcheckbox;
endif;
suppressif ideqval FormData.CheckboxValue == 0;
numeric
name = NumericQuestion,
varid = FormData.NumericValue,
prompt = STRING_TOKEN(NUMERIC_PROMPT),
help = STRING_TOKEN(NUMERIC_HELP),
flags = NUMERIC_SIZE_2 | DISPLAY_UINT_HEX,
minimum = 0,
maximum = 10,
step = 1,
default = 5, defaultstore = StandardDefault,
endnumeric;
oneof
name = OneOfQuestion,
varid = FormData.OneOfValue,
prompt = STRING_TOKEN(ONEOF_PROMPT),
help = STRING_TOKEN(ONEOF_HELP),
option text = STRING_TOKEN(ONEOF_OPTION1), value = 0x00, flags = 0;
option text = STRING_TOKEN(ONEOF_OPTION2), value = 0x33, flags = DEFAULT;
option text = STRING_TOKEN(ONEOF_OPTION3), value = 0x55, flags = 0;
endoneof;
endif;
grayoutif TRUE;
checkbox
varid = FormEfiData.CheckboxValue,
prompt = STRING_TOKEN(CHECKBOX_EFI_PROMPT),
help = STRING_TOKEN(CHECKBOX_EFI_HELP),
default = FALSE, defaultstore = StandardDefault,
endcheckbox;
endif;
grayoutif ideqval FormEfiData.CheckboxValue == 0;
numeric
name = NumericEfiQuestion,
varid = FormEfiData.NumericValue,
prompt = STRING_TOKEN(NUMERIC_EFI_PROMPT),
help = STRING_TOKEN(NUMERIC_EFI_HELP),
flags = NUMERIC_SIZE_2 | DISPLAY_UINT_HEX,
minimum = 0,
maximum = 10,
step = 1,
default = 6, defaultstore = StandardDefault,
endnumeric;
oneof
name = OneOfEfiQuestion,
varid = FormEfiData.OneOfValue,
prompt = STRING_TOKEN(ONEOF_EFI_PROMPT),
help = STRING_TOKEN(ONEOF_EFI_HELP),
option text = STRING_TOKEN(ONEOF_OPTION1), value = 0x00, flags = 0;
option text = STRING_TOKEN(ONEOF_OPTION2), value = 0x33, flags = 0;
option text = STRING_TOKEN(ONEOF_OPTION3), value = 0x55, flags = DEFAULT;
endoneof;
endif;
endform;
endformset;
|