aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie2017-06-16 20:01:01 -0500
committerDave Airlie2017-06-28 14:32:34 -0500
commitfc4922793f1871577bb44b1d69ec3801acb23eb6 (patch)
tree065a467df0d8341e14a51c898c2708d8b0546101 /xf86drm.h
parent3832374dafb8d0b1b69d8856be28352514afab5d (diff)
downloadexternal-libdrm-fc4922793f1871577bb44b1d69ec3801acb23eb6.tar.gz
external-libdrm-fc4922793f1871577bb44b1d69ec3801acb23eb6.tar.xz
external-libdrm-fc4922793f1871577bb44b1d69ec3801acb23eb6.zip
libdrm: add drm syncobj create/destroy/import/export
These ioctls are now in drm next so add the first set of libdrm APIs. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'xf86drm.h')
-rw-r--r--xf86drm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/xf86drm.h b/xf86drm.h
index 74f54f17..2855a3ee 100644
--- a/xf86drm.h
+++ b/xf86drm.h
@@ -853,6 +853,14 @@ extern int drmGetDevices2(uint32_t flags, drmDevicePtr devices[], int max_device
853 853
854extern int drmDevicesEqual(drmDevicePtr a, drmDevicePtr b); 854extern int drmDevicesEqual(drmDevicePtr a, drmDevicePtr b);
855 855
856extern int drmSyncobjCreate(int fd, uint32_t flags, uint32_t *handle);
857extern int drmSyncobjDestroy(int fd, uint32_t handle);
858extern int drmSyncobjHandleToFD(int fd, uint32_t handle, int *obj_fd);
859extern int drmSyncobjFDToHandle(int fd, int obj_fd, uint32_t *handle);
860
861extern int drmSyncobjImportSyncFile(int fd, uint32_t handle, int sync_file_fd);
862extern int drmSyncobjExportSyncFile(int fd, uint32_t handle, int *sync_file_fd);
863
856#if defined(__cplusplus) 864#if defined(__cplusplus)
857} 865}
858#endif 866#endif