summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Deval <tdeval@cvs.openbsd.org>2003-05-12 09:00:32 +0000
committerThierry Deval <tdeval@cvs.openbsd.org>2003-05-12 09:00:32 +0000
commit33c6c3e8145c1b9af8134844b350ec7d849cb26e (patch)
treebb09230a299f8e051266e1a5903a9b0787b52867
parenta3ce1a8dd235557097badd5c16b4aafe8510a31b (diff)
Enable Intrepid's mac-io match.
Ok drahn@
-rw-r--r--sys/arch/macppc/pci/macobio.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/macppc/pci/macobio.c b/sys/arch/macppc/pci/macobio.c
index 82bfceab5f6..8fd4a83fefe 100644
--- a/sys/arch/macppc/pci/macobio.c
+++ b/sys/arch/macppc/pci/macobio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: macobio.c,v 1.7 2002/09/15 09:01:58 deraadt Exp $ */
+/* $OpenBSD: macobio.c,v 1.8 2003/05/12 09:00:31 tdeval Exp $ */
/* $NetBSD: obio.c,v 1.6 1999/05/01 10:36:08 tsubai Exp $ */
/*-
@@ -85,6 +85,7 @@ macobio_match(parent, cf, aux)
case PCI_PRODUCT_APPLE_HEATHROW:
case PCI_PRODUCT_APPLE_PADDINGTON:
case PCI_PRODUCT_APPLE_KEYLARGO:
+ case PCI_PRODUCT_APPLE_INTREPID:
case PCI_PRODUCT_APPLE_PANGEA_MACIO:
return 1;
}
@@ -141,6 +142,7 @@ macobio_attach(parent, self, aux)
}
break;
case PCI_PRODUCT_APPLE_KEYLARGO:
+ case PCI_PRODUCT_APPLE_INTREPID:
case PCI_PRODUCT_APPLE_PANGEA_MACIO:
node = OF_finddevice("mac-io");
if (node == -1)
@@ -287,7 +289,8 @@ macobio_modem_power(int enable)
{
u_int32_t val;
struct macobio_softc *sc = macobio_cd.cd_devs[0];
- if (PCI_PRODUCT(sc->sc_id) == PCI_PRODUCT_APPLE_KEYLARGO) {
+ if (PCI_PRODUCT(sc->sc_id) == PCI_PRODUCT_APPLE_KEYLARGO ||
+ PCI_PRODUCT(sc->sc_id) == PCI_PRODUCT_APPLE_INTREPID) {
val = in32rb(sc->obiomem + 0x40);
if (enable)
val = val & ~((u_int32_t)1<<25);