ReactOS  0.4.15-dev-2701-g34593d9
mxdeviceobjectkm.h
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) Microsoft Corporation
4 
5 ModuleName:
6 
7  MxDeviceObjectKm.h
8 
9 Abstract:
10 
11  Kernel Mode implementation of Device Object defined in MxDeviceObject.h
12 
13 --*/
14 
15 #pragma once
16 
17 #include "mxdeviceobject.h"
18 
19 __inline
20 CCHAR
22  VOID
23  )
24 {
25  return m_DeviceObject->StackSize;
26 }
27 
28 __inline
29 VOID
32  )
33 {
35 }
36 
37 __inline
38 VOID
40  )
41 {
43 }
44 
45 __inline
48  VOID
49  )
50 {
52 }
53 
54 __inline
55 VOID
57  )
58 {
60 }
61 
62 __inline
63 ULONG
65  VOID
66  )
67 {
68 #ifdef _MSC_VER
69 #pragma warning(disable:28129)
70 #endif
71  return m_DeviceObject->Flags;
72 }
73 
74 __inline
75 VOID
77  ULONG Flags
78  )
79 {
80 #ifdef _MSC_VER
81 #pragma warning(disable:28129)
82 #endif
84 }
85 
86 __inline
91  )
92 {
94 }
95 
96 __inline
97 VOID
100  )
101 {
103 }
104 
105 __inline
106 VOID
109  )
110 {
111  //
112  // UMDF currently needs Fdo for InvalidateDeviceState
113  // FDO is not used in km.
114  //
115  // m_DeviceObject holds PDO that is what is used below.
116  //
117 
119 
121 }
122 
123 __inline
124 PVOID
126  VOID
127  )
128 {
130 }
131 
132 __inline
133 VOID
135  PVOID Value
136  )
137 {
139 }
140 
141 __inline
144  VOID
145  )
146 {
147  return m_DeviceObject->DeviceType;
148 }
149 
150 __inline
151 ULONG
153  VOID
154  )
155 {
156  return m_DeviceObject->Characteristics;
157 }
158 
159 __inline
160 VOID
163  )
164 {
165  m_DeviceObject->DeviceType = Value;
166 }
167 
168 __inline
169 VOID
171  ULONG Characteristics
172  )
173 {
174  m_DeviceObject->Characteristics = Characteristics;
175 }
176 
177 __inline
178 VOID
181  )
182 {
184 }
185 
186 __inline
187 ULONG
189  VOID
190  )
191 {
193 }
POWER_STATE SetPowerState(__in POWER_STATE_TYPE Type, __in POWER_STATE State)
enum _POWER_STATE_TYPE POWER_STATE_TYPE
ULONG GetCharacteristics(VOID)
CCHAR GetStackSize(VOID)
VOID SetFlags(ULONG Flags)
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:361
VOID InvalidateDeviceState(__in MdDeviceObject Fdo)
PVOID GetDeviceExtension(VOID)
VOID NTAPI IoInvalidateDeviceState(IN PDEVICE_OBJECT PhysicalDeviceObject)
Definition: devaction.c:2014
MdDeviceObject m_DeviceObject
PVOID DeviceExtension
Definition: env_spec_w32.h:418
MdDeviceObject GetAttachedDeviceReference(VOID)
PDEVICE_OBJECT NTAPI IoGetAttachedDeviceReference(PDEVICE_OBJECT DeviceObject)
Definition: device.c:1406
enum _DEVICE_RELATION_TYPE DEVICE_RELATION_TYPE
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:406
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
char CCHAR
Definition: typedefs.h:51
#define ObDereferenceObject
Definition: obfuncs.h:203
Type
Definition: Type.h:6
_Must_inspect_result_ _In_ WDFDEVICE Fdo
Definition: wdffdo.h:461
DEVICE_TYPE GetDeviceType(VOID)
VOID SetDeviceExtension(PVOID Value)
ULONG GetAlignmentRequirement(VOID)
ULONG AlignmentRequirement
Definition: env_spec_w32.h:420
#define _In_
Definition: no_sal2.h:158
VOID SetCharacteristics(ULONG Characteristics)
VOID NTAPI IoInvalidateDeviceRelations(IN PDEVICE_OBJECT DeviceObject, IN DEVICE_RELATION_TYPE Type)
Definition: pnpmgr.c:2343
VOID InvalidateDeviceRelations(__in DEVICE_RELATION_TYPE Type)
#define DEVICE_TYPE
Definition: guid.c:10
VOID DereferenceObject()
#define ObReferenceObject
Definition: obfuncs.h:204
unsigned int ULONG
Definition: retypes.h:1
POWER_STATE NTAPI PoSetPowerState(IN PDEVICE_OBJECT DeviceObject, IN POWER_STATE_TYPE Type, IN POWER_STATE State)
Definition: power.c:716
VOID SetAlignmentRequirement(_In_ ULONG Value)
ULONG GetFlags(VOID)
#define __in
Definition: dbghelp.h:35
VOID SetDeviceType(DEVICE_TYPE Value)
VOID SetStackSize(_In_ CCHAR Size)