• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #ifndef UAPI_GOLDFISH_SYNC_H
4 #define UAPI_GOLDFISH_SYNC_H
5 
6 #include <linux/types.h>
7 
8 #define GOLDFISH_SYNC_DEVICE_NAME "goldfish_sync"
9 
10 struct goldfish_sync_ioctl_info {
11 	__u64 host_glsync_handle_in;
12 	__u64 host_syncthread_handle_in;
13 	__s32 fence_fd_out;
14 };
15 
16 /* There is an ioctl associated with goldfish sync driver.
17  * Make it conflict with ioctls that are not likely to be used
18  * in the emulator.
19  *
20  * '@'	00-0F	linux/radeonfb.h		conflict!
21  * '@'	00-0F	drivers/video/aty/aty128fb.c	conflict!
22  */
23 #define GOLDFISH_SYNC_IOC_MAGIC	'@'
24 
25 #define GOLDFISH_SYNC_IOC_QUEUE_WORK	\
26 	_IOWR(GOLDFISH_SYNC_IOC_MAGIC, 0, struct goldfish_sync_ioctl_info)
27 
28 #endif /* UAPI_GOLDFISH_SYNC_H */
29