blob: 467e336a7d64444c8862aaeadc4d3587b70514ae [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 Ferrisbb9fcb42020-04-06 11:38:04 -07007#ifndef _UAPI_LINUX_DMABUF_POOL_H
8#define _UAPI_LINUX_DMABUF_POOL_H
Ben Cheng655a7c02013-10-16 16:09:24 -07009#include <linux/ioctl.h>
Christopher Ferrisbb9fcb42020-04-06 11:38:04 -070010#include <linux/types.h>
11#define DMA_HEAP_VALID_FD_FLAGS (O_CLOEXEC | O_ACCMODE)
12#define DMA_HEAP_VALID_HEAP_FLAGS (0)
13struct 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 Kralevicha67e4de2013-01-14 11:28:26 -080021#endif