diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2005-09-26 19:53:42 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2005-09-26 19:53:42 +0000 |
commit | b73580470eb34e95c0e8e32cdb9f470070a2833b (patch) | |
tree | 6a4b430d0758ed8b49397570fc40b49bfd1c5307 /sys | |
parent | fc1d71e378df19552015a128fe67e39d3bb2c89c (diff) |
Match "u3" as found in G5 systems.
ok drahn@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/macppc/dev/uni_n.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/macppc/dev/uni_n.c b/sys/arch/macppc/dev/uni_n.c index 6de710fb511..4c25ac357de 100644 --- a/sys/arch/macppc/dev/uni_n.c +++ b/sys/arch/macppc/dev/uni_n.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uni_n.c,v 1.9 2003/10/16 03:54:48 deraadt Exp $ */ +/* $OpenBSD: uni_n.c,v 1.10 2005/09/26 19:53:41 kettenis Exp $ */ /* * Copyright (c) 1998-2001 Dale Rahn. @@ -78,7 +78,7 @@ memcattach(struct device *parent, struct device *self, void *aux) if (len > 0) name[len] = 0; - if (strcmp (name, "uni-n")== 0) + if (strcmp(name, "uni-n") == 0 || strcmp(name, "u3") == 0) sc->baseaddr = uni_n_config(ca->ca_node); printf (": %s\n", name); @@ -94,7 +94,7 @@ uni_n_config(int handle) if (OF_getprop(handle, "name", name, sizeof name) > 0) { /* sanity test */ - if (!strcmp (name, "uni-n")) { + if (strcmp (name, "uni-n") == 0 || strcmp (name, "u3") == 0) { if (OF_getprop(handle, "reg", &address, sizeof address) > 0) { baseaddr = mapiodev(address, NBPG); |