summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHridya Valsaraju <hridya@google.com>2019-10-02 14:32:19 -0700
committerAmit Pundir <amit.pundir@linaro.org>2019-10-07 18:35:41 +0530
commit799bc63ee56be9cd78689aa45bce8d8357303a59 (patch)
tree047a87842bab25ebb2911a4fb015b36fe2933b09 /include
parent25d0601c7b3123d3369e7cfb0ecfa0a94a2ec62a (diff)
Add an IOCTL to check ION ABI version
Userspace needs a way to detect ION ABI version at runtime to determine heap IDs. CURRENT_ION_ABI_VERSION is set to 2 considering legacy and upstream versions as 0 and 1. Bug: 140916230 Test: make Signed-off-by: Hridya Valsaraju <hridya@google.com> Change-Id: Ie9d9e23c2d8323620832906d33745d599cbce6be
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/ion.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/linux/ion.h b/include/uapi/linux/ion.h
index 09dbbfaf3718..ffae6d036cfa 100644
--- a/include/uapi/linux/ion.h
+++ b/include/uapi/linux/ion.h
@@ -159,4 +159,11 @@ struct ion_heap_query {
#define ION_IOC_HEAP_QUERY _IOWR(ION_IOC_MAGIC, 8, \
struct ion_heap_query)
+/**
+ * DOC: ION_IOC_HEAP_ABI_VERSION - return ABI version
+ *
+ * Returns ABI version for this driver
+ */
+#define ION_IOC_ABI_VERSION _IOR(ION_IOC_MAGIC, 9, \
+ __u32)
#endif /* _UAPI_LINUX_ION_H */