xref: /linux/drivers/gpu/drm/i915/display/intel_vdsc.h (revision f86fd32d)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2019 Intel Corporation
4  */
5 
6 #ifndef __INTEL_VDSC_H__
7 #define __INTEL_VDSC_H__
8 
9 #include <linux/types.h>
10 
11 struct intel_encoder;
12 struct intel_crtc_state;
13 
14 bool intel_dsc_source_support(struct intel_encoder *encoder,
15 			      const struct intel_crtc_state *crtc_state);
16 void intel_dsc_enable(struct intel_encoder *encoder,
17 		      const struct intel_crtc_state *crtc_state);
18 void intel_dsc_disable(const struct intel_crtc_state *crtc_state);
19 int intel_dsc_compute_params(struct intel_encoder *encoder,
20 			     struct intel_crtc_state *pipe_config);
21 void intel_dsc_get_config(struct intel_encoder *encoder,
22 			  struct intel_crtc_state *crtc_state);
23 enum intel_display_power_domain
24 intel_dsc_power_domain(const struct intel_crtc_state *crtc_state);
25 
26 #endif /* __INTEL_VDSC_H__ */
27