|
@@ -621,6 +621,11 @@ static inline int dmaengine_slave_config(struct dma_chan *chan,
|
|
|
(unsigned long)config);
|
|
|
}
|
|
|
|
|
|
+static inline bool is_slave_direction(enum dma_transfer_direction direction)
|
|
|
+{
|
|
|
+ return (direction == DMA_MEM_TO_DEV) || (direction == DMA_DEV_TO_MEM);
|
|
|
+}
|
|
|
+
|
|
|
static inline struct dma_async_tx_descriptor *dmaengine_prep_slave_single(
|
|
|
struct dma_chan *chan, dma_addr_t buf, size_t len,
|
|
|
enum dma_transfer_direction dir, unsigned long flags)
|