summaryrefslogtreecommitdiff
path: root/arch/arm/include
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2012-06-13 10:01:15 +0200
committerMarek Szyprowski <m.szyprowski@samsung.com>2012-07-30 12:25:47 +0200
commitdc2832e1e7db3f9ad465d2fe894bd69ef05d1e4b (patch)
tree67b74751c0d7ee64c6ab9702a56041ab0f3df092 /arch/arm/include
parentd2b7428eb0caa7c66e34b6ac869a43915b294123 (diff)
downloadlinux-3.10-dc2832e1e7db3f9ad465d2fe894bd69ef05d1e4b.tar.gz
linux-3.10-dc2832e1e7db3f9ad465d2fe894bd69ef05d1e4b.tar.bz2
linux-3.10-dc2832e1e7db3f9ad465d2fe894bd69ef05d1e4b.zip
ARM: dma-mapping: add support for dma_get_sgtable()
This patch adds support for dma_get_sgtable() function which is required to let drivers to share the buffers allocated by DMA-mapping subsystem. Generic implementation based on virt_to_page() is not suitable for ARM dma-mapping subsystem. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/dma-mapping.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm/dma-mapping.h
index a0480333114..2ae842df455 100644
--- a/arch/arm/include/asm/dma-mapping.h
+++ b/arch/arm/include/asm/dma-mapping.h
@@ -261,6 +261,9 @@ extern void arm_dma_sync_sg_for_cpu(struct device *, struct scatterlist *, int,
enum dma_data_direction);
extern void arm_dma_sync_sg_for_device(struct device *, struct scatterlist *, int,
enum dma_data_direction);
+extern int arm_dma_get_sgtable(struct device *dev, struct sg_table *sgt,
+ void *cpu_addr, dma_addr_t dma_addr, size_t size,
+ struct dma_attrs *attrs);
#endif /* __KERNEL__ */
#endif