ULONG
NdisMReadDmaCounter(
IN NDIS_HANDLE MiniportDmaHandle
);
NdisMReadDmaCounter returns the current value of the system DMA controller’s counter.
Parameters
MiniportDmaHandle
Specifies the handle returned when the miniport called NdisMRegisterDmaChannel during initialization.
Return Value
NdisMReadDmaCounter returns the number of bytes remaining in the current DMA transfer on the channel used by the NIC.
Comments
NIC drivers of devices that use the system DMA controller’s autoinitialize mode can call NdisMReadDmaCounter.
Callers of NdisMReadDmaCounter run at IRQL <= DISPATCH_LEVEL.
See Also
MiniportInitialize, NdisMCompleteDmaTransfer, NdisMDeregisterDmaChannel, NdisMRegisterDmaChannel, NdisMSetAttributes, NdisMSetAttributesEx, NdisMSetupDmaTransfer