Linux Audio

Check our new training course

Loading...
Note: File does not exist in v3.1.
 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
13enum pipe;
14enum port;
15struct drm_i915_private;
16struct intel_crtc_state;
17struct intel_dp;
18struct intel_encoder;
19
20#ifdef I915
21const struct dpll *vlv_get_dpll(struct drm_i915_private *i915);
22void g4x_dp_set_clock(struct intel_encoder *encoder,
23		      struct intel_crtc_state *pipe_config);
24bool g4x_dp_port_enabled(struct drm_i915_private *dev_priv,
25			 i915_reg_t dp_reg, enum port port,
26			 enum pipe *pipe);
27bool g4x_dp_init(struct drm_i915_private *dev_priv,
28		 i915_reg_t output_reg, enum port port);
29#else
30static inline const struct dpll *vlv_get_dpll(struct drm_i915_private *i915)
31{
32	return NULL;
33}
34static inline void g4x_dp_set_clock(struct intel_encoder *encoder,
35				    struct intel_crtc_state *pipe_config)
36{
37}
38static inline bool g4x_dp_port_enabled(struct drm_i915_private *dev_priv,
39				       i915_reg_t dp_reg, int port,
40				       enum pipe *pipe)
41{
42	return false;
43}
44static inline bool g4x_dp_init(struct drm_i915_private *dev_priv,
45			       i915_reg_t output_reg, int port)
46{
47	return false;
48}
49#endif
50
51#endif