Merge tag 'upstream-5.2-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / drivers / gpu / drm / i915 / intel_atomic_plane.h
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2019 Intel Corporation
4  */
5
6 #ifndef __INTEL_ATOMIC_PLANE_H__
7 #define __INTEL_ATOMIC_PLANE_H__
8
9 struct drm_plane;
10 struct intel_atomic_state;
11 struct intel_crtc;
12 struct intel_crtc_state;
13 struct intel_plane;
14 struct intel_plane_state;
15
16 extern const struct drm_plane_helper_funcs intel_plane_helper_funcs;
17
18 void intel_update_plane(struct intel_plane *plane,
19                         const struct intel_crtc_state *crtc_state,
20                         const struct intel_plane_state *plane_state);
21 void intel_update_slave(struct intel_plane *plane,
22                         const struct intel_crtc_state *crtc_state,
23                         const struct intel_plane_state *plane_state);
24 void intel_disable_plane(struct intel_plane *plane,
25                          const struct intel_crtc_state *crtc_state);
26 struct intel_plane *intel_plane_alloc(void);
27 void intel_plane_free(struct intel_plane *plane);
28 struct drm_plane_state *intel_plane_duplicate_state(struct drm_plane *plane);
29 void intel_plane_destroy_state(struct drm_plane *plane,
30                                struct drm_plane_state *state);
31 void skl_update_planes_on_crtc(struct intel_atomic_state *state,
32                                struct intel_crtc *crtc);
33 void i9xx_update_planes_on_crtc(struct intel_atomic_state *state,
34                                 struct intel_crtc *crtc);
35 int intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_state,
36                                         struct intel_crtc_state *crtc_state,
37                                         const struct intel_plane_state *old_plane_state,
38                                         struct intel_plane_state *intel_state);
39
40 #endif /* __INTEL_ATOMIC_PLANE_H__ */