Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright 2016 Intel Corporation
0003  * All Rights Reserved.
0004  *
0005  * Permission is hereby granted, free of charge, to any person obtaining a
0006  * copy of this software and associated documentation files (the
0007  * "Software"), to deal in the Software without restriction, including
0008  * without limitation the rights to use, copy, modify, merge, publish,
0009  * distribute, sub license, and/or sell copies of the Software, and to
0010  * permit persons to whom the Software is furnished to do so, subject to
0011  * the following conditions:
0012  *
0013  * The above copyright notice and this permission notice (including the
0014  * next paragraph) shall be included in all copies or substantial portions
0015  * of the Software.
0016  *
0017  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
0018  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
0019  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
0020  * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
0021  * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
0022  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
0023  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0024  *
0025  */
0026 
0027 #ifndef _UAPI_VGEM_DRM_H_
0028 #define _UAPI_VGEM_DRM_H_
0029 
0030 #include "drm.h"
0031 
0032 #if defined(__cplusplus)
0033 extern "C" {
0034 #endif
0035 
0036 /* Please note that modifications to all structs defined here are
0037  * subject to backwards-compatibility constraints.
0038  */
0039 #define DRM_VGEM_FENCE_ATTACH   0x1
0040 #define DRM_VGEM_FENCE_SIGNAL   0x2
0041 
0042 #define DRM_IOCTL_VGEM_FENCE_ATTACH DRM_IOWR( DRM_COMMAND_BASE + DRM_VGEM_FENCE_ATTACH, struct drm_vgem_fence_attach)
0043 #define DRM_IOCTL_VGEM_FENCE_SIGNAL DRM_IOW( DRM_COMMAND_BASE + DRM_VGEM_FENCE_SIGNAL, struct drm_vgem_fence_signal)
0044 
0045 struct drm_vgem_fence_attach {
0046     __u32 handle;
0047     __u32 flags;
0048 #define VGEM_FENCE_WRITE    0x1
0049     __u32 out_fence;
0050     __u32 pad;
0051 };
0052 
0053 struct drm_vgem_fence_signal {
0054     __u32 fence;
0055     __u32 flags;
0056 };
0057 
0058 #if defined(__cplusplus)
0059 }
0060 #endif
0061 
0062 #endif /* _UAPI_VGEM_DRM_H_ */