ReactOS  0.4.15-dev-3294-ge98684e
FxDmaTransactionProgramOrReserveDma Class Reference

#include <fxdmatransactioncallbacks.hpp>

Inheritance diagram for FxDmaTransactionProgramOrReserveDma:
Collaboration diagram for FxDmaTransactionProgramOrReserveDma:

Public Member Functions

 FxDmaTransactionProgramOrReserveDma (VOID)
 
BOOLEAN InvokeProgramDma (__in WDFDMATRANSACTION Transaction, __in WDFDEVICE Device, __in PVOID Context, __in WDF_DMA_DIRECTION Direction, __in PSCATTER_GATHER_LIST SgList)
 
VOID InvokeReserveDma (__in WDFDMATRANSACTION Transaction, __in PVOID Context)
 
VOID Clear (VOID)
 
- Public Member Functions inherited from FxCallback
 FxCallback (__in_opt PFX_DRIVER_GLOBALS FxDriverGlobals=NULL)
 
PVOID operator new (__in size_t Size, __in PFX_DRIVER_GLOBALS FxDriverGlobals, __in POOL_TYPE PoolType=NonPagedPool)
 
VOID operator delete (__in PVOID pointer)
 

Public Attributes

union {
   PFN_WDF_PROGRAM_DMA   ProgramDma
 
   PFN_WDF_RESERVE_DMA   ReserveDma
 
Method
 

Additional Inherited Members

- Protected Member Functions inherited from FxCallback
void __inline CallbackStart (VOID)
 
void __inline CallbackEnd (VOID)
 

Detailed Description

Definition at line 31 of file fxdmatransactioncallbacks.hpp.

Constructor & Destructor Documentation

◆ FxDmaTransactionProgramOrReserveDma()

FxDmaTransactionProgramOrReserveDma::FxDmaTransactionProgramOrReserveDma ( VOID  )
inline

Definition at line 39 of file fxdmatransactioncallbacks.hpp.

41  :
42  FxCallback()
43  {
44  Method.ProgramDma = NULL;
45  }
FxCallback(__in_opt PFX_DRIVER_GLOBALS FxDriverGlobals=NULL)
Definition: fxcallback.hpp:36
#define NULL
Definition: types.h:112
union FxDmaTransactionProgramOrReserveDma::@4098 Method

Member Function Documentation

◆ Clear()

VOID FxDmaTransactionProgramOrReserveDma::Clear ( VOID  )
inline

Definition at line 88 of file fxdmatransactioncallbacks.hpp.

91  {
92  Method.ProgramDma = NULL;
93  }
#define NULL
Definition: types.h:112
union FxDmaTransactionProgramOrReserveDma::@4098 Method

Referenced by FxDmaPacketTransaction::_AdapterControl().

◆ InvokeProgramDma()

BOOLEAN FxDmaTransactionProgramOrReserveDma::InvokeProgramDma ( __in WDFDMATRANSACTION  Transaction,
__in WDFDEVICE  Device,
__in PVOID  Context,
__in WDF_DMA_DIRECTION  Direction,
__in PSCATTER_GATHER_LIST  SgList 
)
inline

Definition at line 48 of file fxdmatransactioncallbacks.hpp.

55  {
56  if (Method.ProgramDma) {
57  BOOLEAN cc;
58 
59  CallbackStart();
60  cc = Method.ProgramDma( Transaction,
61  Device,
62  Context,
63  Direction,
64  SgList );
65  CallbackEnd();
66 
67  return cc;
68  }
69  else {
70  return FALSE;
71  }
72  }
WDF_EXTERN_C_START typedef _In_ WDFDEVICE _In_ WDFCONTEXT _In_ WDF_DMA_DIRECTION Direction
#define FALSE
Definition: types.h:117
unsigned char BOOLEAN
WDF_EXTERN_C_START typedef _In_ WDFDEVICE _In_ WDFCONTEXT _In_ WDF_DMA_DIRECTION _In_ PSCATTER_GATHER_LIST SgList
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
uint32_t cc
Definition: isohybrid.c:75
union FxDmaTransactionProgramOrReserveDma::@4098 Method
void __inline CallbackStart(VOID)
Definition: fxcallback.hpp:64
void __inline CallbackEnd(VOID)
Definition: fxcallback.hpp:74

Referenced by FxDmaScatterGatherTransaction::_AdapterListControl(), and FxDmaPacketTransaction::StageTransfer().

◆ InvokeReserveDma()

VOID FxDmaTransactionProgramOrReserveDma::InvokeReserveDma ( __in WDFDMATRANSACTION  Transaction,
__in PVOID  Context 
)
inline

Definition at line 75 of file fxdmatransactioncallbacks.hpp.

79  {
80  if (Method.ReserveDma) {
81  CallbackStart();
82  Method.ReserveDma( Transaction, Context );
83  CallbackEnd();
84  }
85  }
union FxDmaTransactionProgramOrReserveDma::@4098 Method
void __inline CallbackStart(VOID)
Definition: fxcallback.hpp:64
void __inline CallbackEnd(VOID)
Definition: fxcallback.hpp:74

Member Data Documentation

◆ Method

◆ ProgramDma

◆ ReserveDma

PFN_WDF_RESERVE_DMA FxDmaTransactionProgramOrReserveDma::ReserveDma

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