Create a branch for header work.
[reactos.git] / drivers / usb / usbhub / createclose.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: USB hub driver
4 * FILE: drivers/usb/cromwell/usbhub/createclose.c
5 * PURPOSE: IRP_MJ_CREATE and IRP_MJ_CLOSE operations
6 *
7 * PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.com)
8 */
9
10 #define NDEBUG
11 #include "usbhub.h"
12
13 NTSTATUS NTAPI
14 UsbhubCreate(
15 IN PDEVICE_OBJECT DeviceObject,
16 IN PIRP Irp)
17 {
18 DPRINT("Usbhub: IRP_MJ_CREATE\n");
19
20 Irp->IoStatus.Status = STATUS_SUCCESS;
21 Irp->IoStatus.Information = 0;
22 IoCompleteRequest(Irp, IO_NO_INCREMENT);
23 return STATUS_SUCCESS;
24 }
25
26 NTSTATUS NTAPI
27 UsbhubClose(
28 IN PDEVICE_OBJECT DeviceObject,
29 IN PIRP Irp)
30 {
31 DPRINT("Usbhub: IRP_MJ_CLOSE\n");
32
33 Irp->IoStatus.Status = STATUS_SUCCESS;
34 Irp->IoStatus.Information = 0;
35 IoCompleteRequest(Irp, IO_NO_INCREMENT);
36 return STATUS_SUCCESS;
37 }
38
39 NTSTATUS NTAPI
40 UsbhubCleanup(
41 IN PDEVICE_OBJECT DeviceObject,
42 IN PIRP Irp)
43 {
44 DPRINT("Usbhub: IRP_MJ_CLEANUP\n");
45
46 Irp->IoStatus.Status = STATUS_SUCCESS;
47 Irp->IoStatus.Information = 0;
48 IoCompleteRequest(Irp, IO_NO_INCREMENT);
49 return STATUS_SUCCESS;
50 }