diff options
author | Eric Anholt <eric@anholt.net> | 2007-03-24 09:39:09 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-03-24 09:39:09 -0700 |
commit | 5d69640a6ad15522fa37c3b232eb34acef955892 (patch) | |
tree | e8a78a92ccfe0ff0933ccdd4fca92d5d1caa0cbc | |
parent | 4988fa48869098b18a3b60884550614818d60445 (diff) |
Catch up to new interrupt API, and retire FreeBSD 4.x support here.
-rw-r--r-- | bsd-core/drm_irq.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bsd-core/drm_irq.c b/bsd-core/drm_irq.c index 5f44f918..f7da5ed7 100644 --- a/bsd-core/drm_irq.c +++ b/bsd-core/drm_irq.c @@ -102,11 +102,13 @@ int drm_irq_install(drm_device_t *dev) retcode = ENOENT; goto err; } -#if __FreeBSD_version < 500000 - retcode = bus_setup_intr(dev->device, dev->irqr, INTR_TYPE_TTY, - dev->irq_handler, dev, &dev->irqh); +#if __FreeBSD_version >= 700031 + retcode = bus_setup_intr(dev->device, dev->irqr, + INTR_TYPE_TTY | INTR_MPSAFE, + NULL, drm_irq_handler_wrap, dev, &dev->irqh); #else - retcode = bus_setup_intr(dev->device, dev->irqr, INTR_TYPE_TTY | INTR_MPSAFE, + retcode = bus_setup_intr(dev->device, dev->irqr, + INTR_TYPE_TTY | INTR_MPSAFE, drm_irq_handler_wrap, dev, &dev->irqh); #endif if (retcode != 0) |