Code scrub for GenericBdsLib library instance.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6786 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2 2008-12-01 05:55:58 +00:00
parent 168da756c6
commit b0dd810861
5 changed files with 15 additions and 50 deletions

View File

@ -1,6 +1,5 @@
/** @file
BDS Lib functions which relate with create or process the boot
option.
BDS Lib functions which relate with create or process the boot option.
Copyright (c) 2004 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials

View File

@ -317,9 +317,11 @@ BdsLibConnectAllDriversToAllControllers (
element being a USB WWID or a USB Class device
path
@return EFI_INVALID_PARAMETER
@return EFI_SUCCESS
@return EFI_NOT_FOUND
@return EFI_INVALID_PARAMETER RemainingDevicePath is NULL pointer.
RemainingDevicePath is not a USB device path.
Invalid HostControllerPI type.
@return EFI_SUCCESS Sucess to connect USB device
@return EFI_NOT_FOUND Fail to find hanlde for USB controller to connect.
**/
EFI_STATUS

View File

@ -47,7 +47,6 @@ IsNvNeed (
}
}
/**
This function update console variable based on ConVarName, it can
add or remove one specific console device path from the variable
@ -185,6 +184,7 @@ BdsLibUpdateConsoleVariable (
@param ConVarName Console related variable name, ConIn, ConOut,
ErrOut.
@retval EFI_UNSUPPORTED Request console variable does not exist.
@retval EFI_NOT_FOUND There is not any console devices connected
success
@retval EFI_SUCCESS Success connect any one instance of the console
@ -627,6 +627,9 @@ LockKeyboards (
@retval EFI_SUCCESS ConsoleControl has been flipped to graphics and logo displayed.
@retval EFI_UNSUPPORTED Logo not found.
Fail to locate ConsoleControl protocol.
Fail to get UgaDraw or Gop handle.
Fail to switch grahic mode.
**/
EFI_STATUS
@ -875,7 +878,7 @@ EnableQuietBoot (
Simple Text Out screens will now be synced up with all non UGA output devices
@retval EFI_SUCCESS UGA devices are back in text mode and synced up.
@retval EFI_UNSUPPORTED Logo not found
@retval EFI_UNSUPPORTED Fail to locate ConsoleControl Protocol.
**/
EFI_STATUS

View File

@ -1492,45 +1492,3 @@ Done:
Str.str[Str.len] = 0;
return Str.str;
}
/**
Function creates a device path data structure that identically matches the
device path passed in.
@param DevPath A pointer to a device path data structure.
@return The new copy of DevPath is created to identically match the input.
@return Otherwise, NULL is returned.
**/
EFI_DEVICE_PATH_PROTOCOL *
LibDuplicateDevicePathInstance (
IN EFI_DEVICE_PATH_PROTOCOL *DevPath
)
{
EFI_DEVICE_PATH_PROTOCOL *NewDevPath;
EFI_DEVICE_PATH_PROTOCOL *DevicePathInst;
EFI_DEVICE_PATH_PROTOCOL *Temp;
UINTN Size;
//
// get the size of an instance from the input
//
Temp = DevPath;
DevicePathInst = GetNextDevicePathInstance (&Temp, &Size);
//
// Make a copy
//
NewDevPath = NULL;
if (Size != 0) {
NewDevPath = AllocateZeroPool (Size);
ASSERT (NewDevPath != NULL);
}
if (NewDevPath != NULL) {
CopyMem (NewDevPath, DevicePathInst, Size);
}
return NewDevPath;
}

View File

@ -1,6 +1,9 @@
#/** @file
#
# Component name for module GenericBdsLib
# General BDS defines and produce general interfaces for platform BDS driver including:
# 1) BDS boot policy interface;
# 2) BDS boot device connect interface;
# 3) BDS Misc interfaces for mainting boot variable, ouput string, etc.
#
# Copyright (c) 2007 - 2008, Intel Corporation. <BR>
# All rights reserved. This program and the accompanying materials