2023-02-13 21:59:57 +02:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
/*
|
|
|
|
* Copyright © 2023 Intel Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __I9XX_WM_H__
|
|
|
|
#define __I9XX_WM_H__
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
|
|
struct intel_crtc_state;
|
2025-04-08 16:38:39 +03:00
|
|
|
struct intel_display;
|
2023-02-13 21:59:57 +02:00
|
|
|
struct intel_plane_state;
|
|
|
|
|
2023-09-12 14:06:41 +03:00
|
|
|
#ifdef I915
|
2025-04-08 16:38:39 +03:00
|
|
|
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);
|
2023-09-12 14:06:41 +03:00
|
|
|
#else
|
2025-04-08 16:38:39 +03:00
|
|
|
static inline bool ilk_disable_cxsr(struct intel_display *display)
|
2023-09-12 14:06:41 +03:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
2025-04-08 16:38:39 +03:00
|
|
|
static inline void ilk_wm_sanitize(struct intel_display *display)
|
2023-09-12 14:06:41 +03:00
|
|
|
{
|
|
|
|
}
|
2025-04-08 16:38:39 +03:00
|
|
|
static inline bool intel_set_memory_cxsr(struct intel_display *display, bool enable)
|
2023-09-12 14:06:41 +03:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
2025-04-08 16:38:39 +03:00
|
|
|
static inline void i9xx_wm_init(struct intel_display *display)
|
2023-09-12 14:06:41 +03:00
|
|
|
{
|
|
|
|
}
|
|
|
|
#endif
|
2023-02-13 21:59:57 +02:00
|
|
|
|
|
|
|
#endif /* __I9XX_WM_H__ */
|