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.
This commit is contained in:
parent
89d0cfd21f
commit
3c33a1ee2d
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user