Allocate a DMA channel.
Configure the channel with ddi_dmae_1stparty(9F).
Lock the DMA object in memory (see physio(9F)).
This step is not necessary in block drivers for buffers coming from the file system, as the file system has already locked the data in memory.
Allocate DMA resources for the object.
Program the DMA engine on the device and start it (this is device specific).
When the transfer is complete, continue the bus-master operation.
Perform any required object synchronizations.
Release the DMA resources.
Deallocate the DMA channel.
Free the DMA handle.