mirror of https://github.com/acidanthera/audk.git
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:
parent
168da756c6
commit
b0dd810861
|
@ -1,6 +1,5 @@
|
||||||
/** @file
|
/** @file
|
||||||
BDS Lib functions which relate with create or process the boot
|
BDS Lib functions which relate with create or process the boot option.
|
||||||
option.
|
|
||||||
|
|
||||||
Copyright (c) 2004 - 2008, Intel Corporation. <BR>
|
Copyright (c) 2004 - 2008, Intel Corporation. <BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
|
|
|
@ -317,9 +317,11 @@ BdsLibConnectAllDriversToAllControllers (
|
||||||
element being a USB WWID or a USB Class device
|
element being a USB WWID or a USB Class device
|
||||||
path
|
path
|
||||||
|
|
||||||
@return EFI_INVALID_PARAMETER
|
@return EFI_INVALID_PARAMETER RemainingDevicePath is NULL pointer.
|
||||||
@return EFI_SUCCESS
|
RemainingDevicePath is not a USB device path.
|
||||||
@return EFI_NOT_FOUND
|
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
|
EFI_STATUS
|
||||||
|
|
|
@ -47,7 +47,6 @@ IsNvNeed (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function update console variable based on ConVarName, it can
|
This function update console variable based on ConVarName, it can
|
||||||
add or remove one specific console device path from the variable
|
add or remove one specific console device path from the variable
|
||||||
|
@ -185,6 +184,7 @@ BdsLibUpdateConsoleVariable (
|
||||||
@param ConVarName Console related variable name, ConIn, ConOut,
|
@param ConVarName Console related variable name, ConIn, ConOut,
|
||||||
ErrOut.
|
ErrOut.
|
||||||
|
|
||||||
|
@retval EFI_UNSUPPORTED Request console variable does not exist.
|
||||||
@retval EFI_NOT_FOUND There is not any console devices connected
|
@retval EFI_NOT_FOUND There is not any console devices connected
|
||||||
success
|
success
|
||||||
@retval EFI_SUCCESS Success connect any one instance of the console
|
@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_SUCCESS ConsoleControl has been flipped to graphics and logo displayed.
|
||||||
@retval EFI_UNSUPPORTED Logo not found.
|
@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
|
EFI_STATUS
|
||||||
|
@ -875,7 +878,7 @@ EnableQuietBoot (
|
||||||
Simple Text Out screens will now be synced up with all non UGA output devices
|
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_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
|
EFI_STATUS
|
||||||
|
|
|
@ -1492,45 +1492,3 @@ Done:
|
||||||
Str.str[Str.len] = 0;
|
Str.str[Str.len] = 0;
|
||||||
return Str.str;
|
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;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
#/** @file
|
#/** @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>
|
# Copyright (c) 2007 - 2008, Intel Corporation. <BR>
|
||||||
# All rights reserved. This program and the accompanying materials
|
# All rights reserved. This program and the accompanying materials
|
||||||
|
|
Loading…
Reference in New Issue