[SERIAL]
[reactos.git] / reactos / drivers / serial / serial / power.c
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
14 NTSTATUS NTAPI
15 SerialPower(
16 IN PDEVICE_OBJECT DeviceObject,
17 IN PIRP Irp)
18 {
19 PSERIAL_DEVICE_EXTENSION DeviceExtension;
20
21 TRACE_(SERIAL, "IRP_MJ_POWER dispatch\n");
22
23 DeviceExtension = DeviceObject->DeviceExtension;
24 PoStartNextPowerIrp(Irp);
25 IoSkipCurrentIrpStackLocation(Irp);
26 return PoCallDriver(DeviceExtension->LowerDevice, Irp);
27 }