1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _UAPI_LINUX_DMABUF_POOL_H 8 #define _UAPI_LINUX_DMABUF_POOL_H 9 #include <linux/ioctl.h> 10 #include <linux/types.h> 11 #define DMA_HEAP_VALID_FD_FLAGS (O_CLOEXEC | O_ACCMODE) 12 #define DMA_HEAP_VALID_HEAP_FLAGS (0ULL) 13 struct dma_heap_allocation_data { 14 __u64 len; 15 __u32 fd; 16 __u32 fd_flags; 17 __u64 heap_flags; 18 }; 19 #define DMA_HEAP_IOC_MAGIC 'H' 20 #define DMA_HEAP_IOCTL_ALLOC _IOWR(DMA_HEAP_IOC_MAGIC, 0x0, struct dma_heap_allocation_data) 21 #endif 22