summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc/mac
diff options
context:
space:
mode:
authorMats O Jansson <maja@cvs.openbsd.org>2001-06-26 19:06:18 +0000
committerMats O Jansson <maja@cvs.openbsd.org>2001-06-26 19:06:18 +0000
commit1e86ef75c1fe182424dcec45ca4bef55f2f5d2be (patch)
treea82d46ff6d6f72964a9b7a8d677c46876d3e86cf /sys/arch/powerpc/mac
parentfb4b0b6e9262a2ca497bd23deb550b45d959d4db (diff)
Add support for the new iBook. from netbsd. ok @drahn. -moj
Diffstat (limited to 'sys/arch/powerpc/mac')
-rw-r--r--sys/arch/powerpc/mac/if_gm.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/arch/powerpc/mac/if_gm.c b/sys/arch/powerpc/mac/if_gm.c
index 62d274ad16f..406fcb1a293 100644
--- a/sys/arch/powerpc/mac/if_gm.c
+++ b/sys/arch/powerpc/mac/if_gm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gm.c,v 1.14 2001/06/25 23:29:55 drahn Exp $ */
+/* $OpenBSD: if_gm.c,v 1.15 2001/06/26 19:06:17 maja Exp $ */
/* $NetBSD: if_gm.c,v 1.2 2000/03/04 11:17:00 tsubai Exp $ */
/*-
@@ -148,11 +148,12 @@ gmac_match(parent, match, aux)
{
struct pci_attach_args *pa = aux;
- if ((PCI_VENDOR(pa->pa_id) == PCI_VENDOR_APPLE) &&
- (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_APPLE_GMAC))
- {
- return 1;
- }
+ if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_APPLE)
+ switch (PCI_PRODUCT(pa->pa_id)) {
+ case PCI_PRODUCT_APPLE_GMAC:
+ case PCI_PRODUCT_APPLE_GMAC2:
+ return 1;
+ }
return 0;
}