mxc: mx1/mx2 DMA: add a possibility to create an endless DMA transfer
[deliverable/linux.git] / arch / arm / plat-mxc / include / mach / dma-mx1-mx2.h
index b3876cc238cadbd27b13f97f0d3ce8f8e879e3f2..07be8ad7ec37b90a322e59e7e6d7af34f04d0b42 100644 (file)
@@ -58,6 +58,14 @@ imx_dma_setup_single(int channel, dma_addr_t dma_address,
                unsigned int dma_length, unsigned int dev_addr,
                unsigned int dmamode);
 
+
+/*
+ * Use this flag as the dma_length argument to imx_dma_setup_sg()
+ * to create an endless running dma loop. The end of the scatterlist
+ * must be linked to the beginning for this to work.
+ */
+#define IMX_DMA_LENGTH_LOOP    ((unsigned int)-1)
+
 int
 imx_dma_setup_sg(int channel, struct scatterlist *sg,
                unsigned int sgcount, unsigned int dma_length,
This page took 0.027371 seconds and 5 git commands to generate.