Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
38 lines
836 B
C
38 lines
836 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __I9XX_WM_H__
|
|
#define __I9XX_WM_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct intel_crtc_state;
|
|
struct intel_display;
|
|
struct intel_plane_state;
|
|
|
|
#ifdef I915
|
|
bool ilk_disable_cxsr(struct intel_display *display);
|
|
void ilk_wm_sanitize(struct intel_display *display);
|
|
bool intel_set_memory_cxsr(struct intel_display *display, bool enable);
|
|
void i9xx_wm_init(struct intel_display *display);
|
|
#else
|
|
static inline bool ilk_disable_cxsr(struct intel_display *display)
|
|
{
|
|
return false;
|
|
}
|
|
static inline void ilk_wm_sanitize(struct intel_display *display)
|
|
{
|
|
}
|
|
static inline bool intel_set_memory_cxsr(struct intel_display *display, bool enable)
|
|
{
|
|
return false;
|
|
}
|
|
static inline void i9xx_wm_init(struct intel_display *display)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /* __I9XX_WM_H__ */
|