1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2022 Intel Corporation 4 */ 5 6 #ifndef __HSW_IPS_H__ 7 #define __HSW_IPS_H__ 8 9 #include <linux/types.h> 10 11 struct drm_i915_private; 12 struct intel_atomic_state; 13 struct intel_crtc; 14 struct intel_crtc_state; 15 16 bool hsw_ips_disable(const struct intel_crtc_state *crtc_state); 17 bool hsw_ips_pre_update(struct intel_atomic_state *state, 18 struct intel_crtc *crtc); 19 void hsw_ips_post_update(struct intel_atomic_state *state, 20 struct intel_crtc *crtc); 21 bool hsw_crtc_supports_ips(struct intel_crtc *crtc); 22 bool hsw_crtc_state_ips_capable(const struct intel_crtc_state *crtc_state); 23 int hsw_ips_compute_config(struct intel_atomic_state *state, 24 struct intel_crtc *crtc); 25 void hsw_ips_get_config(struct intel_crtc_state *crtc_state); 26 void hsw_ips_debugfs_register(struct drm_i915_private *i915); 27 28 #endif /* __HSW_IPS_H__ */ 29