2019-04-29 15:29:33 +03:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
/*
|
|
|
|
* Copyright © 2019 Intel Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INTEL_DP_MST_H__
|
|
|
|
#define __INTEL_DP_MST_H__
|
|
|
|
|
2019-12-22 17:06:49 -08:00
|
|
|
#include <linux/types.h>
|
|
|
|
|
2025-01-03 15:52:29 +02:00
|
|
|
struct drm_connector_state;
|
2023-02-06 13:48:53 +02:00
|
|
|
struct intel_atomic_state;
|
|
|
|
struct intel_crtc;
|
2019-12-22 17:06:49 -08:00
|
|
|
struct intel_crtc_state;
|
2021-10-06 13:16:18 +03:00
|
|
|
struct intel_digital_port;
|
|
|
|
struct intel_dp;
|
2023-10-24 04:09:23 +03:00
|
|
|
struct intel_link_bw_limits;
|
2019-04-29 15:29:33 +03:00
|
|
|
|
2020-06-30 21:50:54 -07:00
|
|
|
int intel_dp_mst_encoder_init(struct intel_digital_port *dig_port, int conn_id);
|
|
|
|
void intel_dp_mst_encoder_cleanup(struct intel_digital_port *dig_port);
|
2025-04-04 18:03:08 +03:00
|
|
|
int intel_dp_mst_active_streams(struct intel_dp *intel_dp);
|
2019-12-22 17:06:49 -08:00
|
|
|
bool intel_dp_mst_is_master_trans(const struct intel_crtc_state *crtc_state);
|
|
|
|
bool intel_dp_mst_is_slave_trans(const struct intel_crtc_state *crtc_state);
|
2021-10-06 13:16:18 +03:00
|
|
|
bool intel_dp_mst_source_support(struct intel_dp *intel_dp);
|
2023-02-06 13:48:53 +02:00
|
|
|
int intel_dp_mst_add_topology_state_for_crtc(struct intel_atomic_state *state,
|
|
|
|
struct intel_crtc *crtc);
|
2023-10-24 04:09:23 +03:00
|
|
|
int intel_dp_mst_atomic_check_link(struct intel_atomic_state *state,
|
|
|
|
struct intel_link_bw_limits *limits);
|
2023-10-24 04:09:22 +03:00
|
|
|
bool intel_dp_mst_crtc_needs_modeset(struct intel_atomic_state *state,
|
|
|
|
struct intel_crtc *crtc);
|
2024-07-22 19:55:02 +03:00
|
|
|
void intel_dp_mst_prepare_probe(struct intel_dp *intel_dp);
|
2024-08-23 19:29:18 +03:00
|
|
|
bool intel_dp_mst_verify_dpcd_state(struct intel_dp *intel_dp);
|
2019-04-29 15:29:33 +03:00
|
|
|
|
2025-01-03 15:52:29 +02:00
|
|
|
int intel_dp_mtp_tu_compute_config(struct intel_dp *intel_dp,
|
|
|
|
struct intel_crtc_state *crtc_state,
|
|
|
|
struct drm_connector_state *conn_state,
|
2025-01-31 14:50:07 +02:00
|
|
|
int min_bpp_x16, int max_bpp_x16, int bpp_step_x16, bool dsc);
|
2025-01-03 15:52:29 +02:00
|
|
|
|
2019-04-29 15:29:33 +03:00
|
|
|
#endif /* __INTEL_DP_MST_H__ */
|