0001
0002
0003
0004
0005
0006 #ifndef _INTEL_CRTC_H_
0007 #define _INTEL_CRTC_H_
0008
0009 #include <linux/types.h>
0010
0011 enum i9xx_plane_id;
0012 enum pipe;
0013 struct drm_display_mode;
0014 struct drm_i915_private;
0015 struct intel_atomic_state;
0016 struct intel_crtc;
0017 struct intel_crtc_state;
0018
0019 int intel_usecs_to_scanlines(const struct drm_display_mode *adjusted_mode,
0020 int usecs);
0021 u32 intel_crtc_max_vblank_count(const struct intel_crtc_state *crtc_state);
0022 int intel_crtc_init(struct drm_i915_private *dev_priv, enum pipe pipe);
0023 struct intel_crtc_state *intel_crtc_state_alloc(struct intel_crtc *crtc);
0024 void intel_crtc_state_reset(struct intel_crtc_state *crtc_state,
0025 struct intel_crtc *crtc);
0026 u32 intel_crtc_get_vblank_counter(struct intel_crtc *crtc);
0027 void intel_crtc_vblank_on(const struct intel_crtc_state *crtc_state);
0028 void intel_crtc_vblank_off(const struct intel_crtc_state *crtc_state);
0029 void intel_pipe_update_start(struct intel_crtc_state *new_crtc_state);
0030 void intel_pipe_update_end(struct intel_crtc_state *new_crtc_state);
0031 void intel_wait_for_vblank_workers(struct intel_atomic_state *state);
0032 struct intel_crtc *intel_first_crtc(struct drm_i915_private *i915);
0033 struct intel_crtc *intel_crtc_for_pipe(struct drm_i915_private *i915,
0034 enum pipe pipe);
0035 void intel_wait_for_vblank_if_active(struct drm_i915_private *i915,
0036 enum pipe pipe);
0037 void intel_crtc_wait_for_next_vblank(struct intel_crtc *crtc);
0038
0039 #endif