]>
Commit | Line | Data |
---|---|---|
a3bcde70 HT |
1 | /** @file\r |
2 | VFR file used by the IP6 configuration component.\r | |
3 | \r | |
e0afa489 | 4 | Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r |
a3bcde70 HT |
5 | \r |
6 | This program and the accompanying materials\r | |
7 | are licensed and made available under the terms and conditions of the BSD License\r | |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php.\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | #include "Ip6NvData.h"\r | |
17 | \r | |
18 | #define EFI_NETWORK_DEVICE_CLASS 0x04\r | |
19 | \r | |
20 | formset\r | |
21 | guid = IP6_CONFIG_NVDATA_GUID,\r | |
22 | title = STRING_TOKEN(STR_IP6_CONFIG_FORM_TITLE),\r | |
23 | help = STRING_TOKEN(STR_IP6_CONFIG_FORM_HELP),\r | |
24 | class = EFI_NETWORK_DEVICE_CLASS,\r | |
25 | subclass = 0x03,\r | |
26 | \r | |
27 | varstore IP6_CONFIG_IFR_NVDATA,\r | |
28 | name = IP6_CONFIG_IFR_NVDATA,\r | |
29 | guid = IP6_CONFIG_NVDATA_GUID;\r | |
30 | \r | |
e0afa489 | 31 | form formid = FORMID_HEAD_FORM,\r |
32 | title = STRING_TOKEN(STR_IP6_DEVICE_FORM_TITLE);\r | |
33 | \r | |
34 | goto FORMID_MAIN_FORM,\r | |
35 | prompt = STRING_TOKEN (STR_GET_CURRENT_SETTING),\r | |
36 | help = STRING_TOKEN (STR_GET_CURRENT_SETTING_HELP),\r | |
37 | flags = INTERACTIVE,\r | |
38 | key = KEY_GET_CURRENT_SETTING;\r | |
39 | \r | |
40 | endform;\r | |
41 | \r | |
a3bcde70 HT |
42 | form formid = FORMID_MAIN_FORM,\r |
43 | title = STRING_TOKEN(STR_IP6_DEVICE_FORM_TITLE);\r | |
44 | \r | |
45 | text\r | |
46 | help = STRING_TOKEN(STR_IP6_INTERFACE_NAME_HELP),\r | |
47 | text = STRING_TOKEN(STR_IP6_INTERFACE_NAME),\r | |
48 | text = STRING_TOKEN(STR_IP6_INTERFACE_NAME_CONTENT);\r | |
49 | \r | |
50 | text\r | |
51 | help = STRING_TOKEN(STR_IP6_INTERFACE_TYPE_HELP),\r | |
52 | text = STRING_TOKEN(STR_IP6_INTERFACE_TYPE),\r | |
53 | text = STRING_TOKEN(STR_IP6_INTERFACE_TYPE_CONTENT);\r | |
54 | \r | |
55 | text\r | |
56 | help = STRING_TOKEN(STR_IP6_MAC_ADDRESS_HELP),\r | |
57 | text = STRING_TOKEN(STR_IP6_MAC_ADDRESS),\r | |
58 | text = STRING_TOKEN(STR_IP6_MAC_ADDRESS_CONTENT);\r | |
59 | \r | |
60 | text\r | |
61 | help = STRING_TOKEN(STR_IP6_HOST_ADDRESS_HELP),\r | |
62 | text = STRING_TOKEN(STR_IP6_HOST_ADDRESS),\r | |
63 | text = STRING_TOKEN(STR_NULL);\r | |
64 | \r | |
65 | label HOST_ADDRESS_LABEL;\r | |
66 | label LABEL_END;\r | |
67 | \r | |
68 | text\r | |
69 | help = STRING_TOKEN(STR_IP6_ROUTE_TABLE_HELP),\r | |
70 | text = STRING_TOKEN(STR_IP6_ROUTE_TABLE),\r | |
71 | text = STRING_TOKEN(STR_NULL);\r | |
72 | \r | |
73 | label ROUTE_TABLE_LABEL;\r | |
74 | label LABEL_END;\r | |
75 | \r | |
76 | text\r | |
77 | help = STRING_TOKEN(STR_IP6_GATEWAY_ADDRESS_HELP),\r | |
78 | text = STRING_TOKEN(STR_IP6_GATEWAY_ADDRESS),\r | |
79 | text = STRING_TOKEN(STR_NULL);\r | |
80 | \r | |
81 | label GATEWAY_ADDRESS_LABEL;\r | |
82 | label LABEL_END;\r | |
83 | \r | |
84 | text\r | |
85 | help = STRING_TOKEN(STR_IP6_DNS_ADDRESS_HELP),\r | |
86 | text = STRING_TOKEN(STR_IP6_DNS_ADDRESS),\r | |
87 | text = STRING_TOKEN(STR_NULL);\r | |
88 | \r | |
89 | label DNS_ADDRESS_LABEL;\r | |
90 | label LABEL_END;\r | |
91 | \r | |
92 | string varid = IP6_CONFIG_IFR_NVDATA.InterfaceId,\r | |
93 | prompt = STRING_TOKEN(STR_IP6_INTERFACE_ID),\r | |
94 | help = STRING_TOKEN(STR_IP6_INTERFACE_ID_HELP),\r | |
95 | flags = INTERACTIVE,\r | |
96 | key = KEY_INTERFACE_ID,\r | |
97 | minsize = INTERFACE_ID_STR_MIN_SIZE,\r | |
98 | maxsize = INTERFACE_ID_STR_MAX_SIZE,\r | |
99 | endstring;\r | |
100 | \r | |
101 | numeric varid = IP6_CONFIG_IFR_NVDATA.DadTransmitCount,\r | |
102 | prompt = STRING_TOKEN(STR_IP6_DAD_TRANSMIT_COUNT),\r | |
103 | help = STRING_TOKEN(STR_IP6_DAD_TRANSMIT_COUNT_HELP),\r | |
104 | flags = 0,\r | |
105 | minimum = 0,\r | |
106 | maximum = DAD_MAX_TRANSMIT_COUNT,\r | |
107 | step = 0,\r | |
108 | endnumeric;\r | |
109 | \r | |
110 | oneof varid = IP6_CONFIG_IFR_NVDATA.Policy,\r | |
111 | prompt = STRING_TOKEN(STR_POLICY_TYPE_PROMPT),\r | |
112 | help = STRING_TOKEN(STR_POLICY_TYPE_HELP),\r | |
113 | option text = STRING_TOKEN(STR_POLICY_TYPE_AUTO), value = IP6_POLICY_AUTO, flags = DEFAULT;\r | |
114 | option text = STRING_TOKEN(STR_POLICY_TYPE_MANUAL), value = IP6_POLICY_MANUAL, flags = 0;\r | |
115 | endoneof;\r | |
116 | \r | |
117 | subtitle text = STRING_TOKEN(STR_NULL);\r | |
118 | \r | |
119 | suppressif ideqval IP6_CONFIG_IFR_NVDATA.Policy == IP6_POLICY_AUTO;\r | |
120 | goto FORMID_MANUAL_CONFIG_FORM,\r | |
121 | prompt = STRING_TOKEN(STR_IP6_AD_CONFIG_FORM),\r | |
122 | help = STRING_TOKEN(STR_IP6_AD_CONFIG_FORM_HELP),\r | |
123 | flags = 0;\r | |
124 | subtitle text = STRING_TOKEN(STR_NULL);\r | |
125 | endif;\r | |
126 | \r | |
127 | text\r | |
128 | help = STRING_TOKEN (STR_SAVE_CHANGES_HELP),\r | |
129 | text = STRING_TOKEN (STR_SAVE_CHANGES),\r | |
130 | text = STRING_TOKEN (STR_NULL),\r | |
131 | flags = INTERACTIVE,\r | |
132 | key = KEY_SAVE_CHANGES;\r | |
133 | \r | |
134 | endform;\r | |
135 | \r | |
136 | form formid = FORMID_MANUAL_CONFIG_FORM,\r | |
137 | title = STRING_TOKEN(STR_IP6_AD_CONFIG_FORM);\r | |
138 | \r | |
139 | string varid = IP6_CONFIG_IFR_NVDATA.ManualAddress,\r | |
140 | prompt = STRING_TOKEN(STR_IP6_MANUAL_ADDRESS),\r | |
141 | help = STRING_TOKEN(STR_IP6_MANUAL_ADDRESS_HELP),\r | |
142 | flags = INTERACTIVE,\r | |
143 | key = KEY_MANUAL_ADDRESS,\r | |
144 | minsize = ADDRESS_STR_MIN_SIZE,\r | |
145 | maxsize = ADDRESS_STR_MAX_SIZE,\r | |
146 | endstring;\r | |
147 | \r | |
148 | string varid = IP6_CONFIG_IFR_NVDATA.GatewayAddress,\r | |
149 | prompt = STRING_TOKEN(STR_IP6_NEW_GATEWAY_ADDRESS),\r | |
150 | help = STRING_TOKEN(STR_IP6_NEW_GATEWAY_ADDR_HELP),\r | |
151 | flags = INTERACTIVE,\r | |
152 | key = KEY_GATEWAY_ADDRESS,\r | |
153 | minsize = ADDRESS_STR_MIN_SIZE,\r | |
154 | maxsize = ADDRESS_STR_MAX_SIZE,\r | |
155 | endstring;\r | |
156 | \r | |
157 | string varid = IP6_CONFIG_IFR_NVDATA.DnsAddress,\r | |
158 | prompt = STRING_TOKEN(STR_IP6_NEW_DNS_ADDRESS),\r | |
159 | help = STRING_TOKEN(STR_IP6_NEW_DNS_ADDRESS_HELP),\r | |
160 | flags = INTERACTIVE,\r | |
161 | key = KEY_DNS_ADDRESS,\r | |
162 | minsize = ADDRESS_STR_MIN_SIZE,\r | |
163 | maxsize = ADDRESS_STR_MAX_SIZE,\r | |
164 | endstring;\r | |
165 | \r | |
639a76d1 ED |
166 | text\r |
167 | help = STRING_TOKEN (STR_SAVE_AND_EXIT),\r | |
168 | text = STRING_TOKEN (STR_SAVE_AND_EXIT),\r | |
169 | text = STRING_TOKEN (STR_SAVE_AND_EXIT),\r | |
170 | flags = INTERACTIVE,\r | |
171 | key = KEY_SAVE_CONFIG_CHANGES;\r | |
a3bcde70 | 172 | \r |
639a76d1 ED |
173 | text\r |
174 | help = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),\r | |
175 | text = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),\r | |
176 | text = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),\r | |
177 | flags = INTERACTIVE,\r | |
178 | key = KEY_IGNORE_CONFIG_CHANGES;\r | |
a3bcde70 HT |
179 | \r |
180 | endform;\r | |
181 | \r | |
182 | endformset;\r | |
183 | \r |