mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 09:50:43 +00:00
[USBOHCI]
- Don't hardcode the device speed svn path=/branches/usb-bringup-trunk/; revision=55392
This commit is contained in:
parent
8e66575f08
commit
71b5a853dc
1 changed files with 6 additions and 4 deletions
|
@ -19,7 +19,8 @@ NTSTATUS
|
||||||
CreateUsbChildDeviceObject(
|
CreateUsbChildDeviceObject(
|
||||||
IN PDEVICE_OBJECT UsbHubDeviceObject,
|
IN PDEVICE_OBJECT UsbHubDeviceObject,
|
||||||
IN LONG PortId,
|
IN LONG PortId,
|
||||||
OUT PDEVICE_OBJECT *UsbChildDeviceObject);
|
OUT PDEVICE_OBJECT *UsbChildDeviceObject,
|
||||||
|
IN ULONG PortStatus);
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
DestroyUsbChildDeviceObject(
|
DestroyUsbChildDeviceObject(
|
||||||
|
@ -402,7 +403,7 @@ DeviceStatusChangeThread(
|
||||||
//
|
//
|
||||||
// This is a new device
|
// This is a new device
|
||||||
//
|
//
|
||||||
Status = CreateUsbChildDeviceObject(DeviceObject, PortId, NULL);
|
Status = CreateUsbChildDeviceObject(DeviceObject, PortId, NULL, PortStatus.Status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1149,7 +1150,8 @@ NTSTATUS
|
||||||
CreateUsbChildDeviceObject(
|
CreateUsbChildDeviceObject(
|
||||||
IN PDEVICE_OBJECT UsbHubDeviceObject,
|
IN PDEVICE_OBJECT UsbHubDeviceObject,
|
||||||
IN LONG PortId,
|
IN LONG PortId,
|
||||||
OUT PDEVICE_OBJECT *UsbChildDeviceObject)
|
OUT PDEVICE_OBJECT *UsbChildDeviceObject,
|
||||||
|
IN ULONG PortStatus)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
PDEVICE_OBJECT RootHubDeviceObject, NewChildDeviceObject;
|
PDEVICE_OBJECT RootHubDeviceObject, NewChildDeviceObject;
|
||||||
|
@ -1252,7 +1254,7 @@ CreateUsbChildDeviceObject(
|
||||||
Status = HubInterface->CreateUsbDevice(HubInterfaceBusContext,
|
Status = HubInterface->CreateUsbDevice(HubInterfaceBusContext,
|
||||||
(PVOID)&UsbChildExtension->UsbDeviceHandle,
|
(PVOID)&UsbChildExtension->UsbDeviceHandle,
|
||||||
HubDeviceExtension->RootHubHandle,
|
HubDeviceExtension->RootHubHandle,
|
||||||
0x501, //hack
|
PortStatus,
|
||||||
PortId);
|
PortId);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue