Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 /*
0003  * Copyright © 2019 Intel Corporation
0004  */
0005 
0006 #ifndef __INTEL_PSR_H__
0007 #define __INTEL_PSR_H__
0008 
0009 #include <linux/types.h>
0010 
0011 enum fb_op_origin;
0012 struct drm_connector;
0013 struct drm_connector_state;
0014 struct drm_i915_private;
0015 struct intel_atomic_state;
0016 struct intel_crtc;
0017 struct intel_crtc_state;
0018 struct intel_dp;
0019 struct intel_encoder;
0020 struct intel_plane;
0021 struct intel_plane_state;
0022 
0023 void intel_psr_init_dpcd(struct intel_dp *intel_dp);
0024 void intel_psr_pre_plane_update(struct intel_atomic_state *state,
0025                 struct intel_crtc *crtc);
0026 void intel_psr_post_plane_update(const struct intel_atomic_state *state);
0027 void intel_psr_disable(struct intel_dp *intel_dp,
0028                const struct intel_crtc_state *old_crtc_state);
0029 int intel_psr_debug_set(struct intel_dp *intel_dp, u64 value);
0030 void intel_psr_invalidate(struct drm_i915_private *dev_priv,
0031               unsigned frontbuffer_bits,
0032               enum fb_op_origin origin);
0033 void intel_psr_flush(struct drm_i915_private *dev_priv,
0034              unsigned frontbuffer_bits,
0035              enum fb_op_origin origin);
0036 void intel_psr_init(struct intel_dp *intel_dp);
0037 void intel_psr_compute_config(struct intel_dp *intel_dp,
0038                   struct intel_crtc_state *crtc_state,
0039                   struct drm_connector_state *conn_state);
0040 void intel_psr_get_config(struct intel_encoder *encoder,
0041               struct intel_crtc_state *pipe_config);
0042 void intel_psr_irq_handler(struct intel_dp *intel_dp, u32 psr_iir);
0043 void intel_psr_short_pulse(struct intel_dp *intel_dp);
0044 void intel_psr_wait_for_idle_locked(const struct intel_crtc_state *new_crtc_state);
0045 bool intel_psr_enabled(struct intel_dp *intel_dp);
0046 int intel_psr2_sel_fetch_update(struct intel_atomic_state *state,
0047                 struct intel_crtc *crtc);
0048 void intel_psr2_program_trans_man_trk_ctl(const struct intel_crtc_state *crtc_state);
0049 void intel_psr2_program_plane_sel_fetch(struct intel_plane *plane,
0050                     const struct intel_crtc_state *crtc_state,
0051                     const struct intel_plane_state *plane_state,
0052                     int color_plane);
0053 void intel_psr2_disable_plane_sel_fetch(struct intel_plane *plane,
0054                     const struct intel_crtc_state *crtc_state);
0055 void intel_psr_pause(struct intel_dp *intel_dp);
0056 void intel_psr_resume(struct intel_dp *intel_dp);
0057 
0058 void intel_psr_lock(const struct intel_crtc_state *crtc_state);
0059 void intel_psr_unlock(const struct intel_crtc_state *crtc_state);
0060 
0061 #endif /* __INTEL_PSR_H__ */