summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/pci
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-12-21 19:52:01 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-12-21 19:52:01 +0000
commit3e23a1622f274caa384b6ca82baf7e152b796844 (patch)
tree62e1ea49fb280cf82a712a120613069fe0d7b8d4 /sys/arch/macppc/pci
parent991625e04d8a3a99e232d6a36551f767536c41cd (diff)
Unbreak gm0. regression test should be done next time...
Diffstat (limited to 'sys/arch/macppc/pci')
-rw-r--r--sys/arch/macppc/pci/mpcpcibus.c33
1 files changed, 2 insertions, 31 deletions
diff --git a/sys/arch/macppc/pci/mpcpcibus.c b/sys/arch/macppc/pci/mpcpcibus.c
index 60c6e7e5314..f13671a0e2f 100644
--- a/sys/arch/macppc/pci/mpcpcibus.c
+++ b/sys/arch/macppc/pci/mpcpcibus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpcpcibus.c,v 1.4 2001/12/14 14:48:55 drahn Exp $ */
+/* $OpenBSD: mpcpcibus.c,v 1.5 2001/12/21 19:52:00 drahn Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom
@@ -574,7 +574,6 @@ find_node_intr(node, addr, intr)
u_int32_t map[64], *mp;
u_int32_t imask[8], maskedaddr[8];
u_int32_t icells;
- char name[32];
len = OF_getprop(node, "AAPL,interrupts", intr, 4);
if (len == 4)
@@ -596,7 +595,7 @@ find_node_intr(node, addr, intr)
len -= mlen;
iparent = *mp++;
if (OF_getprop(iparent, "#interrupt-cells", &icells, 4) != 4)
- goto nomap;
+ return -1;
if (match == 0) {
/* multiple irqs? */
@@ -608,34 +607,6 @@ find_node_intr(node, addr, intr)
}
return -1;
nomap:
-
- /*
- * If the node has no interrupt property and the parent is a
- * pci-bridge, use parent's interrupt. This occurs on a PCI
- * slot. (e.g. AHA-3940)
- */
- memset(name, 0, sizeof(name));
- OF_getprop(parent, "name", name, sizeof(name));
- if (strcmp(name, "pci-bridge") == 0) {
- len = OF_getprop(parent, "AAPL,interrupts", intr, 4) ;
- if (len == 4)
- return len;
- /*
- * XXX I don't know what is the correct local address.
- * XXX Use the first entry for now.
- */
- len = OF_getprop(parent, "interrupt-map", map, sizeof(map));
- if (len >= 36) {
- addr = &map[5];
- return find_node_intr(parent, addr, intr);
- }
- }
-
- /* XXX This may be wrong... */
- len = OF_getprop(node, "interrupts", intr, 4) ;
- if (len == 4)
- return len;
-
return -1;
}