5c08e117 |
1 | /** @file\r |
2 | Formset guids, form id and VarStore data structure for Boot Maintenance Manager.\r |
3 | \r |
4 | Copyright (c) 2004 - 2008, Intel Corporation. <BR>\r |
5 | All rights reserved. This program and the accompanying materials\r |
6 | are licensed and made available under the terms and conditions of the BSD License\r |
7 | which accompanies this distribution. The full text of the license may be found at\r |
8 | http://opensource.org/licenses/bsd-license.php\r |
9 | \r |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r |
12 | \r |
13 | **/\r |
14 | #ifndef _FORM_GUID_H_\r |
15 | #define _FORM_GUID_H_\r |
16 | \r |
17 | #define BOOT_MAINT_FORMSET_GUID \\r |
18 | { \\r |
19 | 0x642237c7, 0x35d4, 0x472d, {0x83, 0x65, 0x12, 0xe0, 0xcc, 0xf2, 0x7a, 0x22} \\r |
20 | }\r |
21 | \r |
22 | #define FILE_EXPLORE_FORMSET_GUID \\r |
23 | { \\r |
24 | 0x1f2d63e1, 0xfebd, 0x4dc7, {0x9c, 0xc5, 0xba, 0x2b, 0x1c, 0xef, 0x9c, 0x5b} \\r |
25 | }\r |
26 | \r |
27 | #define FORM_MAIN_ID 0x1001\r |
28 | #define FORM_BOOT_ADD_ID 0x1002\r |
29 | #define FORM_BOOT_DEL_ID 0x1003\r |
30 | #define FORM_BOOT_CHG_ID 0x1004\r |
31 | #define FORM_DRV_ADD_ID 0x1005\r |
32 | #define FORM_DRV_DEL_ID 0x1006\r |
33 | #define FORM_DRV_CHG_ID 0x1007\r |
34 | #define FORM_CON_MAIN_ID 0x1008\r |
35 | #define FORM_CON_IN_ID 0x1009\r |
36 | #define FORM_CON_OUT_ID 0x100A\r |
37 | #define FORM_CON_ERR_ID 0x100B\r |
38 | #define FORM_FILE_SEEK_ID 0x100C\r |
39 | #define FORM_FILE_NEW_SEEK_ID 0x100D\r |
40 | #define FORM_DRV_ADD_FILE_ID 0x100E\r |
41 | #define FORM_DRV_ADD_HANDLE_ID 0x100F\r |
42 | #define FORM_DRV_ADD_HANDLE_DESC_ID 0x1010\r |
43 | #define FORM_BOOT_NEXT_ID 0x1011\r |
44 | #define FORM_TIME_OUT_ID 0x1012\r |
45 | #define FORM_RESET 0x1013\r |
46 | #define FORM_BOOT_SETUP_ID 0x1014\r |
47 | #define FORM_DRIVER_SETUP_ID 0x1015\r |
48 | #define FORM_BOOT_LEGACY_DEVICE_ID 0x1016\r |
49 | #define FORM_CON_COM_ID 0x1017\r |
50 | #define FORM_CON_COM_SETUP_ID 0x1018\r |
51 | #define FORM_SET_FD_ORDER_ID 0x1019\r |
52 | #define FORM_SET_HD_ORDER_ID 0x101A\r |
53 | #define FORM_SET_CD_ORDER_ID 0x101B\r |
54 | #define FORM_SET_NET_ORDER_ID 0x101C\r |
55 | #define FORM_SET_BEV_ORDER_ID 0x101D\r |
56 | #define FORM_FILE_EXPLORER_ID 0x101E\r |
57 | #define FORM_BOOT_ADD_DESCRIPTION_ID 0x101F\r |
58 | #define FORM_DRIVER_ADD_FILE_DESCRIPTION_ID 0x1020\r |
59 | #define FORM_CON_MODE_ID 0x1021\r |
60 | \r |
61 | #define MAXIMUM_FORM_ID 0x10FF\r |
62 | \r |
63 | #define KEY_VALUE_COM_SET_BAUD_RATE 0x1101\r |
64 | #define KEY_VALUE_COM_SET_DATA_BITS 0x1102\r |
65 | #define KEY_VALUE_COM_SET_STOP_BITS 0x1103\r |
66 | #define KEY_VALUE_COM_SET_PARITY 0x1104\r |
67 | #define KEY_VALUE_COM_SET_TERMI_TYPE 0x1105\r |
68 | #define KEY_VALUE_MAIN_BOOT_NEXT 0x1106\r |
69 | #define KEY_VALUE_BOOT_ADD_DESC_DATA 0x1107\r |
70 | #define KEY_VALUE_BOOT_ADD_OPT_DATA 0x1108\r |
71 | #define KEY_VALUE_DRIVER_ADD_DESC_DATA 0x1109\r |
72 | #define KEY_VALUE_DRIVER_ADD_OPT_DATA 0x110A\r |
73 | #define KEY_VALUE_SAVE_AND_EXIT 0x110B\r |
74 | #define KEY_VALUE_NO_SAVE_AND_EXIT 0x110C\r |
75 | #define KEY_VALUE_BOOT_FROM_FILE 0x110D\r |
76 | \r |
77 | #define MAXIMUM_NORMAL_KEY_VALUE 0x11FF\r |
78 | \r |
79 | //\r |
80 | // Varstore ID defined for Buffer Stoarge\r |
81 | //\r |
82 | #define VARSTORE_ID_BOOT_MAINT 0x1000\r |
83 | #define VARSTORE_ID_FILE_EXPLORER 0x1001\r |
84 | \r |
85 | ///\r |
86 | /// This is the structure that will be used to store the\r |
87 | /// question's current value. Use it at initialize time to\r |
88 | /// set default value for each question. When using at run\r |
89 | /// time, this map is returned by the callback function,\r |
90 | /// so dynamically changing the question's value will be\r |
91 | /// possible through this mechanism\r |
92 | ///\r |
93 | typedef struct {\r |
94 | //\r |
95 | // Three questions displayed at the main page\r |
96 | // for Timeout, BootNext Variables respectively\r |
97 | //\r |
98 | UINT16 BootTimeOut;\r |
99 | UINT16 BootNext;\r |
100 | \r |
101 | //\r |
102 | // This is the COM1 Attributes value storage\r |
103 | //\r |
104 | UINT8 COM1BaudRate;\r |
105 | UINT8 COM1DataRate;\r |
106 | UINT8 COM1StopBits;\r |
107 | UINT8 COM1Parity;\r |
108 | UINT8 COM1TerminalType;\r |
109 | \r |
110 | //\r |
111 | // This is the COM2 Attributes value storage\r |
112 | //\r |
113 | UINT8 COM2BaudRate;\r |
114 | UINT8 COM2DataRate;\r |
115 | UINT8 COM2StopBits;\r |
116 | UINT8 COM2Parity;\r |
117 | UINT8 COM2TerminalType;\r |
118 | \r |
119 | //\r |
120 | // Driver Option Add Handle page storage\r |
121 | //\r |
122 | UINT16 DriverAddHandleDesc[100];\r |
123 | UINT16 DriverAddHandleOptionalData[100];\r |
124 | UINT8 DriverAddActive;\r |
125 | UINT8 DriverAddForceReconnect;\r |
126 | \r |
127 | //\r |
128 | // Console Input/Output/Errorout using COM port check storage\r |
129 | //\r |
130 | UINT8 ConsoleInputCOM1;\r |
131 | UINT8 ConsoleInputCOM2;\r |
132 | UINT8 ConsoleOutputCOM1;\r |
133 | UINT8 ConsoleOutputCOM2;\r |
134 | UINT8 ConsoleErrorCOM1;\r |
135 | UINT8 ConsoleErrorCOM2;\r |
136 | \r |
137 | //\r |
138 | // At most 100 input/output/errorout device for console storage\r |
139 | //\r |
140 | UINT8 ConsoleCheck[100];\r |
141 | \r |
142 | //\r |
143 | // Boot or Driver Option Order storage\r |
144 | //\r |
145 | UINT8 OptionOrder[100];\r |
146 | UINT8 DriverOptionToBeDeleted[100];\r |
147 | \r |
148 | //\r |
149 | // Boot Option Delete storage\r |
150 | //\r |
151 | UINT8 BootOptionDel[100];\r |
152 | UINT8 DriverOptionDel[100];\r |
153 | \r |
154 | //\r |
155 | // This is the Terminal Attributes value storage\r |
156 | //\r |
157 | UINT8 COMBaudRate;\r |
158 | UINT8 COMDataRate;\r |
159 | UINT8 COMStopBits;\r |
160 | UINT8 COMParity;\r |
161 | UINT8 COMTerminalType;\r |
162 | \r |
163 | //\r |
164 | // Legacy Device Order Selection Storage\r |
165 | //\r |
166 | UINT8 LegacyFD[100];\r |
167 | UINT8 LegacyHD[100];\r |
168 | UINT8 LegacyCD[100];\r |
169 | UINT8 LegacyNET[100];\r |
170 | UINT8 LegacyBEV[100];\r |
171 | \r |
172 | //\r |
173 | // We use DisableMap array to record the enable/disable state of each boot device\r |
174 | // It should be taken as a bit array, from left to right there are totally 256 bits\r |
175 | // the most left one stands for BBS table item 0, and the most right one stands for item 256\r |
176 | // If the bit is 1, it means the boot device has been disabled.\r |
177 | //\r |
178 | UINT8 DisableMap[32];\r |
179 | \r |
180 | //\r |
181 | // Console Output Text Mode\r |
182 | //\r |
183 | UINT16 ConsoleOutMode;\r |
184 | \r |
185 | //\r |
186 | // UINT16 PadArea[10];\r |
187 | //\r |
188 | } BMM_FAKE_NV_DATA;\r |
189 | \r |
190 | //\r |
191 | // Key used by File Explorer forms\r |
192 | //\r |
193 | #define KEY_VALUE_SAVE_AND_EXIT_BOOT 0x1000\r |
194 | #define KEY_VALUE_NO_SAVE_AND_EXIT_BOOT 0x1001\r |
195 | #define KEY_VALUE_SAVE_AND_EXIT_DRIVER 0x1002\r |
196 | #define KEY_VALUE_NO_SAVE_AND_EXIT_DRIVER 0x1003\r |
197 | \r |
198 | ///\r |
199 | /// This is the data structure used by File Explorer formset\r |
200 | ///\r |
201 | typedef struct {\r |
202 | UINT16 DescriptionData[75];\r |
203 | UINT16 OptionalData[127];\r |
204 | UINT8 Active;\r |
205 | UINT8 ForceReconnect;\r |
206 | } FILE_EXPLORER_NV_DATA;\r |
207 | \r |
208 | #endif\r |
209 | \r |