]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
drm: DRM_I915_VBLANK_SWAP ioctl: Take drm_vblank_seq_type_t instead
author=?utf-8?q?Michel_D=C3=A4nzer?= <michel@tungstengraphics.com>
Tue, 24 Oct 2006 13:38:54 +0000 (23:38 +1000)
committerairlied <airlied@linux.ie>
Thu, 7 Dec 2006 04:53:30 +0000 (15:53 +1100)
commit541f29aad766b6c7b911a7d900d952744369bf53
tree5ce5aa51d47c518146b0f13c2a58d643b58d58ba
parenta6b54f3f5050c0cbc0c35dd48064846c6302706b
drm: DRM_I915_VBLANK_SWAP ioctl: Take drm_vblank_seq_type_t instead

of pipe number.

Handle relative as well as absolute target sequence numbers.

Return error if target sequence has already passed, so userspace can deal with
this situation as it sees fit.

On success, return the sequence number of the vertical blank when the buffer
swap is expected to take place.

Also add DRM_IOCTL_I915_VBLANK_SWAP definition for userspace code that may want
to use ioctl() instead of drmCommandWriteRead().

Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/i915_drm.h
drivers/char/drm/i915_irq.c