aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRebecca Schultz Zavin <rebecca@android.com>2012-11-15 10:52:45 -0800
committerArve Hjønnevåg <arve@android.com>2013-07-01 14:16:16 -0700
commit239ab4c6ff767a104d7fa0b0bfb6599091d62944 (patch)
tree4b3db8611784972d7c56807c7c7eee6251653db1 /include
parentba660956c1f585a590c4de32d5a969e7762ce51c (diff)
gpu: ion: Add chunk heap
This patch adds support for a chunk heap that allows for buffers that are made up of a list of fixed size chunks taken from a carveout. Chunk sizes are configured when the heaps are created by passing the chunk size in the priv field of the heap platform data. Change-Id: Ia9e003f727b553a92804264debe119dcf78b14e0 Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ion.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/ion.h b/include/linux/ion.h
index a7d399c4f0b..814a7f4981a 100644
--- a/include/linux/ion.h
+++ b/include/linux/ion.h
@@ -35,6 +35,7 @@ enum ion_heap_type {
ION_HEAP_TYPE_SYSTEM,
ION_HEAP_TYPE_SYSTEM_CONTIG,
ION_HEAP_TYPE_CARVEOUT,
+ ION_HEAP_TYPE_CHUNK,
ION_HEAP_TYPE_CUSTOM, /* must be last so device specific heaps always
are at the end of this enum */
ION_NUM_HEAPS = 16,
@@ -77,6 +78,8 @@ 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
+ * @align: required alignment in physical memory if applicable
+ * @priv: private info passed from the board file
*
* Provided by the board file.
*/
@@ -86,6 +89,8 @@ struct ion_platform_heap {
const char *name;
ion_phys_addr_t base;
size_t size;
+ ion_phys_addr_t align;
+ void *priv;
};
/**