From cc28125d9eb2b5a745e6971390752a8fcdb87080 Mon Sep 17 00:00:00 2001 From: mrg Date: Sat, 19 Jul 2008 07:02:15 +0000 Subject: [PATCH] XXX: always return DRM_MIGHT_BE_AGP for now -- need to implement the XXX: releant bus controller grovelling for netbsd pci. --- sys/external/bsd/drm/dist/bsd-core/mga_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/external/bsd/drm/dist/bsd-core/mga_drv.c b/sys/external/bsd/drm/dist/bsd-core/mga_drv.c index 3fa12cb4111a..155cc7257cc3 100644 --- a/sys/external/bsd/drm/dist/bsd-core/mga_drv.c +++ b/sys/external/bsd/drm/dist/bsd-core/mga_drv.c @@ -78,11 +78,13 @@ static int mga_driver_device_is_agp(struct drm_device * dev) #else bus = device_get_parent(dev->device); #endif +#ifndef __NetBSD__ /* XXXMRG */ if (pci_get_device(dev->device) == 0x0525 && pci_get_vendor(bus) == 0x3388 && pci_get_device(bus) == 0x0021) return DRM_IS_NOT_AGP; else +#endif return DRM_MIGHT_BE_AGP; }