ReactOS  0.4.15-dev-3326-ga91f5e8
MxDeviceObject Class Reference

#include <mxdeviceobject.h>

Collaboration diagram for MxDeviceObject:

Public Member Functions

__inline MxDeviceObject (__in MdDeviceObject DeviceObject)
 
__inline MxDeviceObject (VOID)
 
__inline MdDeviceObject GetObject (VOID)
 
__inline VOID SetObject (__in_opt MdDeviceObject DeviceObject)
 
CCHAR GetStackSize (VOID)
 
VOID SetStackSize (_In_ CCHAR Size)
 
VOID ReferenceObject ()
 
MdDeviceObject GetAttachedDeviceReference (VOID)
 
VOID DereferenceObject ()
 
ULONG GetFlags (VOID)
 
VOID SetFlags (ULONG Flags)
 
POWER_STATE SetPowerState (__in POWER_STATE_TYPE Type, __in POWER_STATE State)
 
VOID InvalidateDeviceRelations (__in DEVICE_RELATION_TYPE Type)
 
VOID InvalidateDeviceState (__in MdDeviceObject Fdo)
 
PVOID GetDeviceExtension (VOID)
 
VOID SetDeviceExtension (PVOID Value)
 
DEVICE_TYPE GetDeviceType (VOID)
 
ULONG GetCharacteristics (VOID)
 
VOID SetDeviceType (DEVICE_TYPE Value)
 
VOID SetCharacteristics (ULONG Characteristics)
 
VOID SetAlignmentRequirement (_In_ ULONG Value)
 
ULONG GetAlignmentRequirement (VOID)
 

Private Attributes

MdDeviceObject m_DeviceObject
 

Detailed Description

Definition at line 20 of file mxdeviceobject.h.

Constructor & Destructor Documentation

◆ MxDeviceObject() [1/2]

__inline MxDeviceObject::MxDeviceObject ( __in MdDeviceObject  DeviceObject)
inline

Definition at line 31 of file mxdeviceobject.h.

33  :
35  {
36  }
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
MdDeviceObject m_DeviceObject

◆ MxDeviceObject() [2/2]

__inline MxDeviceObject::MxDeviceObject ( VOID  )
inline

Definition at line 39 of file mxdeviceobject.h.

41  :
43  {
44  }
MdDeviceObject m_DeviceObject
#define NULL
Definition: types.h:112

Member Function Documentation

◆ DereferenceObject()

VOID MxDeviceObject::DereferenceObject ( )

Definition at line 56 of file mxdeviceobjectkm.h.

58 {
60 }
MdDeviceObject m_DeviceObject
#define ObDereferenceObject
Definition: obfuncs.h:203

Referenced by FxPkgPnp::PnpDeviceUsageNotification(), and SendDeviceUsageNotificationWorker().

◆ GetAlignmentRequirement()

ULONG MxDeviceObject::GetAlignmentRequirement ( VOID  )

Definition at line 188 of file mxdeviceobjectkm.h.

191 {
193 }
MdDeviceObject m_DeviceObject
ULONG AlignmentRequirement
Definition: env_spec_w32.h:420

◆ GetAttachedDeviceReference()

MdDeviceObject MxDeviceObject::GetAttachedDeviceReference ( VOID  )

Definition at line 47 of file mxdeviceobjectkm.h.

50 {
52 }
MdDeviceObject m_DeviceObject
PDEVICE_OBJECT NTAPI IoGetAttachedDeviceReference(PDEVICE_OBJECT DeviceObject)
Definition: device.c:1406

Referenced by FxPkgPnp::PnpDeviceUsageNotification().

◆ GetCharacteristics()

ULONG MxDeviceObject::GetCharacteristics ( VOID  )

Definition at line 152 of file mxdeviceobjectkm.h.

155 {
156  return m_DeviceObject->Characteristics;
157 }
MdDeviceObject m_DeviceObject

Referenced by FxDevice::FdoInitialize().

◆ GetDeviceExtension()

PVOID MxDeviceObject::GetDeviceExtension ( VOID  )

Definition at line 125 of file mxdeviceobjectkm.h.

128 {
130 }
MdDeviceObject m_DeviceObject
PVOID DeviceExtension
Definition: env_spec_w32.h:418

Referenced by FxDevice::CreateDevice().

◆ GetDeviceType()

DEVICE_TYPE MxDeviceObject::GetDeviceType ( VOID  )

Definition at line 143 of file mxdeviceobjectkm.h.

146 {
147  return m_DeviceObject->DeviceType;
148 }
MdDeviceObject m_DeviceObject

Referenced by FxFileObject::_GetFileObjectFromWdm(), and FxDevice::FdoInitialize().

◆ GetFlags()

◆ GetObject()

◆ GetStackSize()

◆ InvalidateDeviceRelations()

