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 <[email protected]>
---
 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 c71edea145878..c092c81ed2eb6 100644
--- a/drivers/gpu/drm/i915/display/intel_display_types.h
+++ b/drivers/gpu/drm/i915/display/intel_display_types.h
@@ -1800,6 +1800,14 @@ struct intel_psr {
        struct ref_tracker *vblank_wakeref;
 };
 
+struct intel_dp_link_config {
+       int rate;
+       int lane_count;
+};
+
+#define INTEL_DP_LINK_CONFIG_NULL \
+       ((struct intel_dp_link_config){})
+
 struct intel_dp {
        intel_reg_t output_reg;
        u32 DP;
-- 
2.49.1

Reply via email to