From: Christopher N. Hesse Date: Mon, 6 Nov 2017 17:00:47 +0000 (+0100) Subject: exynos_ion: Add staging ION defines from kernel X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7b5ae9c7e533094407dee0332acb677f5a3f3f2b;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung_slsi_exynos.git exynos_ion: Add staging ION defines from kernel Change-Id: I5fe26e7bf42e001ab36df16f7ef1ba24b1832aba --- 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_ */