ReactOS  0.4.14-dev-317-g96040ec
power.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: Serial port driver
4  * FILE: drivers/dd/serial/power.c
5  * PURPOSE: Serial IRP_MJ_POWER operations
6  *
7  * PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.org)
8  */
9 
10 #include "serial.h"
11 
12 #include <debug.h>
13 
17  IN PIRP Irp)
18 {
19  PSERIAL_DEVICE_EXTENSION DeviceExtension;
20 
21  TRACE_(SERIAL, "IRP_MJ_POWER dispatch\n");
22 
23  DeviceExtension = DeviceObject->DeviceExtension;
26  return PoCallDriver(DeviceExtension->LowerDevice, Irp);
27 }
#define IN
Definition: typedefs.h:38
NTSTATUS NTAPI PoCallDriver(IN PDEVICE_OBJECT DeviceObject, IN OUT PIRP Irp)
Definition: power.c:485
_In_ PIRP Irp
Definition: csq.h:116
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
PVOID DeviceExtension
Definition: env_spec_w32.h:418
#define TRACE_(x)
Definition: compat.h:66
IN PDEVICE_OBJECT DeviceObject
Definition: fatprocs.h:1560
VOID NTAPI PoStartNextPowerIrp(IN PIRP Irp)
Definition: power.c:626
#define IoSkipCurrentIrpStackLocation(Irp)
Definition: ntifs_ex.h:421
NTSTATUS NTAPI SerialPower(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: power.c:15
PDEVICE_OBJECT LowerDevice
Definition: serial.h:51