From f2a0c5438dc83171de1007a68e4f98e35b5a8fbe Mon Sep 17 00:00:00 2001 From: Leif Delgass Date: Sat, 26 Apr 2003 22:28:56 +0000 Subject: Ensure driver has been initialized (dev_private != NULL) before installing irq handler in DRM(irq_install). Modify all drivers to ensure irq handler is removed before cleanup and cleanup is called at takedown. Remove unused buffer private struct fields in i810, i830. Check for lock on init/cleanup in all drivers except i810/i830. The current DDX for i810 and i830 doesn't hold the lock on kernel init (FIXME?). --- linux/gamma.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'linux/gamma.h') diff --git a/linux/gamma.h b/linux/gamma.h index da8f52bb..54dafcfc 100644 --- a/linux/gamma.h +++ b/linux/gamma.h @@ -63,6 +63,12 @@ #define __HAVE_COUNTER9 _DRM_STAT_SPECIAL #define __HAVE_COUNTER10 _DRM_STAT_MISSED +/* Driver customization: + */ +#define DRIVER_PRETAKEDOWN() do { \ + gamma_do_cleanup_dma( dev ); \ +} while (0) + /* DMA customization: */ #define __HAVE_DMA 1 -- cgit v1.2.3