sync_file.h revision 106b3a8a7dc03c19a45e322de425ac56aafac358
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 Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
248cb52b056cfc302e05304d847c4228dff15715cfElliott Hughesstruct sync_merge_data {
25d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  char name[32];
26106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __s32 fd2;
27d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __s32 fence;
288cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __u32 flags;
30106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __u32 pad;
318cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes};
32106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferrisstruct sync_fence_info {
338cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  char obj_name[32];
35d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  char driver_name[32];
36d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __s32 status;
37106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __u32 flags;
388cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __u64 timestamp_ns;
408cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes};
41106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferrisstruct sync_file_info {
42d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  char name[32];
438cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __s32 status;
45106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __u32 flags;
46106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __u32 num_fences;
47106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __u32 pad;
48106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __u64 sync_fence_info;
508cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes};
518cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes#define SYNC_IOC_MAGIC '>'
52106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define SYNC_IOC_MERGE _IOWR(SYNC_IOC_MAGIC, 3, struct sync_merge_data)
538cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define SYNC_IOC_FILE_INFO _IOWR(SYNC_IOC_MAGIC, 4, struct sync_file_info)
558cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes#endif
56