VOID MxDeviceObject::InvalidateDeviceRelations ( __in DEVICE_RELATION_TYPE  Type)

Definition at line 98 of file mxdeviceobjectkm.h.

101 {
103 }
MdDeviceObject m_DeviceObject
Type
Definition: Type.h:6
VOID NTAPI IoInvalidateDeviceRelations(IN PDEVICE_OBJECT DeviceObject, IN DEVICE_RELATION_TYPE Type)
Definition: pnpmgr.c:2342

Referenced by FxPkgPnp::HandleQueryDeviceRelations().

◆ InvalidateDeviceState()

VOID MxDeviceObject::InvalidateDeviceState ( __in MdDeviceObject  Fdo)

Definition at line 107 of file mxdeviceobjectkm.h.

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 }
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
VOID NTAPI IoInvalidateDeviceState(IN PDEVICE_OBJECT PhysicalDeviceObject)
Definition: devaction.c:2032
MdDeviceObject m_DeviceObject
_Must_inspect_result_ _In_ WDFDEVICE Fdo
Definition: wdffdo.h:461

Referenced by FxPkgPnp::CommitUsageNotification(), FxDevice::InvalidateDeviceState(), FxPkgPnp::PnpEventFailedPowerPolicyRemoved(), FxPkgPnp::SetDeviceFailed(), and FxPkgPnp::SetInternalFailure().

◆ ReferenceObject()

VOID MxDeviceObject::ReferenceObject ( )

Definition at line 39 of file mxdeviceobjectkm.h.

41 {
43 }
MdDeviceObject m_DeviceObject
#define ObReferenceObject
Definition: obfuncs.h:204

◆ SetAlignmentRequirement()

VOID MxDeviceObject::SetAlignmentRequirement ( _In_ ULONG  Value)

Definition at line 179 of file mxdeviceobjectkm.h.

182 {
184 }
MdDeviceObject m_DeviceObject
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:406
ULONG AlignmentRequirement
Definition: env_spec_w32.h:420

◆ SetCharacteristics()

VOID MxDeviceObject::SetCharacteristics ( ULONG  Characteristics)

Definition at line 170 of file mxdeviceobjectkm.h.

173 {
174  m_DeviceObject->Characteristics = Characteristics;
175 }
MdDeviceObject m_DeviceObject

Referenced by FxDevice::FdoInitialize().

◆ SetDeviceExtension()

VOID MxDeviceObject::SetDeviceExtension ( PVOID  Value)

Definition at line 134 of file mxdeviceobjectkm.h.

137 {
139 }
MdDeviceObject m_DeviceObject
PVOID DeviceExtension
Definition: env_spec_w32.h:418
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:406

Referenced by FxDevice::CreateDevice(), and FxDevice::Destroy().

◆ SetDeviceType()

VOID MxDeviceObject::SetDeviceType ( DEVICE_TYPE  Value)

Definition at line 161 of file mxdeviceobjectkm.h.

164 {
165  m_DeviceObject->DeviceType = Value;
166 }
MdDeviceObject m_DeviceObject
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:406

Referenced by FxDevice::FdoInitialize().

◆ SetFlags()

VOID MxDeviceObject::SetFlags ( ULONG  Flags)

Definition at line 76 of file mxdeviceobjectkm.h.

79 {
80 #ifdef _MSC_VER
81 #pragma warning(disable:28129)
82 #endif
84 }
MdDeviceObject m_DeviceObject
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170

Referenced by FxDevice::CreateDevice(), FxDevice::FdoInitialize(), FxDevice::FinishInitializing(), FxDevice::PdoInitialize(), FxDeviceBase::SetDeviceObjectFlags(), and FxDevice::SetFilterIoType().

◆ SetObject()

◆ SetPowerState()

POWER_STATE MxDeviceObject::SetPowerState ( __in POWER_STATE_TYPE  Type,
__in POWER_STATE  State 
)

Definition at line 88 of file mxdeviceobjectkm.h.

92 {
94 }
MdDeviceObject m_DeviceObject
Type
Definition: Type.h:6
POWER_STATE NTAPI PoSetPowerState(IN PDEVICE_OBJECT DeviceObject, IN POWER_STATE_TYPE Type, IN POWER_STATE State)
Definition: power.c:717

Referenced by FxPkgFdo::DispatchSystemSetPower(), FxPkgPdo::DispatchSystemSetPower(), and FxPkgPnp::PowerSetDevicePowerState().

◆ SetStackSize()

VOID MxDeviceObject::SetStackSize ( _In_ CCHAR  Size)

Definition at line 30 of file mxdeviceobjectkm.h.

33 {
35 }
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:361
MdDeviceObject m_DeviceObject

Referenced by FxDevice::PdoInitialize(), and FxDevice::SetStackSize().

Member Data Documentation

◆ m_DeviceObject


The documentation for this class was generated from the following files: