1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2020 Intel Corporation 4 */ 5 6 #ifndef _G4X_DP_H_ 7 #define _G4X_DP_H_ 8 9 #include <linux/types.h> 10 11 #include "i915_reg_defs.h" 12 13 enum pipe; 14 enum port; 15 #define drm_i915_private inteldrm_softc 16 struct drm_i915_private; 17 struct intel_crtc_state; 18 struct intel_dp; 19 struct intel_encoder; 20 21 const struct dpll *vlv_get_dpll(struct drm_i915_private *i915); 22 enum pipe vlv_active_pipe(struct intel_dp *intel_dp); 23 void g4x_dp_set_clock(struct intel_encoder *encoder, 24 struct intel_crtc_state *pipe_config); 25 bool g4x_dp_port_enabled(struct drm_i915_private *dev_priv, 26 i915_reg_t dp_reg, enum port port, 27 enum pipe *pipe); 28 bool g4x_dp_init(struct drm_i915_private *dev_priv, 29 i915_reg_t output_reg, enum port port); 30 31 #endif 32