diff options
author | Zhangfei Gao <zhangfei.gao@linaro.org> | 2013-06-25 13:46:47 +0800 |
---|---|---|
committer | Zhangfei Gao <zhangfei.gao@linaro.org> | 2013-08-20 11:16:51 +0800 |
commit | 70819037abfe1f5eb28bf3364e1c26d50b5661fd (patch) | |
tree | 3f5f531f139068f805d3a526d6457a948e3d1bd6 /virt | |
parent | f285f2f24e0145ed148e88538f3e5e7bb92fd963 (diff) |
dmaengine: add interface of dma_get_slave_channel
Suggested by Arnd, add dma_get_slave_channel interface
Dma host driver could get specific channel specificied by request line, rather than filter.
host example:
static struct dma_chan *xx_of_dma_simple_xlate(struct of_phandle_args *dma_spec,
struct of_dma *ofdma)
{
struct xx_dma_dev *d = ofdma->of_dma_data;
unsigned int request = dma_spec->args[0];
if (request > d->dma_requests)
return NULL;
return dma_get_slave_channel(&(d->chans[request].vc.chan));
}
probe:
of_dma_controller_register((&op->dev)->of_node, xx_of_dma_simple_xlate, d);
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions