1 /*
2 * PROJECT: ReactOS i8042 (ps/2 keyboard-mouse controller) driver
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: drivers/input/i8042prt/createclose.c
5 * PURPOSE: IRP_MJ_CREATE, IRP_MJ_CLEANUP and IRP_MJ_CLOSE operations
6 * PROGRAMMERS: Copyright 2006-2007 Herv� Poussineau (hpoussin@reactos.org)
7 */
8
9 /* INCLUDES ******************************************************************/
10
11 #include "i8042prt.h"
12
13 #include <debug.h>
14
15 /* FUNCTIONS *****************************************************************/
16
17 NTSTATUS NTAPI
i8042Create(IN PDEVICE_OBJECT DeviceObject,IN PIRP Irp)18 i8042Create(
19 IN PDEVICE_OBJECT DeviceObject,
20 IN PIRP Irp)
21 {
22 UNREFERENCED_PARAMETER(DeviceObject);
23 TRACE_(I8042PRT, "IRP_MJ_CREATE\n");
24
25 Irp->IoStatus.Status = STATUS_SUCCESS;
26 Irp->IoStatus.Information = 0;
27 IoCompleteRequest(Irp, IO_NO_INCREMENT);
28 return STATUS_SUCCESS;
29 }
30
31 NTSTATUS NTAPI
i8042Cleanup(IN PDEVICE_OBJECT DeviceObject,IN PIRP Irp)32 i8042Cleanup(
33 IN PDEVICE_OBJECT DeviceObject,
34 IN PIRP Irp)
35 {
36 UNREFERENCED_PARAMETER(DeviceObject);
37 TRACE_(I8042PRT, "IRP_MJ_CLEANUP\n");
38
39 Irp->IoStatus.Status = STATUS_SUCCESS;
40 Irp->IoStatus.Information = 0;
41 IoCompleteRequest(Irp, IO_NO_INCREMENT);
42 return STATUS_SUCCESS;
43 }
44
45 NTSTATUS NTAPI
i8042Close(IN PDEVICE_OBJECT DeviceObject,IN PIRP Irp)46 i8042Close(
47 IN PDEVICE_OBJECT DeviceObject,
48 IN PIRP Irp)
49 {
50 UNREFERENCED_PARAMETER(DeviceObject);
51 TRACE_(I8042PRT, "IRP_MJ_CLOSE\n");
52
53 Irp->IoStatus.Status = STATUS_SUCCESS;
54 Irp->IoStatus.Information = 0;
55 IoCompleteRequest(Irp, IO_NO_INCREMENT);
56 return STATUS_SUCCESS;
57 }
58