[USBEHCI_NEW]

- Define tag for allocations
- Fixes assert hit in ReactOS
- Fix typo in IHubController interface declaration

svn path=/branches/usb-bringup/; revision=51353
This commit is contained in:
Johannes Anderwald 2011-04-15 15:45:09 +00:00
parent c1964ed574
commit 6815708639
3 changed files with 11 additions and 2 deletions

View file

@ -952,7 +952,7 @@ CreateHCDController(
// //
// allocate controller // allocate controller
// //
This = new(NonPagedPool, 0) CHCDController(0); This = new(NonPagedPool, TAG_USBEHCI) CHCDController(0);
if (!This) if (!This)
{ {
// //

View file

@ -454,7 +454,7 @@ DECLARE_INTERFACE_(IHubController, IUnknown)
virtual NTSTATUS Initialize(IN PHCDCONTROLLER Controller, virtual NTSTATUS Initialize(IN PHCDCONTROLLER Controller,
IN PUSBHARDWAREDEVICE Device, IN PUSBHARDWAREDEVICE Device,
IN BOOLEAN IsRootHubDevice, IN BOOLEAN IsRootHubDevice,
IN ULONG DeviceAddress); IN ULONG DeviceAddress) = 0;
//----------------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------------
// //

View file

@ -32,6 +32,10 @@ typedef struct
}; };
}COMMON_DEVICE_EXTENSION, *PCOMMON_DEVICE_EXTENSION; }COMMON_DEVICE_EXTENSION, *PCOMMON_DEVICE_EXTENSION;
//
// tag for allocations
//
#define TAG_USBEHCI 'ICHE'
// //
// assert for c++ - taken from portcls // assert for c++ - taken from portcls
@ -55,4 +59,9 @@ NTSTATUS CreateUSBHardware(PUSBHARDWAREDEVICE *OutHardware);
// //
NTSTATUS NTAPI SyncForwardIrp(PDEVICE_OBJECT DeviceObject, PIRP Irp); NTSTATUS NTAPI SyncForwardIrp(PDEVICE_OBJECT DeviceObject, PIRP Irp);
//
// root_hub_controller.cpp
//
NTSTATUS CreateRootHubController(PHUBCONTROLLER * OutHubController);
#endif #endif