summaryrefslogtreecommitdiff
path: root/linux-core/drm_dma.c
diff options
context:
space:
mode:
authorDavid Dawes <dawes@xfree86.org>2002-02-14 02:00:26 +0000
committerDavid Dawes <dawes@xfree86.org>2002-02-14 02:00:26 +0000
commitab87c5d0d1b5c35006ce8b99a9260e3116c732dc (patch)
tree24d25b8fa4987897180d249b671ac2ab9e8edab1 /linux-core/drm_dma.c
parent65d25572deec33b7da13c211bf0aa78c361f535a (diff)
First pass of mesa-4-0 branch merge into trunk.
Diffstat (limited to 'linux-core/drm_dma.c')
-rw-r--r--linux-core/drm_dma.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/linux-core/drm_dma.c b/linux-core/drm_dma.c
index 85fa1472..dce376f6 100644
--- a/linux-core/drm_dma.c
+++ b/linux-core/drm_dma.c
@@ -598,6 +598,25 @@ int DRM(control)( struct inode *inode, struct file *filp,
}
}
+#else
+
+int DRM(control)( struct inode *inode, struct file *filp,
+ unsigned int cmd, unsigned long arg )
+{
+ drm_control_t ctl;
+
+ if ( copy_from_user( &ctl, (drm_control_t *)arg, sizeof(ctl) ) )
+ return -EFAULT;
+
+ switch ( ctl.func ) {
+ case DRM_INST_HANDLER:
+ case DRM_UNINST_HANDLER:
+ return 0;
+ default:
+ return -EINVAL;
+ }
+}
+
#endif /* __HAVE_DMA_IRQ */
#endif /* __HAVE_DMA */