diff options
author | Eric Anholt <anholt@freebsd.org> | 2004-11-06 21:18:49 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2004-11-06 21:18:49 +0000 |
commit | 7bdccfd0bb192200ba022c368f85f73e5a989e7a (patch) | |
tree | bdad7b43f516aeaab1d790136f35f0bf2d32cae0 /bsd-core/drm_dma.c | |
parent | ae7a1713139f1eacec9cc1629cacef0394e270cc (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.c | 13 |
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; + } +} |