diff options
Diffstat (limited to 'include/sync/sync.h')
-rw-r--r-- | include/sync/sync.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/include/sync/sync.h b/include/sync/sync.h index 6aa5f2d..918acf6 100644 --- a/include/sync/sync.h +++ b/include/sync/sync.h @@ -19,13 +19,30 @@ #ifndef __SYS_CORE_SYNC_H #define __SYS_CORE_SYNC_H -#include <linux/sync.h> -#include <linux/sw_sync.h> +#include <sys/cdefs.h> +#include <stdint.h> __BEGIN_DECLS +// XXX: These structs are copied from the header "linux/sync.h". +struct sync_fence_info_data { + uint32_t len; + char name[32]; + int32_t status; + uint8_t pt_info[0]; +}; + +struct sync_pt_info { + uint32_t len; + char obj_name[32]; + char driver_name[32]; + int32_t status; + uint64_t timestamp_ns; + uint8_t driver_data[0]; +}; + /* timeout in msecs */ -int sync_wait(int fd, unsigned int timeout); +int sync_wait(int fd, int timeout); int sync_merge(const char *name, int fd1, int fd2); struct sync_fence_info_data *sync_fence_info(int fd); struct sync_pt_info *sync_pt_info(struct sync_fence_info_data *info, |