diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2012-11-06 16:49:51 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-11-20 01:06:19 -0500 |
commit | 0b91c4a1cd7cc368763de2fe25b8ea64ea803c08 (patch) | |
tree | c8b2431490b76d516487ebd8ef83afb893ded476 /include | |
parent | ef8cf3a1c523afa499d15856e7db3844ad59d1fb (diff) |
drm/ttm: remove ttm_buffer_object->buffer_start
All drivers set it to 0 and nothing uses it.
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/drm/ttm/ttm_bo_api.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/drm/ttm/ttm_bo_api.h b/include/drm/ttm/ttm_bo_api.h index 36e8408e00fa..a554c2e22d56 100644 --- a/include/drm/ttm/ttm_bo_api.h +++ b/include/drm/ttm/ttm_bo_api.h | |||
@@ -141,8 +141,6 @@ struct ttm_tt; | |||
141 | * struct ttm_buffer_object | 141 | * struct ttm_buffer_object |
142 | * | 142 | * |
143 | * @bdev: Pointer to the buffer object device structure. | 143 | * @bdev: Pointer to the buffer object device structure. |
144 | * @buffer_start: The virtual user-space start address of ttm_bo_type_user | ||
145 | * buffers. | ||
146 | * @type: The bo type. | 144 | * @type: The bo type. |
147 | * @destroy: Destruction function. If NULL, kfree is used. | 145 | * @destroy: Destruction function. If NULL, kfree is used. |
148 | * @num_pages: Actual number of pages. | 146 | * @num_pages: Actual number of pages. |
@@ -200,7 +198,6 @@ struct ttm_buffer_object { | |||
200 | 198 | ||
201 | struct ttm_bo_global *glob; | 199 | struct ttm_bo_global *glob; |
202 | struct ttm_bo_device *bdev; | 200 | struct ttm_bo_device *bdev; |
203 | unsigned long buffer_start; | ||
204 | enum ttm_bo_type type; | 201 | enum ttm_bo_type type; |
205 | void (*destroy) (struct ttm_buffer_object *); | 202 | void (*destroy) (struct ttm_buffer_object *); |
206 | unsigned long num_pages; | 203 | unsigned long num_pages; |
@@ -472,8 +469,6 @@ size_t ttm_bo_dma_acc_size(struct ttm_bo_device *bdev, | |||
472 | * @type: Requested type of buffer object. | 469 | * @type: Requested type of buffer object. |
473 | * @flags: Initial placement flags. | 470 | * @flags: Initial placement flags. |
474 | * @page_alignment: Data alignment in pages. | 471 | * @page_alignment: Data alignment in pages. |
475 | * @buffer_start: Virtual address of user space data backing a | ||
476 | * user buffer object. | ||
477 | * @interruptible: If needing to sleep to wait for GPU resources, | 472 | * @interruptible: If needing to sleep to wait for GPU resources, |
478 | * sleep interruptible. | 473 | * sleep interruptible. |
479 | * @persistent_swap_storage: Usually the swap storage is deleted for buffers | 474 | * @persistent_swap_storage: Usually the swap storage is deleted for buffers |
@@ -505,7 +500,6 @@ extern int ttm_bo_init(struct ttm_bo_device *bdev, | |||
505 | enum ttm_bo_type type, | 500 | enum ttm_bo_type type, |
506 | struct ttm_placement *placement, | 501 | struct ttm_placement *placement, |
507 | uint32_t page_alignment, | 502 | uint32_t page_alignment, |
508 | unsigned long buffer_start, | ||
509 | bool interrubtible, | 503 | bool interrubtible, |
510 | struct file *persistent_swap_storage, | 504 | struct file *persistent_swap_storage, |
511 | size_t acc_size, | 505 | size_t acc_size, |
@@ -521,8 +515,6 @@ extern int ttm_bo_init(struct ttm_bo_device *bdev, | |||
521 | * @type: Requested type of buffer object. | 515 | * @type: Requested type of buffer object. |
522 | * @flags: Initial placement flags. | 516 | * @flags: Initial placement flags. |
523 | * @page_alignment: Data alignment in pages. | 517 | * @page_alignment: Data alignment in pages. |
524 | * @buffer_start: Virtual address of user space data backing a | ||
525 | * user buffer object. | ||
526 | * @interruptible: If needing to sleep while waiting for GPU resources, | 518 | * @interruptible: If needing to sleep while waiting for GPU resources, |
527 | * sleep interruptible. | 519 | * sleep interruptible. |
528 | * @persistent_swap_storage: Usually the swap storage is deleted for buffers | 520 | * @persistent_swap_storage: Usually the swap storage is deleted for buffers |
@@ -545,7 +537,6 @@ extern int ttm_bo_create(struct ttm_bo_device *bdev, | |||
545 | enum ttm_bo_type type, | 537 | enum ttm_bo_type type, |
546 | struct ttm_placement *placement, | 538 | struct ttm_placement *placement, |
547 | uint32_t page_alignment, | 539 | uint32_t page_alignment, |
548 | unsigned long buffer_start, | ||
549 | bool interruptible, | 540 | bool interruptible, |
550 | struct file *persistent_swap_storage, | 541 | struct file *persistent_swap_storage, |
551 | struct ttm_buffer_object **p_bo); | 542 | struct ttm_buffer_object **p_bo); |