]> Git Repo - linux.git/blob - drivers/gpu/drm/i915/display/intel_psr.h
net: wan: Add framer framework support
[linux.git] / drivers / gpu / drm / i915 / display / intel_psr.h
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
11 enum fb_op_origin;
12 struct drm_connector;
13 struct drm_connector_state;
14 struct drm_i915_private;
15 struct intel_atomic_state;
16 struct intel_connector;
17 struct intel_crtc;
18 struct intel_crtc_state;
19 struct intel_dp;
20 struct intel_encoder;
21 struct intel_plane;
22 struct intel_plane_state;
23
24 void intel_psr_init_dpcd(struct intel_dp *intel_dp);
25 void intel_psr_pre_plane_update(struct intel_atomic_state *state,
26                                 struct intel_crtc *crtc);
27 void intel_psr_post_plane_update(struct intel_atomic_state *state,
28                                  struct intel_crtc *crtc);
29 void intel_psr_disable(struct intel_dp *intel_dp,
30                        const struct intel_crtc_state *old_crtc_state);
31 int intel_psr_debug_set(struct intel_dp *intel_dp, u64 value);
32 void intel_psr_invalidate(struct drm_i915_private *dev_priv,
33                           unsigned frontbuffer_bits,
34                           enum fb_op_origin origin);
35 void intel_psr_flush(struct drm_i915_private *dev_priv,
36                      unsigned frontbuffer_bits,
37                      enum fb_op_origin origin);
38 void intel_psr_init(struct intel_dp *intel_dp);
39 void intel_psr_compute_config(struct intel_dp *intel_dp,
40                               struct intel_crtc_state *crtc_state,
41                               struct drm_connector_state *conn_state);
42 void intel_psr_get_config(struct intel_encoder *encoder,
43                           struct intel_crtc_state *pipe_config);
44 void intel_psr_irq_handler(struct intel_dp *intel_dp, u32 psr_iir);
45 void intel_psr_short_pulse(struct intel_dp *intel_dp);
46 void intel_psr_wait_for_idle_locked(const struct intel_crtc_state *new_crtc_state);
47 bool intel_psr_enabled(struct intel_dp *intel_dp);
48 int intel_psr2_sel_fetch_update(struct intel_atomic_state *state,
49                                 struct intel_crtc *crtc);
50 void intel_psr2_program_trans_man_trk_ctl(const struct intel_crtc_state *crtc_state);
51 void intel_psr2_program_plane_sel_fetch_noarm(struct intel_plane *plane,
52                                               const struct intel_crtc_state *crtc_state,
53                                               const struct intel_plane_state *plane_state,
54                                               int color_plane);
55 void intel_psr2_program_plane_sel_fetch_arm(struct intel_plane *plane,
56                                             const struct intel_crtc_state *crtc_state,
57                                             const struct intel_plane_state *plane_state);
58
59 void intel_psr2_disable_plane_sel_fetch_arm(struct intel_plane *plane,
60                                             const struct intel_crtc_state *crtc_state);
61 void intel_psr_pause(struct intel_dp *intel_dp);
62 void intel_psr_resume(struct intel_dp *intel_dp);
63
64 void intel_psr_lock(const struct intel_crtc_state *crtc_state);
65 void intel_psr_unlock(const struct intel_crtc_state *crtc_state);
66 void intel_psr_connector_debugfs_add(struct intel_connector *connector);
67 void intel_psr_debugfs_register(struct drm_i915_private *i915);
68
69 #endif /* __INTEL_PSR_H__ */
This page took 0.038997 seconds and 4 git commands to generate.