diff options
author | Leif Delgass <ldelgass@users.sourceforge.net> | 2003-04-26 22:28:56 +0000 |
---|---|---|
committer | Leif Delgass <ldelgass@users.sourceforge.net> | 2003-04-26 22:28:56 +0000 |
commit | f2a0c5438dc83171de1007a68e4f98e35b5a8fbe (patch) | |
tree | f886e31d758dda4c3460465d0f6be13921efbe58 /linux/i810.h | |
parent | a79adaab72bde726ce4c08184997f34b31014d9e (diff) |
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?).
Diffstat (limited to 'linux/i810.h')
-rw-r--r-- | linux/i810.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/linux/i810.h b/linux/i810.h index 72cbed32..bfb760ab 100644 --- a/linux/i810.h +++ b/linux/i810.h @@ -86,7 +86,11 @@ */ #define __HAVE_RELEASE 1 #define DRIVER_RELEASE() do { \ - i810_reclaim_buffers( filp ); \ + i810_reclaim_buffers( filp ); \ +} while (0) + +#define DRIVER_PRETAKEDOWN() do { \ + i810_dma_cleanup( dev ); \ } while (0) /* DMA customization: @@ -104,6 +108,7 @@ /* Don't need an irq any more. The template code will make sure that * a noop stub is generated for compatibility. */ +/* XXX: Add vblank support? */ #define __HAVE_DMA_IRQ 0 /* Buffer customization: |