Commit 2b230ea3 authored by Zeyu Fan's avatar Zeyu Fan Committed by Alex Deucher

drm/amd/display: Add query_ddc_data function

Signed-off-by: default avatarZeyu Fan <Zeyu.Fan@amd.com>
Reviewed-by: default avatarCharlene Liu <Charlene.Liu@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 70063a59
......@@ -1725,6 +1725,31 @@ bool dc_read_dpcd(
return r == DDC_RESULT_SUCESSFULL;
}
bool dc_query_ddc_data(
struct dc *dc,
uint32_t link_index,
uint32_t address,
uint8_t *write_buf,
uint32_t write_size,
uint8_t *read_buf,
uint32_t read_size) {
struct core_dc *core_dc = DC_TO_CORE(dc);
struct core_link *link = core_dc->links[link_index];
bool result = dal_ddc_service_query_ddc_data(
link->ddc,
address,
write_buf,
write_size,
read_buf,
read_size);
return result;
}
bool dc_write_dpcd(
struct dc *dc,
uint32_t link_index,
......
......@@ -720,7 +720,16 @@ bool dc_write_dpcd(
uint32_t link_index,
uint32_t address,
const uint8_t *data,
uint32_t size);
uint32_t size);
bool dc_query_ddc_data(
struct dc *dc,
uint32_t link_index,
uint32_t address,
uint8_t *write_buf,
uint32_t write_size,
uint8_t *read_buf,
uint32_t read_size);
bool dc_submit_i2c(
struct dc *dc,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment