mirror of
https://github.com/torvalds/linux.git
synced 2026-05-03 05:52:38 -04:00
Move intel_crtc_update_active_timings() into intel_vblank.c where it more properly belongs. Also do the s/dev_priv/i915/ modernization rename while at it. Reviewed-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230310235828.17439-3-ville.syrjala@linux.intel.com
26 lines
790 B
C
26 lines
790 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2022-2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_VBLANK_H__
|
|
#define __INTEL_VBLANK_H__
|
|
|
|
#include <linux/ktime.h>
|
|
#include <linux/types.h>
|
|
|
|
struct drm_crtc;
|
|
struct intel_crtc;
|
|
struct intel_crtc_state;
|
|
|
|
u32 i915_get_vblank_counter(struct drm_crtc *crtc);
|
|
u32 g4x_get_vblank_counter(struct drm_crtc *crtc);
|
|
bool intel_crtc_get_vblank_timestamp(struct drm_crtc *crtc, int *max_error,
|
|
ktime_t *vblank_time, bool in_vblank_irq);
|
|
int intel_get_crtc_scanline(struct intel_crtc *crtc);
|
|
void intel_wait_for_pipe_scanline_stopped(struct intel_crtc *crtc);
|
|
void intel_wait_for_pipe_scanline_moving(struct intel_crtc *crtc);
|
|
void intel_crtc_update_active_timings(const struct intel_crtc_state *crtc_state);
|
|
|
|
#endif /* __INTEL_VBLANK_H__ */
|