diff options
author | Rebecca Schultz Zavin <rebecca@android.com> | 2012-11-15 10:52:45 -0800 |
---|---|---|
committer | Arve Hjønnevåg <arve@android.com> | 2013-06-11 17:46:59 -0700 |
commit | 38ad864374411e9cd3e4f3492783fc231a4be9b0 (patch) | |
tree | c50d54c4bbdb6cff0850091d544adb8d82c5e196 /include | |
parent | cd99a196b0df2387e9538a0b47451436d2319289 (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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/ion.h b/include/linux/ion.h index a7d399c4f0be..814a7f4981a8 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; }; /** |