exynos_ion: Add staging ION defines from kernel
authorChristopher N. Hesse <raymanfx@gmail.com>
Mon, 6 Nov 2017 17:00:47 +0000 (18:00 +0100)
committerJan Altensen <info@stricted.net>
Sun, 5 Apr 2020 01:02:40 +0000 (03:02 +0200)
Change-Id: I5fe26e7bf42e001ab36df16f7ef1ba24b1832aba

include/exynos_ion.h

index 018d240bc54601125628db82e70eb784748010f0..2dd8d5c4c402755653d1961316f44d836789af6e 100644 (file)
@@ -51,4 +51,24 @@ enum {
 #define EXYNOS_ION_HEAP_GPU_BUFFER          (1 << ION_EXYNOS_HEAP_ID_GPU_BUFFER)
 #define EXYNOS_ION_HEAP_CAMERA              (1 << ION_EXYNOS_HEAP_ID_CAMERA)
 
+/*
+ * Values taken from Linux kernel to keep /system/core clean.
+ * Normally, these would go into libion/kernel-headers/linux/ion.h.
+ */
+#ifndef ION_FLAG_NOZEROED
+#define ION_FLAG_NOZEROED 8            /* Allocated buffer is not initialized
+                                          with zero value and userspace is not
+                                          able to access the buffer
+                                        */
+#endif
+#ifndef ION_FLAG_PROTECTED
+#define ION_FLAG_PROTECTED 16          /* this buffer would be used in secure
+                                          world. if this is set, all cpu accesses
+                                          are prohibited.
+                                        */
+#endif
+#ifndef ION_FLAG_SYNC_FORCE
+#define ION_FLAG_SYNC_FORCE 32         /* cache sync forcely at allocation */
+#endif
+
 #endif /* _LIB_ION_H_ */