Changed Memory to Port resource, also fixed incorrect DPRINT (thanks to hpoussin!)
authorAleksey Bragin <aleksey@reactos.org>
Mon, 16 May 2005 19:12:48 +0000 (19:12 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Mon, 16 May 2005 19:12:48 +0000 (19:12 +0000)
svn path=/trunk/; revision=15348

reactos/drivers/usb/cromwell/uhci/uhci_main.c

index be10f68..8830d0f 100644 (file)
@@ -208,6 +208,9 @@ OHCD_PnPStartDevice(IN PDEVICE_OBJECT DeviceObject,
                                FullList->BusNumber     == DeviceExtension->SystemIoBusNumber &&\r
                                1 == FullList->PartialResourceList.Version &&\r
                                1 == FullList->PartialResourceList.Revision);*/\r
+                       DPRINT1("AllocRess->Count: %d, PartResList.Count: %d\n",\r
+                                       AllocatedResources->Count, FullList->PartialResourceList.Count);\r
+\r
                        for     (Descriptor     = FullList->PartialResourceList.PartialDescriptors;\r
                                Descriptor < FullList->PartialResourceList.PartialDescriptors + FullList->PartialResourceList.Count;\r
                                Descriptor++)\r
@@ -217,11 +220,14 @@ OHCD_PnPStartDevice(IN PDEVICE_OBJECT DeviceObject,
                                        DeviceExtension->InterruptLevel = Descriptor->u.Interrupt.Level;\r
                                        DeviceExtension->InterruptVector = Descriptor->u.Interrupt.Vector;\r
                                }\r
-                               else if (Descriptor->Type ==    CmResourceTypeMemory)\r
+                               else if (Descriptor->Type == CmResourceTypePort)\r
                                {\r
                                        DeviceExtension->BaseAddress    = Descriptor->u.Memory.Start;\r
                                        DeviceExtension->BaseAddrLength = Descriptor->u.Memory.Length;\r
                                }\r
+\r
+                               DPRINT1("Get resource type: %d, Generic start=0x%x Generic length=0x%x\n",\r
+                                       Descriptor->Type, DeviceExtension->BaseAddress.u.LowPart, DeviceExtension->BaseAddrLength);\r
                        }\r
                }\r
        }\r