Linux Audio

Check our new training course

Linux debugging, profiling, tracing and performance analysis training

Mar 24-27, 2025, special US time zones
Register
Loading...
v5.14.15
 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 "intel_frontbuffer.h"
10
11struct drm_connector;
12struct drm_connector_state;
13struct drm_i915_private;
14struct intel_crtc_state;
15struct intel_dp;
16struct intel_crtc;
17struct intel_atomic_state;
18struct intel_plane_state;
19struct intel_plane;
20struct intel_encoder;
21
 
22void intel_psr_init_dpcd(struct intel_dp *intel_dp);
23void intel_psr_enable(struct intel_dp *intel_dp,
24		      const struct intel_crtc_state *crtc_state,
25		      const struct drm_connector_state *conn_state);
26void intel_psr_disable(struct intel_dp *intel_dp,
27		       const struct intel_crtc_state *old_crtc_state);
28void intel_psr_update(struct intel_dp *intel_dp,
29		      const struct intel_crtc_state *crtc_state,
30		      const struct drm_connector_state *conn_state);
31int intel_psr_debug_set(struct intel_dp *intel_dp, u64 value);
32void intel_psr_invalidate(struct drm_i915_private *dev_priv,
33			  unsigned frontbuffer_bits,
34			  enum fb_op_origin origin);
35void intel_psr_flush(struct drm_i915_private *dev_priv,
36		     unsigned frontbuffer_bits,
37		     enum fb_op_origin origin);
38void intel_psr_init(struct intel_dp *intel_dp);
39void intel_psr_compute_config(struct intel_dp *intel_dp,
40			      struct intel_crtc_state *crtc_state);
41void intel_psr_get_config(struct intel_encoder *encoder,
42			  struct intel_crtc_state *pipe_config);
43void intel_psr_irq_handler(struct intel_dp *intel_dp, u32 psr_iir);
44void intel_psr_short_pulse(struct intel_dp *intel_dp);
45void intel_psr_wait_for_idle(const struct intel_crtc_state *new_crtc_state);
 
46bool intel_psr_enabled(struct intel_dp *intel_dp);
47int intel_psr2_sel_fetch_update(struct intel_atomic_state *state,
48				struct intel_crtc *crtc);
49void intel_psr2_program_trans_man_trk_ctl(const struct intel_crtc_state *crtc_state);
50void intel_psr2_program_plane_sel_fetch(struct intel_plane *plane,
51					const struct intel_crtc_state *crtc_state,
52					const struct intel_plane_state *plane_state,
53					int color_plane);
54void intel_psr_pause(struct intel_dp *intel_dp);
55void intel_psr_resume(struct intel_dp *intel_dp);
56
57#endif /* __INTEL_PSR_H__ */
v5.9
 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 "intel_frontbuffer.h"
10
11struct drm_connector;
12struct drm_connector_state;
13struct drm_i915_private;
14struct intel_crtc_state;
15struct intel_dp;
 
 
 
 
 
16
17#define CAN_PSR(dev_priv) (HAS_PSR(dev_priv) && dev_priv->psr.sink_support)
18void intel_psr_init_dpcd(struct intel_dp *intel_dp);
19void intel_psr_enable(struct intel_dp *intel_dp,
20		      const struct intel_crtc_state *crtc_state,
21		      const struct drm_connector_state *conn_state);
22void intel_psr_disable(struct intel_dp *intel_dp,
23		       const struct intel_crtc_state *old_crtc_state);
24void intel_psr_update(struct intel_dp *intel_dp,
25		      const struct intel_crtc_state *crtc_state,
26		      const struct drm_connector_state *conn_state);
27int intel_psr_debug_set(struct drm_i915_private *dev_priv, u64 value);
28void intel_psr_invalidate(struct drm_i915_private *dev_priv,
29			  unsigned frontbuffer_bits,
30			  enum fb_op_origin origin);
31void intel_psr_flush(struct drm_i915_private *dev_priv,
32		     unsigned frontbuffer_bits,
33		     enum fb_op_origin origin);
34void intel_psr_init(struct drm_i915_private *dev_priv);
35void intel_psr_compute_config(struct intel_dp *intel_dp,
36			      struct intel_crtc_state *crtc_state);
37void intel_psr_irq_handler(struct drm_i915_private *dev_priv, u32 psr_iir);
 
 
38void intel_psr_short_pulse(struct intel_dp *intel_dp);
39int intel_psr_wait_for_idle(const struct intel_crtc_state *new_crtc_state,
40			    u32 *out_value);
41bool intel_psr_enabled(struct intel_dp *intel_dp);
42void intel_psr_atomic_check(struct drm_connector *connector,
43			    struct drm_connector_state *old_state,
44			    struct drm_connector_state *new_state);
45void intel_psr_set_force_mode_changed(struct intel_dp *intel_dp);
 
 
 
 
 
46
47#endif /* __INTEL_PSR_H__ */