xref: /linux/drivers/gpu/drm/i915/display/skl_scaler.h (revision a4eb44a6435d6d8f9e642407a4a06f65eb90ca04)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2020 Intel Corporation
4  */
5 #ifndef INTEL_SCALER_H
6 #define INTEL_SCALER_H
7 
8 #include <linux/types.h>
9 
10 enum drm_scaling_filter;
11 struct drm_i915_private;
12 struct intel_crtc_state;
13 struct intel_plane_state;
14 struct intel_plane;
15 enum pipe;
16 
17 int skl_update_scaler_crtc(struct intel_crtc_state *crtc_state);
18 
19 int skl_update_scaler_plane(struct intel_crtc_state *crtc_state,
20 			    struct intel_plane_state *plane_state);
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 #endif
30