1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
2 | #ifndef _UAPI_LINUX_UDMABUF_H |
3 | #define _UAPI_LINUX_UDMABUF_H |
4 | |
5 | #include <linux/types.h> |
6 | #include <linux/ioctl.h> |
7 | |
8 | #define UDMABUF_FLAGS_CLOEXEC 0x01 |
9 | |
10 | struct udmabuf_create { |
11 | __u32 memfd; |
12 | __u32 flags; |
13 | __u64 offset; |
14 | __u64 size; |
15 | }; |
16 | |
17 | struct udmabuf_create_item { |
18 | __u32 memfd; |
19 | __u32 __pad; |
20 | __u64 offset; |
21 | __u64 size; |
22 | }; |
23 | |
24 | struct udmabuf_create_list { |
25 | __u32 flags; |
26 | __u32 count; |
27 | struct udmabuf_create_item list[]; |
28 | }; |
29 | |
30 | #define UDMABUF_CREATE _IOW('u', 0x42, struct udmabuf_create) |
31 | #define UDMABUF_CREATE_LIST _IOW('u', 0x43, struct udmabuf_create_list) |
32 | |
33 | #endif /* _UAPI_LINUX_UDMABUF_H */ |
34 | |