summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRebecca Schultz Zavin <rebecca@android.com>2012-01-31 09:40:30 -0800
committerArve Hjønnevåg <arve@android.com>2013-06-11 17:46:37 -0700
commit0bb8cd803bce0967b6c44d8b91853111170570ca (patch)
tree4f89884efb8118743ae4e21ee8e7a436278d605f /include
parent2b735a749c8f91a044f2974201d2e4cdfcecf1dc (diff)
ion: Add reserve function to ion
Rather than requiring each platform call memblock_remove or reserve from the board file, add this to ion Change-Id: Ie418a692c13e9e0cfe93ecc83d253d3ce860fc83 Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ion.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/ion.h b/include/linux/ion.h
index 9d196e2f9bb3..860b160ab5ed 100644
--- a/include/linux/ion.h
+++ b/include/linux/ion.h
@@ -87,6 +87,17 @@ struct ion_platform_data {
};
/**
+ * ion_reserve() - reserve memory for ion heaps if applicable
+ * @data: platform data specifying starting physical address and
+ * size
+ *
+ * Calls memblock reserve to set aside memory for heaps that are
+ * located at specific memory addresses or of specfic sizes not
+ * managed by the kernel
+ */
+void ion_reserve(struct ion_platform_data *data);
+
+/**
* ion_client_create() - allocate a client and returns it
* @dev: the global ion device
* @heap_mask: mask of heaps this client can allocate from