• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2021 Intel Corporation
4  */
5 
6 #ifndef __INTEL_DRRS_H__
7 #define __INTEL_DRRS_H__
8 
9 #include <linux/types.h>
10 
11 struct drm_i915_private;
12 struct intel_crtc_state;
13 struct intel_connector;
14 struct intel_dp;
15 
16 void intel_edp_drrs_enable(struct intel_dp *intel_dp,
17 			   const struct intel_crtc_state *crtc_state);
18 void intel_edp_drrs_disable(struct intel_dp *intel_dp,
19 			    const struct intel_crtc_state *crtc_state);
20 void intel_edp_drrs_update(struct intel_dp *intel_dp,
21 			   const struct intel_crtc_state *crtc_state);
22 void intel_edp_drrs_invalidate(struct drm_i915_private *dev_priv,
23 			       unsigned int frontbuffer_bits);
24 void intel_edp_drrs_flush(struct drm_i915_private *dev_priv,
25 			  unsigned int frontbuffer_bits);
26 void intel_dp_drrs_compute_config(struct intel_dp *intel_dp,
27 				  struct intel_crtc_state *pipe_config,
28 				  int output_bpp, bool constant_n);
29 struct drm_display_mode *intel_dp_drrs_init(struct intel_connector *connector,
30 					    struct drm_display_mode *fixed_mode);
31 
32 #endif /* __INTEL_DRRS_H__ */
33