diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-04-03 14:34:40 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-04-03 14:34:40 +0000 |
commit | 7b981bf3dacc94fa3869959ee3ac8b51ce044614 (patch) | |
tree | 904288ea3ea2ad613d3daae84491c5516293659d /sys | |
parent | 6c12fbf8002434c429869002257f3da9871143b6 (diff) |
dead function.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/mga_drv.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/sys/dev/pci/drm/mga_drv.c b/sys/dev/pci/drm/mga_drv.c index 87a7559ecc9..2995536feaf 100644 --- a/sys/dev/pci/drm/mga_drv.c +++ b/sys/dev/pci/drm/mga_drv.c @@ -39,7 +39,6 @@ int mgadrm_probe(struct device *, void *, void *); void mgadrm_attach(struct device *, struct device *, void *); int mgadrm_detach(struct device *, int); -int mga_driver_device_is_agp(struct drm_device * ); int mgadrm_ioctl(struct drm_device *, u_long, caddr_t, struct drm_file *); #define MGA_DEFAULT_USEC_TIMEOUT 10000 @@ -56,52 +55,6 @@ const static struct drm_pcidev mgadrm_pciidlist[] = { {0, 0, 0} }; -/** - * Determine if the device really is AGP or not. - * - * In addition to the usual tests performed by \c drm_device_is_agp, this - * function detects PCI G450 cards that appear to the system exactly like - * AGP G450 cards. - * - * \param dev The device to be tested. - * - * \returns - * If the device is a PCI G450, zero is returned. Otherwise non-zero is - * returned. - * - * \bug - * This function needs to be filled in! The implementation in - * linux-core/mga_drv.c shows what needs to be done. - */ -int -mga_driver_device_is_agp(struct drm_device * dev) -{ -#ifdef __FreeBSD__ - device_t bus; - - /* There are PCI versions of the G450. These cards have the - * same PCI ID as the AGP G450, but have an additional PCI-to-PCI - * bridge chip. We detect these cards, which are not currently - * supported by this driver, by looking at the device ID of the - * bus the "card" is on. If vendor is 0x3388 (Hint Corp) and the - * device is 0x0021 (HB6 Universal PCI-PCI bridge), we reject the - * device. - */ -#if __FreeBSD_version >= 700010 - bus = device_get_parent(device_get_parent(dev->device)); -#else - bus = device_get_parent(dev->device); -#endif - if (pci_get_device(dev->device) == 0x0525 && - pci_get_vendor(bus) == 0x3388 && - pci_get_device(bus) == 0x0021) - return DRM_IS_NOT_AGP; - else -#endif /* XXX Fixme for non freebsd */ - return DRM_MIGHT_BE_AGP; - -} - static const struct drm_driver_info mga_driver = { .buf_priv_size = sizeof(drm_mga_buf_priv_t), .ioctl = mgadrm_ioctl, |