diff options
author | Tom St Denis <tom.stdenis@amd.com> | 2016-11-08 11:55:42 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-11-11 10:21:14 -0500 |
commit | 7251826971d67daf4c4e6a0d6f83a023683eb19a (patch) | |
tree | f5c27f633cd4e70ab22176dd7b0e650ce3b2f830 /drivers/gpu/drm/amd/amdgpu/si_enums.h | |
parent | cf54d6d9f811a2776c26f149752faa4a05bd2510 (diff) |
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.h | 8 |
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 @@ | |||
23 | #ifndef SI_ENUMS_H | 23 | #ifndef SI_ENUMS_H |
24 | #define SI_ENUMS_H | 24 | #define SI_ENUMS_H |
25 | 25 | ||
26 | #define AMDGPU_NUM_OF_VMIDS 8 | ||
27 | #define SI_CRTC0_REGISTER_OFFSET 0 | ||
28 | #define SI_CRTC1_REGISTER_OFFSET 0x300 | ||
29 | #define SI_CRTC2_REGISTER_OFFSET 0x2600 | ||
30 | #define SI_CRTC3_REGISTER_OFFSET 0x2900 | ||
31 | #define SI_CRTC4_REGISTER_OFFSET 0x2c00 | ||
32 | #define SI_CRTC5_REGISTER_OFFSET 0x2f00 | ||
33 | |||
26 | #define DMA0_REGISTER_OFFSET 0x000 | 34 | #define DMA0_REGISTER_OFFSET 0x000 |
27 | #define DMA1_REGISTER_OFFSET 0x200 | 35 | #define DMA1_REGISTER_OFFSET 0x200 |
28 | #define ES_AND_GS_AUTO 3 | 36 | #define ES_AND_GS_AUTO 3 |