1 /* SPDX-License-Identifier: MIT */
3 * Copyright © 2019 Intel Corporation
9 #include <linux/types.h>
14 struct drm_i915_private
;
16 struct intel_atomic_state
;
18 struct intel_crtc_state
;
20 struct skl_ddb_allocation
;
25 void intel_init_clock_gating(struct drm_i915_private
*dev_priv
);
26 void intel_suspend_hw(struct drm_i915_private
*dev_priv
);
27 int ilk_wm_max_level(const struct drm_i915_private
*dev_priv
);
28 void intel_update_watermarks(struct intel_crtc
*crtc
);
29 void intel_init_pm(struct drm_i915_private
*dev_priv
);
30 void intel_init_clock_gating_hooks(struct drm_i915_private
*dev_priv
);
31 void intel_pm_setup(struct drm_i915_private
*dev_priv
);
32 void g4x_wm_get_hw_state(struct drm_i915_private
*dev_priv
);
33 void vlv_wm_get_hw_state(struct drm_i915_private
*dev_priv
);
34 void ilk_wm_get_hw_state(struct drm_i915_private
*dev_priv
);
35 void skl_wm_get_hw_state(struct drm_i915_private
*dev_priv
);
36 void skl_pipe_ddb_get_hw_state(struct intel_crtc
*crtc
,
37 struct skl_ddb_entry
*ddb_y
,
38 struct skl_ddb_entry
*ddb_uv
);
39 void skl_ddb_get_hw_state(struct drm_i915_private
*dev_priv
,
40 struct skl_ddb_allocation
*ddb
/* out */);
41 void skl_pipe_wm_get_hw_state(struct intel_crtc
*crtc
,
42 struct skl_pipe_wm
*out
);
43 void g4x_wm_sanitize(struct drm_i915_private
*dev_priv
);
44 void vlv_wm_sanitize(struct drm_i915_private
*dev_priv
);
45 bool intel_can_enable_sagv(struct intel_atomic_state
*state
);
46 int intel_enable_sagv(struct drm_i915_private
*dev_priv
);
47 int intel_disable_sagv(struct drm_i915_private
*dev_priv
);
48 bool skl_wm_level_equals(const struct skl_wm_level
*l1
,
49 const struct skl_wm_level
*l2
);
50 bool skl_ddb_allocation_overlaps(const struct skl_ddb_entry
*ddb
,
51 const struct skl_ddb_entry
*entries
,
52 int num_entries
, int ignore_idx
);
53 void skl_write_plane_wm(struct intel_plane
*plane
,
54 const struct intel_crtc_state
*crtc_state
);
55 void skl_write_cursor_wm(struct intel_plane
*plane
,
56 const struct intel_crtc_state
*crtc_state
);
57 bool ilk_disable_lp_wm(struct drm_i915_private
*dev_priv
);
58 void intel_init_ipc(struct drm_i915_private
*dev_priv
);
59 void intel_enable_ipc(struct drm_i915_private
*dev_priv
);
61 bool intel_set_memory_cxsr(struct drm_i915_private
*dev_priv
, bool enable
);
63 #endif /* __INTEL_PM_H__ */