summaryrefslogtreecommitdiff
path: root/linux/drm_bufs.h
diff options
context:
space:
mode:
authorGareth Hughes <gareth@users.sourceforge.net>2001-03-18 23:54:41 +0000
committerGareth Hughes <gareth@users.sourceforge.net>2001-03-18 23:54:41 +0000
commitf2ad4d9bebd052e5b7c9a90c4a813830bd1b72f8 (patch)
treef787e44c91a7b8b547323016abef9647d9764be4 /linux/drm_bufs.h
parent1d32e305efdcb4668a91d94e2149c9c7a243b6dc (diff)
__REALLY_HAVE_MTRR, vmalloc_32 fixes from Jeff Wiedemeier.
Diffstat (limited to 'linux/drm_bufs.h')
-rw-r--r--linux/drm_bufs.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/linux/drm_bufs.h b/linux/drm_bufs.h
index 1d540322..63cfb0d4 100644
--- a/linux/drm_bufs.h
+++ b/linux/drm_bufs.h
@@ -30,6 +30,7 @@
*/
#define __NO_VERSION__
+#include <linux/vmalloc.h>
#include "drmP.h"
#ifndef __HAVE_PCI_DMA
@@ -109,7 +110,7 @@ int DRM(addmap)( struct inode *inode, struct file *filp,
return -EINVAL;
}
#endif
-#ifdef __REALLY_HAVE_MTRR
+#if __REALLY_HAVE_MTRR
if ( map->type == _DRM_FRAME_BUFFER ||
(map->flags & _DRM_WRITE_COMBINING) ) {
map->mtrr = mtrr_add( map->offset, map->size,
@@ -171,7 +172,7 @@ int DRM(addmap)( struct inode *inode, struct file *filp,
* isn't in use.
*/
-int DRM(rmmap)(struct inode *inode, struct file *filp,
+int DRM(rmmap)(struct inode *inode, struct file *filp,
unsigned int cmd, unsigned long arg)
{
drm_file_t *priv = filp->private_data;
@@ -183,7 +184,7 @@ int DRM(rmmap)(struct inode *inode, struct file *filp,
drm_map_t request;
int found_maps = 0;
- if (copy_from_user(&request, (drm_map_t *)arg,
+ if (copy_from_user(&request, (drm_map_t *)arg,
sizeof(request))) {
return -EFAULT;
}
@@ -221,7 +222,7 @@ int DRM(rmmap)(struct inode *inode, struct file *filp,
switch (map->type) {
case _DRM_REGISTERS:
case _DRM_FRAME_BUFFER:
-#ifdef __REALLY_HAVE_MTRR
+#if __REALLY_HAVE_MTRR
if (map->mtrr >= 0) {
int retcode;
retcode = mtrr_del(map->mtrr,