| 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 intel_crtc_state; | 
| 12 | struct intel_display; | 
| 13 | struct intel_plane_state; | 
| 14 | |
| 15 | #ifdef I915 | 
| 16 | bool ilk_disable_cxsr(struct intel_display *display); | 
| 17 | void ilk_wm_sanitize(struct intel_display *display); | 
| 18 | bool intel_set_memory_cxsr(struct intel_display *display, bool enable); | 
| 19 | void i9xx_wm_init(struct intel_display *display); | 
| 20 | #else | 
| 21 | static inline bool ilk_disable_cxsr(struct intel_display *display) | 
| 22 | { | 
| 23 | return false; | 
| 24 | } | 
| 25 | static inline void ilk_wm_sanitize(struct intel_display *display) | 
| 26 | { | 
| 27 | } | 
| 28 | static inline bool intel_set_memory_cxsr(struct intel_display *display, bool enable) | 
| 29 | { | 
| 30 | return false; | 
| 31 | } | 
| 32 | static inline void i9xx_wm_init(struct intel_display *display) | 
| 33 | { | 
| 34 | } | 
| 35 | #endif | 
| 36 | |
| 37 | #endif /* __I9XX_WM_H__ */ | 
| 38 | 
