diff options
| author | Thierry Reding <treding@nvidia.com> | 2014-12-15 08:47:18 -0500 |
|---|---|---|
| committer | Thierry Reding <treding@nvidia.com> | 2014-12-17 08:27:34 -0500 |
| commit | 115ebcd4fa90df8cfc80d2302b7afa8d39edb7e2 (patch) | |
| tree | 8d3db017839416de0174ea35ed17a56d8aa08f1c /include/drm | |
| parent | a4d7b30df5d10bca92f8f359fc56fb8db0410f89 (diff) | |
drm/irq: Add drm_crtc_handle_vblank()
This function is the KMS native variant of drm_handle_vblank(). 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 b78601bb7c46..f1f7f15ce0f3 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
| @@ -908,6 +908,7 @@ extern void drm_send_vblank_event(struct drm_device *dev, int crtc, | |||
| 908 | extern void drm_crtc_send_vblank_event(struct drm_crtc *crtc, | 908 | extern void drm_crtc_send_vblank_event(struct drm_crtc *crtc, |
| 909 | struct drm_pending_vblank_event *e); | 909 | struct drm_pending_vblank_event *e); |
| 910 | extern bool drm_handle_vblank(struct drm_device *dev, int crtc); | 910 | extern bool drm_handle_vblank(struct drm_device *dev, int crtc); |
| 911 | extern bool drm_crtc_handle_vblank(struct drm_crtc *crtc); | ||
| 911 | extern int drm_vblank_get(struct drm_device *dev, int crtc); | 912 | extern int drm_vblank_get(struct drm_device *dev, int crtc); |
| 912 | extern void drm_vblank_put(struct drm_device *dev, int crtc); | 913 | extern void drm_vblank_put(struct drm_device *dev, int crtc); |
| 913 | extern int drm_crtc_vblank_get(struct drm_crtc *crtc); | 914 | extern int drm_crtc_vblank_get(struct drm_crtc *crtc); |
