diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-12-23 22:28:05 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-02-09 02:32:29 +0300 |
commit | 516d0e46c80d2d20391f4145c2c5e3915253b8bf (patch) | |
tree | cb0ada4d61e4c78bcdc3ce9a97a6b7ad6d79b8f1 /drivers/gpu/drm/radeon/radeon.h | |
parent | 0ec0e74f784ca08eab0354ab1dada46924c39b73 (diff) | |
download | linux-516d0e46c80d2d20391f4145c2c5e3915253b8bf.tar.xz |
drm/radeon/kms: add code to select power state
not hooked up yet.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index 53468680de70..ece84fde76a6 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h @@ -601,6 +601,13 @@ enum radeon_pm_state_type { POWER_STATE_TYPE_PERFORMANCE, }; +enum radeon_pm_clock_mode_type { + POWER_MODE_TYPE_DEFAULT, + POWER_MODE_TYPE_LOW, + POWER_MODE_TYPE_MID, + POWER_MODE_TYPE_HIGH, +}; + struct radeon_voltage { enum radeon_voltage_type type; /* gpio voltage */ @@ -641,6 +648,7 @@ struct radeon_power_state { int num_clock_modes; /* currently selected clock mode */ struct radeon_pm_clock_info *current_clock_mode; + struct radeon_pm_clock_info *requested_clock_mode; struct radeon_pm_clock_info *default_clock_mode; /* non clock info about this state */ struct radeon_pm_non_clock_info non_clock_info; @@ -678,6 +686,7 @@ struct radeon_pm { /* number of valid power states */ int num_power_states; struct radeon_power_state *current_power_state; + struct radeon_power_state *requested_power_state; struct radeon_power_state *default_power_state; }; |