allow dristat to find out whether AGP is write-combined or not.
authorAlan Hourihane <alanh@fairlite.demon.co.uk>
Mon, 5 Mar 2001 16:02:40 +0000 (16:02 +0000)
committerAlan Hourihane <alanh@fairlite.demon.co.uk>
Mon, 5 Mar 2001 16:02:40 +0000 (16:02 +0000)
linux-core/drm_bufs.c
linux/drm_bufs.h

index 38ea1ff..b7e27d1 100644 (file)
@@ -128,6 +128,7 @@ int DRM(addmap)( struct inode *inode, struct file *filp,
 #if __REALLY_HAVE_AGP
        case _DRM_AGP:
                map->offset = map->offset + dev->agp->base;
+               map->mtrr   = dev->agp->agp_mtrr; /* for getmap */
                break;
 #endif
        default:
index 38ea1ff..b7e27d1 100644 (file)
@@ -128,6 +128,7 @@ int DRM(addmap)( struct inode *inode, struct file *filp,
 #if __REALLY_HAVE_AGP
        case _DRM_AGP:
                map->offset = map->offset + dev->agp->base;
+               map->mtrr   = dev->agp->agp_mtrr; /* for getmap */
                break;
 #endif
        default: