summaryrefslogtreecommitdiff
path: root/xf86drm.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@gmail.com>2012-07-14 09:52:17 +0000
committerDave Airlie <airlied@redhat.com>2012-07-16 02:39:56 +0100
commitcc0a14575d9fd0aafe73cb4aa445eaf024436114 (patch)
tree991a376a4d8dc4b8c40a546e42b9c5379520d42d /xf86drm.h
parent41dfb20cdc369bb0da880c371a664f25fe665adb (diff)
downloadlibdrm-cc0a14575d9fd0aafe73cb4aa445eaf024436114.tar.gz
libdrm-cc0a14575d9fd0aafe73cb4aa445eaf024436114.tar.bz2
libdrm-cc0a14575d9fd0aafe73cb4aa445eaf024436114.zip
libdrm: add prime fd->handle and handle->fd interfaces
These are just basic ioctl wrappers around the prime ioctls, along with the capability reporting. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'xf86drm.h')
-rw-r--r--xf86drm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xf86drm.h b/xf86drm.h
index 76eb94e2..5ecb2846 100644
--- a/xf86drm.h
+++ b/xf86drm.h
@@ -727,6 +727,9 @@ extern int drmHandleEvent(int fd, drmEventContextPtr evctx);
extern char *drmGetDeviceNameFromFd(int fd);
+extern int drmPrimeHandleToFD(int fd, uint32_t handle, uint32_t flags, int *prime_fd);
+extern int drmPrimeFDToHandle(int fd, int prime_fd, uint32_t *handle);
+
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif