1
2
3
4
5
6 #ifndef __INTEL_ATOMIC_PLANE_H__
7 #define __INTEL_ATOMIC_PLANE_H__
8
9 #include <linux/types.h>
10
11 struct drm_plane;
12 struct drm_property;
13 struct intel_atomic_state;
14 struct intel_crtc;
15 struct intel_crtc_state;
16 struct intel_plane;
17 struct intel_plane_state;
18
19 extern const struct drm_plane_helper_funcs intel_plane_helper_funcs;
20
21 unsigned int intel_plane_data_rate(const struct intel_crtc_state *crtc_state,
22 const struct intel_plane_state *plane_state);
23 void intel_update_plane(struct intel_plane *plane,
24 const struct intel_crtc_state *crtc_state,
25 const struct intel_plane_state *plane_state);
26 void intel_update_slave(struct intel_plane *plane,
27 const struct intel_crtc_state *crtc_state,
28 const struct intel_plane_state *plane_state);
29 void intel_disable_plane(struct intel_plane *plane,
30 const struct intel_crtc_state *crtc_state);
31 struct intel_plane *intel_plane_alloc(void);
32 void intel_plane_free(struct intel_plane *plane);
33 struct drm_plane_state *intel_plane_duplicate_state(struct drm_plane *plane);
34 void intel_plane_destroy_state(struct drm_plane *plane,
35 struct drm_plane_state *state);
36 void skl_update_planes_on_crtc(struct intel_atomic_state *state,
37 struct intel_crtc *crtc);
38 void i9xx_update_planes_on_crtc(struct intel_atomic_state *state,
39 struct intel_crtc *crtc);
40 int intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_state,
41 struct intel_crtc_state *crtc_state,
42 const struct intel_plane_state *old_plane_state,
43 struct intel_plane_state *intel_state);
44 int intel_plane_atomic_calc_changes(const struct intel_crtc_state *old_crtc_state,
45 struct intel_crtc_state *crtc_state,
46 const struct intel_plane_state *old_plane_state,
47 struct intel_plane_state *plane_state);
48
49 #endif