diff options
author | Rob Clark <rob@ti.com> | 2012-04-11 09:44:35 -0500 |
---|---|---|
committer | Rob Clark <rob@ti.com> | 2012-04-11 09:44:35 -0500 |
commit | 9b893e4a429d58bf0954ffc09b18890fcfe92941 (patch) | |
tree | 302dde095310eddf6cb1b87ed5bfc69f0ddf7bef | |
parent | 67fd052c013a493cd644d2e3495fab8b5823b330 (diff) |
libdrm: update drm headers from kernel for prime/dmabuf
Sync drm.h with from kernel headers for the new PRIME_HANDLE_TO_FD
and PRIME_FD_TO_HANDLE ioctls from Dave Airlie's "drm: base prime/
dma-buf support (v5)" kernel patch.
Signed-off-by: Rob Clark <rob@ti.com>
-rw-r--r-- | include/drm/drm.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/drm/drm.h b/include/drm/drm.h index 8adb9d59..753d2fc8 100644 --- a/include/drm/drm.h +++ b/include/drm/drm.h @@ -618,6 +618,17 @@ struct drm_get_cap { __u64 value; }; +#define DRM_CLOEXEC O_CLOEXEC +struct drm_prime_handle { + __u32 handle; + + /** Flags.. only applicable for handle->fd */ + __u32 flags; + + /** Returned dmabuf file descriptor */ + __s32 fd; +}; + #include "drm_mode.h" #define DRM_IOCTL_BASE 'd' @@ -686,6 +697,9 @@ struct drm_get_cap { #define DRM_IOCTL_SG_ALLOC DRM_IOWR(0x38, struct drm_scatter_gather) #define DRM_IOCTL_SG_FREE DRM_IOW( 0x39, struct drm_scatter_gather) +#define DRM_IOCTL_PRIME_HANDLE_TO_FD DRM_IOWR(0x2d, struct drm_prime_handle) +#define DRM_IOCTL_PRIME_FD_TO_HANDLE DRM_IOWR(0x2e, struct drm_prime_handle) + #define DRM_IOCTL_WAIT_VBLANK DRM_IOWR(0x3a, union drm_wait_vblank) #define DRM_IOCTL_UPDATE_DRAW DRM_IOW(0x3f, struct drm_update_draw) |