Loading...
Note: File does not exist in v3.1.
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#include <linux/types.h>
10
11struct drm_plane;
12struct drm_property;
13struct intel_atomic_state;
14struct intel_crtc;
15struct intel_crtc_state;
16struct intel_plane;
17struct intel_plane_state;
18
19extern const struct drm_plane_helper_funcs intel_plane_helper_funcs;
20
21unsigned int intel_plane_pixel_rate(const struct intel_crtc_state *crtc_state,
22 const struct intel_plane_state *plane_state);
23
24unsigned int intel_plane_data_rate(const struct intel_crtc_state *crtc_state,
25 const struct intel_plane_state *plane_state);
26void intel_plane_copy_uapi_to_hw_state(struct intel_plane_state *plane_state,
27 const struct intel_plane_state *from_plane_state);
28void intel_update_plane(struct intel_plane *plane,
29 const struct intel_crtc_state *crtc_state,
30 const struct intel_plane_state *plane_state);
31void intel_disable_plane(struct intel_plane *plane,
32 const struct intel_crtc_state *crtc_state);
33struct intel_plane *intel_plane_alloc(void);
34void intel_plane_free(struct intel_plane *plane);
35struct drm_plane_state *intel_plane_duplicate_state(struct drm_plane *plane);
36void intel_plane_destroy_state(struct drm_plane *plane,
37 struct drm_plane_state *state);
38void skl_update_planes_on_crtc(struct intel_atomic_state *state,
39 struct intel_crtc *crtc);
40void i9xx_update_planes_on_crtc(struct intel_atomic_state *state,
41 struct intel_crtc *crtc);
42int intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_state,
43 struct intel_crtc_state *crtc_state,
44 const struct intel_plane_state *old_plane_state,
45 struct intel_plane_state *intel_state);
46int intel_plane_atomic_check(struct intel_atomic_state *state,
47 struct intel_plane *plane);
48int intel_plane_atomic_calc_changes(const struct intel_crtc_state *old_crtc_state,
49 struct intel_crtc_state *crtc_state,
50 const struct intel_plane_state *old_plane_state,
51 struct intel_plane_state *plane_state);
52int intel_plane_calc_min_cdclk(struct intel_atomic_state *state,
53 struct intel_plane *plane,
54 bool *need_cdclk_calc);
55void intel_plane_set_invisible(struct intel_crtc_state *crtc_state,
56 struct intel_plane_state *plane_state);
57
58#endif /* __INTEL_ATOMIC_PLANE_H__ */