[PATCH 028/108] drm/i915/dp: Add struct intel_dp_link_config

Imre Deak
2026-04-28T12:53:36Z

Add a struct representing the public unpacked format of a link
configuration. This will be used by the DP link capability API added
as a follow-up, and by DP code in general that needs to track a link
configuration.

Signed-off-by: Imre Deak <imre.deak@intel.com>
---
drivers/gpu/drm/i915/display/intel_display_types.h | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_display_types.h b/drivers/gpu/drm/i915/display/intel_display_types.h
index e591bca15e4eb..28a8a149157e0 100644
--- a/drivers/gpu/drm/i915/display/intel_display_types.h
+++ b/drivers/gpu/drm/i915/display/intel_display_types.h
@@ -1792,6 +1792,14 @@ struct intel_psr {
const char *no_psr_reason;
};

+struct intel_dp_link_config {
+ int rate;
+ int lane_count;
+};
+
+#define INTEL_DP_LINK_CONFIG_NULL \
+ ((struct intel_dp_link_config){})
+
struct intel_dp {
i915_reg_t output_reg;
u32 DP;
--
2.49.1