aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2013-12-18 21:07:39 +0100
committerAlex Deucher <alexander.deucher@amd.com>2013-12-24 16:12:47 -0500
commit2014b5694182b54c781b93d26ec993f8a12bca01 (patch)
treedca47e6c76970e557dcc420765e783a022f02ec5 /drivers/gpu/drm/radeon/radeon.h
parentdrm/radeon: cleanup radeon_ttm debugfs handling (diff)
downloadlinux-dev-2014b5694182b54c781b93d26ec993f8a12bca01.tar.xz
linux-dev-2014b5694182b54c781b93d26ec993f8a12bca01.zip
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/radeon.h')
-rw-r--r--drivers/gpu/drm/radeon/radeon.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index b1f990d0eaa1..49f210c14796 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -413,6 +413,10 @@ struct radeon_mman {
struct ttm_bo_device bdev;
bool mem_global_referenced;
bool initialized;
+
+#if defined(CONFIG_DEBUG_FS)
+ struct dentry *vram;
+#endif
};
/* bo virtual address in a specific vm */