summaryrefslogtreecommitdiffstats
path: root/include/drm/ttm
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-02-23 09:12:00 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-03-14 15:38:24 -0400
commit75a57669cbc881032c60615a31bfc6bfab4c813c (patch)
treee661f838d1097ca040d1f47b40c6425f4bcdde6b /include/drm/ttm
parent81f5ec025514865fb930d3a665a10a339b113da8 (diff)
drm/ttm: add ttm_sg_tt_init
This allows drivers to only allocate dma addresses, but not a page array. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Roger He <Hongbo.He@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/drm/ttm')
-rw-r--r--include/drm/ttm/ttm_tt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/ttm/ttm_tt.h b/include/drm/ttm/ttm_tt.h
index 9c78556b488e..1cf316a4257c 100644
--- a/include/drm/ttm/ttm_tt.h
+++ b/include/drm/ttm/ttm_tt.h
@@ -163,6 +163,8 @@ int ttm_tt_init(struct ttm_tt *ttm, struct ttm_bo_device *bdev,
163 unsigned long size, uint32_t page_flags); 163 unsigned long size, uint32_t page_flags);
164int ttm_dma_tt_init(struct ttm_dma_tt *ttm_dma, struct ttm_bo_device *bdev, 164int ttm_dma_tt_init(struct ttm_dma_tt *ttm_dma, struct ttm_bo_device *bdev,
165 unsigned long size, uint32_t page_flags); 165 unsigned long size, uint32_t page_flags);
166int ttm_sg_tt_init(struct ttm_dma_tt *ttm_dma, struct ttm_bo_device *bdev,
167 unsigned long size, uint32_t page_flags);
166 168
167/** 169/**
168 * ttm_tt_fini 170 * ttm_tt_fini