From c9c8f865f22285d79b9e7758154a73333576b32d Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Mon, 16 May 2005 19:12:48 +0000 Subject: [PATCH] Changed Memory to Port resource, also fixed incorrect DPRINT (thanks to hpoussin!) svn path=/trunk/; revision=15348 --- reactos/drivers/usb/cromwell/uhci/uhci_main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/reactos/drivers/usb/cromwell/uhci/uhci_main.c b/reactos/drivers/usb/cromwell/uhci/uhci_main.c index be10f686fa6..8830d0f4254 100644 --- a/reactos/drivers/usb/cromwell/uhci/uhci_main.c +++ b/reactos/drivers/usb/cromwell/uhci/uhci_main.c @@ -208,6 +208,9 @@ OHCD_PnPStartDevice(IN PDEVICE_OBJECT DeviceObject, FullList->BusNumber == DeviceExtension->SystemIoBusNumber && 1 == FullList->PartialResourceList.Version && 1 == FullList->PartialResourceList.Revision);*/ + DPRINT1("AllocRess->Count: %d, PartResList.Count: %d\n", + AllocatedResources->Count, FullList->PartialResourceList.Count); + for (Descriptor = FullList->PartialResourceList.PartialDescriptors; Descriptor < FullList->PartialResourceList.PartialDescriptors + FullList->PartialResourceList.Count; Descriptor++) @@ -217,11 +220,14 @@ OHCD_PnPStartDevice(IN PDEVICE_OBJECT DeviceObject, DeviceExtension->InterruptLevel = Descriptor->u.Interrupt.Level; DeviceExtension->InterruptVector = Descriptor->u.Interrupt.Vector; } - else if (Descriptor->Type == CmResourceTypeMemory) + else if (Descriptor->Type == CmResourceTypePort) { DeviceExtension->BaseAddress = Descriptor->u.Memory.Start; DeviceExtension->BaseAddrLength = Descriptor->u.Memory.Length; } + + DPRINT1("Get resource type: %d, Generic start=0x%x Generic length=0x%x\n", + Descriptor->Type, DeviceExtension->BaseAddress.u.LowPart, DeviceExtension->BaseAddrLength); } } }