Alt_avalon_sgdma_stop(), Alt_avalon_sgdma_open(), Alt_avalon_sgdma_stop() -24 – Altera Embedded Peripherals IP User Manual
Page 215: Alt_avalon_sgdma_open() -24

Parameters:
*dev—a pointer to the SG-DMA device structure.
Returns:
void
Description:
Starts the DMA engine and processes the descriptor pointed to in the controller's
next descriptor pointer and all subsequent descriptors in the chain. It is not
necessary to call this function when do_sync or do_async is used.
alt_avalon_sgdma_stop()
Prototype:
void alt_avalon_sgdma_stop(alt_sgdma_dev *dev)
Thread-safe:
No.
Available from
ISR:
Yes.
Include:
<altera_avalon_sgdma.h>, <altera_avalon_sgdma_descriptor.h>, <altera_
avalon_sgdma_regs.h>
Parameters:
*dev—a pointer to the SG-DMA device structure.
Returns:
void
Description:
Stops the DMA engine following completion of the current buffer descriptor. It
is not necessary to call this function when do_sync or do_async is used.
alt_avalon_sgdma_open()
Prototype:
alt_sgdma_dev* alt_avalon_sgdma_open(const char* name)
Thread-safe:
Yes.
Available from
ISR:
No.
Include:
<altera_avalon_sgdma.h>, <altera_avalon_sgdma_descriptor.h>, <altera_
avalon_sgdma_regs.h>
Parameters:
name—the name of the SG-DMA device to open.
Returns:
A pointer to the SG-DMA device structure associated with the supplied name, or
NULL if no corresponding SG-DMA device structure was found.
Description:
Retrieves a pointer to a hardware SG-DMA device structure.
21-24
alt_avalon_sgdma_stop()
UG-01085
2014.24.07
Altera Corporation
Scatter-Gather DMA Controller Core