mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
[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:
parent
c1964ed574
commit
6815708639
3 changed files with 11 additions and 2 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue