blob: 423d248cec161dc961db80f0fef9b6a88effd50d [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Elliott Hughes8cb52b02013-11-21 13:43:23 -08007#ifndef _UAPI_LINUX_SYNC_H
8#define _UAPI_LINUX_SYNC_H
9#include <linux/ioctl.h>
10#include <linux/types.h>
Elliott Hughes8cb52b02013-11-21 13:43:23 -080011struct sync_merge_data {
Tao Baod7db5942015-01-28 10:07:51 -080012 char name[32];
Christopher Ferris106b3a82016-08-24 12:15:38 -070013 __s32 fd2;
Tao Baod7db5942015-01-28 10:07:51 -080014 __s32 fence;
Christopher Ferris106b3a82016-08-24 12:15:38 -070015 __u32 flags;
16 __u32 pad;
Elliott Hughes8cb52b02013-11-21 13:43:23 -080017};
Christopher Ferris106b3a82016-08-24 12:15:38 -070018struct sync_fence_info {
Christopher Ferris106b3a82016-08-24 12:15:38 -070019 char obj_name[32];
Tao Baod7db5942015-01-28 10:07:51 -080020 char driver_name[32];
21 __s32 status;
Christopher Ferris106b3a82016-08-24 12:15:38 -070022 __u32 flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -070023 __u64 timestamp_ns;
Elliott Hughes8cb52b02013-11-21 13:43:23 -080024};
Christopher Ferris106b3a82016-08-24 12:15:38 -070025struct sync_file_info {
Tao Baod7db5942015-01-28 10:07:51 -080026 char name[32];
Tao Baod7db5942015-01-28 10:07:51 -080027 __s32 status;
Christopher Ferris106b3a82016-08-24 12:15:38 -070028 __u32 flags;
29 __u32 num_fences;
30 __u32 pad;
Christopher Ferris106b3a82016-08-24 12:15:38 -070031 __u64 sync_fence_info;
Elliott Hughes8cb52b02013-11-21 13:43:23 -080032};
33#define SYNC_IOC_MAGIC '>'
Christopher Ferris106b3a82016-08-24 12:15:38 -070034#define SYNC_IOC_MERGE _IOWR(SYNC_IOC_MAGIC, 3, struct sync_merge_data)
Christopher Ferris106b3a82016-08-24 12:15:38 -070035#define SYNC_IOC_FILE_INFO _IOWR(SYNC_IOC_MAGIC, 4, struct sync_file_info)
Elliott Hughes8cb52b02013-11-21 13:43:23 -080036#endif