Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Add Function declaration in dc_link

[WHY]
Housekeeping cleaning and adding declaration for
function to be called from DM layer

[HOW]
Adding public functions to dc_link.h

Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Mustapha Ghaddar <mghaddar@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Mustapha Ghaddar and committed by
Alex Deucher
0c2bfcc3 b07bb766

+27 -24
+27
drivers/gpu/drm/amd/display/dc/dc_link.h
··· 627 627 void setup_dp_hpo_stream(struct pipe_ctx *pipe_ctx, bool enable); 628 628 void dp_source_sequence_trace(struct dc_link *link, uint8_t dp_test_mode); 629 629 630 + /* 631 + * USB4 DPIA BW ALLOCATION PUBLIC FUNCTIONS 632 + */ 633 + /* 634 + * Send a request from DP-Tx requesting to allocate BW remotely after 635 + * allocating it locally. This will get processed by CM and a CB function 636 + * will be called. 637 + * 638 + * @link: pointer to the dc_link struct instance 639 + * @req_bw: The requested bw in Kbyte to allocated 640 + * 641 + * return: none 642 + */ 643 + void dc_link_set_usb4_req_bw_req(struct dc_link *link, int req_bw); 644 + 645 + /* 646 + * CB function for when the status of the Req above is complete. We will 647 + * find out the result of allocating on CM and update structs accordingly 648 + * 649 + * @link: pointer to the dc_link struct instance 650 + * @bw: Allocated or Estimated BW depending on the result 651 + * @result: Response type 652 + * 653 + * return: none 654 + */ 655 + void dc_link_get_usb4_req_bw_resp(struct dc_link *link, uint8_t bw, uint8_t result); 656 + 630 657 #endif /* DC_LINK_H_ */