summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2000-11-21 02:03:46 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2000-11-21 02:03:46 +0000
commit320ea2dc86a487f6a309f8e155d31404e6997a55 (patch)
tree40922da695fb6f1c7171c81d31de2361ee5c8408 /sys
parentf1e71471d0a817e75c558a001f7e72fd037fae3d (diff)
stupid Imac DV appears to misclasify the vga controller as DISPLAY_MISC
instead of DISPLAY_VGA
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/powerpc/pci/vgafb_pci.c5
-rw-r--r--sys/arch/powerpc/pci/vgafb_pcivar.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/powerpc/pci/vgafb_pci.c b/sys/arch/powerpc/pci/vgafb_pci.c
index 8787289a360..8fc7dd82ebd 100644
--- a/sys/arch/powerpc/pci/vgafb_pci.c
+++ b/sys/arch/powerpc/pci/vgafb_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vgafb_pci.c,v 1.1 2000/09/06 02:12:15 rahnds Exp $ */
+/* $OpenBSD: vgafb_pci.c,v 1.2 2000/11/21 02:03:44 deraadt Exp $ */
/* $NetBSD: vga_pci.c,v 1.4 1996/12/05 01:39:38 cgd Exp $ */
/*
@@ -232,6 +232,9 @@ vgafb_pci_match(parent, match, aux)
if (PCI_CLASS(pa->pa_class) == PCI_CLASS_DISPLAY &&
PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_DISPLAY_VGA)
potential = 1;
+ if (PCI_CLASS(pa->pa_class) == PCI_CLASS_DISPLAY &&
+ PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_DISPLAY_MISC)
+ potential = 1;
if (!potential)
return (0);
diff --git a/sys/arch/powerpc/pci/vgafb_pcivar.h b/sys/arch/powerpc/pci/vgafb_pcivar.h
index ac6d110e893..feb61954d3a 100644
--- a/sys/arch/powerpc/pci/vgafb_pcivar.h
+++ b/sys/arch/powerpc/pci/vgafb_pcivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vgafb_pcivar.h,v 1.1 2000/09/06 02:12:15 rahnds Exp $ */
+/* $OpenBSD: vgafb_pcivar.h,v 1.2 2000/11/21 02:03:45 deraadt Exp $ */
/* $NetBSD: vga_pcivar.h,v 1.1 1996/11/19 04:38:36 cgd Exp $ */
/*
@@ -31,6 +31,8 @@
#define DEVICE_IS_VGA_PCI(class, id) \
(((PCI_CLASS(class) == PCI_CLASS_DISPLAY && \
PCI_SUBCLASS(class) == PCI_SUBCLASS_DISPLAY_VGA) || \
+ (((PCI_CLASS(class) == PCI_CLASS_DISPLAY && \
+ PCI_SUBCLASS(class) == PCI_SUBCLASS_DISPLAY_MISC) || \
(PCI_CLASS(class) == PCI_CLASS_PREHISTORIC && \
PCI_SUBCLASS(class) == PCI_SUBCLASS_PREHISTORIC_VGA)) ? 1 : 0)