| 1 | /* SPDX-License-Identifier: MIT */ |
| 2 | /* |
| 3 | * Copyright © 2020 Intel Corporation |
| 4 | */ |
| 5 | |
| 6 | #ifndef _G4X_DP_H_ |
| 7 | #define _G4X_DP_H_ |
| 8 | |
| 9 | #include <linux/types.h> |
| 10 | |
| 11 | #include "i915_reg_defs.h" |
| 12 | |
| 13 | enum pipe; |
| 14 | enum port; |
| 15 | struct intel_crtc_state; |
| 16 | struct intel_display; |
| 17 | struct intel_dp; |
| 18 | struct intel_encoder; |
| 19 | |
| 20 | #ifdef I915 |
| 21 | const struct dpll *vlv_get_dpll(struct intel_display *display); |
| 22 | bool g4x_dp_port_enabled(struct intel_display *display, |
| 23 | i915_reg_t dp_reg, enum port port, |
| 24 | enum pipe *pipe); |
| 25 | bool g4x_dp_init(struct intel_display *display, |
| 26 | i915_reg_t output_reg, enum port port); |
| 27 | #else |
| 28 | static inline const struct dpll *vlv_get_dpll(struct intel_display *display) |
| 29 | { |
| 30 | return NULL; |
| 31 | } |
| 32 | static inline bool g4x_dp_port_enabled(struct intel_display *display, |
| 33 | i915_reg_t dp_reg, int port, |
| 34 | enum pipe *pipe) |
| 35 | { |
| 36 | return false; |
| 37 | } |
| 38 | static inline bool g4x_dp_init(struct intel_display *display, |
| 39 | i915_reg_t output_reg, int port) |
| 40 | { |
| 41 | return false; |
| 42 | } |
| 43 | #endif |
| 44 | |
| 45 | #endif |
| 46 | |