1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2019 Intel Corporation 4 */ 5 6 #ifndef __INTEL_SDVO_H__ 7 #define __INTEL_SDVO_H__ 8 9 #include <linux/types.h> 10 11 #include "i915_reg_defs.h" 12 13 struct drm_i915_private; 14 enum pipe; 15 enum port; 16 17 #ifdef I915 18 bool intel_sdvo_port_enabled(struct drm_i915_private *dev_priv, 19 i915_reg_t sdvo_reg, enum pipe *pipe); 20 bool intel_sdvo_init(struct drm_i915_private *dev_priv, 21 i915_reg_t reg, enum port port); 22 #else 23 static inline bool intel_sdvo_port_enabled(struct drm_i915_private *dev_priv, 24 i915_reg_t sdvo_reg, enum pipe *pipe) 25 { 26 return false; 27 } 28 static inline bool intel_sdvo_init(struct drm_i915_private *dev_priv, 29 i915_reg_t reg, enum port port) 30 { 31 return false; 32 } 33 #endif 34 35 #endif /* __INTEL_SDVO_H__ */ 36