summaryrefslogtreecommitdiff
path: root/drivers/gpu/ion/ion_priv.h
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 /drivers/gpu/ion/ion_priv.h
parentba660956c1f585a590c4de32d5a969e7762ce51c (diff)
downloadolio-linux-3.10-239ab4c6ff767a104d7fa0b0bfb6599091d62944.tar.xz
olio-linux-3.10-239ab4c6ff767a104d7fa0b0bfb6599091d62944.zip
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 'drivers/gpu/ion/ion_priv.h')
-rw-r--r--drivers/gpu/ion/ion_priv.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/ion/ion_priv.h b/drivers/gpu/ion/ion_priv.h
index 24bf3ebdf42..cdd65da515d 100644
--- a/drivers/gpu/ion/ion_priv.h
+++ b/drivers/gpu/ion/ion_priv.h
@@ -194,7 +194,6 @@ int ion_heap_map_user(struct ion_heap *, struct ion_buffer *,
struct ion_heap *ion_heap_create(struct ion_platform_heap *);
void ion_heap_destroy(struct ion_heap *);
-
struct ion_heap *ion_system_heap_create(struct ion_platform_heap *);
void ion_system_heap_destroy(struct ion_heap *);
@@ -203,6 +202,9 @@ void ion_system_contig_heap_destroy(struct ion_heap *);
struct ion_heap *ion_carveout_heap_create(struct ion_platform_heap *);
void ion_carveout_heap_destroy(struct ion_heap *);
+
+struct ion_heap *ion_chunk_heap_create(struct ion_platform_heap *);
+void ion_chunk_heap_destroy(struct ion_heap *);
/**
* kernel api to allocate/free from carveout -- used when carveout is
* used to back an architecture specific custom heap