122851890Sopenharmony_ci/*
222851890Sopenharmony_ci * This header was generated from the Linux kernel headers by update_headers.py,
322851890Sopenharmony_ci * to provide necessary information from kernel to userspace, such as constants,
422851890Sopenharmony_ci * structures, and macros, and thus, contains no copyrightable information.
522851890Sopenharmony_ci */
622851890Sopenharmony_ci#ifndef _UAPI_VGEM_DRM_H_
722851890Sopenharmony_ci#define _UAPI_VGEM_DRM_H_
822851890Sopenharmony_ci#include "drm.h"
922851890Sopenharmony_ci#if defined(__cplusplus)
1022851890Sopenharmony_ciextern "C" {
1122851890Sopenharmony_ci#endif
1222851890Sopenharmony_ci#define DRM_VGEM_FENCE_ATTACH	0x1
1322851890Sopenharmony_ci#define DRM_VGEM_FENCE_SIGNAL	0x2
1422851890Sopenharmony_ci#define DRM_IOCTL_VGEM_FENCE_ATTACH	DRM_IOWR( DRM_COMMAND_BASE + DRM_VGEM_FENCE_ATTACH, struct drm_vgem_fence_attach)
1522851890Sopenharmony_ci#define DRM_IOCTL_VGEM_FENCE_SIGNAL	DRM_IOW( DRM_COMMAND_BASE + DRM_VGEM_FENCE_SIGNAL, struct drm_vgem_fence_signal)
1622851890Sopenharmony_cistruct drm_vgem_fence_attach {
1722851890Sopenharmony_ci	__u32 handle;
1822851890Sopenharmony_ci	__u32 flags;
1922851890Sopenharmony_ci#define VGEM_FENCE_WRITE	0x1
2022851890Sopenharmony_ci	__u32 out_fence;
2122851890Sopenharmony_ci	__u32 pad;
2222851890Sopenharmony_ci};
2322851890Sopenharmony_cistruct drm_vgem_fence_signal {
2422851890Sopenharmony_ci	__u32 fence;
2522851890Sopenharmony_ci	__u32 flags;
2622851890Sopenharmony_ci};
2722851890Sopenharmony_ci#if defined(__cplusplus)
2822851890Sopenharmony_ci}
2922851890Sopenharmony_ci#endif
3022851890Sopenharmony_ci#endif
31