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.h33
1 files changed, 2 insertions, 31 deletions
diff --git a/include/drm/ttm/ttm_page_alloc.h b/include/drm/ttm/ttm_page_alloc.h
index 1e1337e81f31..5fe27400d176 100644
--- a/include/drm/ttm/ttm_page_alloc.h
+++ b/include/drm/ttm/ttm_page_alloc.h
@@ -30,35 +30,6 @@
30#include "ttm_memory.h" 30#include "ttm_memory.h"
31 31
32/** 32/**
33 * Get count number of pages from pool to pages list.
34 *
35 * @pages: head of empty linked list where pages are filled.
36 * @flags: ttm flags for page allocation.
37 * @cstate: ttm caching state for the page.
38 * @count: number of pages to allocate.
39 * @dma_address: The DMA (bus) address of pages (if TTM_PAGE_FLAG_DMA32 set).
40 */
41int ttm_get_pages(struct page **pages,
42 int flags,
43 enum ttm_caching_state cstate,
44 unsigned npages,
45 dma_addr_t *dma_address);
46/**
47 * Put linked list of pages to pool.
48 *
49 * @pages: list of pages to free.
50 * @page_count: number of pages in the list. Zero can be passed for unknown
51 * count.
52 * @flags: ttm flags for page allocation.
53 * @cstate: ttm caching state.
54 * @dma_address: The DMA (bus) address of pages (if TTM_PAGE_FLAG_DMA32 set).
55 */
56void ttm_put_pages(struct page **pages,
57 unsigned npages,
58 int flags,
59 enum ttm_caching_state cstate,
60 dma_addr_t *dma_address);
61/**
62 * Initialize pool allocator. 33 * Initialize pool allocator.
63 */ 34 */
64int ttm_page_alloc_init(struct ttm_mem_global *glob, unsigned max_pages); 35int ttm_page_alloc_init(struct ttm_mem_global *glob, unsigned max_pages);
@@ -107,8 +78,8 @@ void ttm_dma_page_alloc_fini(void);
107 */ 78 */
108extern int ttm_dma_page_alloc_debugfs(struct seq_file *m, void *data); 79extern int ttm_dma_page_alloc_debugfs(struct seq_file *m, void *data);
109 80
110int ttm_dma_populate(struct ttm_tt *ttm, struct device *dev); 81extern int ttm_dma_populate(struct ttm_dma_tt *ttm_dma, struct device *dev);
111extern void ttm_dma_unpopulate(struct ttm_tt *ttm, struct device *dev); 82extern void ttm_dma_unpopulate(struct ttm_dma_tt *ttm_dma, struct device *dev);
112 83
113#else 84#else
114static inline int ttm_dma_page_alloc_init(struct ttm_mem_global *glob, 85static inline int ttm_dma_page_alloc_init(struct ttm_mem_global *glob,