18cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes/****************************************************************************
28cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ****************************************************************************
38cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***
48cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***   This header was automatically generated from a Linux kernel header
58cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***   of the same name, to make information necessary for userspace to
68cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***   call into the kernel available to libc.  It contains only constants,
78cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***   structures, and macros generated from the original header, and thus,
88cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***   contains no copyrightable information.
98cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***
108cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***   To edit the content of this header, modify the corresponding
118cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***   source file (e.g. under external/kernel-headers/original/) then
128cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***   run bionic/libc/kernel/tools/update_all.py
138cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***
148cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***   Any manual change here will be lost the next time this script will
158cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***   be run. You've been warned!
168cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***
178cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ****************************************************************************
188cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ****************************************************************************/
19106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#ifndef _DMA_BUF_UAPI_H_
20106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define _DMA_BUF_UAPI_H_
218cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes#include <linux/types.h>
22106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferrisstruct dma_buf_sync {
23106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __u64 flags;
248cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes};
25106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define DMA_BUF_SYNC_READ (1 << 0)
26106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define DMA_BUF_SYNC_WRITE (2 << 0)
27106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define DMA_BUF_SYNC_RW (DMA_BUF_SYNC_READ | DMA_BUF_SYNC_WRITE)
28106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define DMA_BUF_SYNC_START (0 << 2)
29106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define DMA_BUF_SYNC_END (1 << 2)
30106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define DMA_BUF_SYNC_VALID_FLAGS_MASK (DMA_BUF_SYNC_RW | DMA_BUF_SYNC_END)
31106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define DMA_BUF_BASE 'b'
32106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define DMA_BUF_IOCTL_SYNC _IOW(DMA_BUF_BASE, 0, struct dma_buf_sync)
338cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes#endif
34