summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-02-23 15:12:00 +0100
committerAlex Deucher <alexander.deucher@amd.com>2018-03-14 20:38:24 +0100
commit75a57669cbc881032c60615a31bfc6bfab4c813c (patch)
treee661f838d1097ca040d1f47b40c6425f4bcdde6b /include
parentdrm/ttm: move ttm_tt defines into ttm_tt.h (diff)
downloadlinux-75a57669cbc881032c60615a31bfc6bfab4c813c.tar.xz
linux-75a57669cbc881032c60615a31bfc6bfab4c813c.zip
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')
-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,
unsigned long size, uint32_t page_flags);
int ttm_dma_tt_init(struct ttm_dma_tt *ttm_dma, struct ttm_bo_device *bdev,
unsigned long size, uint32_t page_flags);
+int ttm_sg_tt_init(struct ttm_dma_tt *ttm_dma, struct ttm_bo_device *bdev,
+ unsigned long size, uint32_t page_flags);
/**
* ttm_tt_fini