and manage the legacy boot option, all legacy boot option is getting from\r
the legacy BBS table.\r
\r
-Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
UINTN BootOrderSize;\r
UINTN Index;\r
UINTN StartPosition;\r
- \r
+\r
BDS_COMMON_OPTION *BootOption;\r
- \r
+\r
CHAR16 OptionName[sizeof ("Boot####")];\r
UINT16 *BbsIndexArray;\r
UINT16 *DeviceTypeArray;\r
ASSERT (*DisBootOption != NULL);\r
\r
for (Index = 0; Index < BootOrderSize / sizeof (UINT16); Index++) {\r
- \r
+\r
UnicodeSPrint (OptionName, sizeof (OptionName), L"Boot%04x", BootOrder[Index]);\r
InitializeListHead (&List);\r
BootOption = BdsLibVariableToOption (&List, OptionName);\r
ASSERT (BootOption != NULL);\r
- \r
+\r
if ((DevicePathType (BootOption->DevicePath) == BBS_DEVICE_PATH) &&\r
(DevicePathSubType (BootOption->DevicePath) == BBS_BBS_DP)) {\r
//\r
if (BbsIndexArray[Index] == (DevOrder[DevOrderCount] & 0xFF)) {\r
StartPosition = MIN (StartPosition, Index);\r
NewBootOption[DevOrderCount] = BootOrder[Index];\r
- \r
+\r
if ((DevOrder[DevOrderCount] & 0xFF00) == 0xFF00) {\r
(*DisBootOption)[*DisBootOptionCount] = BootOrder[Index];\r
(*DisBootOptionCount)++;\r
/**\r
Group the legacy boot options in the BootOption.\r
\r
- The routine assumes the boot options in the beginning that covers all the device \r
+ The routine assumes the boot options in the beginning that covers all the device\r
types are ordered properly and re-position the following boot options just after\r
the corresponding boot options with the same device type.\r
For example:\r