1 /** @file 2 Define some data used for Boot Maint 3 4 Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR> 5 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 "BootMaintenanceManager.h" 16 17 VOID *mStartOpCodeHandle = NULL; 18 VOID *mEndOpCodeHandle = NULL; 19 EFI_IFR_GUID_LABEL *mStartLabel = NULL; 20 EFI_IFR_GUID_LABEL *mEndLabel = NULL; 21 22 /// 23 /// Terminal type string token storage 24 /// 25 UINT16 TerminalType[] = { 26 STRING_TOKEN(STR_COM_TYPE_0), 27 STRING_TOKEN(STR_COM_TYPE_1), 28 STRING_TOKEN(STR_COM_TYPE_2), 29 STRING_TOKEN(STR_COM_TYPE_3), 30 STRING_TOKEN(STR_COM_TYPE_4), 31 }; 32 33 /// 34 /// Flow Control type string token storage 35 /// 36 UINT16 mFlowControlType[2] = { 37 STRING_TOKEN(STR_NONE_FLOW_CONTROL), 38 STRING_TOKEN(STR_HARDWARE_FLOW_CONTROL) 39 }; 40 41 UINT32 mFlowControlValue[2] = { 42 0, 43 UART_FLOW_CONTROL_HARDWARE 44 }; 45 46 /// 47 /// Console Input Device Selection Menu 48 /// 49 BM_MENU_OPTION ConsoleInpMenu = { 50 BM_MENU_OPTION_SIGNATURE, 51 {NULL}, 52 0 53 }; 54 55 /// 56 /// Console Output Device Selection Menu 57 /// 58 BM_MENU_OPTION ConsoleOutMenu = { 59 BM_MENU_OPTION_SIGNATURE, 60 {NULL}, 61 0 62 }; 63 64 /// 65 /// Error Output Device Selection Menu 66 /// 67 BM_MENU_OPTION ConsoleErrMenu = { 68 BM_MENU_OPTION_SIGNATURE, 69 {NULL}, 70 0 71 }; 72 73 /// 74 /// Boot Option from variable Menu 75 /// 76 BM_MENU_OPTION BootOptionMenu = { 77 BM_MENU_OPTION_SIGNATURE, 78 {NULL}, 79 0 80 }; 81 82 /// 83 /// Driver Option from variable menu 84 /// 85 BM_MENU_OPTION DriverOptionMenu = { 86 BM_MENU_OPTION_SIGNATURE, 87 {NULL}, 88 0 89 }; 90 91 /// 92 /// Handles in current system selection menu 93 /// 94 BM_MENU_OPTION DriverMenu = { 95 BM_MENU_OPTION_SIGNATURE, 96 {NULL}, 97 0 98 }; 99 100 BM_MENU_OPTION TerminalMenu = { 101 BM_MENU_OPTION_SIGNATURE, 102 {NULL}, 103 0 104 }; 105 106 /// 107 /// Value and string token correspondency for BaudRate 108 /// 109 COM_ATTR BaudRateList[19] = { 110 { 111 115200, 112 STRING_TOKEN(STR_COM_BAUD_RATE_0) 113 }, 114 { 115 57600, 116 STRING_TOKEN(STR_COM_BAUD_RATE_1) 117 }, 118 { 119 38400, 120 STRING_TOKEN(STR_COM_BAUD_RATE_2) 121 }, 122 { 123 19200, 124 STRING_TOKEN(STR_COM_BAUD_RATE_3) 125 }, 126 { 127 9600, 128 STRING_TOKEN(STR_COM_BAUD_RATE_4) 129 }, 130 { 131 7200, 132 STRING_TOKEN(STR_COM_BAUD_RATE_5) 133 }, 134 { 135 4800, 136 STRING_TOKEN(STR_COM_BAUD_RATE_6) 137 }, 138 { 139 3600, 140 STRING_TOKEN(STR_COM_BAUD_RATE_7) 141 }, 142 { 143 2400, 144 STRING_TOKEN(STR_COM_BAUD_RATE_8) 145 }, 146 { 147 2000, 148 STRING_TOKEN(STR_COM_BAUD_RATE_9) 149 }, 150 { 151 1800, 152 STRING_TOKEN(STR_COM_BAUD_RATE_10) 153 }, 154 { 155 1200, 156 STRING_TOKEN(STR_COM_BAUD_RATE_11) 157 }, 158 { 159 600, 160 STRING_TOKEN(STR_COM_BAUD_RATE_12) 161 }, 162 { 163 300, 164 STRING_TOKEN(STR_COM_BAUD_RATE_13) 165 }, 166 { 167 150, 168 STRING_TOKEN(STR_COM_BAUD_RATE_14) 169 }, 170 { 171 134, 172 STRING_TOKEN(STR_COM_BAUD_RATE_15) 173 }, 174 { 175 110, 176 STRING_TOKEN(STR_COM_BAUD_RATE_16) 177 }, 178 { 179 75, 180 STRING_TOKEN(STR_COM_BAUD_RATE_17) 181 }, 182 { 183 50, 184 STRING_TOKEN(STR_COM_BAUD_RATE_18) 185 } 186 }; 187 188 /// 189 /// Value and string token correspondency for DataBits 190 /// 191 COM_ATTR DataBitsList[4] = { 192 { 193 5, 194 STRING_TOKEN(STR_COM_DATA_BITS_0) 195 }, 196 { 197 6, 198 STRING_TOKEN(STR_COM_DATA_BITS_1) 199 }, 200 { 201 7, 202 STRING_TOKEN(STR_COM_DATA_BITS_2) 203 }, 204 { 205 8, 206 STRING_TOKEN(STR_COM_DATA_BITS_3) 207 } 208 }; 209 210 /// 211 /// Value and string token correspondency for Parity 212 /// 213 COM_ATTR ParityList[5] = { 214 { 215 NoParity, 216 STRING_TOKEN(STR_COM_PAR_0) 217 }, 218 { 219 EvenParity, 220 STRING_TOKEN(STR_COM_PAR_1) 221 }, 222 { 223 OddParity, 224 STRING_TOKEN(STR_COM_PAR_2) 225 }, 226 { 227 MarkParity, 228 STRING_TOKEN(STR_COM_PAR_3) 229 }, 230 { 231 SpaceParity, 232 STRING_TOKEN(STR_COM_PAR_4) 233 } 234 }; 235 236 /// 237 /// Value and string token correspondency for Baudreate 238 /// 239 COM_ATTR StopBitsList[3] = { 240 { 241 OneStopBit, 242 STRING_TOKEN(STR_COM_STOP_BITS_0) 243 }, 244 { 245 OneFiveStopBits, 246 STRING_TOKEN(STR_COM_STOP_BITS_1) 247 }, 248 { 249 TwoStopBits, 250 STRING_TOKEN(STR_COM_STOP_BITS_2) 251 } 252 }; 253 254 /// 255 /// Guid for messaging path, used in Serial port setting. 256 /// 257 EFI_GUID TerminalTypeGuid[] = { 258 DEVICE_PATH_MESSAGING_PC_ANSI, 259 DEVICE_PATH_MESSAGING_VT_100, 260 DEVICE_PATH_MESSAGING_VT_100_PLUS, 261 DEVICE_PATH_MESSAGING_VT_UTF8, 262 EFI_TTY_TERM_GUID 263 }; 264