intel_fdi.h 979 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11
/* SPDX-License-Identifier: MIT */
/*
 * Copyright © 2020 Intel Corporation
 */

#ifndef _INTEL_FDI_H_
#define _INTEL_FDI_H_

struct drm_i915_private;
struct intel_crtc;
struct intel_crtc_state;
12
struct intel_encoder;
13 14

#define I915_DISPLAY_CONFIG_RETRY 1
15
int intel_fdi_link_freq(struct drm_i915_private *i915,
16
			const struct intel_crtc_state *pipe_config);
17 18 19 20 21 22 23
int ilk_fdi_compute_config(struct intel_crtc *intel_crtc,
			   struct intel_crtc_state *pipe_config);
void intel_fdi_normal_train(struct intel_crtc *crtc);
void ilk_fdi_disable(struct intel_crtc *crtc);
void ilk_fdi_pll_disable(struct intel_crtc *intel_crtc);
void ilk_fdi_pll_enable(const struct intel_crtc_state *crtc_state);
void intel_fdi_init_hook(struct drm_i915_private *dev_priv);
24 25
void hsw_fdi_link_train(struct intel_encoder *encoder,
			const struct intel_crtc_state *crtc_state);
26
void intel_fdi_pll_freq_update(struct drm_i915_private *i915);
27
void lpt_fdi_program_mphy(struct drm_i915_private *i915);
28 29

#endif