diff options
author | Hiroshi Doyu <hdoyu@nvidia.com> | 2013-04-03 15:51:20 +0300 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:12:07 -0700 |
commit | 888887d00bfc325f83b9b60f4b6f6dcb2b7a867e (patch) | |
tree | abf02a19e62a1caad37e225b45eed042ba822bde /include/linux | |
parent | c86ac0a97007e863e9a329cf5497b3327cf63784 (diff) |
ARM: dma-mapping: Add new API dma_ops->map_pages()
Add new API dma_ops->map_pages() for performance
bug 1254010
bug 1226176
bug 999937
Change-Id: Ib8bbcad53024225173be765358af03d0961f8af0
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/225673
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/dma-mapping.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index 7ea4d1928be0..69b360847d40 100644 --- a/include/linux/dma-mapping.h +++ b/include/linux/dma-mapping.h @@ -26,6 +26,11 @@ struct dma_map_ops { enum dma_data_direction dir, struct dma_attrs *attrs); + dma_addr_t (*map_pages)(struct device *dev, struct page **pages, + dma_addr_t dma_handle, size_t count, + enum dma_data_direction dir, + struct dma_attrs *attrs); + dma_addr_t (*map_page_at)(struct device *dev, struct page *page, dma_addr_t dma_handle, unsigned long offset, size_t size, |