From 0bff0d9eb6317ccccafc79cac7b235b4cb4c9161 Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Tue, 28 Sep 2004 22:25:06 +0000 Subject: Getting the AGP module is a global resource. Make sure a dual PCI/AGP driver doesn't release it on unload since an AGP driver may also be loaded. --- linux-core/drmP.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'linux-core/drmP.h') diff --git a/linux-core/drmP.h b/linux-core/drmP.h index 3bd11aaa..b1b23b58 100644 --- a/linux-core/drmP.h +++ b/linux-core/drmP.h @@ -246,9 +246,10 @@ #define LOCK_TEST_WITH_RETURN( dev, filp ) \ do { \ if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || \ - dev->lock.filp != filp ) { \ - DRM_ERROR( "%s called without lock held\n", \ - __FUNCTION__ ); \ + dev->lock.filp != filp ) { \ + DRM_ERROR( "%s called without lock held, held %d owner %p %p\n",\ + __FUNCTION__, _DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ),\ + dev->lock.filp, filp ); \ return -EINVAL; \ } \ } while (0) @@ -907,8 +908,8 @@ extern void drm_vbl_send_signals( drm_device_t *dev ); /* AGP/GART support (drm_agpsupport.h) */ +extern const drm_agp_t *drm_agp; extern drm_agp_head_t *drm_agp_init(void); -extern void drm_agp_uninit(void); extern int drm_agp_acquire(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg); extern void drm_agp_do_release(void); -- cgit v1.2.3