summaryrefslogtreecommitdiff
path: root/shared/radeon.h
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2002-09-29 21:19:01 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2002-09-29 21:19:01 +0000
commit9243e642dabc30ddf4b1743acb8cd4e9e905f351 (patch)
tree8c7e02e3c4ffc88da3716ddf440844a586d92fa6 /shared/radeon.h
parente6901cad696cf58ee9f1a48bdc7e9fa047824f8a (diff)
Move os-dependent stuff out of radeon_irq.c
Diffstat (limited to 'shared/radeon.h')
-rw-r--r--shared/radeon.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/shared/radeon.h b/shared/radeon.h
index aa613c40..05760855 100644
--- a/shared/radeon.h
+++ b/shared/radeon.h
@@ -100,6 +100,13 @@
[DRM_IOCTL_NR(DRM_IOCTL_RADEON_IRQ_EMIT)] = { radeon_irq_emit, 1, 0 }, \
[DRM_IOCTL_NR(DRM_IOCTL_RADEON_IRQ_WAIT)] = { radeon_irq_wait, 1, 0 },
+
+#define USE_IRQS 1
+#if USE_IRQS
+#define __HAVE_DMA_IRQ 1
+#define __HAVE_VBL_IRQ 1
+#define __HAVE_SHARED_IRQ 1
+
/* When a client dies:
* - Check for and clean up flipped page state
* - Free any alloced agp memory.
@@ -128,13 +135,14 @@
} \
} while (0)
+#else
+#define __HAVE_DMA_IRQ 0
+#endif
+
/* DMA customization:
*/
#define __HAVE_DMA 1
-#define __HAVE_DMA_IRQ 1
-#define __HAVE_VBL_IRQ 1
-#define __HAVE_SHARED_IRQ 1
/* Buffer customization:
*/