summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authortron <tron@NetBSD.org>2003-02-24 21:56:00 +0000
committertron <tron@NetBSD.org>2003-02-24 21:56:00 +0000
commite583f5d9f41cb7a40050d2107258ec06f2349e12 (patch)
treeab4a47d5faa4d349602f83c0c02d0f6f62e6af72 /sys/dev
parent4f6180461f86c175683820c6e67b9c88af3faa73 (diff)
Don't match a PCI graphics card in a system which supports an AGP.
Patch supplied by Quentin Garnier in PR kern/19256.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/agp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/agp.c b/sys/dev/pci/agp.c
index 2839679c4e6..0cbed167de2 100644
--- a/sys/dev/pci/agp.c
+++ b/sys/dev/pci/agp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: agp.c,v 1.25 2003/02/01 06:23:38 thorpej Exp $ */
+/* $NetBSD: agp.c,v 1.26 2003/02/24 21:56:00 tron Exp $ */
/*-
* Copyright (c) 2000 Doug Rabson
@@ -65,7 +65,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: agp.c,v 1.25 2003/02/01 06:23:38 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: agp.c,v 1.26 2003/02/24 21:56:00 tron Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -361,6 +361,8 @@ agpdev_match(struct pci_attach_args *pa)
{
if (PCI_CLASS(pa->pa_class) == PCI_CLASS_DISPLAY &&
PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_DISPLAY_VGA)
+ if (pci_get_capability(pa->pa_pc, pa->pa_tag, PCI_CAP_AGP,
+ NULL, NULL))
return 1;
return 0;