summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-02-22 08:54:57 +0100
committerAlex Deucher <alexander.deucher@amd.com>2018-02-26 23:09:46 -0500
commit97b7e1b8b55d5696093b4ebddb9dad63813bdcf2 (patch)
tree005fcbda4ba1d7ba48be99d1e34d2a45847a9e05 /include/drm
parentec3fe391bdb321b1629cfb0ddbb9fcc114b579bc (diff)
downloadlinux-97b7e1b8b55d5696093b4ebddb9dad63813bdcf2.tar.bz2
drm/ttm: move ttm_tt_create into ttm_tt.c v2
Rename ttm_bo_add_ttm to ttm_tt_create and move it into ttm_tt.c. v2: separate the cleanup. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Roger He <Hongbo.He@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/ttm/ttm_bo_driver.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h
index b338dd0ea038..4312b5326f0b 100644
--- a/include/drm/ttm/ttm_bo_driver.h
+++ b/include/drm/ttm/ttm_bo_driver.h
@@ -611,6 +611,17 @@ ttm_flag_masked(uint32_t *old, uint32_t new, uint32_t mask)
}
/**
+ * ttm_tt_create
+ *
+ * @bo: pointer to a struct ttm_buffer_object
+ * @zero_alloc: true if allocated pages needs to be zeroed
+ *
+ * Make sure we have a TTM structure allocated for the given BO.
+ * No pages are actually allocated.
+ */
+int ttm_tt_create(struct ttm_buffer_object *bo, bool zero_alloc);
+
+/**
* ttm_tt_init
*
* @ttm: The struct ttm_tt.