XXX: always return DRM_MIGHT_BE_AGP for now -- need to implement the

XXX: releant bus controller grovelling for netbsd pci.
This commit is contained in:
mrg 2008-07-19 07:02:15 +00:00
parent 310b3512f5
commit cc28125d9e

View File

@ -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;
}