diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-06-28 09:28:39 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-07-01 16:08:15 -0400 |
commit | 1316b79256062f7a2e66f0833dcb9728ec748805 (patch) | |
tree | 5f4b90cfa115ec92e5ffc7806ae21140c9f4097a /drivers/gpu/drm/radeon/radeon.h | |
parent | 7ad8d0687bb5030c3328bc7229a3183ce179ab25 (diff) |
drm/radeon/dpm: add infrastructure to support debugfs info
This lays the frameworks to report realtime power level
feedback.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index 7e3fef4e6938..f51807f04f65 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h | |||
@@ -1667,6 +1667,7 @@ struct radeon_asic { | |||
1667 | u32 (*get_sclk)(struct radeon_device *rdev, bool low); | 1667 | u32 (*get_sclk)(struct radeon_device *rdev, bool low); |
1668 | u32 (*get_mclk)(struct radeon_device *rdev, bool low); | 1668 | u32 (*get_mclk)(struct radeon_device *rdev, bool low); |
1669 | void (*print_power_state)(struct radeon_device *rdev, struct radeon_ps *ps); | 1669 | void (*print_power_state)(struct radeon_device *rdev, struct radeon_ps *ps); |
1670 | void (*debugfs_print_current_performance_level)(struct radeon_device *rdev, struct seq_file *m); | ||
1670 | } dpm; | 1671 | } dpm; |
1671 | /* pageflipping */ | 1672 | /* pageflipping */ |
1672 | struct { | 1673 | struct { |
@@ -2433,6 +2434,7 @@ void radeon_ring_write(struct radeon_ring *ring, uint32_t v); | |||
2433 | #define radeon_dpm_get_sclk(rdev, l) rdev->asic->dpm.get_sclk((rdev), (l)) | 2434 | #define radeon_dpm_get_sclk(rdev, l) rdev->asic->dpm.get_sclk((rdev), (l)) |
2434 | #define radeon_dpm_get_mclk(rdev, l) rdev->asic->dpm.get_mclk((rdev), (l)) | 2435 | #define radeon_dpm_get_mclk(rdev, l) rdev->asic->dpm.get_mclk((rdev), (l)) |
2435 | #define radeon_dpm_print_power_state(rdev, ps) rdev->asic->dpm.print_power_state((rdev), (ps)) | 2436 | #define radeon_dpm_print_power_state(rdev, ps) rdev->asic->dpm.print_power_state((rdev), (ps)) |
2437 | #define radeon_dpm_debugfs_print_current_performance_level(rdev, m) rdev->asic->dpm.debugfs_print_current_performance_level((rdev), (m)) | ||
2436 | 2438 | ||
2437 | /* Common functions */ | 2439 | /* Common functions */ |
2438 | /* AGP */ | 2440 | /* AGP */ |