blob: 7e03a8cf59ef359865105122a8e17491da3c8798 [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 Ferrisfcc3b4f2021-07-01 01:30:21 +00007#ifndef _UAPI_IIO_BUFFER_H_
8#define _UAPI_IIO_BUFFER_H_
Christopher Ferris63fcca42024-09-26 01:12:10 +00009#include <linux/types.h>
10#define IIO_BUFFER_DMABUF_CYCLIC (1 << 0)
11#define IIO_BUFFER_DMABUF_SUPPORTED_FLAGS 0x00000001
12struct iio_dmabuf {
13 __u32 fd;
14 __u32 flags;
15 __u64 bytes_used;
16};
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +000017#define IIO_BUFFER_GET_FD_IOCTL _IOWR('i', 0x91, int)
Christopher Ferris63fcca42024-09-26 01:12:10 +000018#define IIO_BUFFER_DMABUF_ATTACH_IOCTL _IOW('i', 0x92, int)
19#define IIO_BUFFER_DMABUF_DETACH_IOCTL _IOW('i', 0x93, int)
20#define IIO_BUFFER_DMABUF_ENQUEUE_IOCTL _IOW('i', 0x94, struct iio_dmabuf)
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +000021#endif