aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/drmP.h
diff options
context:
space:
mode:
author=?utf-8?q?Michel_D=C3=A4nzer?= <michel@tungstengraphics.com>2006-10-24 09:08:16 -0400
committerairlied <airlied@linux.ie>2006-12-06 23:53:28 -0500
commit2e54a007622ac75d63bdc1dd71d435446293f4a9 (patch)
tree864427aba8fbf2bb8c342d739b2acdec45e43f19 /drivers/char/drm/drmP.h
parentbea5679f9cb97b7e41786c8500df56665cd21e56 (diff)
drm: Add support for interrupt triggered driver callback with lock held to DRM core.
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drmP.h')
-rw-r--r--drivers/char/drm/drmP.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h
index 01e1f2528659..2f18329c5eb8 100644
--- a/drivers/char/drm/drmP.h
+++ b/drivers/char/drm/drmP.h
@@ -715,6 +715,8 @@ typedef struct drm_device {
715 drm_vbl_sig_t vbl_sigs; /**< signal list to send on VBLANK */ 715 drm_vbl_sig_t vbl_sigs; /**< signal list to send on VBLANK */
716 drm_vbl_sig_t vbl_sigs2; /**< signals to send on secondary VBLANK */ 716 drm_vbl_sig_t vbl_sigs2; /**< signals to send on secondary VBLANK */
717 unsigned int vbl_pending; 717 unsigned int vbl_pending;
718 spinlock_t tasklet_lock; /**< For drm_locked_tasklet */
719 void (*locked_tasklet_func)(struct drm_device *dev);
718 720
719 /*@} */ 721 /*@} */
720 cycles_t ctx_start; 722 cycles_t ctx_start;
@@ -966,6 +968,7 @@ extern int drm_wait_vblank(struct inode *inode, struct file *filp,
966 unsigned int cmd, unsigned long arg); 968 unsigned int cmd, unsigned long arg);
967extern int drm_vblank_wait(drm_device_t * dev, unsigned int *vbl_seq); 969extern int drm_vblank_wait(drm_device_t * dev, unsigned int *vbl_seq);
968extern void drm_vbl_send_signals(drm_device_t * dev); 970extern void drm_vbl_send_signals(drm_device_t * dev);
971extern void drm_locked_tasklet(drm_device_t *dev, void(*func)(drm_device_t*));
969 972
970 /* AGP/GART support (drm_agpsupport.h) */ 973 /* AGP/GART support (drm_agpsupport.h) */
971extern drm_agp_head_t *drm_agp_init(drm_device_t * dev); 974extern drm_agp_head_t *drm_agp_init(drm_device_t * dev);