ULONG
HalReadDmaCounter(
IN PADAPTER_OBJECT AdapterObject
);
HalReadDmaCounter returns the number of bytes remaining to be transferred during the current slave DMA operation, given a pointer to the adapter object.
Parameters
AdapterObject
Points to the adapter object representing the system DMA controller channel currently in use.
Return Value
HalReadDmaCounter returns the number of bytes remaining to be transferred.
Comments
HalReadDmaCounter can be called only by drivers of slave DMA devices. Usually, the caller is the driver of a slave device that uses a system DMA controller’s autoinitialize mode.
Callers of HalReadDmaCounter must be running at IRQL <= DISPATCH_LEVEL.
See Also
HalAllocateCommonBuffer, HalGetAdapter, IoFlushAdapterBuffers, IoMapTransfer