aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/ttm
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-08-19 23:38:04 -0400
committerDave Airlie <airlied@redhat.com>2009-08-19 23:38:04 -0400
commit51c8b4071d84d46cc100baa5931ad06b2a823c95 (patch)
tree098cf9d41ce1c548d922708a770a9efe35e434df /include/drm/ttm
parenta987fcaa805fcb24ba885c2e29fd4fdb6816f08f (diff)
parent6c30c53fd5ae6a99a23ad78e90c428d2c8ffb07f (diff)
Merge Linus master to drm-next
linux-next conflict reported needed resolution. Conflicts: drivers/gpu/drm/drm_crtc.c drivers/gpu/drm/drm_edid.c drivers/gpu/drm/i915/intel_sdvo.c drivers/gpu/drm/radeon/radeon_ttm.c drivers/gpu/drm/ttm/ttm_bo.c
Diffstat (limited to 'include/drm/ttm')
-rw-r--r--include/drm/ttm/ttm_bo_driver.h20
-rw-r--r--include/drm/ttm/ttm_module.h2
2 files changed, 20 insertions, 2 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
126enum ttm_caching_state { 127enum 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);
690extern int ttm_bo_device_init(struct ttm_bo_device *bdev, 701extern 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 */
711extern void ttm_bo_unmap_virtual(struct ttm_buffer_object *bo);
694 712
695/** 713/**
696 * ttm_bo_reserve: 714 * ttm_bo_reserve:
diff --git a/include/drm/ttm/ttm_module.h b/include/drm/ttm/ttm_module.h
index 0a72ac7c7e58..cf416aee19af 100644
--- a/include/drm/ttm/ttm_module.h
+++ b/include/drm/ttm/ttm_module.h
@@ -34,7 +34,7 @@
34#include <linux/kernel.h> 34#include <linux/kernel.h>
35struct kobject; 35struct kobject;
36 36
37#define TTM_PFX "[TTM]" 37#define TTM_PFX "[TTM] "
38 38
39enum ttm_global_types { 39enum ttm_global_types {
40 TTM_GLOBAL_TTM_MEM = 0, 40 TTM_GLOBAL_TTM_MEM = 0,