aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/ttm/ttm_page_alloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/drm/ttm/ttm_page_alloc.h')
-rw-r--r--include/drm/ttm/ttm_page_alloc.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/drm/ttm/ttm_page_alloc.h b/include/drm/ttm/ttm_page_alloc.h
index 116821448c38..ccb6b7a240e2 100644
--- a/include/drm/ttm/ttm_page_alloc.h
+++ b/include/drm/ttm/ttm_page_alloc.h
@@ -36,11 +36,15 @@
36 * @flags: ttm flags for page allocation. 36 * @flags: ttm flags for page allocation.
37 * @cstate: ttm caching state for the page. 37 * @cstate: ttm caching state for the page.
38 * @count: number of pages to allocate. 38 * @count: number of pages to allocate.
39 * @dma_address: The DMA (bus) address of pages (if TTM_PAGE_FLAG_DMA32 set).
40 * @dev: struct device for appropiate DMA accounting.
39 */ 41 */
40int ttm_get_pages(struct list_head *pages, 42int ttm_get_pages(struct list_head *pages,
41 int flags, 43 int flags,
42 enum ttm_caching_state cstate, 44 enum ttm_caching_state cstate,
43 unsigned count); 45 unsigned count,
46 dma_addr_t *dma_address,
47 struct device *dev);
44/** 48/**
45 * Put linked list of pages to pool. 49 * Put linked list of pages to pool.
46 * 50 *
@@ -49,11 +53,15 @@ int ttm_get_pages(struct list_head *pages,
49 * count. 53 * count.
50 * @flags: ttm flags for page allocation. 54 * @flags: ttm flags for page allocation.
51 * @cstate: ttm caching state. 55 * @cstate: ttm caching state.
56 * @dma_address: The DMA (bus) address of pages (if TTM_PAGE_FLAG_DMA32 set).
57 * @dev: struct device for appropiate DMA accounting.
52 */ 58 */
53void ttm_put_pages(struct list_head *pages, 59void ttm_put_pages(struct list_head *pages,
54 unsigned page_count, 60 unsigned page_count,
55 int flags, 61 int flags,
56 enum ttm_caching_state cstate); 62 enum ttm_caching_state cstate,
63 dma_addr_t *dma_address,
64 struct device *dev);
57/** 65/**
58 * Initialize pool allocator. 66 * Initialize pool allocator.
59 */ 67 */