drm/irq: Add drm_crtc_vblank_count()
authorThierry Reding <treding@nvidia.com>
Tue, 16 Dec 2014 12:08:47 +0000 (13:08 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 17 Dec 2014 13:27:35 +0000 (14:27 +0100)
commit96d3f91eb263d478777bb9bff1b1300e0c08c29e
treeee8d15d98a057273ef1fe2c3b56693bbec6267c3
parent115ebcd4fa90df8cfc80d2302b7afa8d39edb7e2
drm/irq: Add drm_crtc_vblank_count()

This function is the KMS native variant of drm_vblank_count(). 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>
drivers/gpu/drm/drm_irq.c
include/drm/drmP.h