2021-10-15 07:16:18 +00:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
/*
|
|
|
|
* Copyright © 2021 Intel Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _INTEL_PCH_DISPLAY_H_
|
|
|
|
#define _INTEL_PCH_DISPLAY_H_
|
|
|
|
|
2022-02-21 11:03:56 +00:00
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
|
|
enum pipe;
|
2022-02-21 11:03:55 +00:00
|
|
|
struct drm_i915_private;
|
2021-10-15 07:16:18 +00:00
|
|
|
struct intel_atomic_state;
|
2021-10-15 07:16:19 +00:00
|
|
|
struct intel_crtc;
|
2021-10-15 07:16:18 +00:00
|
|
|
struct intel_crtc_state;
|
2022-01-28 10:37:47 +00:00
|
|
|
struct intel_link_m_n;
|
2021-10-15 07:16:18 +00:00
|
|
|
|
2022-02-21 11:03:56 +00:00
|
|
|
bool intel_has_pch_trancoder(struct drm_i915_private *i915,
|
|
|
|
enum pipe pch_transcoder);
|
|
|
|
enum pipe intel_crtc_pch_transcoder(struct intel_crtc *crtc);
|
|
|
|
|
2022-01-24 19:31:36 +00:00
|
|
|
void ilk_pch_pre_enable(struct intel_atomic_state *state,
|
|
|
|
struct intel_crtc *crtc);
|
2021-10-15 07:16:19 +00:00
|
|
|
void ilk_pch_enable(struct intel_atomic_state *state,
|
|
|
|
struct intel_crtc *crtc);
|
2021-10-15 07:16:23 +00:00
|
|
|
void ilk_pch_disable(struct intel_atomic_state *state,
|
|
|
|
struct intel_crtc *crtc);
|
|
|
|
void ilk_pch_post_disable(struct intel_atomic_state *state,
|
|
|
|
struct intel_crtc *crtc);
|
2021-10-15 07:16:21 +00:00
|
|
|
void ilk_pch_get_config(struct intel_crtc_state *crtc_state);
|
2021-10-15 07:16:18 +00:00
|
|
|
|
2021-10-15 07:16:19 +00:00
|
|
|
void lpt_pch_enable(struct intel_atomic_state *state,
|
|
|
|
struct intel_crtc *crtc);
|
2021-10-15 07:16:25 +00:00
|
|
|
void lpt_pch_disable(struct intel_atomic_state *state,
|
|
|
|
struct intel_crtc *crtc);
|
2021-10-18 15:35:25 +00:00
|
|
|
void lpt_pch_get_config(struct intel_crtc_state *crtc_state);
|
2021-10-15 07:16:18 +00:00
|
|
|
|
2022-01-28 10:37:54 +00:00
|
|
|
void intel_pch_transcoder_get_m1_n1(struct intel_crtc *crtc,
|
|
|
|
struct intel_link_m_n *m_n);
|
|
|
|
void intel_pch_transcoder_get_m2_n2(struct intel_crtc *crtc,
|
|
|
|
struct intel_link_m_n *m_n);
|
2022-01-28 10:37:47 +00:00
|
|
|
|
2022-02-21 11:03:55 +00:00
|
|
|
void intel_pch_sanitize(struct drm_i915_private *i915);
|
|
|
|
|
2021-10-15 07:16:18 +00:00
|
|
|
#endif
|