18cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes/**************************************************************************** 28cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes **************************************************************************** 38cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes *** 48cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes *** This header was automatically generated from a Linux kernel header 58cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes *** of the same name, to make information necessary for userspace to 68cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes *** call into the kernel available to libc. It contains only constants, 78cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes *** structures, and macros generated from the original header, and thus, 88cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes *** contains no copyrightable information. 98cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes *** 108cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes *** To edit the content of this header, modify the corresponding 118cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes *** source file (e.g. under external/kernel-headers/original/) then 128cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes *** run bionic/libc/kernel/tools/update_all.py 138cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes *** 148cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes *** Any manual change here will be lost the next time this script will 158cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes *** be run. You've been warned! 168cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes *** 178cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes **************************************************************************** 188cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ****************************************************************************/ 198cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes#ifndef _UAPI_LINUX_SYNC_H 208cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes#define _UAPI_LINUX_SYNC_H 218cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes#include <linux/ioctl.h> 228cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes#include <linux/types.h> 238cb52b056cfc302e05304d847c4228dff15715cfElliott Hughesstruct sync_merge_data { 24d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao char name[32]; 25106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris __s32 fd2; 26d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __s32 fence; 27106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris __u32 flags; 28106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris __u32 pad; 298cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes}; 30106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferrisstruct sync_fence_info { 31106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris char obj_name[32]; 32d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao char driver_name[32]; 33d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __s32 status; 34106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris __u32 flags; 35106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris __u64 timestamp_ns; 368cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes}; 37106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferrisstruct sync_file_info { 38d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao char name[32]; 39d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __s32 status; 40106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris __u32 flags; 41106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris __u32 num_fences; 42106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris __u32 pad; 43106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris __u64 sync_fence_info; 448cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes}; 458cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes#define SYNC_IOC_MAGIC '>' 46106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define SYNC_IOC_MERGE _IOWR(SYNC_IOC_MAGIC, 3, struct sync_merge_data) 47106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define SYNC_IOC_FILE_INFO _IOWR(SYNC_IOC_MAGIC, 4, struct sync_file_info) 488cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes#endif 49