blob: cd30665f9953e1749b11f47efcc6ddcfea231ea2 [file] [log] [blame]
Alexandros Frantzise39eb8f2017-09-27 15:09:15 +03001/* Sync file Linux kernel UAPI */
2
Alexandros Frantzisc0e2f922018-10-19 12:14:11 +03003#ifndef WESTON_LINUX_SYNC_FILE_UAPI_H
4#define WESTON_LINUX_SYNC_FILE_UAPI_H
Alexandros Frantzise39eb8f2017-09-27 15:09:15 +03005
6#include <linux/ioctl.h>
7#include <linux/types.h>
8
9struct sync_fence_info {
10 char obj_name[32];
11 char driver_name[32];
12 __s32 status;
13 __u32 flags;
14 __u64 timestamp_ns;
15};
16
17struct sync_file_info {
18 char name[32];
19 __s32 status;
20 __u32 flags;
21 __u32 num_fences;
22 __u32 pad;
23
24 __u64 sync_fence_info;
25};
26
27#define SYNC_IOC_MAGIC '>'
28#define SYNC_IOC_FILE_INFO _IOWR(SYNC_IOC_MAGIC, 4, struct sync_file_info)
29
Alexandros Frantzisc0e2f922018-10-19 12:14:11 +030030#endif /* WESTON_LINUX_SYNC_FILE_UAPI_H */