printf: Remove unused 'bprintf'
[drm/drm-misc.git] / include / linux / dma / mxs-dma.h
blob069d9f5a609ea6e4087c554b017807237bf69ac3
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _MXS_DMA_H_
3 #define _MXS_DMA_H_
5 #include <linux/dmaengine.h>
7 #define MXS_DMA_CTRL_WAIT4END BIT(31)
8 #define MXS_DMA_CTRL_WAIT4RDY BIT(30)
11 * The mxs dmaengine can do PIO transfers. We pass a pointer to the PIO words
12 * in the second argument to dmaengine_prep_slave_sg when the direction is
13 * set to DMA_TRANS_NONE. To make this clear and to prevent users from doing
14 * the error prone casting we have this wrapper function
16 static inline struct dma_async_tx_descriptor *mxs_dmaengine_prep_pio(
17 struct dma_chan *chan, u32 *pio, unsigned int npio,
18 enum dma_transfer_direction dir, unsigned long flags)
20 return dmaengine_prep_slave_sg(chan, (struct scatterlist *)pio, npio,
21 dir, flags);
24 #endif /* _MXS_DMA_H_ */