2005-06-13 20:41:59 +00:00
|
|
|
|
/*
|
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
|
* PROJECT: USB hub driver
|
|
|
|
|
* FILE: drivers/usb/cromwell/usbhub/createclose.c
|
|
|
|
|
* PURPOSE: IRP_MJ_CREATE and IRP_MJ_CLOSE operations
|
|
|
|
|
*
|
|
|
|
|
* PROGRAMMERS: Herv<EFBFBD> Poussineau (hpoussin@reactos.com)
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#define NDEBUG
|
|
|
|
|
#include "usbhub.h"
|
|
|
|
|
|
2008-11-30 11:16:55 +00:00
|
|
|
|
NTSTATUS NTAPI
|
2005-06-13 20:41:59 +00:00
|
|
|
|
UsbhubCreate(
|
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
|
|
|
IN PIRP Irp)
|
|
|
|
|
{
|
|
|
|
|
DPRINT("Usbhub: IRP_MJ_CREATE\n");
|
2007-10-19 23:21:45 +00:00
|
|
|
|
|
2005-06-13 20:41:59 +00:00
|
|
|
|
Irp->IoStatus.Status = STATUS_SUCCESS;
|
|
|
|
|
Irp->IoStatus.Information = 0;
|
|
|
|
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
|
|
|
|
return STATUS_SUCCESS;
|
|
|
|
|
}
|
|
|
|
|
|
2008-11-30 11:16:55 +00:00
|
|
|
|
NTSTATUS NTAPI
|
2005-06-13 20:41:59 +00:00
|
|
|
|
UsbhubClose(
|
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
|
|
|
IN PIRP Irp)
|
|
|
|
|
{
|
|
|
|
|
DPRINT("Usbhub: IRP_MJ_CLOSE\n");
|
2007-10-19 23:21:45 +00:00
|
|
|
|
|
2005-06-13 20:41:59 +00:00
|
|
|
|
Irp->IoStatus.Status = STATUS_SUCCESS;
|
|
|
|
|
Irp->IoStatus.Information = 0;
|
|
|
|
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
|
|
|
|
return STATUS_SUCCESS;
|
|
|
|
|
}
|
|
|
|
|
|
2008-11-30 11:16:55 +00:00
|
|
|
|
NTSTATUS NTAPI
|
2005-06-13 20:41:59 +00:00
|
|
|
|
UsbhubCleanup(
|
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
|
|
|
IN PIRP Irp)
|
|
|
|
|
{
|
|
|
|
|
DPRINT("Usbhub: IRP_MJ_CLEANUP\n");
|
2007-10-19 23:21:45 +00:00
|
|
|
|
|
2005-06-13 20:41:59 +00:00
|
|
|
|
Irp->IoStatus.Status = STATUS_SUCCESS;
|
|
|
|
|
Irp->IoStatus.Information = 0;
|
|
|
|
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
|
|
|
|
return STATUS_SUCCESS;
|
|
|
|
|
}
|