[USBEHCI_NEW]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 15 Apr 2011 15:45:09 +0000 (15:45 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 15 Apr 2011 15:45:09 +0000 (15:45 +0000)
- Define tag for allocations
- Fixes assert hit in ReactOS
- Fix typo in IHubController interface declaration

svn path=/branches/usb-bringup/; revision=51353

drivers/usb/usbehci_new/hcd_controller.cpp
drivers/usb/usbehci_new/interfaces.h
drivers/usb/usbehci_new/usbehci.h

index 618c0f1..f0be143 100644 (file)
@@ -952,7 +952,7 @@ CreateHCDController(
     //
     // allocate controller
     //
-    This = new(NonPagedPool, 0) CHCDController(0);
+    This = new(NonPagedPool, TAG_USBEHCI) CHCDController(0);
     if (!This)
     {
         //
index cb90ce3..ba289fd 100644 (file)
@@ -454,7 +454,7 @@ DECLARE_INTERFACE_(IHubController, IUnknown)
     virtual NTSTATUS Initialize(IN PHCDCONTROLLER Controller,
                                 IN PUSBHARDWAREDEVICE Device,
                                 IN BOOLEAN IsRootHubDevice,
-                                IN ULONG DeviceAddress);
+                                IN ULONG DeviceAddress) = 0;
 
 //-----------------------------------------------------------------------------------------
 //
index fcacb26..bf651e0 100644 (file)
@@ -32,6 +32,10 @@ typedef struct
     };
 }COMMON_DEVICE_EXTENSION, *PCOMMON_DEVICE_EXTENSION;
 
+//
+// tag for allocations
+//
+#define TAG_USBEHCI 'ICHE'
 
 //
 // assert for c++ - taken from portcls
@@ -55,4 +59,9 @@ NTSTATUS CreateUSBHardware(PUSBHARDWAREDEVICE *OutHardware);
 //
 NTSTATUS NTAPI SyncForwardIrp(PDEVICE_OBJECT DeviceObject, PIRP Irp);
 
+//
+// root_hub_controller.cpp
+//
+NTSTATUS CreateRootHubController(PHUBCONTROLLER * OutHubController);
+
 #endif