2 #if defined(USE_DMA_MACROS) && !defined(_NTHAL_) && (defined(_NTDDK_) || defined(_NTDRIVER_)) || defined(_WDM_INCLUDED_)
6 HalAllocateCommonBuffer(
7 IN PDMA_ADAPTER DmaAdapter
,
9 OUT PPHYSICAL_ADDRESS LogicalAddress
,
10 IN BOOLEAN CacheEnabled
)
12 PALLOCATE_COMMON_BUFFER allocateCommonBuffer
;
15 allocateCommonBuffer
= *(DmaAdapter
)->DmaOperations
->AllocateCommonBuffer
;
16 ASSERT( allocateCommonBuffer
!= NULL
);
17 commonBuffer
= allocateCommonBuffer( DmaAdapter
, Length
, LogicalAddress
, CacheEnabled
);
25 IN PDMA_ADAPTER DmaAdapter
,
27 IN PHYSICAL_ADDRESS LogicalAddress
,
28 IN PVOID VirtualAddress
,
29 IN BOOLEAN CacheEnabled
)
31 PFREE_COMMON_BUFFER freeCommonBuffer
;
33 freeCommonBuffer
= *(DmaAdapter
)->DmaOperations
->FreeCommonBuffer
;
34 ASSERT( freeCommonBuffer
!= NULL
);
35 freeCommonBuffer( DmaAdapter
, Length
, LogicalAddress
, VirtualAddress
, CacheEnabled
);
42 IN PDMA_ADAPTER DmaAdapter
)
44 PREAD_DMA_COUNTER readDmaCounter
;
47 readDmaCounter
= *(DmaAdapter
)->DmaOperations
->ReadDmaCounter
;
48 ASSERT( readDmaCounter
!= NULL
);
49 counter
= readDmaCounter( DmaAdapter
);