diff options
author | Thierry Reding <treding@nvidia.com> | 2014-12-16 12:08:47 (GMT) |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-12-17 13:27:35 (GMT) |
commit | 96d3f91eb263d478777bb9bff1b1300e0c08c29e (patch) | |
tree | ee8d15d98a057273ef1fe2c3b56693bbec6267c3 /include/drm | |
parent | 115ebcd4fa90df8cfc80d2302b7afa8d39edb7e2 (diff) | |
download | linux-96d3f91eb263d478777bb9bff1b1300e0c08c29e.tar.xz |
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>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drmP.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index f1f7f15..e1b2e8b 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -901,6 +901,7 @@ extern int drm_vblank_init(struct drm_device *dev, int num_crtcs); extern int drm_wait_vblank(struct drm_device *dev, void *data, struct drm_file *filp); extern u32 drm_vblank_count(struct drm_device *dev, int crtc); +extern u32 drm_crtc_vblank_count(struct drm_crtc *crtc); 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, |