diff options
author | Christian König <christian.koenig@amd.com> | 2013-12-18 21:07:39 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-12-24 16:12:47 -0500 |
commit | 2014b5694182b54c781b93d26ec993f8a12bca01 (patch) | |
tree | dca47e6c76970e557dcc420765e783a022f02ec5 /drivers/gpu/drm/radeon/evergreen_reg.h | |
parent | 893d6e6e122386d7aada4c71cf20c2d2794640fd (diff) | |
download | op-kernel-dev-2014b5694182b54c781b93d26ec993f8a12bca01.zip op-kernel-dev-2014b5694182b54c781b93d26ec993f8a12bca01.tar.gz |
drm/radeon: add VRAM debugfs access v3
Not very fast, but makes it possible to access even the
normally inaccessible parts of VRAM from userspace.
v2: use MM_INDEX_HI for >2GB mem access, add default_llseek
v3: set inode size in the open callback
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/evergreen_reg.h')
-rw-r--r-- | drivers/gpu/drm/radeon/evergreen_reg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen_reg.h b/drivers/gpu/drm/radeon/evergreen_reg.h index 8a4e641..a0f63ff 100644 --- a/drivers/gpu/drm/radeon/evergreen_reg.h +++ b/drivers/gpu/drm/radeon/evergreen_reg.h @@ -33,6 +33,7 @@ #define EVERGREEN_PIF_PHY0_DATA 0xc #define EVERGREEN_PIF_PHY1_INDEX 0x10 #define EVERGREEN_PIF_PHY1_DATA 0x14 +#define EVERGREEN_MM_INDEX_HI 0x18 #define EVERGREEN_VGA_MEMORY_BASE_ADDRESS 0x310 #define EVERGREEN_VGA_MEMORY_BASE_ADDRESS_HIGH 0x324 |