summaryrefslogtreecommitdiff
path: root/uapi/goldfish_sync.h
blob: 01d762f77308b437908bd549fa00194d84d5ebd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* SPDX-License-Identifier: GPL-2.0 */

#ifndef UAPI_GOLDFISH_SYNC_H
#define UAPI_GOLDFISH_SYNC_H

#include <linux/types.h>

#define GOLDFISH_SYNC_DEVICE_NAME "goldfish_sync"

struct goldfish_sync_ioctl_info {
	__u64 host_glsync_handle_in;
	__u64 host_syncthread_handle_in;
	__s32 fence_fd_out;
};

/* There is an ioctl associated with goldfish sync driver.
 * Make it conflict with ioctls that are not likely to be used
 * in the emulator.
 *
 * '@'	00-0F	linux/radeonfb.h		conflict!
 * '@'	00-0F	drivers/video/aty/aty128fb.c	conflict!
 */
#define GOLDFISH_SYNC_IOC_MAGIC	'@'

#define GOLDFISH_SYNC_IOC_QUEUE_WORK	\
	_IOWR(GOLDFISH_SYNC_IOC_MAGIC, 0, struct goldfish_sync_ioctl_info)

#endif /* UAPI_GOLDFISH_SYNC_H */