diff options
Diffstat (limited to 'include/drm/ttm/ttm_bo_driver.h')
-rw-r--r-- | include/drm/ttm/ttm_bo_driver.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index 9dc32f70b9a2..e8cd6d20aed2 100644 --- a/include/drm/ttm/ttm_bo_driver.h +++ b/include/drm/ttm/ttm_bo_driver.h | |||
@@ -122,6 +122,7 @@ struct ttm_backend { | |||
122 | #define TTM_PAGE_FLAG_SWAPPED (1 << 4) | 122 | #define TTM_PAGE_FLAG_SWAPPED (1 << 4) |
123 | #define TTM_PAGE_FLAG_PERSISTANT_SWAP (1 << 5) | 123 | #define TTM_PAGE_FLAG_PERSISTANT_SWAP (1 << 5) |
124 | #define TTM_PAGE_FLAG_ZERO_ALLOC (1 << 6) | 124 | #define TTM_PAGE_FLAG_ZERO_ALLOC (1 << 6) |
125 | #define TTM_PAGE_FLAG_DMA32 (1 << 7) | ||
125 | 126 | ||
126 | enum ttm_caching_state { | 127 | enum ttm_caching_state { |
127 | tt_uncached, | 128 | tt_uncached, |
@@ -354,6 +355,14 @@ struct ttm_bo_driver { | |||
354 | int (*sync_obj_flush) (void *sync_obj, void *sync_arg); | 355 | int (*sync_obj_flush) (void *sync_obj, void *sync_arg); |
355 | void (*sync_obj_unref) (void **sync_obj); | 356 | void (*sync_obj_unref) (void **sync_obj); |
356 | void *(*sync_obj_ref) (void *sync_obj); | 357 | void *(*sync_obj_ref) (void *sync_obj); |
358 | |||
359 | /* hook to notify driver about a driver move so it | ||
360 | * can do tiling things */ | ||
361 | void (*move_notify)(struct ttm_buffer_object *bo, | ||
362 | struct ttm_mem_reg *new_mem); | ||
363 | /* notify the driver we are taking a fault on this BO | ||
364 | * and have reserved it */ | ||
365 | void (*fault_reserve_notify)(struct ttm_buffer_object *bo); | ||
357 | }; | 366 | }; |
358 | 367 | ||
359 | /** | 368 | /** |
@@ -468,6 +477,8 @@ struct ttm_bo_device { | |||
468 | */ | 477 | */ |
469 | 478 | ||
470 | struct delayed_work wq; | 479 | struct delayed_work wq; |
480 | |||
481 | bool need_dma32; | ||
471 | }; | 482 | }; |
472 | 483 | ||
473 | /** | 484 | /** |
@@ -690,7 +701,14 @@ extern int ttm_bo_device_release(struct ttm_bo_device *bdev); | |||
690 | extern int ttm_bo_device_init(struct ttm_bo_device *bdev, | 701 | extern int ttm_bo_device_init(struct ttm_bo_device *bdev, |
691 | struct ttm_bo_global *glob, | 702 | struct ttm_bo_global *glob, |
692 | struct ttm_bo_driver *driver, | 703 | struct ttm_bo_driver *driver, |
693 | uint64_t file_page_offset); | 704 | uint64_t file_page_offset, bool need_dma32); |
705 | |||
706 | /** | ||
707 | * ttm_bo_unmap_virtual | ||
708 | * | ||
709 | * @bo: tear down the virtual mappings for this BO | ||
710 | */ | ||
711 | extern void ttm_bo_unmap_virtual(struct ttm_buffer_object *bo); | ||
694 | 712 | ||
695 | /** | 713 | /** |
696 | * ttm_bo_reserve: | 714 | * ttm_bo_reserve: |