summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKrishna Reddy <vdumpa@nvidia.com>2014-06-26 17:29:30 -0700
committerMandar Padmawar <mpadmawar@nvidia.com>2014-06-30 04:08:26 -0700
commita983aa965a92305360f854362cf770bc82503675 (patch)
tree8b1cb3503b7abd103e9404fe53cd2ba30be8b5f7 /include
parent7d511f3a70cfe9508a9bd2230d8b20b6c5114689 (diff)
base: dma-contiguous: add API to specify the start of allocation
Add API dma_alloc_at_from_contiguous to support allocations at specific phys address. Bug 200016405 Change-Id: I425a25af3163c391e6b7d9b8bc3299f3ffc7c7c8 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/431949 GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'include')
-rwxr-xr-xinclude/linux/dma-contiguous.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/dma-contiguous.h b/include/linux/dma-contiguous.h
index 3aba068c2d8b..a2010387b2c5 100755
--- a/include/linux/dma-contiguous.h
+++ b/include/linux/dma-contiguous.h
@@ -78,6 +78,8 @@ int dma_declare_contiguous(struct device *dev, phys_addr_t size,
struct page *dma_alloc_from_contiguous(struct device *dev, int count,
unsigned int order);
+struct page *dma_alloc_at_from_contiguous(struct device *dev, int count,
+ unsigned int order, phys_addr_t at_addr);
bool dma_release_from_contiguous(struct device *dev, struct page *pages,
int count);
int dma_get_contiguous_stats(struct device *dev,
@@ -99,6 +101,13 @@ int dma_declare_contiguous(struct device *dev, phys_addr_t size,
}
static inline
+struct page *dma_alloc_at_from_contiguous(struct device *dev, int count,
+ unsigned int order, phys_addr_t at_addr)
+{
+ return NULL;
+}
+
+static inline
struct page *dma_alloc_from_contiguous(struct device *dev, int count,
unsigned int order)
{