Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 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 | */ |
Christopher Ferris | bb9fcb4 | 2020-04-06 11:38:04 -0700 | [diff] [blame] | 7 | #ifndef _UAPI_LINUX_DMABUF_POOL_H |
| 8 | #define _UAPI_LINUX_DMABUF_POOL_H |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 9 | #include <linux/ioctl.h> |
Christopher Ferris | bb9fcb4 | 2020-04-06 11:38:04 -0700 | [diff] [blame] | 10 | #include <linux/types.h> |
| 11 | #define DMA_HEAP_VALID_FD_FLAGS (O_CLOEXEC | O_ACCMODE) |
Priyanka Advani (xWF) | a805034 | 2024-09-25 19:07:32 +0000 | [diff] [blame] | 12 | #define DMA_HEAP_VALID_HEAP_FLAGS (0) |
Christopher Ferris | bb9fcb4 | 2020-04-06 11:38:04 -0700 | [diff] [blame] | 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) |
Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 21 | #endif |