aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie2012-07-14 04:52:17 -0500
committerDave Airlie2012-07-15 20:39:56 -0500
commitcc0a14575d9fd0aafe73cb4aa445eaf024436114 (patch)
tree991a376a4d8dc4b8c40a546e42b9c5379520d42d /xf86drm.h
parent41dfb20cdc369bb0da880c371a664f25fe665adb (diff)
downloadexternal-libdrm-cc0a14575d9fd0aafe73cb4aa445eaf024436114.tar.gz
external-libdrm-cc0a14575d9fd0aafe73cb4aa445eaf024436114.tar.xz
external-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);
727 727
728extern char *drmGetDeviceNameFromFd(int fd); 728extern char *drmGetDeviceNameFromFd(int fd);
729 729
730extern int drmPrimeHandleToFD(int fd, uint32_t handle, uint32_t flags, int *prime_fd);
731extern int drmPrimeFDToHandle(int fd, int prime_fd, uint32_t *handle);
732
730#if defined(__cplusplus) || defined(c_plusplus) 733#if defined(__cplusplus) || defined(c_plusplus)
731} 734}
732#endif 735#endif