From 7bdccfd0bb192200ba022c368f85f73e5a989e7a Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sat, 6 Nov 2004 21:18:49 +0000 Subject: 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. --- bsd-core/drm_dma.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'bsd-core/drm_dma.c') 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; + } +} -- cgit v1.2.3