rapidio: add DMA engine support for RIO data transfers
authorAlexandre Bounine <alexandre.bounine@idt.com>
Thu, 31 May 2012 23:26:38 +0000 (16:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 1 Jun 2012 00:49:31 +0000 (17:49 -0700)
commite42d98ebe7d754a2c9fbccd6186721d3ca8679f6
treeeed734672410f2eb8fab07fbd14f88bfaf8a882f
parentce2d52cc1364a22fc1a161781e60ee3cbb499a6d
rapidio: add DMA engine support for RIO data transfers

Adds DMA Engine framework support into RapidIO subsystem.

Uses DMA Engine DMA_SLAVE interface to generate data transfers to/from
remote RapidIO target devices.

Introduces RapidIO-specific wrapper for prep_slave_sg() interface with an
extra parameter to pass target specific information.

Uses scatterlist to describe local data buffer.  Address flat data buffer
on a remote side.

Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Acked-by: Vinod Koul <vinod.koul@linux.intel.com>
Cc: Li Yang <leoli@freescale.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rapidio/Kconfig
drivers/rapidio/rio.c
include/linux/dmaengine.h
include/linux/rio.h
include/linux/rio_drv.h