diff options
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/ttm/ttm_bo_api.h | 5 | ||||
-rw-r--r-- | include/drm/ttm/ttm_bo_driver.h | 24 |
2 files changed, 0 insertions, 29 deletions
diff --git a/include/drm/ttm/ttm_bo_api.h b/include/drm/ttm/ttm_bo_api.h index 42e346985186..8d95a42cf21e 100644 --- a/include/drm/ttm/ttm_bo_api.h +++ b/include/drm/ttm/ttm_bo_api.h | |||
@@ -122,17 +122,12 @@ struct ttm_mem_reg { | |||
122 | * be mmapped by user space. Each of these bos occupy a slot in the | 122 | * be mmapped by user space. Each of these bos occupy a slot in the |
123 | * device address space, that can be used for normal vm operations. | 123 | * device address space, that can be used for normal vm operations. |
124 | * | 124 | * |
125 | * @ttm_bo_type_user: These are user-space memory areas that are made | ||
126 | * available to the GPU by mapping the buffer pages into the GPU aperture | ||
127 | * space. These buffers cannot be mmaped from the device address space. | ||
128 | * | ||
129 | * @ttm_bo_type_kernel: These buffers are like ttm_bo_type_device buffers, | 125 | * @ttm_bo_type_kernel: These buffers are like ttm_bo_type_device buffers, |
130 | * but they cannot be accessed from user-space. For kernel-only use. | 126 | * but they cannot be accessed from user-space. For kernel-only use. |
131 | */ | 127 | */ |
132 | 128 | ||
133 | enum ttm_bo_type { | 129 | enum ttm_bo_type { |
134 | ttm_bo_type_device, | 130 | ttm_bo_type_device, |
135 | ttm_bo_type_user, | ||
136 | ttm_bo_type_kernel | 131 | ttm_bo_type_kernel |
137 | }; | 132 | }; |
138 | 133 | ||
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index 94eb1434316e..37527d671f80 100644 --- a/include/drm/ttm/ttm_bo_driver.h +++ b/include/drm/ttm/ttm_bo_driver.h | |||
@@ -118,8 +118,6 @@ struct ttm_backend { | |||
118 | struct ttm_backend_func *func; | 118 | struct ttm_backend_func *func; |
119 | }; | 119 | }; |
120 | 120 | ||
121 | #define TTM_PAGE_FLAG_USER (1 << 1) | ||
122 | #define TTM_PAGE_FLAG_USER_DIRTY (1 << 2) | ||
123 | #define TTM_PAGE_FLAG_WRITE (1 << 3) | 121 | #define TTM_PAGE_FLAG_WRITE (1 << 3) |
124 | #define TTM_PAGE_FLAG_SWAPPED (1 << 4) | 122 | #define TTM_PAGE_FLAG_SWAPPED (1 << 4) |
125 | #define TTM_PAGE_FLAG_PERSISTENT_SWAP (1 << 5) | 123 | #define TTM_PAGE_FLAG_PERSISTENT_SWAP (1 << 5) |
@@ -146,8 +144,6 @@ enum ttm_caching_state { | |||
146 | * @num_pages: Number of pages in the page array. | 144 | * @num_pages: Number of pages in the page array. |
147 | * @bdev: Pointer to the current struct ttm_bo_device. | 145 | * @bdev: Pointer to the current struct ttm_bo_device. |
148 | * @be: Pointer to the ttm backend. | 146 | * @be: Pointer to the ttm backend. |
149 | * @tsk: The task for user ttm. | ||
150 | * @start: virtual address for user ttm. | ||
151 | * @swap_storage: Pointer to shmem struct file for swap storage. | 147 | * @swap_storage: Pointer to shmem struct file for swap storage. |
152 | * @caching_state: The current caching state of the pages. | 148 | * @caching_state: The current caching state of the pages. |
153 | * @state: The current binding state of the pages. | 149 | * @state: The current binding state of the pages. |
@@ -167,8 +163,6 @@ struct ttm_tt { | |||
167 | unsigned long num_pages; | 163 | unsigned long num_pages; |
168 | struct ttm_bo_global *glob; | 164 | struct ttm_bo_global *glob; |
169 | struct ttm_backend *be; | 165 | struct ttm_backend *be; |
170 | struct task_struct *tsk; | ||
171 | unsigned long start; | ||
172 | struct file *swap_storage; | 166 | struct file *swap_storage; |
173 | enum ttm_caching_state caching_state; | 167 | enum ttm_caching_state caching_state; |
174 | enum { | 168 | enum { |
@@ -618,24 +612,6 @@ extern struct ttm_tt *ttm_tt_create(struct ttm_bo_device *bdev, | |||
618 | struct page *dummy_read_page); | 612 | struct page *dummy_read_page); |
619 | 613 | ||
620 | /** | 614 | /** |
621 | * ttm_tt_set_user: | ||
622 | * | ||
623 | * @ttm: The struct ttm_tt to populate. | ||
624 | * @tsk: A struct task_struct for which @start is a valid user-space address. | ||
625 | * @start: A valid user-space address. | ||
626 | * @num_pages: Size in pages of the user memory area. | ||
627 | * | ||
628 | * Populate a struct ttm_tt with a user-space memory area after first pinning | ||
629 | * the pages backing it. | ||
630 | * Returns: | ||
631 | * !0: Error. | ||
632 | */ | ||
633 | |||
634 | extern int ttm_tt_set_user(struct ttm_tt *ttm, | ||
635 | struct task_struct *tsk, | ||
636 | unsigned long start, unsigned long num_pages); | ||
637 | |||
638 | /** | ||
639 | * ttm_ttm_bind: | 615 | * ttm_ttm_bind: |
640 | * | 616 | * |
641 | * @ttm: The struct ttm_tt containing backing pages. | 617 | * @ttm: The struct ttm_tt containing backing pages. |