diff options
author | Dave Airlie <airlied@redhat.com> | 2015-02-23 18:23:55 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-03-19 12:26:45 -0400 |
commit | 87f5942d1f7bc320a0ec70ac4a8a3396024c7091 (patch) | |
tree | 2ce292b4c6afea3ac0c48af3bcf734660f6ff42f /drivers/gpu/drm/drm_dp_mst_topology.c | |
parent | 875711f0e217b00cba1a851eee01c4e33041a91c (diff) |
drm/dp_mst: add a function to retrieve vcpi slots
radeon requires this to get the slots for later filling
out a table on every transition.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/drm_dp_mst_topology.c')
-rw-r--r-- | drivers/gpu/drm/drm_dp_mst_topology.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c index 9a5b68717ec8..0d15e6e30732 100644 --- a/drivers/gpu/drm/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/drm_dp_mst_topology.c | |||
@@ -2319,6 +2319,19 @@ out: | |||
2319 | } | 2319 | } |
2320 | EXPORT_SYMBOL(drm_dp_mst_allocate_vcpi); | 2320 | EXPORT_SYMBOL(drm_dp_mst_allocate_vcpi); |
2321 | 2321 | ||
2322 | int drm_dp_mst_get_vcpi_slots(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port) | ||
2323 | { | ||
2324 | int slots = 0; | ||
2325 | port = drm_dp_get_validated_port_ref(mgr, port); | ||
2326 | if (!port) | ||
2327 | return slots; | ||
2328 | |||
2329 | slots = port->vcpi.num_slots; | ||
2330 | drm_dp_put_port(port); | ||
2331 | return slots; | ||
2332 | } | ||
2333 | EXPORT_SYMBOL(drm_dp_mst_get_vcpi_slots); | ||
2334 | |||
2322 | /** | 2335 | /** |
2323 | * drm_dp_mst_reset_vcpi_slots() - Reset number of slots to 0 for VCPI | 2336 | * drm_dp_mst_reset_vcpi_slots() - Reset number of slots to 0 for VCPI |
2324 | * @mgr: manager for this port | 2337 | * @mgr: manager for this port |