1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef _UAPI_VGEM_DRM_H_ 7 #define _UAPI_VGEM_DRM_H_ 8 #include "drm.h" 9 #if defined(__cplusplus) 10 extern "C" { 11 #endif 12 #define DRM_VGEM_FENCE_ATTACH 0x1 13 #define DRM_VGEM_FENCE_SIGNAL 0x2 14 #define DRM_IOCTL_VGEM_FENCE_ATTACH DRM_IOWR( DRM_COMMAND_BASE + DRM_VGEM_FENCE_ATTACH, struct drm_vgem_fence_attach) 15 #define DRM_IOCTL_VGEM_FENCE_SIGNAL DRM_IOW( DRM_COMMAND_BASE + DRM_VGEM_FENCE_SIGNAL, struct drm_vgem_fence_signal) 16 struct drm_vgem_fence_attach { 17 __u32 handle; 18 __u32 flags; 19 #define VGEM_FENCE_WRITE 0x1 20 __u32 out_fence; 21 __u32 pad; 22 }; 23 struct drm_vgem_fence_signal { 24 __u32 fence; 25 __u32 flags; 26 }; 27 #if defined(__cplusplus) 28 } 29 #endif 30 #endif 31