mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Going forward, struct intel_display is the main display device data pointer. Convert the i9xx_wm.h interface to struct intel_display. With this, we can make intel_wm.c independent of i915_drv.h. v2: Also remove i915_drv.h, fix commit message Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com> Link: https://lore.kernel.org/r/3e30634d85c0e0aac9c95f9a2f928131ba400271.1744119460.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
37 lines
836 B
C
37 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__ */
|