MdeModulePkg:Change the type of BootNext
[mirror_edk2.git] / MdeModulePkg / Library / BootMaintenanceManagerLib / FormGuid.h
CommitLineData
4af04335
DB
1/** @file\r
2Formset guids, form id and VarStore data structure for Boot Maintenance Manager.\r
3\r
4Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT 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 FORM_MAIN_ID 0x1001\r
23#define FORM_BOOT_ADD_ID 0x1002\r
24#define FORM_BOOT_DEL_ID 0x1003\r
25#define FORM_BOOT_CHG_ID 0x1004\r
26#define FORM_DRV_ADD_ID 0x1005\r
27#define FORM_DRV_DEL_ID 0x1006\r
28#define FORM_DRV_CHG_ID 0x1007\r
29#define FORM_CON_MAIN_ID 0x1008\r
30#define FORM_CON_IN_ID 0x1009\r
31#define FORM_CON_OUT_ID 0x100A\r
32#define FORM_CON_ERR_ID 0x100B\r
33#define FORM_FILE_SEEK_ID 0x100C\r
34#define FORM_FILE_NEW_SEEK_ID 0x100D\r
35#define FORM_DRV_ADD_FILE_ID 0x100E\r
36#define FORM_DRV_ADD_HANDLE_ID 0x100F\r
37#define FORM_DRV_ADD_HANDLE_DESC_ID 0x1010\r
38#define FORM_BOOT_NEXT_ID 0x1011\r
39#define FORM_TIME_OUT_ID 0x1012\r
40#define FORM_BOOT_SETUP_ID 0x1014\r
41#define FORM_DRIVER_SETUP_ID 0x1015\r
42#define FORM_BOOT_LEGACY_DEVICE_ID 0x1016\r
43#define FORM_CON_COM_ID 0x1017\r
44#define FORM_CON_COM_SETUP_ID 0x1018\r
45#define FORM_BOOT_ADD_DESCRIPTION_ID 0x101F\r
46#define FORM_DRIVER_ADD_FILE_DESCRIPTION_ID 0x1020\r
47#define FORM_CON_MODE_ID 0x1021\r
48#define FORM_MEMORY_CHECK_ID 0x1022\r
49#define FORM_UEFI_OPTIMIZED_BOOT_ID 0x1023\r
50#define FORM_BOOT_FROM_FILE_ID 0x1024\r
51\r
52\r
53#define MAXIMUM_FORM_ID 0x10FF\r
54\r
55#define KEY_VALUE_COM_SET_BAUD_RATE 0x1101\r
56#define KEY_VALUE_COM_SET_DATA_BITS 0x1102\r
57#define KEY_VALUE_COM_SET_STOP_BITS 0x1103\r
58#define KEY_VALUE_COM_SET_PARITY 0x1104\r
59#define KEY_VALUE_COM_SET_TERMI_TYPE 0x1105\r
60#define KEY_VALUE_MAIN_BOOT_NEXT 0x1106\r
61#define KEY_VALUE_BOOT_ADD_DESC_DATA 0x1107\r
62#define KEY_VALUE_BOOT_ADD_OPT_DATA 0x1108\r
63#define KEY_VALUE_DRIVER_ADD_DESC_DATA 0x1109\r
64#define KEY_VALUE_DRIVER_ADD_OPT_DATA 0x110A\r
65#define KEY_VALUE_SAVE_AND_EXIT 0x110B\r
66#define KEY_VALUE_NO_SAVE_AND_EXIT 0x110C\r
67#define KEY_VALUE_BOOT_FROM_FILE 0x110D\r
68#define FORM_RESET 0x110E\r
69#define KEY_VALUE_BOOT_DESCRIPTION 0x110F\r
70#define KEY_VALUE_BOOT_OPTION 0x1110\r
71#define KEY_VALUE_DRIVER_DESCRIPTION 0x1111\r
72#define KEY_VALUE_DRIVER_OPTION 0x1112\r
73#define KEY_VALUE_SAVE_AND_EXIT_BOOT 0x1113\r
74#define KEY_VALUE_NO_SAVE_AND_EXIT_BOOT 0x1114\r
75#define KEY_VALUE_SAVE_AND_EXIT_DRIVER 0x1115\r
76#define KEY_VALUE_NO_SAVE_AND_EXIT_DRIVER 0x1116\r
77\r
78#define MAXIMUM_NORMAL_KEY_VALUE 0x11FF\r
79\r
80//\r
81// Varstore ID defined for Buffer Storage\r
82//\r
83#define VARSTORE_ID_BOOT_MAINT 0x1000\r
84\r
85//\r
86// End Label\r
87//\r
88#define LABEL_BMM_PLATFORM_INFORMATION 0xfffe\r
89#define LABEL_END 0xffff\r
90#define MAX_MENU_NUMBER 100\r
91\r
92///\r
93/// This is the structure that will be used to store the\r
94/// question's current value. Use it at initialize time to\r
95/// set default value for each question. When using at run\r
96/// time, this map is returned by the callback function,\r
97/// so dynamically changing the question's value will be\r
98/// possible through this mechanism\r
99///\r
100typedef struct {\r
101 //\r
102 // Three questions displayed at the main page\r
103 // for Timeout, BootNext, Variables respectively\r
104 //\r
105 UINT16 BootTimeOut;\r
f7986526 106 UINT32 BootNext;\r
4af04335
DB
107\r
108 //\r
109 // This is the COM1 Attributes value storage\r
110 //\r
111 UINT8 COM1BaudRate;\r
112 UINT8 COM1DataRate;\r
113 UINT8 COM1StopBits;\r
114 UINT8 COM1Parity;\r
115 UINT8 COM1TerminalType;\r
116\r
117 //\r
118 // This is the COM2 Attributes value storage\r
119 //\r
120 UINT8 COM2BaudRate;\r
121 UINT8 COM2DataRate;\r
122 UINT8 COM2StopBits;\r
123 UINT8 COM2Parity;\r
124 UINT8 COM2TerminalType;\r
125\r
126 //\r
127 // Driver Option Add Handle page storage\r
128 //\r
129 UINT16 DriverAddHandleDesc[MAX_MENU_NUMBER];\r
130 UINT16 DriverAddHandleOptionalData[MAX_MENU_NUMBER];\r
131 UINT8 DriverAddActive;\r
132 UINT8 DriverAddForceReconnect;\r
133\r
134 //\r
135 // Console Input/Output/Errorout using COM port check storage\r
136 //\r
137 UINT8 ConsoleInputCOM1;\r
138 UINT8 ConsoleInputCOM2;\r
139 UINT8 ConsoleOutputCOM1;\r
140 UINT8 ConsoleOutputCOM2;\r
141 UINT8 ConsoleErrorCOM1;\r
142 UINT8 ConsoleErrorCOM2;\r
143\r
144 //\r
145 // At most 100 input/output/errorout device for console storage\r
146 //\r
147 UINT8 ConsoleCheck[MAX_MENU_NUMBER];\r
148 \r
149 //\r
150 // At most 100 input/output/errorout device for console storage\r
151 //\r
152 UINT8 ConsoleInCheck[MAX_MENU_NUMBER];\r
153 UINT8 ConsoleOutCheck[MAX_MENU_NUMBER];\r
154 UINT8 ConsoleErrCheck[MAX_MENU_NUMBER];\r
155\r
156 //\r
157 // Boot or Driver Option Order storage\r
158 // The value is the OptionNumber+1 because the order list value cannot be 0\r
159 // Use UINT32 to hold the potential value 0xFFFF+1=0x10000\r
160 //\r
161 UINT32 BootOptionOrder[MAX_MENU_NUMBER];\r
162 UINT32 DriverOptionOrder[MAX_MENU_NUMBER];\r
163 //\r
164 // Boot or Driver Option Delete storage\r
165 //\r
166 BOOLEAN BootOptionDel[MAX_MENU_NUMBER];\r
167 BOOLEAN DriverOptionDel[MAX_MENU_NUMBER];\r
168 BOOLEAN BootOptionDelMark[MAX_MENU_NUMBER];\r
169 BOOLEAN DriverOptionDelMark[MAX_MENU_NUMBER];\r
170\r
171 //\r
172 // This is the Terminal Attributes value storage\r
173 //\r
174 UINT8 COMBaudRate[MAX_MENU_NUMBER];\r
175 UINT8 COMDataRate[MAX_MENU_NUMBER];\r
176 UINT8 COMStopBits[MAX_MENU_NUMBER];\r
177 UINT8 COMParity[MAX_MENU_NUMBER];\r
178 UINT8 COMTerminalType[MAX_MENU_NUMBER];\r
179 UINT8 COMFlowControl[MAX_MENU_NUMBER];\r
180\r
181 //\r
182 // We use DisableMap array to record the enable/disable state of each boot device\r
183 // It should be taken as a bit array, from left to right there are totally 256 bits\r
184 // the most left one stands for BBS table item 0, and the most right one stands for item 256\r
185 // If the bit is 1, it means the boot device has been disabled.\r
186 //\r
187 UINT8 DisableMap[32];\r
188\r
189 //\r
190 // Console Output Text Mode\r
191 //\r
192 UINT16 ConsoleOutMode;\r
193\r
194 //\r
195 // UINT16 PadArea[10];\r
196 //\r
197\r
198 UINT16 BootDescriptionData[MAX_MENU_NUMBER];\r
199 UINT16 BootOptionalData[127];\r
200 UINT16 DriverDescriptionData[MAX_MENU_NUMBER];\r
201 UINT16 DriverOptionalData[127];\r
202 BOOLEAN BootOptionChanged;\r
203 BOOLEAN DriverOptionChanged;\r
204 UINT8 Active;\r
205 UINT8 ForceReconnect;\r
206} BMM_FAKE_NV_DATA;\r
207\r
208#endif\r
209\r