blob: 71aee1bcb8c3ae9ea95ea18b8c207da355ffc010 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferris49f525c2016-12-12 14:55:36 -08007#ifndef _UAPI_VGEM_DRM_H_
8#define _UAPI_VGEM_DRM_H_
9#include "drm.h"
10#ifdef __cplusplus
Christopher Ferris48fe0ae2019-01-10 15:59:33 -080011extern "C" {
Christopher Ferris49f525c2016-12-12 14:55:36 -080012#endif
13#define DRM_VGEM_FENCE_ATTACH 0x1
14#define DRM_VGEM_FENCE_SIGNAL 0x2
15#define DRM_IOCTL_VGEM_FENCE_ATTACH DRM_IOWR(DRM_COMMAND_BASE + DRM_VGEM_FENCE_ATTACH, struct drm_vgem_fence_attach)
Christopher Ferris49f525c2016-12-12 14:55:36 -080016#define DRM_IOCTL_VGEM_FENCE_SIGNAL DRM_IOW(DRM_COMMAND_BASE + DRM_VGEM_FENCE_SIGNAL, struct drm_vgem_fence_signal)
17struct drm_vgem_fence_attach {
18 __u32 handle;
19 __u32 flags;
Christopher Ferris49f525c2016-12-12 14:55:36 -080020#define VGEM_FENCE_WRITE 0x1
21 __u32 out_fence;
22 __u32 pad;
Elliott Hughes8cb52b02013-11-21 13:43:23 -080023};
Christopher Ferris49f525c2016-12-12 14:55:36 -080024struct drm_vgem_fence_signal {
25 __u32 fence;
26 __u32 flags;
27};
Christopher Ferris49f525c2016-12-12 14:55:36 -080028#ifdef __cplusplus
Christopher Ferris48fe0ae2019-01-10 15:59:33 -080029}
Christopher Ferris49f525c2016-12-12 14:55:36 -080030#endif
31#endif