xref: /linux/drivers/gpu/drm/i915/display/intel_vrr.h (revision 34dc1baba215b826e454b8d19e4f24adbeb7d00d)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2019 Intel Corporation
4  */
5 
6 #ifndef __INTEL_VRR_H__
7 #define __INTEL_VRR_H__
8 
9 #include <linux/types.h>
10 
11 struct drm_connector_state;
12 struct intel_atomic_state;
13 struct intel_connector;
14 struct intel_crtc_state;
15 
16 bool intel_vrr_is_capable(struct intel_connector *connector);
17 void intel_vrr_check_modeset(struct intel_atomic_state *state);
18 void intel_vrr_compute_config(struct intel_crtc_state *crtc_state,
19 			      struct drm_connector_state *conn_state);
20 void intel_vrr_set_transcoder_timings(const struct intel_crtc_state *crtc_state);
21 void intel_vrr_enable(const struct intel_crtc_state *crtc_state);
22 void intel_vrr_send_push(const struct intel_crtc_state *crtc_state);
23 bool intel_vrr_is_push_sent(const struct intel_crtc_state *crtc_state);
24 void intel_vrr_disable(const struct intel_crtc_state *old_crtc_state);
25 void intel_vrr_get_config(struct intel_crtc_state *crtc_state);
26 int intel_vrr_vmax_vblank_start(const struct intel_crtc_state *crtc_state);
27 int intel_vrr_vmin_vblank_start(const struct intel_crtc_state *crtc_state);
28 
29 #endif /* __INTEL_VRR_H__ */
30