summaryrefslogtreecommitdiffstats
path: root/include/drm/ttm
diff options
context:
space:
mode:
authorKen Wang <Qingqing.Wang@amd.com>2016-07-27 19:12:15 +0800
committerAlex Deucher <alexander.deucher@amd.com>2016-08-08 11:33:08 -0400
commitecf6a637090c8034bc0d843c48905bfa5e2a4e0c (patch)
tree12b138ef32889b3ae3ca75ca1fe5e15d32b8b3a4 /include/drm/ttm
parent8e9fc800ec9e1a50a1fa7c38af8bf80d29dd85b4 (diff)
downloadlinux-ecf6a637090c8034bc0d843c48905bfa5e2a4e0c.tar.bz2
drm/ttm: Add interface to export kernel_zone max memory size in ttm
Signed-off-by: Ken Wang <Qingqing.Wang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/drm/ttm')
-rw-r--r--include/drm/ttm/ttm_memory.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/ttm/ttm_memory.h b/include/drm/ttm/ttm_memory.h
index 72dcbe81dd07..c4520890f267 100644
--- a/include/drm/ttm/ttm_memory.h
+++ b/include/drm/ttm/ttm_memory.h
@@ -155,4 +155,5 @@ extern int ttm_mem_global_alloc_page(struct ttm_mem_global *glob,
extern void ttm_mem_global_free_page(struct ttm_mem_global *glob,
struct page *page);
extern size_t ttm_round_pot(size_t size);
+extern uint64_t ttm_get_kernel_zone_memory_size(struct ttm_mem_global *glob);
#endif