diff options
author | Dave Airlie <airlied@gmail.com> | 2012-07-14 09:52:17 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-07-16 02:39:56 +0100 |
commit | cc0a14575d9fd0aafe73cb4aa445eaf024436114 (patch) | |
tree | 991a376a4d8dc4b8c40a546e42b9c5379520d42d /xf86drm.h | |
parent | 41dfb20cdc369bb0da880c371a664f25fe665adb (diff) | |
download | external_libdrm-cc0a14575d9fd0aafe73cb4aa445eaf024436114.tar.gz external_libdrm-cc0a14575d9fd0aafe73cb4aa445eaf024436114.tar.bz2 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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |