ReactOS 0.4.15-dev-7704-gc07eb9f
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 :
43 {
44 Method.ProgramDma = NULL;
45 }
union FxDmaTransactionProgramOrReserveDma::@4337 Method
#define NULL
Definition: types.h:112

Member Function Documentation

◆ Clear()

VOID FxDmaTransactionProgramOrReserveDma::Clear ( VOID  )
inline

Definition at line 88 of file fxdmatransactioncallbacks.hpp.

91 {
92 Method.ProgramDma = NULL;
93 }

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
60 cc = Method.ProgramDma( Transaction,
61 Device,
62 Context,
64 SgList );
66
67 return cc;
68 }
69 else {
70 return FALSE;
71 }
72 }
unsigned char BOOLEAN
void __inline CallbackStart(VOID)
Definition: fxcallback.hpp:64
void __inline CallbackEnd(VOID)
Definition: fxcallback.hpp:74
#define FALSE
Definition: types.h:117
uint32_t cc
Definition: isohybrid.c:75
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
WDF_EXTERN_C_START typedef _In_ WDFDEVICE _In_ WDFCONTEXT _In_ WDF_DMA_DIRECTION _In_ PSCATTER_GATHER_LIST SgList
WDF_EXTERN_C_START typedef _In_ WDFDEVICE _In_ WDFCONTEXT _In_ WDF_DMA_DIRECTION Direction

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) {
82 Method.ReserveDma( Transaction, Context );
84 }
85 }

Member Data Documentation

◆ 

◆ ProgramDma

◆ ReserveDma

PFN_WDF_RESERVE_DMA FxDmaTransactionProgramOrReserveDma::ReserveDma

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