ReactOS
0.4.15-dev-6056-gb29b268
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
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
}
NTSTATUS
LONG NTSTATUS
Definition:
precomp.h:26
Irp
_In_ PIRP Irp
Definition:
csq.h:116
TRACE_
#define TRACE_(x)
Definition:
compat.h:76
SerialPower
DRIVER_DISPATCH SerialPower
Definition:
serial.h:292
IoSkipCurrentIrpStackLocation
#define IoSkipCurrentIrpStackLocation(Irp)
Definition:
ntifs_ex.h:421
PoStartNextPowerIrp
VOID NTAPI PoStartNextPowerIrp(IN PIRP Irp)
Definition:
power.c:746
serial.h
_DEVICE_OBJECT
Definition:
env_spec_w32.h:413
_IRP
Definition:
Bus_PDO_QueryResourceRequirements.c:93
_SERIAL_DEVICE_EXTENSION
Definition:
serial.h:49
_SERIAL_DEVICE_EXTENSION::LowerDevice
PDEVICE_OBJECT LowerDevice
Definition:
serial.h:51
NTAPI
#define NTAPI
Definition:
typedefs.h:36
IN
#define IN
Definition:
typedefs.h:39
DeviceObject
_In_ PDEVICE_OBJECT DeviceObject
Definition:
wdfdevice.h:2055
drivers
serial
serial
power.c
Generated on Sat Jun 3 2023 06:05:52 for ReactOS by
1.9.6