blob: 114e0b6ebb38ed6ac940a72fd0bc5240b1448cb7 [file] [log] [blame]
Alexandros Frantzise39eb8f2017-09-27 15:09:15 +03001/* 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
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
30#endif