// ndis.h
void NdisMCompleteDmaTransfer(
_S,
_H,
_B,
_O,
_L,
_M_
);
View the official Windows Driver Kit DDI referenceNo description available.
The NdisMCompleteDmaTransfer function indicates that a system DMA transfer operation has completed. It resets the system DMA controller in preparation for further DMA transfers.
_SA pointer to a caller-supplied variable in which this function returns the final status of the DMA transfer, which can be one of the following:
The data has been transferred and flushed to host memory or to the device to maintain data integrity.
The DMA controller was released but the data transfer might be incoherent.
_HThe handle returned when the MiniportInitializeEx function called the NdisMRegisterDmaChannel function.
_BA pointer to the buffer descriptor previously passed to NdisMSetupDmaTransfer.
_OThe byte offset at which the transfer began. This value also was passed to NdisMSetupDmaTransfer.
_LThe length in bytes of the transfer. This value also was passed to NdisMSetupDmaTransfer.
_M_TRUE if the transfer was from the host to the NIC, as, for example, a send operation.
NdisMCompleteDmaTransfer must be called with WriteToDevice set to TRUE before the transferred data is considered present in the NIC's memory. NdisMCompleteDmaTransfer must be called with WriteToDevice set to FALSE before the transferred data can be read from host memory.