summaryrefslogtreecommitdiff
path: root/sys/dev/ofw
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2000-10-16 00:18:02 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2000-10-16 00:18:02 +0000
commit36f0b804ea6e2d54da613fe035febc8b4fba140d (patch)
tree1f1a1fad812df6612217d95d808345f65e7ed4ca /sys/dev/ofw
parent516beee34db199bb0bba7e9a1e594a72da1d3a87 (diff)
configuration changes to enable the uni-north memory controller to enable
the ethernet pci bus. Allows the gm ethernet controller to configure.
Diffstat (limited to 'sys/dev/ofw')
-rw-r--r--sys/dev/ofw/ofbus.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/sys/dev/ofw/ofbus.c b/sys/dev/ofw/ofbus.c
index b234c7b0bd7..7bba2c0eb06 100644
--- a/sys/dev/ofw/ofbus.c
+++ b/sys/dev/ofw/ofbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofbus.c,v 1.8 2000/03/31 06:06:28 rahnds Exp $ */
+/* $OpenBSD: ofbus.c,v 1.9 2000/10/16 00:18:01 drahn Exp $ */
/* $NetBSD: ofbus.c,v 1.3 1996/10/13 01:38:11 christos Exp $ */
/*
@@ -109,7 +109,7 @@ ofrattach(parent, dev, aux)
void *aux;
{
int child;
- char name[5];
+ char name[64];
struct ofprobe *ofp = aux;
struct ofprobe probe;
int units;
@@ -161,13 +161,16 @@ ofbprobe(parent, cf, aux)
return 1;
}
+#ifdef __powerpc__
+void uni_n_config(int);
+#endif /* __powerpc__ */
void
ofbattach(parent, dev, aux)
struct device *parent, *dev;
void *aux;
{
int child;
- char name[5];
+ char name[20];
struct ofprobe *ofp = aux;
struct ofprobe probe;
int units;
@@ -196,6 +199,11 @@ ofbattach(parent, dev, aux)
#else
units = 2;
#endif
+
+#ifdef __powerpc__
+ } else if (!strcmp(name, "uni-n")) {
+ uni_n_config(ofp->phandle);
+#endif /* __powerpc__ */
}
}
for (child = OF_child(ofp->phandle); child; child = OF_peer(child)) {