xref: /linux/drivers/gpu/drm/i915/display/skl_scaler.h (revision 2c1ed907520c50326b8f604907a8478b27881a2e)
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_plane;
12 struct intel_plane_state;
13 
14 int skl_update_scaler_crtc(struct intel_crtc_state *crtc_state);
15 
16 int skl_update_scaler_plane(struct intel_crtc_state *crtc_state,
17 			    struct intel_plane_state *plane_state);
18 
19 int intel_atomic_setup_scalers(struct intel_atomic_state *state,
20 			       struct intel_crtc *crtc);
21 
22 void skl_pfit_enable(const struct intel_crtc_state *crtc_state);
23 
24 void skl_program_plane_scaler(struct intel_plane *plane,
25 			      const struct intel_crtc_state *crtc_state,
26 			      const struct intel_plane_state *plane_state);
27 void skl_detach_scalers(const struct intel_crtc_state *crtc_state);
28 void skl_scaler_disable(const struct intel_crtc_state *old_crtc_state);
29 
30 void skl_scaler_get_config(struct intel_crtc_state *crtc_state);
31 
32 #endif
33