drm/nouveau: consume the return of large GSP message
[drm/drm-misc.git] / include / uapi / linux / iio / buffer.h
blobc666aa95e532033c251d2768009c61ef65e85759
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /* industrial I/O buffer definitions needed both in and out of kernel
3 */
5 #ifndef _UAPI_IIO_BUFFER_H_
6 #define _UAPI_IIO_BUFFER_H_
8 #include <linux/types.h>
10 /* Flags for iio_dmabuf.flags */
11 #define IIO_BUFFER_DMABUF_CYCLIC (1 << 0)
12 #define IIO_BUFFER_DMABUF_SUPPORTED_FLAGS 0x00000001
14 /**
15 * struct iio_dmabuf - Descriptor for a single IIO DMABUF object
16 * @fd: file descriptor of the DMABUF object
17 * @flags: one or more IIO_BUFFER_DMABUF_* flags
18 * @bytes_used: number of bytes used in this DMABUF for the data transfer.
19 * Should generally be set to the DMABUF's size.
21 struct iio_dmabuf {
22 __u32 fd;
23 __u32 flags;
24 __u64 bytes_used;
27 #define IIO_BUFFER_GET_FD_IOCTL _IOWR('i', 0x91, int)
28 #define IIO_BUFFER_DMABUF_ATTACH_IOCTL _IOW('i', 0x92, int)
29 #define IIO_BUFFER_DMABUF_DETACH_IOCTL _IOW('i', 0x93, int)
30 #define IIO_BUFFER_DMABUF_ENQUEUE_IOCTL _IOW('i', 0x94, struct iio_dmabuf)
32 #endif /* _UAPI_IIO_BUFFER_H_ */