| 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 intel_crtc_state; | 
|---|
| 11 | struct intel_display; | 
|---|
| 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 intel_display *display); | 
|---|
| 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 intel_display *display) | 
|---|
| 27 | { | 
|---|
| 28 | } | 
|---|
| 29 | #endif | 
|---|
| 30 |  | 
|---|
| 31 | #endif /* __VLV_DSI_H__ */ | 
|---|
| 32 |  | 
|---|