ULONG
NdisReadDmaCounter(
IN NDIS_HANDLE NdisDmaHandle
);
NdisReadDmaCounter is called by the driver of a slave NIC to retrieve the number of bytes remaining in the current DMA transfer.
NdisReadDmaCounter returns the number of bytes remaining in the current DMA transfer.
This function reads the current value of a counter in the DMA controller currently using the DMA channel. Before the NIC driver calls this function, it must set up the DMA channel in a call to NdisAllocateDmaChannel.
Callers of NdisReadDmaCounter run at IRQL <= DISPATCH_LEVEL.