diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-11-24 13:32:59 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-07 19:22:44 -0500 |
commit | 5801ead6bd6bddf5505d6eab55f84d8ee8106cd8 (patch) | |
tree | 60cc75789c50aab78299499e05411c9140616bc2 /drivers/gpu/drm/radeon/radeon_mode.h | |
parent | f92a8b6758bdc0f277c4f42aa7d736a205ac9ded (diff) |
drm/radeon/kms: add support for DP modesetting
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_mode.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_mode.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h index b516401c151a..7d03e3971498 100644 --- a/drivers/gpu/drm/radeon/radeon_mode.h +++ b/drivers/gpu/drm/radeon/radeon_mode.h | |||
@@ -343,6 +343,8 @@ struct radeon_connector_atom_dig { | |||
343 | struct radeon_i2c_chan *dp_i2c_bus; | 343 | struct radeon_i2c_chan *dp_i2c_bus; |
344 | u8 dpcd[8]; | 344 | u8 dpcd[8]; |
345 | u8 dp_sink_type; | 345 | u8 dp_sink_type; |
346 | int dp_clock; | ||
347 | int dp_lane_count; | ||
346 | }; | 348 | }; |
347 | 349 | ||
348 | struct radeon_connector { | 350 | struct radeon_connector { |
@@ -366,10 +368,17 @@ struct radeon_framebuffer { | |||
366 | struct drm_gem_object *obj; | 368 | struct drm_gem_object *obj; |
367 | }; | 369 | }; |
368 | 370 | ||
369 | extern int dp_lanes_for_mode_clock(int max_link_bw, int mode_clock); | 371 | extern int radeon_dp_mode_valid_helper(struct radeon_connector *radeon_connector, |
370 | extern int dp_link_clock_for_mode_clock(int max_link_bw, int mode_clock); | 372 | struct drm_display_mode *mode); |
373 | extern void radeon_dp_set_link_config(struct drm_connector *connector, | ||
374 | struct drm_display_mode *mode); | ||
375 | extern void dp_link_train(struct drm_encoder *encoder, | ||
376 | struct drm_connector *connector); | ||
371 | extern u8 radeon_dp_getsinktype(struct radeon_connector *radeon_connector); | 377 | extern u8 radeon_dp_getsinktype(struct radeon_connector *radeon_connector); |
372 | extern void radeon_dp_getdpcd(struct radeon_connector *radeon_connector); | 378 | extern void radeon_dp_getdpcd(struct radeon_connector *radeon_connector); |
379 | extern void atombios_dig_transmitter_setup(struct drm_encoder *encoder, | ||
380 | int action, uint8_t lane_num, | ||
381 | uint8_t lane_set); | ||
373 | extern int radeon_dp_i2c_aux_ch(struct i2c_adapter *adapter, int mode, | 382 | extern int radeon_dp_i2c_aux_ch(struct i2c_adapter *adapter, int mode, |
374 | uint8_t write_byte, uint8_t *read_byte); | 383 | uint8_t write_byte, uint8_t *read_byte); |
375 | 384 | ||