ReactOS  0.4.15-dev-3181-g4acf100
pnpprivkm.hpp
Go to the documentation of this file.
1 //
2 // Copyright (C) Microsoft. All rights reserved.
3 //
4 #ifndef _PNPPRIVKM_H_
5 #define _PNPPRIVKM_H_
6 
7 // public headers
8 #include "wdfdmaenabler.h"
9 
10 // private headers
11 #include "fxirpqueue.hpp"
12 #include "fxcallback.hpp"
13 
14 // <FxSystemWorkItem.hpp>
15 __drv_functionClass(EVT_SYSTEMWORKITEM)
19 typedef
20 VOID
21 EVT_SYSTEMWORKITEM(
23  );
24 
25 typedef EVT_SYSTEMWORKITEM *PFN_WDF_SYSTEMWORKITEM;
26 
27 // </FxSystemWorkItem.hpp>
28 
29 #include "fxcallbackspinlock.hpp"
30 #include "fxcallbackmutexlock.hpp"
31 #include "fxpackage.hpp"
32 #include "ifxmemory.hpp"
33 #include "fxcallback.hpp"
34 #include "fxrequestcontext.hpp"
35 #include "fxrequestcontexttypes.h"
36 #include "fxrequestbase.hpp"
37 #include "fxrequest.hpp"
38 #include "fxpkgpnp.hpp"
39 #include "fxpkgio.hpp"
40 #include "fxioqueue.hpp"
41 
42 #include "fxdmaenabler.hpp"
43 #include "fxsystemworkitem.hpp"
44 
45 // #include "FxDsf.h" // DSF support.
46 // #include <device_common.h>
47 // #include "FxTelemetry.hpp"
48 // __REACTOS__
49 typedef struct _STACK_DEVICE_CAPABILITIES {
50  //
51  // The capabilities as garnered from IRP_MN_QUERY_CAPABILITIES.
52  //
54 
55  //
56  // The lowest-power D-state that a device can be in and still generate
57  // a wake signal, indexed by system state. (PowerSystemUnspecified is
58  // an unused slot in this array.)
59  //
62 // end __REACTOS__
63 
64 
68  __in MxDeviceObject* RelatedDevice,
69  __inout FxIrp* RelatedIrp,
71  __in BOOLEAN Revert
72  );
73 
74 IO_WORKITEM_ROUTINE
76 
78 
80  VOID
81  )
82  {
84  RelatedIrp = NULL;
85  OriginalIrp = NULL;
87  }
88 
90 
92 
94 
96 
98 
100 };
101 
102 
103 #endif // _PNPPRIVKM_H_
__drv_functionClass(EVT_SYSTEMWORKITEM) __drv_maxIRQL(PASSIVE_LEVEL) __drv_maxFunctionIRQL(DISPATCH_LEVEL) __drv_sameIRQL typedef VOID EVT_SYSTEMWORKITEM(__in PVOID Parameter)
_In_ MxDeviceObject * RelatedDevice
Definition: pnpprivkm.hpp:89
_Must_inspect_result_ NTSTATUS SendDeviceUsageNotificationWorker(__in MxDeviceObject *RelatedDevice, __inout FxIrp *RelatedIrp, __in FxIrp *OriginalIrp, __in BOOLEAN Revert)
Definition: supportkm.cpp:264
#define _Out_
Definition: ms_sal.h:345
LONG NTSTATUS
Definition: precomp.h:26
#define __drv_maxIRQL(irql)
Definition: driverspecs.h:290
Definition: fxirp.hpp:28
DEVICE_CAPABILITIES
Definition: iotypes.h:965
_In_ PVOID Parameter
Definition: ldrtypes.h:241
_Out_ NTSTATUS Status
Definition: pnpprivkm.hpp:99
_In_ SYSTEM_POWER_STATE _Out_ PDEVICE_WAKE_DEPTH DeepestWakeableDstate
Definition: iotypes.h:7519
enum _DEVICE_WAKE_DEPTH DEVICE_WAKE_DEPTH
_In_ FxCREvent Event
Definition: pnpprivkm.hpp:97
IO_WORKITEM_ROUTINE _DeviceUsageNotificationWorkItem
Definition: pnpprivkm.hpp:75
unsigned char BOOLEAN
#define _In_
Definition: ms_sal.h:308
_In_ FxIrp * OriginalIrp
Definition: pnpprivkm.hpp:93
Status
Definition: gdiplustypes.h:24
#define __drv_sameIRQL
Definition: driverspecs.h:324
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
struct _STACK_DEVICE_CAPABILITIES * PSTACK_DEVICE_CAPABILITIES
#define __inout
Definition: dbghelp.h:50
_In_ PTRANSFER_PACKET _In_ ULONG _In_ PIRP OriginalIrp
Definition: classp.h:1757
#define PASSIVE_LEVEL
Definition: env_spec_w32.h:693
#define _Must_inspect_result_
Definition: ms_sal.h:558
#define DISPATCH_LEVEL
Definition: env_spec_w32.h:696
EVT_SYSTEMWORKITEM * PFN_WDF_SYSTEMWORKITEM
Definition: pnpprivkm.hpp:25
DEVICE_CAPABILITIES DeviceCaps
Definition: device_common.h:30
#define NULL
Definition: types.h:112
#define __in
Definition: dbghelp.h:35
#define __drv_maxFunctionIRQL(irql)
Definition: driverspecs.h:289
struct _STACK_DEVICE_CAPABILITIES STACK_DEVICE_CAPABILITIES