xref: /linux/drivers/gpu/drm/i915/display/intel_drrs.h (revision 9f2c9170934eace462499ba0bfe042cc72900173)
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 enum drrs_type;
12 struct drm_i915_private;
13 struct intel_atomic_state;
14 struct intel_crtc;
15 struct intel_crtc_state;
16 struct intel_connector;
17 
18 const char *intel_drrs_type_str(enum drrs_type drrs_type);
19 bool intel_drrs_is_active(struct intel_crtc *crtc);
20 void intel_drrs_activate(const struct intel_crtc_state *crtc_state);
21 void intel_drrs_deactivate(const struct intel_crtc_state *crtc_state);
22 void intel_drrs_invalidate(struct drm_i915_private *dev_priv,
23 			   unsigned int frontbuffer_bits);
24 void intel_drrs_flush(struct drm_i915_private *dev_priv,
25 		      unsigned int frontbuffer_bits);
26 void intel_drrs_crtc_init(struct intel_crtc *crtc);
27 void intel_drrs_crtc_debugfs_add(struct intel_crtc *crtc);
28 void intel_drrs_connector_debugfs_add(struct intel_connector *connector);
29 
30 #endif /* __INTEL_DRRS_H__ */
31