Alexandros Frantzis | e39eb8f | 2017-09-27 15:09:15 +0300 | [diff] [blame^] | 1 | /* Sync file Linux kernel UAPI */ |
| 2 | |
| 3 | #ifndef WESTON_SYNC_FILE_H |
| 4 | #define WESTON_SYNC_FILE_H |
| 5 | |
| 6 | #include <linux/ioctl.h> |
| 7 | #include <linux/types.h> |
| 8 | |
| 9 | struct 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 | |
| 17 | struct 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 | |
| 30 | #endif |