[ros-diffs] [fireball] 15348: Changed Memory to Port resource, also fixed incorrect DPRINT (thanks to hpoussin!)

fireball at svn.reactos.com fireball at svn.reactos.com
Mon May 16 21:12:50 CEST 2005


Changed Memory to Port resource, also fixed incorrect DPRINT (thanks to
hpoussin!)
Modified: trunk/reactos/drivers/usb/cromwell/uhci/uhci_main.c
  _____  

Modified: trunk/reactos/drivers/usb/cromwell/uhci/uhci_main.c
--- trunk/reactos/drivers/usb/cromwell/uhci/uhci_main.c	2005-05-16
18:08:55 UTC (rev 15347)
+++ trunk/reactos/drivers/usb/cromwell/uhci/uhci_main.c	2005-05-16
19:12:48 UTC (rev 15348)
@@ -208,6 +208,9 @@

 				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 @@
 					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);
 			}
 		}
 	}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050516/dff2c4ab/attachment.html


More information about the Ros-diffs mailing list