diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2003-10-25 12:35:33 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2003-10-25 12:35:33 +0000 |
commit | 90da90c4c2e2819ff08635c7ab264deaf50a5e77 (patch) | |
tree | 3ef5d79517524b7c11445c29e969ce0b8f6939ac | |
parent | ffc146fdfc4c358e3dc4114be8120f945c21b019 (diff) |
Support the TI1410 Cardbus bridge found in some apple laptops. ok brad@
-rw-r--r-- | sys/arch/macppc/macppc/rbus_machdep.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/arch/macppc/macppc/rbus_machdep.c b/sys/arch/macppc/macppc/rbus_machdep.c index e44ece92498..4a3576e1b30 100644 --- a/sys/arch/macppc/macppc/rbus_machdep.c +++ b/sys/arch/macppc/macppc/rbus_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rbus_machdep.c,v 1.4 2003/10/15 17:50:16 drahn Exp $ */ +/* $OpenBSD: rbus_machdep.c,v 1.5 2003/10/25 12:35:32 drahn Exp $ */ /* $NetBSD: rbus_machdep.c,v 1.2 1999/10/15 06:43:06 haya Exp $ */ /* @@ -139,4 +139,14 @@ macppc_cardbus_init(pci_chipset_tag_t pc, pcitag_t tag) pci_conf_write(pc, tag, 0x40, x); } } + + if (PCI_VENDOR(x) == PCI_VENDOR_TI && + PCI_PRODUCT(x) == PCI_PRODUCT_TI_PCI1410) { + /* dont mess with the bus numbers or latency timer */ + + /* Route INTA to MFUNC0 */ + x = pci_conf_read(pc, tag, 0x8c); + x |= 0x02; + pci_conf_write(pc, tag, 0x8c, x); + } } |