xref: /linux/drivers/gpu/drm/i915/display/intel_vrr.h (revision 26fbb4c8c7c3ee9a4c3b4de555a8587b5a19154e)
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;
12 struct drm_connector_state;
13 struct intel_atomic_state;
14 struct intel_crtc;
15 struct intel_crtc_state;
16 struct intel_dp;
17 struct intel_encoder;
18 struct intel_crtc;
19 
20 bool intel_vrr_is_capable(struct drm_connector *connector);
21 void intel_vrr_check_modeset(struct intel_atomic_state *state);
22 void intel_vrr_compute_config(struct intel_crtc_state *crtc_state,
23 			      struct drm_connector_state *conn_state);
24 void intel_vrr_enable(struct intel_encoder *encoder,
25 		      const struct intel_crtc_state *crtc_state);
26 void intel_vrr_send_push(const struct intel_crtc_state *crtc_state);
27 void intel_vrr_disable(const struct intel_crtc_state *old_crtc_state);
28 void intel_vrr_get_config(struct intel_crtc *crtc,
29 			  struct intel_crtc_state *crtc_state);
30 int intel_vrr_vmax_vblank_start(const struct intel_crtc_state *crtc_state);
31 int intel_vrr_vmin_vblank_start(const struct intel_crtc_state *crtc_state);
32 
33 #endif /* __INTEL_VRR_H__ */
34