diff options
author | Alexandre Bounine <alexandre.bounine@idt.com> | 2014-08-08 17:22:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-08 18:57:24 -0400 |
commit | 4aff1ce7add1c432fe5ea3ae0231155f33e5ef38 (patch) | |
tree | c2a9300e8ebe844887adaded00ee4b3078e94d4b /include/linux/rio_drv.h | |
parent | 93b7aca35dd7bf0c3ba7ea0542b556bcfdb28e76 (diff) |
rapidio: add new RapidIO DMA interface routines
Add RapidIO DMA interface routines that directly use reference to the mport
device object and/or target device destination ID as parameters.
This allows to perform RapidIO DMA transfer requests by modules that do not
have an access to the RapidIO device list.
Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Andre van Herk <andre.van.herk@prodrive-technologies.com>
Cc: Stef van Os <stef.van.os@prodrive-technologies.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/rio_drv.h')
-rw-r--r-- | include/linux/rio_drv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/rio_drv.h b/include/linux/rio_drv.h index 5059994fe297..9fc2f213e74f 100644 --- a/include/linux/rio_drv.h +++ b/include/linux/rio_drv.h | |||
@@ -384,11 +384,16 @@ void rio_dev_put(struct rio_dev *); | |||
384 | 384 | ||
385 | #ifdef CONFIG_RAPIDIO_DMA_ENGINE | 385 | #ifdef CONFIG_RAPIDIO_DMA_ENGINE |
386 | extern struct dma_chan *rio_request_dma(struct rio_dev *rdev); | 386 | extern struct dma_chan *rio_request_dma(struct rio_dev *rdev); |
387 | extern struct dma_chan *rio_request_mport_dma(struct rio_mport *mport); | ||
387 | extern void rio_release_dma(struct dma_chan *dchan); | 388 | extern void rio_release_dma(struct dma_chan *dchan); |
388 | extern struct dma_async_tx_descriptor *rio_dma_prep_slave_sg( | 389 | extern struct dma_async_tx_descriptor *rio_dma_prep_slave_sg( |
389 | struct rio_dev *rdev, struct dma_chan *dchan, | 390 | struct rio_dev *rdev, struct dma_chan *dchan, |
390 | struct rio_dma_data *data, | 391 | struct rio_dma_data *data, |
391 | enum dma_transfer_direction direction, unsigned long flags); | 392 | enum dma_transfer_direction direction, unsigned long flags); |
393 | extern struct dma_async_tx_descriptor *rio_dma_prep_xfer( | ||
394 | struct dma_chan *dchan, u16 destid, | ||
395 | struct rio_dma_data *data, | ||
396 | enum dma_transfer_direction direction, unsigned long flags); | ||
392 | #endif | 397 | #endif |
393 | 398 | ||
394 | /** | 399 | /** |