\r
SetDevicePathEndNode (Next);\r
//\r
- // Check USB1.1 console\r
+ // Connect the instance device path\r
//\r
- if ((DevicePathType (Instance) == MESSAGING_DEVICE_PATH) &&\r
- ((DevicePathSubType (Instance) == MSG_USB_CLASS_DP)\r
- || (DevicePathSubType (Instance) == MSG_USB_WWID_DP)\r
- )) {\r
+ Status = BdsLibConnectDevicePath (Instance);\r
+ if (EFI_ERROR (Status)) {\r
//\r
- // Check the Usb console in Usb2.0 bus firstly, then Usb1.1 bus\r
+ // Delete the instance from the console varialbe\r
//\r
- Status = BdsLibConnectUsbDevByShortFormDP (PCI_IF_EHCI, Instance);\r
- if (!EFI_ERROR (Status)) {\r
- DeviceExist = TRUE;\r
- }\r
-\r
- Status = BdsLibConnectUsbDevByShortFormDP (PCI_IF_UHCI, Instance);\r
- if (!EFI_ERROR (Status)) {\r
- DeviceExist = TRUE;\r
- }\r
+ BdsLibUpdateConsoleVariable (ConVarName, NULL, Instance);\r
} else {\r
- //\r
- // Connect the instance device path\r
- //\r
- Status = BdsLibConnectDevicePath (Instance);\r
- if (EFI_ERROR (Status)) {\r
- //\r
- // Delete the instance from the console varialbe\r
- //\r
- BdsLibUpdateConsoleVariable (ConVarName, NULL, Instance);\r
- } else {\r
- DeviceExist = TRUE;\r
- }\r
+ DeviceExist = TRUE;\r
}\r
FreePool(Instance);\r
} while (CopyOfDevicePath != NULL);\r