aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/common/dmabounce.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/common/dmabounce.c')
-rw-r--r--arch/arm/common/dmabounce.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/common/dmabounce.c b/arch/arm/common/dmabounce.c
index 35c72bcf3d0b..c7f23ced0a36 100644
--- a/arch/arm/common/dmabounce.c
+++ b/arch/arm/common/dmabounce.c
@@ -412,6 +412,19 @@ dma_map_single(struct device *dev, void *ptr, size_t size,
412 return dma_addr; 412 return dma_addr;
413} 413}
414 414
415dma_addr_t dma_map_page(struct device *dev, struct page *page,
416 unsigned long offset, size_t size,
417 enum dma_data_direction dir)
418{
419 dev_dbg(dev, "%s(page=%p,off=%#lx,size=%zx,dir=%x)\n",
420 __func__, page, offset, size, dir);
421
422 BUG_ON(dir == DMA_NONE);
423
424 return map_single(dev, page_address(page) + offset, size, dir);
425}
426EXPORT_SYMBOL(dma_map_page);
427
415/* 428/*
416 * see if a mapped address was really a "safe" buffer and if so, copy 429 * see if a mapped address was really a "safe" buffer and if so, copy
417 * the data from the safe buffer back to the unsafe buffer and free up 430 * the data from the safe buffer back to the unsafe buffer and free up