xref: /linux/drivers/gpu/drm/i915/display/vlv_dsi.h (revision e814f3fd16acfb7f9966773953de8f740a1e3202)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2021 Intel Corporation
4  */
5 
6 #ifndef __VLV_DSI_H__
7 #define __VLV_DSI_H__
8 
9 enum port;
10 struct drm_i915_private;
11 struct intel_crtc_state;
12 struct intel_dsi;
13 
14 #ifdef I915
15 void vlv_dsi_wait_for_fifo_empty(struct intel_dsi *intel_dsi, enum port port);
16 int vlv_dsi_min_cdclk(const struct intel_crtc_state *crtc_state);
17 void vlv_dsi_init(struct drm_i915_private *dev_priv);
18 #else
19 static inline void vlv_dsi_wait_for_fifo_empty(struct intel_dsi *intel_dsi, enum port port)
20 {
21 }
22 static inline int vlv_dsi_min_cdclk(const struct intel_crtc_state *crtc_state)
23 {
24 	return 0;
25 }
26 static inline void vlv_dsi_init(struct drm_i915_private *dev_priv)
27 {
28 }
29 #endif
30 
31 #endif /* __VLV_DSI_H__ */
32