]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Based on some BIOS configuration (GGC register in host bridge, bit 1),
authorkib <kib@FreeBSD.org>
Tue, 11 Nov 2014 12:52:45 +0000 (12:52 +0000)
committerkib <kib@FreeBSD.org>
Tue, 11 Nov 2014 12:52:45 +0000 (12:52 +0000)
IGP may declare subclass as either VGA-compatible, or non-VGA.  The
difference is that in the later case, IGP does not claim VGA cycles.
Other than that, the device functions normally, and agp_i810 should
attach to it.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

sys/dev/agp/agp_i810.c

index 6e0629250d801f354dc4056bd2dd84287ad13007..f6b8ab893a7f35e033130fc080976c3094977ba5 100644 (file)
@@ -749,7 +749,8 @@ agp_i810_match(device_t dev)
        int i, devid;
 
        if (pci_get_class(dev) != PCIC_DISPLAY
-           || pci_get_subclass(dev) != PCIS_DISPLAY_VGA)
+           || (pci_get_subclass(dev) != PCIS_DISPLAY_VGA &&
+           pci_get_subclass(dev) != PCIS_DISPLAY_OTHER))
                return (NULL);
 
        devid = pci_get_devid(dev);