lkml.org 
[lkml]   [2010]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Dmaengine query
From
2010/4/19 rd bairva <rbairva@gmail.com>:

>    My DMA controller supports device to device DMA transfers and we
> need it in some of our drivers. Existing DMA engine framework doesn't
> have support for device to device transfers.
>
> Do you have any plans for device to device support in DMA engine?
>
> Can you suggest me some other suggestion for doing this?

Extend the DMA engine with the stuff you need and propose nice
patches, provide them along with a driver that make use of this
feature.

What about a signature like this:

struct dma_async_tx_descriptor *(*device_prep_slave2slave)(
struct dma_chan *chan1, struct dma_chan *chan2,
enum dma_data_direction direction,
unsigned long flags);

You'd have to add some semantics comment saying that
DMA_TO_DEVICE means chan1->chan2 and
DMA_FROM_DEVICE means chan1<-chan2.

Could be a bit of hacking but how hard can it be?

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2010-05-24 02:03    [W:0.307 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site