From 7b5ae9c7e533094407dee0332acb677f5a3f3f2b Mon Sep 17 00:00:00 2001 From: "Christopher N. Hesse" Date: Mon, 6 Nov 2017 18:00:47 +0100 Subject: [PATCH] exynos_ion: Add staging ION defines from kernel Change-Id: I5fe26e7bf42e001ab36df16f7ef1ba24b1832aba --- include/exynos_ion.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/include/exynos_ion.h b/include/exynos_ion.h index 018d240..2dd8d5c 100644 --- a/include/exynos_ion.h +++ b/include/exynos_ion.h @@ -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_ */ -- 2.20.1