/** @file\r
- BDS Lib functions which relate with create or process the boot\r
- option.\r
+ BDS Lib functions which relate with create or process the boot option.\r
\r
Copyright (c) 2004 - 2008, Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
element being a USB WWID or a USB Class device\r
path\r
\r
- @return EFI_INVALID_PARAMETER\r
- @return EFI_SUCCESS\r
- @return EFI_NOT_FOUND\r
+ @return EFI_INVALID_PARAMETER RemainingDevicePath is NULL pointer.\r
+ RemainingDevicePath is not a USB device path.\r
+ Invalid HostControllerPI type.\r
+ @return EFI_SUCCESS Sucess to connect USB device\r
+ @return EFI_NOT_FOUND Fail to find hanlde for USB controller to connect.\r
\r
**/\r
EFI_STATUS\r
}\r
}\r
\r
-\r
/**\r
This function update console variable based on ConVarName, it can\r
add or remove one specific console device path from the variable\r
@param ConVarName Console related variable name, ConIn, ConOut,\r
ErrOut.\r
\r
+ @retval EFI_UNSUPPORTED Request console variable does not exist.\r
@retval EFI_NOT_FOUND There is not any console devices connected\r
success\r
@retval EFI_SUCCESS Success connect any one instance of the console\r
\r
@retval EFI_SUCCESS ConsoleControl has been flipped to graphics and logo displayed.\r
@retval EFI_UNSUPPORTED Logo not found.\r
+ Fail to locate ConsoleControl protocol.\r
+ Fail to get UgaDraw or Gop handle.\r
+ Fail to switch grahic mode.\r
\r
**/\r
EFI_STATUS\r
Simple Text Out screens will now be synced up with all non UGA output devices\r
\r
@retval EFI_SUCCESS UGA devices are back in text mode and synced up.\r
- @retval EFI_UNSUPPORTED Logo not found\r
+ @retval EFI_UNSUPPORTED Fail to locate ConsoleControl Protocol.\r
\r
**/\r
EFI_STATUS\r
Str.str[Str.len] = 0;\r
return Str.str;\r
}\r
-\r
-/**\r
- Function creates a device path data structure that identically matches the\r
- device path passed in.\r
-\r
- @param DevPath A pointer to a device path data structure.\r
-\r
- @return The new copy of DevPath is created to identically match the input.\r
- @return Otherwise, NULL is returned.\r
-\r
-**/\r
-EFI_DEVICE_PATH_PROTOCOL *\r
-LibDuplicateDevicePathInstance (\r
- IN EFI_DEVICE_PATH_PROTOCOL *DevPath\r
- )\r
-{\r
- EFI_DEVICE_PATH_PROTOCOL *NewDevPath;\r
- EFI_DEVICE_PATH_PROTOCOL *DevicePathInst;\r
- EFI_DEVICE_PATH_PROTOCOL *Temp;\r
- UINTN Size;\r
-\r
- //\r
- // get the size of an instance from the input\r
- //\r
- Temp = DevPath;\r
- DevicePathInst = GetNextDevicePathInstance (&Temp, &Size);\r
-\r
- //\r
- // Make a copy\r
- //\r
- NewDevPath = NULL;\r
- if (Size != 0) {\r
- NewDevPath = AllocateZeroPool (Size);\r
- ASSERT (NewDevPath != NULL);\r
- }\r
-\r
- if (NewDevPath != NULL) {\r
- CopyMem (NewDevPath, DevicePathInst, Size);\r
- }\r
-\r
- return NewDevPath;\r
-}\r
#/** @file\r
# \r
-# Component name for module GenericBdsLib\r
+# General BDS defines and produce general interfaces for platform BDS driver including:\r
+# 1) BDS boot policy interface;\r
+# 2) BDS boot device connect interface;\r
+# 3) BDS Misc interfaces for mainting boot variable, ouput string, etc.\r
# \r
# Copyright (c) 2007 - 2008, Intel Corporation. <BR>\r
# All rights reserved. This program and the accompanying materials\r