VOID
NdisSetupDmaTransfer(
OUT PNDIS_STATUS Status,
IN PNDIS_HANDLE NdisDmaHandle,
IN PNDIS_BUFFER Buffer,
IN ULONG Offset,
IN ULONG Length,
IN BOOLEAN WriteToDevice
);
NdisSetupDmaTransfer is called by a NIC driver in preparation for a slave DMA transfer between host and its NIC.
NDIS_STATUS_RESOURCES
NDIS_STATUS_SUCCESS
The NIC driver calls NdisSetupDmaTransfer to set up the host DMA controller for a data transfer. In its call, the driver specifies a buffer that contains the data for a download operation, or that will receive the data for an upload.
After NdisSetupDmaTransfer returns, the NIC driver can program its NIC to initiate the DMA transfer. When the transfer completes, the driver calls NdisCompleteDmaTransfer.
Callers of NdisSetupDmaTransfer run at IRQL <= DISPATCH_LEVEL.
NdisAllocateDmaChannel, NdisCompleteDmaTransfer, NdisReadDmaCounter