diff options
Diffstat (limited to 'include/drm/drm_dp_mst_helper.h')
-rw-r--r-- | include/drm/drm_dp_mst_helper.h | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/include/drm/drm_dp_mst_helper.h b/include/drm/drm_dp_mst_helper.h index 24ab1787b771..fdb47051d549 100644 --- a/include/drm/drm_dp_mst_helper.h +++ b/include/drm/drm_dp_mst_helper.h | |||
@@ -44,8 +44,6 @@ struct drm_dp_vcpi { | |||
44 | /** | 44 | /** |
45 | * struct drm_dp_mst_port - MST port | 45 | * struct drm_dp_mst_port - MST port |
46 | * @kref: reference count for this port. | 46 | * @kref: reference count for this port. |
47 | * @guid_valid: for DP 1.2 devices if we have validated the GUID. | ||
48 | * @guid: guid for DP 1.2 device on this port. | ||
49 | * @port_num: port number | 47 | * @port_num: port number |
50 | * @input: if this port is an input port. | 48 | * @input: if this port is an input port. |
51 | * @mcs: message capability status - DP 1.2 spec. | 49 | * @mcs: message capability status - DP 1.2 spec. |
@@ -70,10 +68,6 @@ struct drm_dp_vcpi { | |||
70 | struct drm_dp_mst_port { | 68 | struct drm_dp_mst_port { |
71 | struct kref kref; | 69 | struct kref kref; |
72 | 70 | ||
73 | /* if dpcd 1.2 device is on this port - its GUID info */ | ||
74 | bool guid_valid; | ||
75 | u8 guid[16]; | ||
76 | |||
77 | u8 port_num; | 71 | u8 port_num; |
78 | bool input; | 72 | bool input; |
79 | bool mcs; | 73 | bool mcs; |
@@ -110,10 +104,12 @@ struct drm_dp_mst_port { | |||
110 | * @tx_slots: transmission slots for this device. | 104 | * @tx_slots: transmission slots for this device. |
111 | * @last_seqno: last sequence number used to talk to this. | 105 | * @last_seqno: last sequence number used to talk to this. |
112 | * @link_address_sent: if a link address message has been sent to this device yet. | 106 | * @link_address_sent: if a link address message has been sent to this device yet. |
107 | * @guid: guid for DP 1.2 branch device. port under this branch can be | ||
108 | * identified by port #. | ||
113 | * | 109 | * |
114 | * This structure represents an MST branch device, there is one | 110 | * This structure represents an MST branch device, there is one |
115 | * primary branch device at the root, along with any others connected | 111 | * primary branch device at the root, along with any other branches connected |
116 | * to downstream ports | 112 | * to downstream port of parent branches. |
117 | */ | 113 | */ |
118 | struct drm_dp_mst_branch { | 114 | struct drm_dp_mst_branch { |
119 | struct kref kref; | 115 | struct kref kref; |
@@ -132,6 +128,9 @@ struct drm_dp_mst_branch { | |||
132 | struct drm_dp_sideband_msg_tx *tx_slots[2]; | 128 | struct drm_dp_sideband_msg_tx *tx_slots[2]; |
133 | int last_seqno; | 129 | int last_seqno; |
134 | bool link_address_sent; | 130 | bool link_address_sent; |
131 | |||
132 | /* global unique identifier to identify branch devices */ | ||
133 | u8 guid[16]; | ||
135 | }; | 134 | }; |
136 | 135 | ||
137 | 136 | ||
@@ -406,11 +405,9 @@ struct drm_dp_payload { | |||
406 | * @conn_base_id: DRM connector ID this mgr is connected to. | 405 | * @conn_base_id: DRM connector ID this mgr is connected to. |
407 | * @down_rep_recv: msg receiver state for down replies. | 406 | * @down_rep_recv: msg receiver state for down replies. |
408 | * @up_req_recv: msg receiver state for up requests. | 407 | * @up_req_recv: msg receiver state for up requests. |
409 | * @lock: protects mst state, primary, guid, dpcd. | 408 | * @lock: protects mst state, primary, dpcd. |
410 | * @mst_state: if this manager is enabled for an MST capable port. | 409 | * @mst_state: if this manager is enabled for an MST capable port. |
411 | * @mst_primary: pointer to the primary branch device. | 410 | * @mst_primary: pointer to the primary branch device. |
412 | * @guid_valid: GUID valid for the primary branch device. | ||
413 | * @guid: GUID for primary port. | ||
414 | * @dpcd: cache of DPCD for primary port. | 411 | * @dpcd: cache of DPCD for primary port. |
415 | * @pbn_div: PBN to slots divisor. | 412 | * @pbn_div: PBN to slots divisor. |
416 | * | 413 | * |
@@ -432,13 +429,11 @@ struct drm_dp_mst_topology_mgr { | |||
432 | struct drm_dp_sideband_msg_rx up_req_recv; | 429 | struct drm_dp_sideband_msg_rx up_req_recv; |
433 | 430 | ||
434 | /* pointer to info about the initial MST device */ | 431 | /* pointer to info about the initial MST device */ |
435 | struct mutex lock; /* protects mst_state + primary + guid + dpcd */ | 432 | struct mutex lock; /* protects mst_state + primary + dpcd */ |
436 | 433 | ||
437 | bool mst_state; | 434 | bool mst_state; |
438 | struct drm_dp_mst_branch *mst_primary; | 435 | struct drm_dp_mst_branch *mst_primary; |
439 | /* primary MST device GUID */ | 436 | |
440 | bool guid_valid; | ||
441 | u8 guid[16]; | ||
442 | u8 dpcd[DP_RECEIVER_CAP_SIZE]; | 437 | u8 dpcd[DP_RECEIVER_CAP_SIZE]; |
443 | u8 sink_count; | 438 | u8 sink_count; |
444 | int pbn_div; | 439 | int pbn_div; |