diff options
author | Mustapha Ghaddar <mghaddar@amd.com> | 2023-01-18 11:46:37 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-01-31 14:03:16 -0500 |
commit | 0c2bfcc338ebd920cb0f4ddcfe6ad8f07e0064b0 (patch) | |
tree | 250b95fb8cffded8349ec32709563c3042aa18a6 /drivers/gpu/drm/amd/display/dc/dc_link.h | |
parent | b07bb766b6d54fb280ff257e5a6d1c3b418832f9 (diff) | |
download | linux-0c2bfcc338ebd920cb0f4ddcfe6ad8f07e0064b0.tar.gz linux-0c2bfcc338ebd920cb0f4ddcfe6ad8f07e0064b0.tar.bz2 linux-0c2bfcc338ebd920cb0f4ddcfe6ad8f07e0064b0.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_link.h')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dc_link.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_link.h b/drivers/gpu/drm/amd/display/dc/dc_link.h index 1927eacbfa71..85b57848f5cb 100644 --- a/drivers/gpu/drm/amd/display/dc/dc_link.h +++ b/drivers/gpu/drm/amd/display/dc/dc_link.h @@ -627,4 +627,31 @@ struct fixed31_32 calculate_sst_avg_time_slots_per_mtp( void setup_dp_hpo_stream(struct pipe_ctx *pipe_ctx, bool enable); void dp_source_sequence_trace(struct dc_link *link, uint8_t dp_test_mode); +/* + * USB4 DPIA BW ALLOCATION PUBLIC FUNCTIONS + */ +/* + * Send a request from DP-Tx requesting to allocate BW remotely after + * allocating it locally. This will get processed by CM and a CB function + * will be called. + * + * @link: pointer to the dc_link struct instance + * @req_bw: The requested bw in Kbyte to allocated + * + * return: none + */ +void dc_link_set_usb4_req_bw_req(struct dc_link *link, int req_bw); + +/* + * CB function for when the status of the Req above is complete. We will + * find out the result of allocating on CM and update structs accordingly + * + * @link: pointer to the dc_link struct instance + * @bw: Allocated or Estimated BW depending on the result + * @result: Response type + * + * return: none + */ +void dc_link_get_usb4_req_bw_resp(struct dc_link *link, uint8_t bw, uint8_t result); + #endif /* DC_LINK_H_ */ |