diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2012-05-14 10:52:29 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-17 07:15:40 -0400 |
commit | 0783986ad7244e374dd5e86c650811bf4f01290d (patch) | |
tree | 00200dcbca1c237b149d70aeb78d63eeb3c1ef41 /drivers/gpu/drm/radeon/radeon_mode.h | |
parent | 1b9c3dd0220600391611637c2f04371dbc896e21 (diff) |
drm/radeon/hdmi: store info about all AFMT blocks
Introduce special struct radeon_afmt for this purpose.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rafał Miłecki <zajec5@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 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h index 499a5fed8b26..9583e953d30b 100644 --- a/drivers/gpu/drm/radeon/radeon_mode.h +++ b/drivers/gpu/drm/radeon/radeon_mode.h | |||
@@ -220,12 +220,20 @@ enum radeon_dvo_chip { | |||
220 | 220 | ||
221 | struct radeon_fbdev; | 221 | struct radeon_fbdev; |
222 | 222 | ||
223 | struct radeon_afmt { | ||
224 | bool enabled; | ||
225 | int offset; | ||
226 | bool last_buffer_filled_status; | ||
227 | int id; | ||
228 | }; | ||
229 | |||
223 | struct radeon_mode_info { | 230 | struct radeon_mode_info { |
224 | struct atom_context *atom_context; | 231 | struct atom_context *atom_context; |
225 | struct card_info *atom_card_info; | 232 | struct card_info *atom_card_info; |
226 | enum radeon_connector_table connector_table; | 233 | enum radeon_connector_table connector_table; |
227 | bool mode_config_initialized; | 234 | bool mode_config_initialized; |
228 | struct radeon_crtc *crtcs[6]; | 235 | struct radeon_crtc *crtcs[6]; |
236 | struct radeon_afmt *afmt[6]; | ||
229 | /* DVI-I properties */ | 237 | /* DVI-I properties */ |
230 | struct drm_property *coherent_mode_property; | 238 | struct drm_property *coherent_mode_property; |
231 | /* DAC enable load detect */ | 239 | /* DAC enable load detect */ |
@@ -364,6 +372,7 @@ struct radeon_encoder_atom_dig { | |||
364 | int dpms_mode; | 372 | int dpms_mode; |
365 | uint8_t backlight_level; | 373 | uint8_t backlight_level; |
366 | int panel_mode; | 374 | int panel_mode; |
375 | struct radeon_afmt *afmt; | ||
367 | }; | 376 | }; |
368 | 377 | ||
369 | struct radeon_encoder_atom_dac { | 378 | struct radeon_encoder_atom_dac { |