File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Documentation/driver-api/dmaengine Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,10 @@ The details of these operations are:
80
80
81
81
- slave_sg: DMA a list of scatter gather buffers from/to a peripheral
82
82
83
+ - peripheral_dma_vec: DMA an array of scatter gather buffers from/to a
84
+ peripheral. Similar to slave_sg, but uses an array of dma_vec
85
+ structures instead of a scatterlist.
86
+
83
87
- dma_cyclic: Perform a cyclic DMA operation from/to a peripheral till the
84
88
operation is explicitly stopped.
85
89
@@ -102,6 +106,11 @@ The details of these operations are:
102
106
unsigned int sg_len, enum dma_data_direction direction,
103
107
unsigned long flags);
104
108
109
+ struct dma_async_tx_descriptor *dmaengine_prep_peripheral_dma_vec(
110
+ struct dma_chan *chan, const struct dma_vec *vecs,
111
+ size_t nents, enum dma_data_direction direction,
112
+ unsigned long flags);
113
+
105
114
struct dma_async_tx_descriptor *dmaengine_prep_dma_cyclic(
106
115
struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len,
107
116
size_t period_len, enum dma_data_direction direction);
Original file line number Diff line number Diff line change @@ -433,6 +433,12 @@ supported.
433
433
- residue: Provides the residue bytes of the transfer for those that
434
434
support residue.
435
435
436
+ - ``device_prep_peripheral_dma_vec ``
437
+
438
+ - Similar to ``device_prep_slave_sg ``, but it takes a pointer to a
439
+ array of ``dma_vec `` structures, which (in the long run) will replace
440
+ scatterlists.
441
+
436
442
- ``device_issue_pending ``
437
443
438
444
- Takes the first transaction descriptor in the pending queue,
@@ -544,6 +550,10 @@ dma_cookie_t
544
550
- Not really relevant any more since the introduction of ``virt-dma ``
545
551
that abstracts it away.
546
552
553
+ dma_vec
554
+
555
+ - A small structure that contains a DMA address and length.
556
+
547
557
DMA_CTRL_ACK
548
558
549
559
- If clear, the descriptor cannot be reused by provider until the
You can’t perform that action at this time.
0 commit comments