18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright 2016 Intel Corporation 38c2ecf20Sopenharmony_ci * All Rights Reserved. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a 68c2ecf20Sopenharmony_ci * copy of this software and associated documentation files (the 78c2ecf20Sopenharmony_ci * "Software"), to deal in the Software without restriction, including 88c2ecf20Sopenharmony_ci * without limitation the rights to use, copy, modify, merge, publish, 98c2ecf20Sopenharmony_ci * distribute, sub license, and/or sell copies of the Software, and to 108c2ecf20Sopenharmony_ci * permit persons to whom the Software is furnished to do so, subject to 118c2ecf20Sopenharmony_ci * the following conditions: 128c2ecf20Sopenharmony_ci * 138c2ecf20Sopenharmony_ci * The above copyright notice and this permission notice (including the 148c2ecf20Sopenharmony_ci * next paragraph) shall be included in all copies or substantial portions 158c2ecf20Sopenharmony_ci * of the Software. 168c2ecf20Sopenharmony_ci * 178c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 188c2ecf20Sopenharmony_ci * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 198c2ecf20Sopenharmony_ci * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 208c2ecf20Sopenharmony_ci * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR 218c2ecf20Sopenharmony_ci * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 228c2ecf20Sopenharmony_ci * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 238c2ecf20Sopenharmony_ci * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 248c2ecf20Sopenharmony_ci * 258c2ecf20Sopenharmony_ci */ 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci#ifndef _UAPI_VGEM_DRM_H_ 288c2ecf20Sopenharmony_ci#define _UAPI_VGEM_DRM_H_ 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci#include "drm.h" 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci#if defined(__cplusplus) 338c2ecf20Sopenharmony_ciextern "C" { 348c2ecf20Sopenharmony_ci#endif 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ci/* Please note that modifications to all structs defined here are 378c2ecf20Sopenharmony_ci * subject to backwards-compatibility constraints. 388c2ecf20Sopenharmony_ci */ 398c2ecf20Sopenharmony_ci#define DRM_VGEM_FENCE_ATTACH 0x1 408c2ecf20Sopenharmony_ci#define DRM_VGEM_FENCE_SIGNAL 0x2 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ci#define DRM_IOCTL_VGEM_FENCE_ATTACH DRM_IOWR( DRM_COMMAND_BASE + DRM_VGEM_FENCE_ATTACH, struct drm_vgem_fence_attach) 438c2ecf20Sopenharmony_ci#define DRM_IOCTL_VGEM_FENCE_SIGNAL DRM_IOW( DRM_COMMAND_BASE + DRM_VGEM_FENCE_SIGNAL, struct drm_vgem_fence_signal) 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_cistruct drm_vgem_fence_attach { 468c2ecf20Sopenharmony_ci __u32 handle; 478c2ecf20Sopenharmony_ci __u32 flags; 488c2ecf20Sopenharmony_ci#define VGEM_FENCE_WRITE 0x1 498c2ecf20Sopenharmony_ci __u32 out_fence; 508c2ecf20Sopenharmony_ci __u32 pad; 518c2ecf20Sopenharmony_ci}; 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_cistruct drm_vgem_fence_signal { 548c2ecf20Sopenharmony_ci __u32 fence; 558c2ecf20Sopenharmony_ci __u32 flags; 568c2ecf20Sopenharmony_ci}; 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci#if defined(__cplusplus) 598c2ecf20Sopenharmony_ci} 608c2ecf20Sopenharmony_ci#endif 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci#endif /* _UAPI_VGEM_DRM_H_ */ 63