ReactOS  0.4.13-dev-241-g63286c6
createclose.c
Go to the documentation of this file.
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 
20  IN PIRP Irp)
21 {
23  TRACE_(I8042PRT, "IRP_MJ_CREATE\n");
24 
25  Irp->IoStatus.Status = STATUS_SUCCESS;
26  Irp->IoStatus.Information = 0;
28  return STATUS_SUCCESS;
29 }
30 
34  IN PIRP Irp)
35 {
37  TRACE_(I8042PRT, "IRP_MJ_CLEANUP\n");
38 
39  Irp->IoStatus.Status = STATUS_SUCCESS;
40  Irp->IoStatus.Information = 0;
42  return STATUS_SUCCESS;
43 }
44 
48  IN PIRP Irp)
49 {
51  TRACE_(I8042PRT, "IRP_MJ_CLOSE\n");
52 
53  Irp->IoStatus.Status = STATUS_SUCCESS;
54  Irp->IoStatus.Information = 0;
56  return STATUS_SUCCESS;
57 }
#define IN
Definition: typedefs.h:38
_In_ PIRP Irp
Definition: csq.h:116
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:323
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS NTAPI i8042Create(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: createclose.c:18
NTSTATUS NTAPI i8042Close(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: createclose.c:46
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
#define IoCompleteRequest
Definition: irp.c:1240
#define TRACE_(x)
Definition: compat.h:66
NTSTATUS NTAPI i8042Cleanup(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: createclose.c:32
IN PDEVICE_OBJECT DeviceObject
Definition: fatprocs.h:1560
#define IO_NO_INCREMENT
Definition: iotypes.h:565
return STATUS_SUCCESS
Definition: btrfs.c:2745