aboutsummaryrefslogtreecommitdiff
path: root/linux/drmP.h
diff options
context:
space:
mode:
authorMichel Daenzer <michel@daenzer.net>2002-11-30 14:24:07 +0000
committerMichel Daenzer <michel@daenzer.net>2002-11-30 14:24:07 +0000
commit40891ac190fb74f389ea1a9758249a2f642fd99b (patch)
tree00acdea17e37ac7578a68bba12b739d1366f6637 /linux/drmP.h
parentc869f4a1e59c4fa0bed5681cad5ad49e685603eb (diff)
vertical blank ioctl can send signal instead of blocking
Diffstat (limited to 'linux/drmP.h')
-rw-r--r--linux/drmP.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/linux/drmP.h b/linux/drmP.h
index 6f6f91c4..181f61f1 100644
--- a/linux/drmP.h
+++ b/linux/drmP.h
@@ -518,6 +518,17 @@ typedef struct drm_map_list {
drm_map_t *map;
} drm_map_list_t;
+#if __HAVE_VBL_IRQ
+
+typedef struct drm_vbl_sig {
+ struct list_head head;
+ unsigned int sequence;
+ struct siginfo info;
+ struct task_struct *task;
+} drm_vbl_sig_t;
+
+#endif
+
typedef struct drm_device {
const char *name; /* Simple driver name */
char *unique; /* Unique identifier: e.g., busid */
@@ -580,6 +591,9 @@ typedef struct drm_device {
#if __HAVE_VBL_IRQ
wait_queue_head_t vbl_queue;
atomic_t vbl_received;
+ struct tq_struct vbl_tq;
+ struct semaphore vbl_sem;
+ drm_vbl_sig_t vbl_sigs;
#endif
cycles_t ctx_start;
cycles_t lck_start;
@@ -820,6 +834,7 @@ extern void DRM(driver_irq_uninstall)( drm_device_t *dev );
extern int DRM(wait_vblank)(struct inode *inode, struct file *filp,
unsigned int cmd, unsigned long arg);
extern int DRM(vblank_wait)(drm_device_t *dev, unsigned int *vbl_seq);
+extern void DRM(vbl_immediate_bh)( void *arg );
#endif
#if __HAVE_DMA_IRQ_BH
extern void DRM(dma_immediate_bh)( void *dev );