From d8b00f839d88bb2050cd3affb3a0686455d769a4 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Wed, 25 Feb 2009 20:37:50 +0000 Subject: [PATCH] - Scan three PCI buses in the legacy USB driver instead of 2. Fixes UHCI/EHCI detection issues in VMWare Workstation 6.5 and higher (Emulated UHCI is located on bus 2). svn path=/trunk/; revision=39755 --- reactos/drivers/usb/nt4compat/usbdriver/ehci.c | 2 +- reactos/drivers/usb/nt4compat/usbdriver/uhci.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/drivers/usb/nt4compat/usbdriver/ehci.c b/reactos/drivers/usb/nt4compat/usbdriver/ehci.c index f673b17bd16..172e9c0d6fa 100644 --- a/reactos/drivers/usb/nt4compat/usbdriver/ehci.c +++ b/reactos/drivers/usb/nt4compat/usbdriver/ehci.c @@ -3439,7 +3439,7 @@ ehci_probe(PDRIVER_OBJECT drvr_obj, PUNICODE_STRING reg_path, PUSB_DEV_MANAGER d pdev = NULL; //scan the bus to find ehci controller - for(bus = 0; bus < 2; bus++) /*enum only bus0 and bus1 */ + for(bus = 0; bus < 3; bus++) /* enum bus0-bus2 */ { for(i = 0; i < PCI_MAX_DEVICES; i++) { diff --git a/reactos/drivers/usb/nt4compat/usbdriver/uhci.c b/reactos/drivers/usb/nt4compat/usbdriver/uhci.c index 0fad46868be..7fb279df573 100644 --- a/reactos/drivers/usb/nt4compat/usbdriver/uhci.c +++ b/reactos/drivers/usb/nt4compat/usbdriver/uhci.c @@ -627,7 +627,7 @@ uhci_probe(PDRIVER_OBJECT drvr_obj, PUNICODE_STRING reg_path, PUSB_DEV_MANAGER d pdev = NULL; //scan the bus to find uhci controller - for(bus = 0; bus < 2; bus++) /*enum only bus0 and bus1 */ + for(bus = 0; bus < 3; bus++) /* enum bus0-bus2 */ { for(i = 0; i < PCI_MAX_DEVICES; i++) {