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 | fcc3b4f | 2021-07-01 01:30:21 +0000 | [diff] [blame] | 7 | #ifndef _UAPI_IIO_BUFFER_H_ |
| 8 | #define _UAPI_IIO_BUFFER_H_ |
Christopher Ferris | 63fcca4 | 2024-09-26 01:12:10 +0000 | [diff] [blame^] | 9 | #include <linux/types.h> |
| 10 | #define IIO_BUFFER_DMABUF_CYCLIC (1 << 0) |
| 11 | #define IIO_BUFFER_DMABUF_SUPPORTED_FLAGS 0x00000001 |
| 12 | struct iio_dmabuf { |
| 13 | __u32 fd; |
| 14 | __u32 flags; |
| 15 | __u64 bytes_used; |
| 16 | }; |
Christopher Ferris | fcc3b4f | 2021-07-01 01:30:21 +0000 | [diff] [blame] | 17 | #define IIO_BUFFER_GET_FD_IOCTL _IOWR('i', 0x91, int) |
Christopher Ferris | 63fcca4 | 2024-09-26 01:12:10 +0000 | [diff] [blame^] | 18 | #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 Ferris | fcc3b4f | 2021-07-01 01:30:21 +0000 | [diff] [blame] | 21 | #endif |