summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHiroshi DOYU <hdoyu@nvidia.com>2011-12-23 14:10:33 +0200
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-01-12 09:14:10 -0800
commit609eb320c69b130eb7bbd4b0398ea6ce6c85bbfc (patch)
tree16a2b029d3f76db87a8d427d64eba4700e49fc19 /include
parent1638b56014450dce1c04895ecf9da7305294760d (diff)
gpu: ion: Add IOMMU heap allocator with IOMMU API
Implemented IOMMU heap allocator("ion_iommu_heap_ops") with IOMMU API. This implementation is independenf of SoC because the standard IOMMU API is used in the backend implementation of this heap_ops. [Krishna Reddy: Refactored the original version heavily, especially making "allocation" and "mapping" features independent with "struct page" based mapping functions.] Change-Id: Ia692d9a0dc00424fa3e95a830f557808351b1ad7 Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/72217 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'include')
-rw-r--r--include/linux/ion.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/ion.h b/include/linux/ion.h
index aed8349279ed..9a322437a976 100644
--- a/include/linux/ion.h
+++ b/include/linux/ion.h
@@ -33,6 +33,7 @@ enum ion_heap_type {
ION_HEAP_TYPE_SYSTEM,
ION_HEAP_TYPE_SYSTEM_CONTIG,
ION_HEAP_TYPE_CARVEOUT,
+ ION_HEAP_TYPE_IOMMU,
ION_HEAP_TYPE_CUSTOM, /* must be last so device specific heaps always
are at the end of this enum */
ION_NUM_HEAPS,
@@ -63,6 +64,7 @@ struct ion_buffer;
* @name: used for debug purposes
* @base: base address of heap in physical memory if applicable
* @size: size of the heap in bytes if applicable
+ * @priv: heap specific data
*
* Provided by the board file.
*/
@@ -72,6 +74,7 @@ struct ion_platform_heap {
const char *name;
ion_phys_addr_t base;
size_t size;
+ void *priv;
};
/**