2007-10-31 08:58:04 +00:00
|
|
|
|
/*
|
|
|
|
|
* PROJECT: ReactOS i8042 (ps/2 keyboard-mouse controller) driver
|
|
|
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
|
|
|
* FILE: drivers/input/i8042prt/createclose.c
|
|
|
|
|
* PURPOSE: IRP_MJ_CREATE, IRP_MJ_CLEANUP and IRP_MJ_CLOSE operations
|
|
|
|
|
* PROGRAMMERS: Copyright 2006-2007 Herv<EFBFBD> Poussineau (hpoussin@reactos.org)
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
|
|
|
|
|
|
#include "i8042prt.h"
|
|
|
|
|
|
2014-01-02 11:11:12 +00:00
|
|
|
|
#include <debug.h>
|
|
|
|
|
|
2007-10-31 08:58:04 +00:00
|
|
|
|
/* FUNCTIONS *****************************************************************/
|
|
|
|
|
|
|
|
|
|
NTSTATUS NTAPI
|
2009-02-11 17:21:10 +00:00
|
|
|
|
i8042Create(
|
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
|
|
|
IN PIRP Irp)
|
2007-10-31 08:58:04 +00:00
|
|
|
|
{
|
2009-06-19 00:17:15 +00:00
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
2009-02-11 17:21:10 +00:00
|
|
|
|
TRACE_(I8042PRT, "IRP_MJ_CREATE\n");
|
2007-10-31 08:58:04 +00:00
|
|
|
|
|
2009-02-11 17:21:10 +00:00
|
|
|
|
Irp->IoStatus.Status = STATUS_SUCCESS;
|
|
|
|
|
Irp->IoStatus.Information = 0;
|
|
|
|
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
|
|
|
|
return STATUS_SUCCESS;
|
2007-10-31 08:58:04 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
NTSTATUS NTAPI
|
2009-02-11 17:21:10 +00:00
|
|
|
|
i8042Cleanup(
|
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
|
|
|
IN PIRP Irp)
|
2007-10-31 08:58:04 +00:00
|
|
|
|
{
|
2009-06-19 00:17:15 +00:00
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
2009-02-11 17:21:10 +00:00
|
|
|
|
TRACE_(I8042PRT, "IRP_MJ_CLEANUP\n");
|
2007-10-31 08:58:04 +00:00
|
|
|
|
|
2009-02-11 17:21:10 +00:00
|
|
|
|
Irp->IoStatus.Status = STATUS_SUCCESS;
|
|
|
|
|
Irp->IoStatus.Information = 0;
|
|
|
|
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
|
|
|
|
return STATUS_SUCCESS;
|
2007-10-31 08:58:04 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
NTSTATUS NTAPI
|
2009-02-11 17:21:10 +00:00
|
|
|
|
i8042Close(
|
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
|
|
|
IN PIRP Irp)
|
2007-10-31 08:58:04 +00:00
|
|
|
|
{
|
2009-06-19 00:17:15 +00:00
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
2009-02-11 17:21:10 +00:00
|
|
|
|
TRACE_(I8042PRT, "IRP_MJ_CLOSE\n");
|
2007-10-31 08:58:04 +00:00
|
|
|
|
|
2009-02-11 17:21:10 +00:00
|
|
|
|
Irp->IoStatus.Status = STATUS_SUCCESS;
|
|
|
|
|
Irp->IoStatus.Information = 0;
|
|
|
|
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
|
|
|
|
return STATUS_SUCCESS;
|
2007-10-31 08:58:04 +00:00
|
|
|
|
}
|