1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2019 Intel Corporation 4 */ 5 6 #ifndef __INTEL_LVDS_H__ 7 #define __INTEL_LVDS_H__ 8 9 #include <linux/types.h> 10 11 #include "i915_reg_defs.h" 12 13 enum pipe; 14 struct drm_i915_private; 15 16 #ifdef I915 17 bool intel_lvds_port_enabled(struct drm_i915_private *dev_priv, 18 i915_reg_t lvds_reg, enum pipe *pipe); 19 void intel_lvds_init(struct drm_i915_private *dev_priv); 20 struct intel_encoder *intel_get_lvds_encoder(struct drm_i915_private *dev_priv); 21 bool intel_is_dual_link_lvds(struct drm_i915_private *dev_priv); 22 #else 23 static inline bool intel_lvds_port_enabled(struct drm_i915_private *dev_priv, 24 i915_reg_t lvds_reg, enum pipe *pipe) 25 { 26 return false; 27 } 28 static inline void intel_lvds_init(struct drm_i915_private *dev_priv) 29 { 30 } 31 static inline struct intel_encoder *intel_get_lvds_encoder(struct drm_i915_private *dev_priv) 32 { 33 return NULL; 34 } 35 static inline bool intel_is_dual_link_lvds(struct drm_i915_private *dev_priv) 36 { 37 return false; 38 } 39 #endif 40 41 #endif /* __INTEL_LVDS_H__ */ 42