1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2020 Intel Corporation
4  */
5 #ifndef INTEL_SCALER_H
6 #define INTEL_SCALER_H
7 
8 struct intel_atomic_state;
9 struct intel_crtc;
10 struct intel_crtc_state;
11 struct intel_dsb;
12 struct intel_plane;
13 struct intel_plane_state;
14 
15 int skl_update_scaler_crtc(struct intel_crtc_state *crtc_state);
16 
17 int skl_update_scaler_plane(struct intel_crtc_state *crtc_state,
18 			    struct intel_plane_state *plane_state);
19 
20 int intel_atomic_setup_scalers(struct intel_atomic_state *state,
21 			       struct intel_crtc *crtc);
22 
23 void skl_pfit_enable(const struct intel_crtc_state *crtc_state);
24 
25 void skl_program_plane_scaler(struct intel_dsb *dsb,
26 			      struct intel_plane *plane,
27 			      const struct intel_crtc_state *crtc_state,
28 			      const struct intel_plane_state *plane_state);
29 void skl_detach_scalers(struct intel_dsb *dsb,
30 			const struct intel_crtc_state *crtc_state);
31 void skl_scaler_disable(const struct intel_crtc_state *old_crtc_state);
32 
33 void skl_scaler_get_config(struct intel_crtc_state *crtc_state);
34 
35 #endif
36