aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_mode.h
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-11-24 13:32:59 -0500
committerDave Airlie <airlied@redhat.com>2009-12-07 19:22:44 -0500
commit5801ead6bd6bddf5505d6eab55f84d8ee8106cd8 (patch)
tree60cc75789c50aab78299499e05411c9140616bc2 /drivers/gpu/drm/radeon/radeon_mode.h
parentf92a8b6758bdc0f277c4f42aa7d736a205ac9ded (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.h13
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
348struct radeon_connector { 350struct 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
369extern int dp_lanes_for_mode_clock(int max_link_bw, int mode_clock); 371extern int radeon_dp_mode_valid_helper(struct radeon_connector *radeon_connector,
370extern int dp_link_clock_for_mode_clock(int max_link_bw, int mode_clock); 372 struct drm_display_mode *mode);
373extern void radeon_dp_set_link_config(struct drm_connector *connector,
374 struct drm_display_mode *mode);
375extern void dp_link_train(struct drm_encoder *encoder,
376 struct drm_connector *connector);
371extern u8 radeon_dp_getsinktype(struct radeon_connector *radeon_connector); 377extern u8 radeon_dp_getsinktype(struct radeon_connector *radeon_connector);
372extern void radeon_dp_getdpcd(struct radeon_connector *radeon_connector); 378extern void radeon_dp_getdpcd(struct radeon_connector *radeon_connector);
379extern void atombios_dig_transmitter_setup(struct drm_encoder *encoder,
380 int action, uint8_t lane_num,
381 uint8_t lane_set);
373extern int radeon_dp_i2c_aux_ch(struct i2c_adapter *adapter, int mode, 382extern 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