]> Git Repo - linux.git/blob - drivers/gpu/drm/i915/display/g4x_dp.h
net: wan: Add framer framework support
[linux.git] / drivers / gpu / drm / i915 / display / g4x_dp.h
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 drm_i915_private;
16 struct intel_crtc_state;
17 struct intel_dp;
18 struct intel_encoder;
19
20 #ifdef I915
21 const struct dpll *vlv_get_dpll(struct drm_i915_private *i915);
22 enum pipe vlv_active_pipe(struct intel_dp *intel_dp);
23 void g4x_dp_set_clock(struct intel_encoder *encoder,
24                       struct intel_crtc_state *pipe_config);
25 bool g4x_dp_port_enabled(struct drm_i915_private *dev_priv,
26                          i915_reg_t dp_reg, enum port port,
27                          enum pipe *pipe);
28 bool g4x_dp_init(struct drm_i915_private *dev_priv,
29                  i915_reg_t output_reg, enum port port);
30 #else
31 static inline const struct dpll *vlv_get_dpll(struct drm_i915_private *i915)
32 {
33         return NULL;
34 }
35 static inline int vlv_active_pipe(struct intel_dp *intel_dp)
36 {
37         return 0;
38 }
39 static inline void g4x_dp_set_clock(struct intel_encoder *encoder,
40                                     struct intel_crtc_state *pipe_config)
41 {
42 }
43 static inline bool g4x_dp_port_enabled(struct drm_i915_private *dev_priv,
44                                        i915_reg_t dp_reg, int port,
45                                        enum pipe *pipe)
46 {
47         return false;
48 }
49 static inline bool g4x_dp_init(struct drm_i915_private *dev_priv,
50                                i915_reg_t output_reg, int port)
51 {
52         return false;
53 }
54 #endif
55
56 #endif
This page took 0.037217 seconds and 4 git commands to generate.