2023-02-13 21:59:57 +02:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
/*
|
|
|
|
* Copyright © 2023 Intel Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INTEL_WM_H__
|
|
|
|
#define __INTEL_WM_H__
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
2023-02-13 21:59:58 +02:00
|
|
|
struct intel_atomic_state;
|
|
|
|
struct intel_crtc;
|
2023-02-13 21:59:57 +02:00
|
|
|
struct intel_crtc_state;
|
2025-04-08 16:38:35 +03:00
|
|
|
struct intel_display;
|
2023-02-13 21:59:57 +02:00
|
|
|
struct intel_plane_state;
|
|
|
|
|
2025-04-08 16:38:35 +03:00
|
|
|
void intel_update_watermarks(struct intel_display *display);
|
2024-09-16 19:24:08 +03:00
|
|
|
int intel_wm_compute(struct intel_atomic_state *state,
|
|
|
|
struct intel_crtc *crtc);
|
2023-02-13 21:59:58 +02:00
|
|
|
bool intel_initial_watermarks(struct intel_atomic_state *state,
|
|
|
|
struct intel_crtc *crtc);
|
|
|
|
void intel_atomic_update_watermarks(struct intel_atomic_state *state,
|
|
|
|
struct intel_crtc *crtc);
|
|
|
|
void intel_optimize_watermarks(struct intel_atomic_state *state,
|
|
|
|
struct intel_crtc *crtc);
|
|
|
|
int intel_compute_global_watermarks(struct intel_atomic_state *state);
|
2025-04-08 16:38:35 +03:00
|
|
|
void intel_wm_get_hw_state(struct intel_display *display);
|
|
|
|
void intel_wm_sanitize(struct intel_display *display);
|
2023-02-13 21:59:57 +02:00
|
|
|
bool intel_wm_plane_visible(const struct intel_crtc_state *crtc_state,
|
|
|
|
const struct intel_plane_state *plane_state);
|
2025-04-08 16:38:35 +03:00
|
|
|
void intel_print_wm_latency(struct intel_display *display,
|
2023-02-13 21:59:57 +02:00
|
|
|
const char *name, const u16 wm[]);
|
2025-04-08 16:38:35 +03:00
|
|
|
void intel_wm_init(struct intel_display *display);
|
|
|
|
void intel_wm_debugfs_register(struct intel_display *display);
|
2023-02-13 21:59:57 +02:00
|
|
|
|
|
|
|
#endif /* __INTEL_WM_H__ */
|