diff options
author | Thierry Reding <treding@nvidia.com> | 2014-12-15 14:47:18 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-12-17 14:27:33 +0100 |
commit | a4d7b30df5d10bca92f8f359fc56fb8db0410f89 (patch) | |
tree | d3f2ad6c26670ddb586b76f0654a8b49ff6d2a1d /include/drm/drmP.h | |
parent | 4e0cd68115620bc3236ff4e58e4c073948629b41 (diff) | |
download | blackbird-obmc-linux-a4d7b30df5d10bca92f8f359fc56fb8db0410f89.tar.gz blackbird-obmc-linux-a4d7b30df5d10bca92f8f359fc56fb8db0410f89.zip |
drm/irq: Add drm_crtc_send_vblank_event()
This function is the KMS native variant of drm_send_vblank_event(). It
takes a struct drm_crtc * instead of a struct drm_device * and an index
of the CRTC.
Eventually the goal is to access vblank data through the CRTC only so
that the per-CRTC data can be moved to struct drm_crtc.
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r-- | include/drm/drmP.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 8ba35c622e22..b78601bb7c46 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -905,6 +905,8 @@ extern u32 drm_vblank_count_and_time(struct drm_device *dev, int crtc, struct timeval *vblanktime); extern void drm_send_vblank_event(struct drm_device *dev, int crtc, struct drm_pending_vblank_event *e); +extern void drm_crtc_send_vblank_event(struct drm_crtc *crtc, + struct drm_pending_vblank_event *e); extern bool drm_handle_vblank(struct drm_device *dev, int crtc); extern int drm_vblank_get(struct drm_device *dev, int crtc); extern void drm_vblank_put(struct drm_device *dev, int crtc); |