diff options
author | =?utf-8?q?Michel_D=C3=A4nzer?= <michel@tungstengraphics.com> | 2006-10-24 09:08:16 -0400 |
---|---|---|
committer | airlied <airlied@linux.ie> | 2006-12-06 23:53:28 -0500 |
commit | 2e54a007622ac75d63bdc1dd71d435446293f4a9 (patch) | |
tree | 864427aba8fbf2bb8c342d739b2acdec45e43f19 /drivers/char/drm/drmP.h | |
parent | bea5679f9cb97b7e41786c8500df56665cd21e56 (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.h | 3 |
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); |
967 | extern int drm_vblank_wait(drm_device_t * dev, unsigned int *vbl_seq); | 969 | extern int drm_vblank_wait(drm_device_t * dev, unsigned int *vbl_seq); |
968 | extern void drm_vbl_send_signals(drm_device_t * dev); | 970 | extern void drm_vbl_send_signals(drm_device_t * dev); |
971 | extern 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) */ |
971 | extern drm_agp_head_t *drm_agp_init(drm_device_t * dev); | 974 | extern drm_agp_head_t *drm_agp_init(drm_device_t * dev); |