mirror of https://github.com/OpenIPC/firmware.git
20 lines
936 B
Diff
20 lines
936 B
Diff
diff -drupN a/include/linux/dmaengine.h b/include/linux/dmaengine.h
|
|
--- a/include/linux/dmaengine.h 2017-10-21 18:09:07.000000000 +0300
|
|
+++ b/include/linux/dmaengine.h 2022-06-09 05:02:35.000000000 +0300
|
|
@@ -686,6 +686,15 @@ struct dma_device {
|
|
int (*device_alloc_chan_resources)(struct dma_chan *chan);
|
|
void (*device_free_chan_resources)(struct dma_chan *chan);
|
|
|
|
+ /* Legacy Interface For ingenic chips. New DMA Driver should never use.*/
|
|
+ struct dma_async_tx_descriptor *(*device_add_desc)(
|
|
+ struct dma_chan *chan, dma_addr_t src,dma_addr_t dst,
|
|
+ unsigned cnt,enum dma_transfer_direction direction,int flag);
|
|
+ dma_addr_t (*get_current_trans_addr)(
|
|
+ struct dma_chan *chan,dma_addr_t *dst_addr,
|
|
+ dma_addr_t *src_addr,enum dma_transfer_direction direction);
|
|
+
|
|
+
|
|
struct dma_async_tx_descriptor *(*device_prep_dma_memcpy)(
|
|
struct dma_chan *chan, dma_addr_t dst, dma_addr_t src,
|
|
size_t len, unsigned long flags);
|