1 /* SPDX-License-Identifier: MIT */
3 * Copyright (C) 2013-2019 NVIDIA Corporation.
4 * Copyright (C) 2015 Rob Clark
8 #define DRM_TEGRA_DP_H 1
10 #include <linux/types.h>
15 * struct drm_dp_link_caps - DP link capabilities
17 struct drm_dp_link_caps {
21 * enhanced framing capability (mandatory as of DP 1.2)
23 bool enhanced_framing;
26 void drm_dp_link_caps_copy(struct drm_dp_link_caps *dest,
27 const struct drm_dp_link_caps *src);
30 * struct drm_dp_link - DP link capabilities and configuration
31 * @revision: DP specification revision supported on the link
32 * @max_rate: maximum clock rate supported on the link
33 * @max_lanes: maximum number of lanes supported on the link
34 * @caps: capabilities supported on the link (see &drm_dp_link_caps)
35 * @rate: currently configured link rate
36 * @lanes: currently configured number of lanes
39 unsigned char revision;
40 unsigned int max_rate;
41 unsigned int max_lanes;
43 struct drm_dp_link_caps caps;
49 int drm_dp_link_probe(struct drm_dp_aux *aux, struct drm_dp_link *link);
50 int drm_dp_link_power_up(struct drm_dp_aux *aux, struct drm_dp_link *link);
51 int drm_dp_link_power_down(struct drm_dp_aux *aux, struct drm_dp_link *link);
52 int drm_dp_link_configure(struct drm_dp_aux *aux, struct drm_dp_link *link);