1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2023 Intel Corporation 4 */ 5 6 #ifndef __I9XX_WM_H__ 7 #define __I9XX_WM_H__ 8 9 #include <linux/types.h> 10 11 struct drm_i915_private; 12 struct intel_crtc_state; 13 struct intel_plane_state; 14 15 #ifdef I915 16 bool ilk_disable_lp_wm(struct drm_i915_private *i915); 17 void ilk_wm_sanitize(struct drm_i915_private *i915); 18 bool intel_set_memory_cxsr(struct drm_i915_private *i915, bool enable); 19 void i9xx_wm_init(struct drm_i915_private *i915); 20 #else 21 static inline bool ilk_disable_lp_wm(struct drm_i915_private *i915) 22 { 23 return false; 24 } 25 static inline void ilk_wm_sanitize(struct drm_i915_private *i915) 26 { 27 } 28 static inline bool intel_set_memory_cxsr(struct drm_i915_private *i915, bool enable) 29 { 30 return false; 31 } 32 static inline void i9xx_wm_init(struct drm_i915_private *i915) 33 { 34 } 35 #endif 36 37 #endif /* __I9XX_WM_H__ */ 38