1 | /* SPDX-License-Identifier: MIT */ |
---|---|
2 | /* |
3 | * Copyright © 2023 Intel Corporation |
4 | */ |
5 | |
6 | #ifndef __INTEL_WM_H__ |
7 | #define __INTEL_WM_H__ |
8 | |
9 | #include <linux/types.h> |
10 | |
11 | struct intel_atomic_state; |
12 | struct intel_crtc; |
13 | struct intel_crtc_state; |
14 | struct intel_display; |
15 | struct intel_plane_state; |
16 | |
17 | void intel_update_watermarks(struct intel_display *display); |
18 | int intel_wm_compute(struct intel_atomic_state *state, |
19 | struct intel_crtc *crtc); |
20 | bool intel_initial_watermarks(struct intel_atomic_state *state, |
21 | struct intel_crtc *crtc); |
22 | void intel_atomic_update_watermarks(struct intel_atomic_state *state, |
23 | struct intel_crtc *crtc); |
24 | void intel_optimize_watermarks(struct intel_atomic_state *state, |
25 | struct intel_crtc *crtc); |
26 | int intel_compute_global_watermarks(struct intel_atomic_state *state); |
27 | void intel_wm_get_hw_state(struct intel_display *display); |
28 | void intel_wm_sanitize(struct intel_display *display); |
29 | bool intel_wm_plane_visible(const struct intel_crtc_state *crtc_state, |
30 | const struct intel_plane_state *plane_state); |
31 | void intel_print_wm_latency(struct intel_display *display, |
32 | const char *name, const u16 wm[]); |
33 | void intel_wm_init(struct intel_display *display); |
34 | void intel_wm_debugfs_register(struct intel_display *display); |
35 | |
36 | #endif /* __INTEL_WM_H__ */ |
37 |