diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-03-18 17:03:01 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-06-27 19:16:33 -0400 |
commit | 32ce4652dc9074385e00f3a5e6fa995e612aa113 (patch) | |
tree | 822e0c3f72c16b65704aa95752349a3d33b315b2 /drivers/gpu/drm/radeon/radeon.h | |
parent | f8f84ac5d48c2377131a3c6b8c14e3bdcbf9349e (diff) |
drm/radeon/dpm: add an enum for pcie gen selection
This makes it easier the understand what the code is
doing.
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 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index 4ea447d52b62..fbf9e1359d19 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h @@ -1298,6 +1298,13 @@ struct radeon_dpm_fan { bool ucode_fan_control; }; +enum radeon_pcie_gen { + RADEON_PCIE_GEN1 = 0, + RADEON_PCIE_GEN2 = 1, + RADEON_PCIE_GEN3 = 2, + RADEON_PCIE_GEN_INVALID = 0xffff +}; + struct radeon_dpm { struct radeon_ps *ps; /* number of valid power states */ |