summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/radeon.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-03-19 01:03:01 +0400
committerAlex Deucher <alexander.deucher@amd.com>2013-06-28 03:16:33 +0400
commit32ce4652dc9074385e00f3a5e6fa995e612aa113 (patch)
tree822e0c3f72c16b65704aa95752349a3d33b315b2 /drivers/gpu/drm/radeon/radeon.h
parentf8f84ac5d48c2377131a3c6b8c14e3bdcbf9349e (diff)
downloadlinux-32ce4652dc9074385e00f3a5e6fa995e612aa113.tar.xz
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.h7
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 */