summaryrefslogtreecommitdiff
path: root/linux/drm_bufs.h
diff options
context:
space:
mode:
authorJose Fonseca <jrfonseca@users.sourceforge.net>2003-06-03 23:27:01 +0000
committerJose Fonseca <jrfonseca@users.sourceforge.net>2003-06-03 23:27:01 +0000
commit6611a5fb7f41f81e38391c77903d98a29937ceed (patch)
tree94f89336a8e7c0a8eb08b2c20b0c0a1eb0464a7d /linux/drm_bufs.h
parenta709d4c97c2de9d75ba845da41d61f8734ee573b (diff)
Split declarations/definitions in drm_scatter.h into drm_sg.h/drm_sg_tmp.h
respectively. Splited the work out of the ioctls and renamed (with the _ioctl prefix). Added some more documentation. Did the same for drm_sgpsupport.h.
Diffstat (limited to 'linux/drm_bufs.h')
-rw-r--r--linux/drm_bufs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drm_bufs.h b/linux/drm_bufs.h
index 77573709..f42fabef 100644
--- a/linux/drm_bufs.h
+++ b/linux/drm_bufs.h
@@ -174,6 +174,8 @@ int DRM(addmap)( struct inode *inode, struct file *filp,
map->mtrr = dev->agp->agp_mtrr; /* for getmap */
break;
#endif
+
+#if __HAVE_SG
case _DRM_SCATTER_GATHER:
if (!dev->sg) {
DRM(free)(map, sizeof(*map), DRM_MEM_MAPS);
@@ -181,6 +183,7 @@ int DRM(addmap)( struct inode *inode, struct file *filp,
}
map->offset += dev->sg->handle;
break;
+#endif
default:
DRM(free)( map, sizeof(*map), DRM_MEM_MAPS );