Move sanitize_watermarks() to i9xx_wm.[ch] and rename as ilk_wm_sanitize(). The slightly unfortunate downside is having to expose intel_atomic_check() from intel_display.c, but this declutters intel_display.c nicely. v2: - Move to i9xx_wm.[ch] instead of intel_wm.[ch] (Ville) Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230215141910.433043-1-jani.nikula@intel.com
22 lines
547 B
C
22 lines
547 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __I9XX_WM_H__
|
|
#define __I9XX_WM_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_i915_private;
|
|
struct intel_crtc_state;
|
|
struct intel_plane_state;
|
|
|
|
int ilk_wm_max_level(const struct drm_i915_private *i915);
|
|
bool ilk_disable_lp_wm(struct drm_i915_private *i915);
|
|
void ilk_wm_sanitize(struct drm_i915_private *i915);
|
|
bool intel_set_memory_cxsr(struct drm_i915_private *i915, bool enable);
|
|
void i9xx_wm_init(struct drm_i915_private *i915);
|
|
|
|
#endif /* __I9XX_WM_H__ */
|