diff options
author | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-08-10 06:30:00 +0000 |
---|---|---|
committer | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-08-10 06:30:00 +0000 |
commit | 0c7517b92b5fd64276bed4e45acb18aba3fa7602 (patch) | |
tree | 237bdc84a6466626f618a577cc7e28716af62fed /IntelFrameworkModulePkg | |
parent | a90ccab851017e45d32ade0644aca0957a9ea430 (diff) | |
download | edk2-platforms-0c7517b92b5fd64276bed4e45acb18aba3fa7602.tar.xz |
remove a segment of code, in which it forces EHCI to be connected firstly before UHCI when ConOut variable contains such usb device path.
This code was used to tune performance in Edk. Due to EdkII has enhanced Ehci driver to force it to be connected before UHCI, then the same logic is not necessary.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9030 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r-- | IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c index ab7879def1..42b0a23769 100644 --- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c +++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c @@ -361,37 +361,16 @@ BdsLibConnectConsoleVariable ( SetDevicePathEndNode (Next);
//
- // Check USB1.1 console
+ // Connect the instance device path
//
- if ((DevicePathType (Instance) == MESSAGING_DEVICE_PATH) &&
- ((DevicePathSubType (Instance) == MSG_USB_CLASS_DP)
- || (DevicePathSubType (Instance) == MSG_USB_WWID_DP)
- )) {
+ Status = BdsLibConnectDevicePath (Instance);
+ if (EFI_ERROR (Status)) {
//
- // Check the Usb console in Usb2.0 bus firstly, then Usb1.1 bus
+ // Delete the instance from the console varialbe
//
- Status = BdsLibConnectUsbDevByShortFormDP (PCI_IF_EHCI, Instance);
- if (!EFI_ERROR (Status)) {
- DeviceExist = TRUE;
- }
-
- Status = BdsLibConnectUsbDevByShortFormDP (PCI_IF_UHCI, Instance);
- if (!EFI_ERROR (Status)) {
- DeviceExist = TRUE;
- }
+ BdsLibUpdateConsoleVariable (ConVarName, NULL, Instance);
} else {
- //
- // Connect the instance device path
- //
- Status = BdsLibConnectDevicePath (Instance);
- if (EFI_ERROR (Status)) {
- //
- // Delete the instance from the console varialbe
- //
- BdsLibUpdateConsoleVariable (ConVarName, NULL, Instance);
- } else {
- DeviceExist = TRUE;
- }
+ DeviceExist = TRUE;
}
FreePool(Instance);
} while (CopyOfDevicePath != NULL);
|