From 9243e642dabc30ddf4b1743acb8cd4e9e905f351 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Sun, 29 Sep 2002 21:19:01 +0000 Subject: Move os-dependent stuff out of radeon_irq.c --- shared/radeon.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'shared/radeon.h') 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: */ -- cgit v1.2.3