History

drm/syncobj: add transition iotcls between binary and timeline v2

we need to import/export timeline point. v2: unify to one transfer ioctl

Chunming Zhou committed 7 years ago

Commit ea569911 parent bc9c80f4 files · +88 −0Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/drm/drm.h+10−0
@@ -735,6 +735,15 @@ struct drm_syncobj_handle { · 734 unmodified lines
735 __u32 pad;735 __u32 pad;
736};736};
737 737
738struct drm_syncobj_transfer {
739 __u32 src_handle;
740 __u32 dst_handle;
741 __u64 src_point;
742 __u64 dst_point;
743 __u32 flags;
744 __u32 pad;
745};
746
738#define DRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALL (1 << 0)747#define DRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALL (1 << 0)
739#define DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT (1 << 1)748#define DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT (1 << 1)
740#define DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE (1 << 2) /* wait for time point to become available */749#define DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE (1 << 2) /* wait for time point to become available */
@@ -933,6 +942,7 @@ extern "C" { · 192 unmodified lines
933 942
934#define DRM_IOCTL_SYNCOBJ_TIMELINE_WAIT DRM_IOWR(0xCA, struct drm_syncobj_timeline_wait)943#define DRM_IOCTL_SYNCOBJ_TIMELINE_WAIT DRM_IOWR(0xCA, struct drm_syncobj_timeline_wait)
935#define DRM_IOCTL_SYNCOBJ_QUERY DRM_IOWR(0xCB, struct drm_syncobj_timeline_array)944#define DRM_IOCTL_SYNCOBJ_QUERY DRM_IOWR(0xCB, struct drm_syncobj_timeline_array)
945#define DRM_IOCTL_SYNCOBJ_TRANSFER DRM_IOWR(0xCC, struct drm_syncobj_transfer)
936 946
937/**947/**
938 * Device specific ioctls should only be in their respective headers948 * Device specific ioctls should only be in their respective headers