summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2024-04-08 22:06:07 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2024-04-18 13:27:56 +0300
commitd12e36494dc2bf221867ecbfa7059e1e231f6ac2 (patch)
tree9049e59c542fc789cd3fc2cda8ebf15585a1851b /include/drm
parentf7ad2ce5fd89ab5d146da8f486a310746df5dc9e (diff)
downloadlinux-d12e36494dc2bf221867ecbfa7059e1e231f6ac2.tar.xz
drm/vblank: Introduce drm_crtc_vblank_crtc()
Make life easier by providing a function that hands out the correct drm_vblank_crtc for a given a drm_crtc. Also abstract the lower level internals of the vblank code in a similar fashion. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240408190611.24914-1-ville.syrjala@linux.intel.com Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_vblank.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_vblank.h b/include/drm/drm_vblank.h
index 7f3957943dd1..c8f829b4307c 100644
--- a/include/drm/drm_vblank.h
+++ b/include/drm/drm_vblank.h
@@ -225,6 +225,7 @@ struct drm_vblank_crtc {
wait_queue_head_t work_wait_queue;
};
+struct drm_vblank_crtc *drm_crtc_vblank_crtc(struct drm_crtc *crtc);
int drm_vblank_init(struct drm_device *dev, unsigned int num_crtcs);
bool drm_dev_has_vblank(const struct drm_device *dev);
u64 drm_crtc_vblank_count(struct drm_crtc *crtc);