]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/BdsDxe/BootMaint/Data.c
Clean up BootMaint module in BdsDxe.
[mirror_edk2.git] / MdeModulePkg / Universal / BdsDxe / BootMaint / Data.c
1 /** @file
2 Define some data used for Boot Maint
3
4 Copyright (c) 2004 - 2008, Intel Corporation. <BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this 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 "BootMaint.h"
16
17 EFI_HII_UPDATE_DATA gUpdateData;
18 STRING_DEPOSITORY *FileOptionStrDepository;
19 STRING_DEPOSITORY *ConsoleOptionStrDepository;
20 STRING_DEPOSITORY *BootOptionStrDepository;
21 STRING_DEPOSITORY *BootOptionHelpStrDepository;
22 STRING_DEPOSITORY *DriverOptionStrDepository;
23 STRING_DEPOSITORY *DriverOptionHelpStrDepository;
24 STRING_DEPOSITORY *TerminalStrDepository;
25
26 //
27 // Terminal type string token storage
28 //
29 UINT16 TerminalType[] = {
30 STRING_TOKEN(STR_COM_TYPE_0),
31 STRING_TOKEN(STR_COM_TYPE_1),
32 STRING_TOKEN(STR_COM_TYPE_2),
33 STRING_TOKEN(STR_COM_TYPE_3),
34 };
35
36 //
37 // File system selection menu
38 //
39 BM_MENU_OPTION FsOptionMenu = {
40 BM_MENU_OPTION_SIGNATURE,
41 NULL,
42 0
43 };
44
45 //
46 // Console Input Device Selection Menu
47 //
48 BM_MENU_OPTION ConsoleInpMenu = {
49 BM_MENU_OPTION_SIGNATURE,
50 NULL,
51 0
52 };
53
54 //
55 // Console Output Device Selection Menu
56 //
57 BM_MENU_OPTION ConsoleOutMenu = {
58 BM_MENU_OPTION_SIGNATURE,
59 NULL,
60 0
61 };
62
63 //
64 // Error Output Device Selection Menu
65 //
66 BM_MENU_OPTION ConsoleErrMenu = {
67 BM_MENU_OPTION_SIGNATURE,
68 NULL,
69 0
70 };
71
72 //
73 // Boot Option from variable Menu
74 //
75 BM_MENU_OPTION BootOptionMenu = {
76 BM_MENU_OPTION_SIGNATURE,
77 NULL,
78 0
79 };
80
81 //
82 // Driver Option from variable menu
83 //
84 BM_MENU_OPTION DriverOptionMenu = {
85 BM_MENU_OPTION_SIGNATURE,
86 NULL,
87 0
88 };
89
90 //
91 // Legacy FD Info from LegacyBios.GetBbsInfo()
92 //
93 BM_MENU_OPTION LegacyFDMenu = {
94 BM_MENU_OPTION_SIGNATURE,
95 NULL,
96 0
97 };
98
99 //
100 // Legacy HD Info from LegacyBios.GetBbsInfo()
101 //
102 BM_MENU_OPTION LegacyHDMenu = {
103 BM_MENU_OPTION_SIGNATURE,
104 NULL,
105 0
106 };
107
108 //
109 // Legacy CD Info from LegacyBios.GetBbsInfo()
110 //
111 BM_MENU_OPTION LegacyCDMenu = {
112 BM_MENU_OPTION_SIGNATURE,
113 NULL,
114 0
115 };
116
117 //
118 // Legacy NET Info from LegacyBios.GetBbsInfo()
119 //
120 BM_MENU_OPTION LegacyNETMenu = {
121 BM_MENU_OPTION_SIGNATURE,
122 NULL,
123 0
124 };
125
126 //
127 // Legacy NET Info from LegacyBios.GetBbsInfo()
128 //
129 BM_MENU_OPTION LegacyBEVMenu = {
130 BM_MENU_OPTION_SIGNATURE,
131 NULL,
132 0
133 };
134
135 //
136 // Files and sub-directories in current directory menu
137 //
138 BM_MENU_OPTION DirectoryMenu = {
139 BM_MENU_OPTION_SIGNATURE,
140 NULL,
141 0
142 };
143
144 //
145 // Handles in current system selection menu
146 //
147 BM_MENU_OPTION DriverMenu = {
148 BM_MENU_OPTION_SIGNATURE,
149 NULL,
150 0
151 };
152
153 BM_MENU_OPTION TerminalMenu = {
154 BM_MENU_OPTION_SIGNATURE,
155 NULL,
156 0
157 };
158
159 //
160 // Value and string token correspondency for BaudRate
161 //
162 COM_ATTR BaudRateList[19] = {
163 {
164 115200,
165 STRING_TOKEN(STR_COM_BAUD_RATE_0)
166 },
167 {
168 57600,
169 STRING_TOKEN(STR_COM_BAUD_RATE_1)
170 },
171 {
172 38400,
173 STRING_TOKEN(STR_COM_BAUD_RATE_2)
174 },
175 {
176 19200,
177 STRING_TOKEN(STR_COM_BAUD_RATE_3)
178 },
179 {
180 9600,
181 STRING_TOKEN(STR_COM_BAUD_RATE_4)
182 },
183 {
184 7200,
185 STRING_TOKEN(STR_COM_BAUD_RATE_5)
186 },
187 {
188 4800,
189 STRING_TOKEN(STR_COM_BAUD_RATE_6)
190 },
191 {
192 3600,
193 STRING_TOKEN(STR_COM_BAUD_RATE_7)
194 },
195 {
196 2400,
197 STRING_TOKEN(STR_COM_BAUD_RATE_8)
198 },
199 {
200 2000,
201 STRING_TOKEN(STR_COM_BAUD_RATE_9)
202 },
203 {
204 1800,
205 STRING_TOKEN(STR_COM_BAUD_RATE_10)
206 },
207 {
208 1200,
209 STRING_TOKEN(STR_COM_BAUD_RATE_11)
210 },
211 {
212 600,
213 STRING_TOKEN(STR_COM_BAUD_RATE_12)
214 },
215 {
216 300,
217 STRING_TOKEN(STR_COM_BAUD_RATE_13)
218 },
219 {
220 150,
221 STRING_TOKEN(STR_COM_BAUD_RATE_14)
222 },
223 {
224 134,
225 STRING_TOKEN(STR_COM_BAUD_RATE_15)
226 },
227 {
228 110,
229 STRING_TOKEN(STR_COM_BAUD_RATE_16)
230 },
231 {
232 75,
233 STRING_TOKEN(STR_COM_BAUD_RATE_17)
234 },
235 {
236 50,
237 STRING_TOKEN(STR_COM_BAUD_RATE_18)
238 }
239 };
240
241 //
242 // Value and string token correspondency for DataBits
243 //
244 COM_ATTR DataBitsList[4] = {
245 {
246 5,
247 STRING_TOKEN(STR_COM_DATA_BITS_0)
248 },
249 {
250 6,
251 STRING_TOKEN(STR_COM_DATA_BITS_1)
252 },
253 {
254 7,
255 STRING_TOKEN(STR_COM_DATA_BITS_2)
256 },
257 {
258 8,
259 STRING_TOKEN(STR_COM_DATA_BITS_3)
260 }
261 };
262
263 //
264 // Value and string token correspondency for Parity
265 //
266 COM_ATTR ParityList[5] = {
267 {
268 NoParity,
269 STRING_TOKEN(STR_COM_PAR_0)
270 },
271 {
272 EvenParity,
273 STRING_TOKEN(STR_COM_PAR_1)
274 },
275 {
276 OddParity,
277 STRING_TOKEN(STR_COM_PAR_2)
278 },
279 {
280 MarkParity,
281 STRING_TOKEN(STR_COM_PAR_3)
282 },
283 {
284 SpaceParity,
285 STRING_TOKEN(STR_COM_PAR_4)
286 }
287 };
288
289 //
290 // Value and string token correspondency for Baudreate
291 //
292 COM_ATTR StopBitsList[3] = {
293 {
294 OneStopBit,
295 STRING_TOKEN(STR_COM_STOP_BITS_0)
296 },
297 {
298 OneFiveStopBits,
299 STRING_TOKEN(STR_COM_STOP_BITS_1)
300 },
301 {
302 TwoStopBits,
303 STRING_TOKEN(STR_COM_STOP_BITS_2)
304 }
305 };
306
307 //
308 // Guid for messaging path, used in Serial port setting.
309 //
310 EFI_GUID TerminalTypeGuid[4] = {
311 DEVICE_PATH_MESSAGING_PC_ANSI,
312 DEVICE_PATH_MESSAGING_VT_100,
313 DEVICE_PATH_MESSAGING_VT_100_PLUS,
314 DEVICE_PATH_MESSAGING_VT_UTF8
315 };