17 #ifndef _UAPI_LINUX_ION_H 18 #define _UAPI_LINUX_ION_H 20 #include <linux/ioctl.h> 21 #include <linux/types.h> 23 typedef int ion_user_handle_t;
39 ION_HEAP_TYPE_SYSTEM_CONTIG,
40 ION_HEAP_TYPE_CARVEOUT,
48 #define ION_HEAP_SYSTEM_MASK (1 << ION_HEAP_TYPE_SYSTEM) 49 #define ION_HEAP_SYSTEM_CONTIG_MASK (1 << ION_HEAP_TYPE_SYSTEM_CONTIG) 50 #define ION_HEAP_CARVEOUT_MASK (1 << ION_HEAP_TYPE_CARVEOUT) 51 #define ION_HEAP_TYPE_DMA_MASK (1 << ION_HEAP_TYPE_DMA) 53 #define ION_NUM_HEAP_IDS sizeof(unsigned int) * 8 59 #define ION_FLAG_CACHED 1 63 #define ION_FLAG_CACHED_NEEDS_SYNC 2 89 unsigned int heap_id_mask;
91 ion_user_handle_t handle;
105 ion_user_handle_t handle;
114 ion_user_handle_t handle;
130 #define ION_IOC_MAGIC 'I' 138 #define ION_IOC_ALLOC _IOWR(ION_IOC_MAGIC, 0, \ 139 struct ion_allocation_data) 146 #define ION_IOC_FREE _IOWR(ION_IOC_MAGIC, 1, struct ion_handle_data) 156 #define ION_IOC_MAP _IOWR(ION_IOC_MAGIC, 2, struct ion_fd_data) 167 #define ION_IOC_SHARE _IOWR(ION_IOC_MAGIC, 4, struct ion_fd_data) 176 #define ION_IOC_IMPORT _IOWR(ION_IOC_MAGIC, 5, struct ion_fd_data) 186 #define ION_IOC_SYNC _IOWR(ION_IOC_MAGIC, 7, struct ion_fd_data) 194 #define ION_IOC_CUSTOM _IOWR(ION_IOC_MAGIC, 6, struct ion_custom_data) struct ion_fd_data - metadata passed to/from userspace for a handle/fd pair : a handle : a file descr...
Definition: ion.h:104
struct ion_custom_data - metadata passed to/from userspace for a custom ioctl : the custom ioctl func...
Definition: ion.h:125
DOC: Ion Userspace API.
Definition: ion.h:86
struct ion_handle_data - a handle passed to/from the kernel : a handle
Definition: ion.h:113