4. Software Programming Model
Scans the device feature chain for DMA BBBs and count all available channels.
|Opens a handle to the DMA channel.
|Closes a handle to the DMA channel.
|Initializes an object that represents the DMA transfer.
|Resets the DMA transfer attribute object to default values.
|Destroys the DMA transfer attribute object.
|Sets the source address of the transfer. This address must be 64 byte aligned.
|Sets the destination address of the transfer. This address must be 64 byte aligned.
|Sets the transfer lengths in bytes. For non-packet transfers, you must set the transfer length to a multiple of 64 bytes. For packet transfers, this is not a requirement.
|Sets the transfer type.
Legal values are:
|Registers callback for notification on asynchronous transfer completion. If you specify a callback, fpgaDMATransfer returns immediately (asynchronous transfer).
If you do not specify a callback, fpgaDMATransfer returns after the transfer is complete (synchronous/blocking transfer).
|Indicates the last transfer so the DMA can start processing the prefetched transfers. The default value is 64 transfers in the pipeline before the DMA starts to work on the transfers.
|Performs a DMA transfer.
For more information about the API, input, and output arguments, refer to the header file located at $OPAE_PLATFORM_ROOT/hw/samples/dma_afu/sw/fpga_dma.h
To know more about software driver use model, refer to the README file located at $OPAE_PLATFORM_ROOT/hw/samples/dma_afu/README.md