ReactOS 0.4.15-dev-8236-g99f0937
FxUsbUrbContext Struct Reference

#include <fxusbpipe.hpp>

Inheritance diagram for FxUsbUrbContext:
Collaboration diagram for FxUsbUrbContext:

Public Member Functions

 FxUsbUrbContext (VOID)
 
USBD_STATUS GetUsbdStatus (VOID)
 
virtual VOID StoreAndReferenceMemory (__in FxRequestBuffer *Buffer)
 
virtual VOID ReleaseAndRestore (__in FxRequestBase *Request)
 
- Public Member Functions inherited from FxUsbRequestContext
 FxUsbRequestContext (__in FX_REQUEST_CONTEXT_TYPE Type)
 
virtual USBD_STATUS GetUsbdStatus (VOID)=0
 
virtual VOID CopyParameters (__in FxRequestBase *Request)
 
VOID SetUsbType (__in WDF_USB_REQUEST_TYPE Type)
 
VOID __inline InitUsbParameters (VOID)
 
- Public Member Functions inherited from FxRequestContext
 FxRequestContext (__in FX_REQUEST_CONTEXT_TYPE Type)
 
virtual ~FxRequestContext (VOID)
 
virtual VOID Dispose (VOID)
 
virtual VOID StoreAndReferenceMemory (__in FxRequestBuffer *Buffer)
 
virtual VOID ReleaseAndRestore (__in FxRequestBase *Request)
 
__inline BOOLEAN IsType (__in FX_REQUEST_CONTEXT_TYPE Type)
 
virtual VOID CopyParameters (__in FxRequestBase *Request)
 
VOID FormatWriteParams (__in_opt IFxMemory *WriteMemory, __in_opt PWDFMEMORY_OFFSET WriteOffsets)
 
VOID FormatReadParams (__in_opt IFxMemory *ReadMemory, __in_opt PWDFMEMORY_OFFSET ReadOffsets)
 
VOID FormatOtherParams (__in FxInternalIoctlParams *InternalIoctlParams)
 
- Public Member Functions inherited from FxStump
PVOID operator new (__in size_t Size, __in PFX_DRIVER_GLOBALS FxDriverGlobals)
 
PVOID operator new (__in size_t Size, __in PFX_DRIVER_GLOBALS FxDriverGlobals, __in POOL_TYPE PoolType)
 
VOID operator delete (__in PVOID pointer)
 
PVOID operator new[] (__in size_t Size, __in PFX_DRIVER_GLOBALS FxDriverGlobals)
 
VOID operator delete[] (__in PVOID pointer)
 

Public Attributes

PURB m_pUrb
 
- Public Attributes inherited from FxUsbRequestContext
WDF_USB_REQUEST_COMPLETION_PARAMS m_UsbParameters
 
UMURB m_UmUrb
 
- Public Attributes inherited from FxRequestContext
WDF_REQUEST_COMPLETION_PARAMS m_CompletionParams
 
IFxMemorym_RequestMemory
 
FX_REQUEST_CONTEXT_TYPE m_RequestType
 

Additional Inherited Members

- Protected Member Functions inherited from FxRequestContext
VOID __inline InitCompletionParams (VOID)
 
- Protected Member Functions inherited from FxStump
 FxStump (VOID)
 
- Static Protected Member Functions inherited from FxRequestContext
static VOID _StoreAndReferenceMemoryWorker (__in PVOID Tag, __deref_out_opt IFxMemory **PPMemory, __in FxRequestBuffer *Buffer)
 

Detailed Description

Definition at line 98 of file fxusbpipe.hpp.

Constructor & Destructor Documentation

◆ FxUsbUrbContext()

FxUsbUrbContext::FxUsbUrbContext ( VOID  )

Definition at line 920 of file fxusbpipe.cpp.

Member Function Documentation

◆ GetUsbdStatus()

USBD_STATUS FxUsbUrbContext::GetUsbdStatus ( VOID  )
virtual

Implements FxUsbRequestContext.

Definition at line 929 of file fxusbpipe.cpp.

932{
933 return m_pUrb == NULL ? 0 : m_pUrb->UrbHeader.Status;
934}
struct _URB_HEADER UrbHeader
Definition: usb.h:531

◆ ReleaseAndRestore()

VOID FxUsbUrbContext::ReleaseAndRestore ( __in FxRequestBase Request)
virtual

Reimplemented from FxRequestContext.

Definition at line 955 of file fxusbpipe.cpp.

958{
959 m_pUrb = NULL;
961}
virtual VOID ReleaseAndRestore(__in FxRequestBase *Request)
_In_ WDFREQUEST Request
Definition: wdfdevice.h:547

◆ StoreAndReferenceMemory()

VOID FxUsbUrbContext::StoreAndReferenceMemory ( __in FxRequestBuffer Buffer)
virtual

Reimplemented from FxRequestContext.

Definition at line 937 of file fxusbpipe.cpp.

940{
941 ULONG dummy;
942
944
945 //
946 // make sure it is framework managed memory or raw PVOID
947 //
948 ASSERT(Buffer->DataType == FxRequestBufferMemory ||
949 Buffer->DataType == FxRequestBufferBuffer);
950
951 Buffer->AssignValues((PVOID*) &m_pUrb, NULL, &dummy);
952}
Definition: bufpool.h:45
@ FxRequestBufferMemory
@ FxRequestBufferBuffer
#define ASSERT(a)
Definition: mode.c:44
virtual VOID StoreAndReferenceMemory(__in FxRequestBuffer *Buffer)
uint32_t ULONG
Definition: typedefs.h:59

Referenced by FxFormatUrbRequest().

Member Data Documentation

◆ m_pUrb

PURB FxUsbUrbContext::m_pUrb

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