Author: cgutman
Date: Mon May 17 03:25:18 2010
New Revision: 47250
URL:
http://svn.reactos.org/svn/reactos?rev=47250&view=rev
Log:
[USB]
- Fix device interface activation
- Add usbehci to build
Modified:
branches/aicom-hardware-fun/drivers/usb/directory.rbuild
branches/aicom-hardware-fun/drivers/usb/miniport/common/fdo.c
branches/aicom-hardware-fun/drivers/usb/miniport/common/pdo.c
Modified: branches/aicom-hardware-fun/drivers/usb/directory.rbuild
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-hardware-fun/drivers/usb/…
==============================================================================
--- branches/aicom-hardware-fun/drivers/usb/directory.rbuild [iso-8859-1] (original)
+++ branches/aicom-hardware-fun/drivers/usb/directory.rbuild [iso-8859-1] Mon May 17
03:25:18 2010
@@ -6,6 +6,9 @@
</directory>
<directory name="nt4compat">
<xi:include href="nt4compat/directory.rbuild" />
+ </directory>
+ <directory name="usbehci">
+ <xi:include href="usbehci/usbehci.rbuild" />
</directory>
<directory name="usbd">
<xi:include href="usbd/usbd.rbuild" />
Modified: branches/aicom-hardware-fun/drivers/usb/miniport/common/fdo.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-hardware-fun/drivers/usb/…
==============================================================================
--- branches/aicom-hardware-fun/drivers/usb/miniport/common/fdo.c [iso-8859-1] (original)
+++ branches/aicom-hardware-fun/drivers/usb/miniport/common/fdo.c [iso-8859-1] Mon May 17
03:25:18 2010
@@ -218,6 +218,13 @@
}
DPRINT("Busnumber %d\n", DeviceExtension->SystemIoBusNumber);
+
+ Status = IoSetDeviceInterfaceState(&DeviceExtension->HcdInterfaceName, TRUE);
+ if (!NT_SUCCESS(Status))
+ {
+ DPRINT1("IoSetDeviceInterfaceState failed (0x%x)\n", Status);
+ return Status;
+ }
/* Init wrapper with this object */
return InitLinuxWrapper(DeviceObject);
Modified: branches/aicom-hardware-fun/drivers/usb/miniport/common/pdo.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-hardware-fun/drivers/usb/…
==============================================================================
--- branches/aicom-hardware-fun/drivers/usb/miniport/common/pdo.c [iso-8859-1] (original)
+++ branches/aicom-hardware-fun/drivers/usb/miniport/common/pdo.c [iso-8859-1] Mon May 17
03:25:18 2010
@@ -268,6 +268,13 @@
if (!NT_SUCCESS(Status))
{
DPRINT("IoRegisterDeviceInterface() failed with status 0x%08lx\n", Status);
+ return Status;
+ }
+
+ Status = IoSetDeviceInterfaceState(&DeviceExtension->HcdInterfaceName, TRUE);
+ if (!NT_SUCCESS(Status))
+ {
+ DPRINT("IoSetDeviceInterfaceState() failed with status 0x%08lx\n", Status);
return Status;
}