NdisReadDmaCounter

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.

Parameters

NdisDmaHandle

Specifies the handle that the NDIS interface library associates with the DMA channel.

Return Value

NdisReadDmaCounter returns the number of bytes remaining in the current DMA transfer.

Comments

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.

See Also

NdisAllocateDmaChannel