From d7510ea4136a031b16fb25a32bd77970d315707a Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sat, 6 Nov 2004 11:16:26 +0000 Subject: Commit first pieces of port to OpenBSD, done by Martin Lexa (martin at martinlexa dot cz). Now that we've got porting for all three major BSDs (and the fourth being very similar to FreeBSD), move the mostly-duplication drm_os_* files into drmP.h. Remove some cruft from linux heritage and from pieces of the DRM that have since been removed. Note that things are still not quite working for even FreeBSD, but these are first steps at cleanup, and just a WIP checkpoint. --- bsd-core/drm_irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bsd-core/drm_irq.c') diff --git a/bsd-core/drm_irq.c b/bsd-core/drm_irq.c index d1f0505b..32ad5a61 100644 --- a/bsd-core/drm_irq.c +++ b/bsd-core/drm_irq.c @@ -111,7 +111,7 @@ int drm_irq_install(drm_device_t *dev) #endif if (retcode != 0) goto err; -#elif defined(__NetBSD__) +#elif defined(__NetBSD__) || defined(__OpenBSD__) if (pci_intr_map(&dev->pa, &dev->ih) != 0) { retcode = ENOENT; goto err; @@ -164,7 +164,7 @@ int drm_irq_uninstall(drm_device_t *dev) #ifdef __FreeBSD__ bus_teardown_intr(dev->device, dev->irqr, dev->irqh); bus_release_resource(dev->device, SYS_RES_IRQ, irqrid, dev->irqr); -#elif defined(__NetBSD__) +#elif defined(__NetBSD__) || defined(__OpenBSD__) pci_intr_disestablish(&dev->pa.pa_pc, dev->irqh); #endif DRM_SPINUNINIT(dev->irq_lock); -- cgit v1.2.3