summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/si_enums.h
diff options
context:
space:
mode:
authorTom St Denis <tom.stdenis@amd.com>2016-11-08 19:55:42 +0300
committerAlex Deucher <alexander.deucher@amd.com>2016-11-11 18:21:14 +0300
commit7251826971d67daf4c4e6a0d6f83a023683eb19a (patch)
treef5c27f633cd4e70ab22176dd7b0e650ce3b2f830 /drivers/gpu/drm/amd/amdgpu/si_enums.h
parentcf54d6d9f811a2776c26f149752faa4a05bd2510 (diff)
downloadlinux-7251826971d67daf4c4e6a0d6f83a023683eb19a.tar.xz
drm/amd/amdgpu: Port GMC v6 driver to new SI headers (v2)
Port the GMC v6 driver over to the new SI headers. Tested with a Tahiti SI ASIC. (v2) Fixed a couple of typos (in commented code) and moved defines to si_enums.h Signed-off-by: Tom St Denis <tom.stdenis@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/si_enums.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/si_enums.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/si_enums.h b/drivers/gpu/drm/amd/amdgpu/si_enums.h
index 63c057f1a382..3ecd36f30e2a 100644
--- a/drivers/gpu/drm/amd/amdgpu/si_enums.h
+++ b/drivers/gpu/drm/amd/amdgpu/si_enums.h
@@ -23,6 +23,14 @@
#ifndef SI_ENUMS_H
#define SI_ENUMS_H
+#define AMDGPU_NUM_OF_VMIDS 8
+#define SI_CRTC0_REGISTER_OFFSET 0
+#define SI_CRTC1_REGISTER_OFFSET 0x300
+#define SI_CRTC2_REGISTER_OFFSET 0x2600
+#define SI_CRTC3_REGISTER_OFFSET 0x2900
+#define SI_CRTC4_REGISTER_OFFSET 0x2c00
+#define SI_CRTC5_REGISTER_OFFSET 0x2f00
+
#define DMA0_REGISTER_OFFSET 0x000
#define DMA1_REGISTER_OFFSET 0x200
#define ES_AND_GS_AUTO 3