ScsiPortFlushDma function (srb.h)
The ScsiPortFlushDma routine flushes any data cached in the system DMA controller at the end of a transfer or terminates a system DMA transfer.
Syntax
SCSIPORT_API VOID ScsiPortFlushDma(
[in] PVOID DeviceExtension
);
Parameters
[in] DeviceExtension
Pointer to the miniport driver's per-HBA storage area.
Return value
None
Remarks
Only miniport drivers of subordinate HBAs that use a system DMA controller call this routine.
ScsiPortFlushDma must be called after a subordinate DMA transfer operation is completed but before the SRB is completed or the next call is made to ScsiPortIoMapTransfer for the current buffer.
ScsiPortFlushDma also must be called after ScsiPortIoMapTransfer to cancel a DMA operation, even if no transfer has occurred and the driver's HwScsiDmaStarted routine has not yet been called.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | srb.h (include Miniport.h, Scsi.h) |
Library | Scsiport.lib |