0001
0002
0003
0004
0005
0006 #ifndef __INTEL_VRR_H__
0007 #define __INTEL_VRR_H__
0008
0009 #include <linux/types.h>
0010
0011 struct drm_connector_state;
0012 struct intel_atomic_state;
0013 struct intel_connector;
0014 struct intel_crtc;
0015 struct intel_crtc_state;
0016 struct intel_dp;
0017 struct intel_encoder;
0018
0019 bool intel_vrr_is_capable(struct intel_connector *connector);
0020 void intel_vrr_check_modeset(struct intel_atomic_state *state);
0021 void intel_vrr_compute_config(struct intel_crtc_state *crtc_state,
0022 struct drm_connector_state *conn_state);
0023 void intel_vrr_enable(struct intel_encoder *encoder,
0024 const struct intel_crtc_state *crtc_state);
0025 void intel_vrr_send_push(const struct intel_crtc_state *crtc_state);
0026 bool intel_vrr_is_push_sent(const struct intel_crtc_state *crtc_state);
0027 void intel_vrr_disable(const struct intel_crtc_state *old_crtc_state);
0028 void intel_vrr_get_config(struct intel_crtc *crtc,
0029 struct intel_crtc_state *crtc_state);
0030 int intel_vrr_vmax_vblank_start(const struct intel_crtc_state *crtc_state);
0031 int intel_vrr_vmin_vblank_start(const struct intel_crtc_state *crtc_state);
0032
0033 #endif