mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Going forward, struct intel_display is the main display device data pointer. Convert as much as possible of intel_pch_display.[ch] to struct intel_display. Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://lore.kernel.org/r/0341f0c14a4770cfd41708200cd6c5416b8a17b9.1742554320.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
98 lines
2.6 KiB
C
98 lines
2.6 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2021 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _INTEL_PCH_DISPLAY_H_
|
|
#define _INTEL_PCH_DISPLAY_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
enum pipe;
|
|
struct intel_atomic_state;
|
|
struct intel_crtc;
|
|
struct intel_crtc_state;
|
|
struct intel_display;
|
|
struct intel_link_m_n;
|
|
|
|
#ifdef I915
|
|
bool intel_has_pch_trancoder(struct intel_display *display,
|
|
enum pipe pch_transcoder);
|
|
enum pipe intel_crtc_pch_transcoder(struct intel_crtc *crtc);
|
|
|
|
void ilk_pch_pre_enable(struct intel_atomic_state *state,
|
|
struct intel_crtc *crtc);
|
|
void ilk_pch_enable(struct intel_atomic_state *state,
|
|
struct intel_crtc *crtc);
|
|
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);
|
|
void ilk_pch_get_config(struct intel_crtc_state *crtc_state);
|
|
|
|
void lpt_pch_enable(struct intel_atomic_state *state,
|
|
struct intel_crtc *crtc);
|
|
void lpt_pch_disable(struct intel_atomic_state *state,
|
|
struct intel_crtc *crtc);
|
|
void lpt_pch_get_config(struct intel_crtc_state *crtc_state);
|
|
|
|
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);
|
|
|
|
void intel_pch_sanitize(struct intel_display *display);
|
|
#else
|
|
static inline bool intel_has_pch_trancoder(struct intel_display *display,
|
|
enum pipe pch_transcoder)
|
|
{
|
|
return false;
|
|
}
|
|
static inline int intel_crtc_pch_transcoder(struct intel_crtc *crtc)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline void ilk_pch_pre_enable(struct intel_atomic_state *state,
|
|
struct intel_crtc *crtc)
|
|
{
|
|
}
|
|
static inline void ilk_pch_enable(struct intel_atomic_state *state,
|
|
struct intel_crtc *crtc)
|
|
{
|
|
}
|
|
static inline void ilk_pch_disable(struct intel_atomic_state *state,
|
|
struct intel_crtc *crtc)
|
|
{
|
|
}
|
|
static inline void ilk_pch_post_disable(struct intel_atomic_state *state,
|
|
struct intel_crtc *crtc)
|
|
{
|
|
}
|
|
static inline void ilk_pch_get_config(struct intel_crtc_state *crtc_state)
|
|
{
|
|
}
|
|
static inline void lpt_pch_enable(struct intel_atomic_state *state,
|
|
struct intel_crtc *crtc)
|
|
{
|
|
}
|
|
static inline void lpt_pch_disable(struct intel_atomic_state *state,
|
|
struct intel_crtc *crtc)
|
|
{
|
|
}
|
|
static inline void lpt_pch_get_config(struct intel_crtc_state *crtc_state)
|
|
{
|
|
}
|
|
static inline void intel_pch_transcoder_get_m1_n1(struct intel_crtc *crtc,
|
|
struct intel_link_m_n *m_n)
|
|
{
|
|
}
|
|
static inline void intel_pch_transcoder_get_m2_n2(struct intel_crtc *crtc,
|
|
struct intel_link_m_n *m_n)
|
|
{
|
|
}
|
|
static inline void intel_pch_sanitize(struct intel_display *display)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif
|