diff options
Diffstat (limited to 'include/drm/ttm/ttm_page_alloc.h')
-rw-r--r-- | include/drm/ttm/ttm_page_alloc.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/drm/ttm/ttm_page_alloc.h b/include/drm/ttm/ttm_page_alloc.h index 593811362a91..4d9b019d253c 100644 --- a/include/drm/ttm/ttm_page_alloc.h +++ b/include/drm/ttm/ttm_page_alloc.h | |||
@@ -47,7 +47,7 @@ void ttm_page_alloc_fini(void); | |||
47 | * | 47 | * |
48 | * Add backing pages to all of @ttm | 48 | * Add backing pages to all of @ttm |
49 | */ | 49 | */ |
50 | int ttm_pool_populate(struct ttm_tt *ttm); | 50 | int ttm_pool_populate(struct ttm_tt *ttm, struct ttm_operation_ctx *ctx); |
51 | 51 | ||
52 | /** | 52 | /** |
53 | * ttm_pool_unpopulate: | 53 | * ttm_pool_unpopulate: |
@@ -61,7 +61,8 @@ void ttm_pool_unpopulate(struct ttm_tt *ttm); | |||
61 | /** | 61 | /** |
62 | * Populates and DMA maps pages to fullfil a ttm_dma_populate() request | 62 | * Populates and DMA maps pages to fullfil a ttm_dma_populate() request |
63 | */ | 63 | */ |
64 | int ttm_populate_and_map_pages(struct device *dev, struct ttm_dma_tt *tt); | 64 | int ttm_populate_and_map_pages(struct device *dev, struct ttm_dma_tt *tt, |
65 | struct ttm_operation_ctx *ctx); | ||
65 | 66 | ||
66 | /** | 67 | /** |
67 | * Unpopulates and DMA unmaps pages as part of a | 68 | * Unpopulates and DMA unmaps pages as part of a |
@@ -89,7 +90,8 @@ void ttm_dma_page_alloc_fini(void); | |||
89 | */ | 90 | */ |
90 | int ttm_dma_page_alloc_debugfs(struct seq_file *m, void *data); | 91 | int ttm_dma_page_alloc_debugfs(struct seq_file *m, void *data); |
91 | 92 | ||
92 | int ttm_dma_populate(struct ttm_dma_tt *ttm_dma, struct device *dev); | 93 | int ttm_dma_populate(struct ttm_dma_tt *ttm_dma, struct device *dev, |
94 | struct ttm_operation_ctx *ctx); | ||
93 | void ttm_dma_unpopulate(struct ttm_dma_tt *ttm_dma, struct device *dev); | 95 | void ttm_dma_unpopulate(struct ttm_dma_tt *ttm_dma, struct device *dev); |
94 | 96 | ||
95 | #else | 97 | #else |
@@ -106,7 +108,8 @@ static inline int ttm_dma_page_alloc_debugfs(struct seq_file *m, void *data) | |||
106 | return 0; | 108 | return 0; |
107 | } | 109 | } |
108 | static inline int ttm_dma_populate(struct ttm_dma_tt *ttm_dma, | 110 | static inline int ttm_dma_populate(struct ttm_dma_tt *ttm_dma, |
109 | struct device *dev) | 111 | struct device *dev, |
112 | struct ttm_operation_ctx *ctx) | ||
110 | { | 113 | { |
111 | return -ENOMEM; | 114 | return -ENOMEM; |
112 | } | 115 | } |