/*1* Copyright 2016 Intel Corporation2* All Rights Reserved.3*4* Permission is hereby granted, free of charge, to any person obtaining a5* copy of this software and associated documentation files (the6* "Software"), to deal in the Software without restriction, including7* without limitation the rights to use, copy, modify, merge, publish,8* distribute, sub license, and/or sell copies of the Software, and to9* permit persons to whom the Software is furnished to do so, subject to10* the following conditions:11*12* The above copyright notice and this permission notice (including the13* next paragraph) shall be included in all copies or substantial portions14* of the Software.15*16* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS17* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF18* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.19* IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR20* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,21* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE22* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.23*24*/2526#ifndef _UAPI_VGEM_DRM_H_27#define _UAPI_VGEM_DRM_H_2829#include "drm.h"3031#if defined(__cplusplus)32extern "C" {33#endif3435/* Please note that modifications to all structs defined here are36* subject to backwards-compatibility constraints.37*/38#define DRM_VGEM_FENCE_ATTACH 0x139#define DRM_VGEM_FENCE_SIGNAL 0x24041#define DRM_IOCTL_VGEM_FENCE_ATTACH DRM_IOWR( DRM_COMMAND_BASE + DRM_VGEM_FENCE_ATTACH, struct drm_vgem_fence_attach)42#define DRM_IOCTL_VGEM_FENCE_SIGNAL DRM_IOW( DRM_COMMAND_BASE + DRM_VGEM_FENCE_SIGNAL, struct drm_vgem_fence_signal)4344struct drm_vgem_fence_attach {45__u32 handle;46__u32 flags;47#define VGEM_FENCE_WRITE 0x148__u32 out_fence;49__u32 pad;50};5152struct drm_vgem_fence_signal {53__u32 fence;54__u32 flags;55};5657#if defined(__cplusplus)58}59#endif6061#endif /* _UAPI_VGEM_DRM_H_ */626364