ReactOS 0.4.15-dev-8127-g6338913
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}
LONG NTSTATUS
Definition: precomp.h:26
_In_ PIRP Irp
Definition: csq.h:116
#define TRACE_(x)
Definition: compat.h:76
NTSTATUS NTAPI i8042Cleanup(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: createclose.c:32
NTSTATUS NTAPI i8042Close(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: createclose.c:46
NTSTATUS NTAPI i8042Create(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: createclose.c:18
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define IoCompleteRequest
Definition: irp.c:1240
#define STATUS_SUCCESS
Definition: shellext.h:65
#define NTAPI
Definition: typedefs.h:36
#define IN
Definition: typedefs.h:39
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
#define IO_NO_INCREMENT
Definition: iotypes.h:598