1 /* SPDX-License-Identifier: GPL-2.0-only
2  *
3  * Declarations for DP MST related functions which are only used in selftests
4  *
5  * Copyright © 2018 Red Hat
6  * Authors:
7  *     Lyude Paul <lyude@redhat.com>
8  */
9 
10 #ifndef _DRM_DP_MST_HELPER_INTERNAL_H_
11 #define _DRM_DP_MST_HELPER_INTERNAL_H_
12 
13 struct drm_dp_sideband_msg_req_body;
14 struct drm_dp_sideband_msg_tx;
15 struct drm_printer;
16 
17 void
18 drm_dp_encode_sideband_req(const struct drm_dp_sideband_msg_req_body *req,
19 			   struct drm_dp_sideband_msg_tx *raw);
20 int drm_dp_decode_sideband_req(const struct drm_dp_sideband_msg_tx *raw,
21 			       struct drm_dp_sideband_msg_req_body *req);
22 void
23 drm_dp_dump_sideband_msg_req_body(const struct drm_dp_sideband_msg_req_body *req,
24 				  int indent, struct drm_printer *printer);
25 
26 #endif /* !_DRM_DP_MST_HELPER_INTERNAL_H_ */
27