From 3c33a1ee2d47ddba8be1b5ddbbe8f6c2071748d1 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 7 Sep 2003 15:25:28 +0000 Subject: [PATCH] If we fail to find the Integrated Graphics Device of an Intel i840 or i865 chipset try the generic Intel AGP code because it is probably a motherboard without onboard graphics. --- sys/dev/pci/agp_i810.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/agp_i810.c b/sys/dev/pci/agp_i810.c index 932786b77b55..ca6ec4e04e20 100644 --- a/sys/dev/pci/agp_i810.c +++ b/sys/dev/pci/agp_i810.c @@ -1,4 +1,4 @@ -/* $NetBSD: agp_i810.c,v 1.18 2003/08/26 17:33:23 tron Exp $ */ +/* $NetBSD: agp_i810.c,v 1.19 2003/09/07 15:25:28 tron Exp $ */ /*- * Copyright (c) 2000 Doug Rabson @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.18 2003/08/26 17:33:23 tron Exp $"); +__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.19 2003/09/07 15:25:28 tron Exp $"); #include #include @@ -139,6 +139,13 @@ agp_i810_attach(struct device *parent, struct device *self, void *aux) sc->as_methods = &agp_i810_methods; if (pci_find_device(&isc->vga_pa, agp_i810_vgamatch) == 0) { + const struct pci_attach_args *pa = aux; + + switch (PCI_PRODUCT(pa->pa_id)) { + case PCI_PRODUCT_INTEL_82840_HB: + case PCI_PRODUCT_INTEL_82865_HB: + return agp_intel_attach(parent, self, aux); + } aprint_error(": can't find internal VGA device config space\n"); free(isc, M_AGP); return ENOENT;