NdisMCompleteDmaTransfer - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ndis.h

void NdisMCompleteDmaTransfer(
  _S,
  _H,
  _B,
  _O,
  _L,
  _M_
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ndis-ndismcompletedmatransfer)

NdisMCompleteDmaTransfer macro

Description

The NdisMCompleteDmaTransfer function indicates that a system DMA transfer operation has completed. It resets the system DMA controller in preparation for further DMA transfers.

Parameters

_S

A 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:

NDIS_STATUS_SUCCESS

The data has been transferred and flushed to host memory or to the device to maintain data integrity.

NDIS_STATUS_RESOURCES

The DMA controller was released but the data transfer might be incoherent.

_H

The handle returned when the MiniportInitializeEx function called the NdisMRegisterDmaChannel function.

_B

A pointer to the buffer descriptor previously passed to NdisMSetupDmaTransfer.

_O

The byte offset at which the transfer began. This value also was passed to NdisMSetupDmaTransfer.

_L

The 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.

Remarks

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.

See also

MiniportInitializeEx

NdisMRegisterDmaChannel

NdisMSetupDmaTransfer