1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2019 Intel Corporation
4  */
5 
6 #ifndef __INTEL_CRT_H__
7 #define __INTEL_CRT_H__
8 
9 #include "i915_reg_defs.h"
10 
11 #define drm_i915_private inteldrm_softc
12 
13 enum pipe;
14 struct drm_encoder;
15 struct drm_i915_private;
16 
17 #ifdef I915
18 bool intel_crt_port_enabled(struct drm_i915_private *dev_priv,
19 			    i915_reg_t adpa_reg, enum pipe *pipe);
20 void intel_crt_init(struct drm_i915_private *dev_priv);
21 void intel_crt_reset(struct drm_encoder *encoder);
22 #else
intel_crt_port_enabled(struct drm_i915_private * dev_priv,i915_reg_t adpa_reg,enum pipe * pipe)23 static inline bool intel_crt_port_enabled(struct drm_i915_private *dev_priv,
24 					  i915_reg_t adpa_reg, enum pipe *pipe)
25 {
26 	return false;
27 }
intel_crt_init(struct drm_i915_private * dev_priv)28 static inline void intel_crt_init(struct drm_i915_private *dev_priv)
29 {
30 }
intel_crt_reset(struct drm_encoder * encoder)31 static inline void intel_crt_reset(struct drm_encoder *encoder)
32 {
33 }
34 #endif
35 
36 #endif /* __INTEL_CRT_H__ */
37