diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2005-09-26 19:52:09 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2005-09-26 19:52:09 +0000 |
commit | fc1d71e378df19552015a128fe67e39d3bb2c89c (patch) | |
tree | e2cc8878908020f314569e5874f19dfb8e00c377 /sys/arch/macppc/dev | |
parent | eb19780045e383f73ed3e666dcbee06638ab6451 (diff) |
Consider nodes named "mpic" as potential open-pic candidates.
ok drahn@
Diffstat (limited to 'sys/arch/macppc/dev')
-rw-r--r-- | sys/arch/macppc/dev/openpic.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/macppc/dev/openpic.c b/sys/arch/macppc/dev/openpic.c index 68c17a1b1d4..9c9b8b6a1d8 100644 --- a/sys/arch/macppc/dev/openpic.c +++ b/sys/arch/macppc/dev/openpic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: openpic.c,v 1.28 2004/07/14 11:36:16 miod Exp $ */ +/* $OpenBSD: openpic.c,v 1.29 2005/09/26 19:52:08 kettenis Exp $ */ /*- * Copyright (c) 1995 Per Fogelstrom @@ -112,9 +112,10 @@ openpic_match(struct device *parent, void *cf, void *aux) bzero (type, sizeof(type)); - if (strcmp(ca->ca_name, "interrupt-controller") == 0 ) { + if (strcmp(ca->ca_name, "interrupt-controller") == 0 || + strcmp(ca->ca_name, "mpic") == 0) { OF_getprop(ca->ca_node, "device_type", type, sizeof(type)); - if (strcmp(type, "open-pic") == 0) + if (strcmp(type, "open-pic") == 0) return 1; } return 0; @@ -634,6 +635,7 @@ ext_intr_openpic() splx(pcpl); /* Process pendings. */ } + void openpic_init() { |