Linux Audio

Check our new training course

Loading...
Note: File does not exist in v3.1.
 1/* SPDX-License-Identifier: MIT */
 2/*
 3 * Copyright © 2019 Intel Corporation
 4 */
 5
 6#ifndef __INTEL_PSR_H__
 7#define __INTEL_PSR_H__
 8
 9#include <linux/types.h>
10
11enum fb_op_origin;
12struct drm_connector;
13struct drm_connector_state;
14struct drm_i915_private;
15struct intel_atomic_state;
16struct intel_crtc;
17struct intel_crtc_state;
18struct intel_dp;
19struct intel_encoder;
20struct intel_plane;
21struct intel_plane_state;
22
23void intel_psr_init_dpcd(struct intel_dp *intel_dp);
24void intel_psr_pre_plane_update(struct intel_atomic_state *state,
25				struct intel_crtc *crtc);
26void intel_psr_post_plane_update(const struct intel_atomic_state *state);
27void intel_psr_disable(struct intel_dp *intel_dp,
28		       const struct intel_crtc_state *old_crtc_state);
29int intel_psr_debug_set(struct intel_dp *intel_dp, u64 value);
30void intel_psr_invalidate(struct drm_i915_private *dev_priv,
31			  unsigned frontbuffer_bits,
32			  enum fb_op_origin origin);
33void intel_psr_flush(struct drm_i915_private *dev_priv,
34		     unsigned frontbuffer_bits,
35		     enum fb_op_origin origin);
36void intel_psr_init(struct intel_dp *intel_dp);
37void intel_psr_compute_config(struct intel_dp *intel_dp,
38			      struct intel_crtc_state *crtc_state,
39			      struct drm_connector_state *conn_state);
40void intel_psr_get_config(struct intel_encoder *encoder,
41			  struct intel_crtc_state *pipe_config);
42void intel_psr_irq_handler(struct intel_dp *intel_dp, u32 psr_iir);
43void intel_psr_short_pulse(struct intel_dp *intel_dp);
44void intel_psr_wait_for_idle_locked(const struct intel_crtc_state *new_crtc_state);
45bool intel_psr_enabled(struct intel_dp *intel_dp);
46int intel_psr2_sel_fetch_update(struct intel_atomic_state *state,
47				struct intel_crtc *crtc);
48void intel_psr2_program_trans_man_trk_ctl(const struct intel_crtc_state *crtc_state);
49void intel_psr2_program_plane_sel_fetch(struct intel_plane *plane,
50					const struct intel_crtc_state *crtc_state,
51					const struct intel_plane_state *plane_state,
52					int color_plane);
53void intel_psr2_disable_plane_sel_fetch(struct intel_plane *plane,
54					const struct intel_crtc_state *crtc_state);
55void intel_psr_pause(struct intel_dp *intel_dp);
56void intel_psr_resume(struct intel_dp *intel_dp);
57
58void intel_psr_lock(const struct intel_crtc_state *crtc_state);
59void intel_psr_unlock(const struct intel_crtc_state *crtc_state);
60
61#endif /* __INTEL_PSR_H__ */