summaryrefslogtreecommitdiff
path: root/bsd-core/drm_dma.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2004-11-06 21:18:49 +0000
committerEric Anholt <anholt@freebsd.org>2004-11-06 21:18:49 +0000
commit7bdccfd0bb192200ba022c368f85f73e5a989e7a (patch)
treebdad7b43f516aeaab1d790136f35f0bf2d32cae0 /bsd-core/drm_dma.c
parentae7a1713139f1eacec9cc1629cacef0394e270cc (diff)
Get r128 basically working: Hook up the driver's dma ioctl, use the proper
offset into the driver ioctl array, and don't make the ctx bitmap conditional.
Diffstat (limited to 'bsd-core/drm_dma.c')
-rw-r--r--bsd-core/drm_dma.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/bsd-core/drm_dma.c b/bsd-core/drm_dma.c
index 6446a844..28828703 100644
--- a/bsd-core/drm_dma.c
+++ b/bsd-core/drm_dma.c
@@ -130,3 +130,16 @@ void drm_reclaim_buffers(drm_device_t *dev, DRMFILE filp)
}
}
}
+
+/* Call into the driver-specific DMA handler */
+int drm_dma(DRM_IOCTL_ARGS)
+{
+ DRM_DEVICE;
+
+ if (dev->dma_ioctl) {
+ return dev->dma_ioctl(kdev, cmd, data, flags, p, filp);
+ } else {
+ DRM_DEBUG("DMA ioctl on driver with no dma handler\n");
+ return EINVAL;
+ }
+}