1 /* 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 */ 7 #ifndef _UAPI_VGEM_DRM_H_ 8 #define _UAPI_VGEM_DRM_H_ 9 #include "drm.h" 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 #define DRM_VGEM_FENCE_ATTACH 0x1 14 #define DRM_VGEM_FENCE_SIGNAL 0x2 15 #define DRM_IOCTL_VGEM_FENCE_ATTACH DRM_IOWR(DRM_COMMAND_BASE + DRM_VGEM_FENCE_ATTACH, struct drm_vgem_fence_attach) 16 #define DRM_IOCTL_VGEM_FENCE_SIGNAL DRM_IOW(DRM_COMMAND_BASE + DRM_VGEM_FENCE_SIGNAL, struct drm_vgem_fence_signal) 17 struct drm_vgem_fence_attach { 18 __u32 handle; 19 __u32 flags; 20 #define VGEM_FENCE_WRITE 0x1 21 __u32 out_fence; 22 __u32 pad; 23 }; 24 struct drm_vgem_fence_signal { 25 __u32 fence; 26 __u32 flags; 27 }; 28 #ifdef __cplusplus 29 } 30 #endif 31 #endif 32