aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-10-19 04:13:00 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2010-10-19 04:14:50 -0400
commitfb9a90f7c674f3ddef6baf55cb1612dadd8ea752 (patch)
treef25cf2ce17449ba34cdfdfb948134eb3464e400e /include/drm
parent2d7b8366ae4a9ec2183c30e432a4a9a495c82bcd (diff)
parent21c74a8ea8b47eb6c3c621e36578f6e27f65c5c7 (diff)
Merge remote branch 'airlied/drm-core-next' into tmp
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_crtc_helper.h7
-rw-r--r--include/drm/ttm/ttm_bo_api.h4
-rw-r--r--include/drm/ttm/ttm_bo_driver.h4
3 files changed, 13 insertions, 2 deletions
diff --git a/include/drm/drm_crtc_helper.h b/include/drm/drm_crtc_helper.h
index 6a9f3935ea0b..73b071203dcc 100644
--- a/include/drm/drm_crtc_helper.h
+++ b/include/drm/drm_crtc_helper.h
@@ -39,6 +39,11 @@
39 39
40#include <linux/fb.h> 40#include <linux/fb.h>
41 41
42enum mode_set_atomic {
43 LEAVE_ATOMIC_MODE_SET,
44 ENTER_ATOMIC_MODE_SET,
45};
46
42struct drm_crtc_helper_funcs { 47struct drm_crtc_helper_funcs {
43 /* 48 /*
44 * Control power levels on the CRTC. If the mode passed in is 49 * Control power levels on the CRTC. If the mode passed in is
@@ -62,7 +67,7 @@ struct drm_crtc_helper_funcs {
62 struct drm_framebuffer *old_fb); 67 struct drm_framebuffer *old_fb);
63 int (*mode_set_base_atomic)(struct drm_crtc *crtc, 68 int (*mode_set_base_atomic)(struct drm_crtc *crtc,
64 struct drm_framebuffer *fb, int x, int y, 69 struct drm_framebuffer *fb, int x, int y,
65 int is_enter); 70 enum mode_set_atomic);
66 71
67 /* reload the current crtc LUT */ 72 /* reload the current crtc LUT */
68 void (*load_lut)(struct drm_crtc *crtc); 73 void (*load_lut)(struct drm_crtc *crtc);
diff --git a/include/drm/ttm/ttm_bo_api.h b/include/drm/ttm/ttm_bo_api.h
index 49b43c23636a..5afa5b52063e 100644
--- a/include/drm/ttm/ttm_bo_api.h
+++ b/include/drm/ttm/ttm_bo_api.h
@@ -247,9 +247,11 @@ struct ttm_buffer_object {
247 247
248 atomic_t reserved; 248 atomic_t reserved;
249 249
250
251 /** 250 /**
252 * Members protected by the bo::lock 251 * Members protected by the bo::lock
252 * In addition, setting sync_obj to anything else
253 * than NULL requires bo::reserved to be held. This allows for
254 * checking NULL while reserved but not holding bo::lock.
253 */ 255 */
254 256
255 void *sync_obj_arg; 257 void *sync_obj_arg;
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h
index e3371dbe6a10..d0ff529fedde 100644
--- a/include/drm/ttm/ttm_bo_driver.h
+++ b/include/drm/ttm/ttm_bo_driver.h
@@ -214,6 +214,8 @@ struct ttm_mem_type_manager_func {
214 struct ttm_mem_reg *mem); 214 struct ttm_mem_reg *mem);
215 void (*put_node)(struct ttm_mem_type_manager *man, 215 void (*put_node)(struct ttm_mem_type_manager *man,
216 struct ttm_mem_reg *mem); 216 struct ttm_mem_reg *mem);
217 void (*put_node_locked)(struct ttm_mem_type_manager *man,
218 struct ttm_mem_reg *mem);
217 void (*debug)(struct ttm_mem_type_manager *man, const char *prefix); 219 void (*debug)(struct ttm_mem_type_manager *man, const char *prefix);
218}; 220};
219 221
@@ -667,6 +669,8 @@ extern int ttm_bo_mem_space(struct ttm_buffer_object *bo,
667 669
668extern void ttm_bo_mem_put(struct ttm_buffer_object *bo, 670extern void ttm_bo_mem_put(struct ttm_buffer_object *bo,
669 struct ttm_mem_reg *mem); 671 struct ttm_mem_reg *mem);
672extern void ttm_bo_mem_put_locked(struct ttm_buffer_object *bo,
673 struct ttm_mem_reg *mem);
670 674
671/** 675/**
672 * ttm_bo_wait_for_cpu 676 * ttm_bo_wait_for_cpu