diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-08-07 21:20:55 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-08-07 21:20:55 +0000 |
commit | 084a202b04e7dbd9cd647e130a24c7fd14e230d2 (patch) | |
tree | 202b7c909bcab73578f9ac1a902799b3d9c4cb28 /sys | |
parent | 7d1530ce69c36d6414bef7accc8b71dd1ab1c1c3 (diff) |
Add "dma" and "ledma" as busses that potentially have the root device on them.
Makes the Ultra-1 find its root disk again.
tested by nick@ and fgsch@, ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc64/sparc64/autoconf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/sparc64/sparc64/autoconf.c b/sys/arch/sparc64/sparc64/autoconf.c index 6d6a352ee1b..50a1efae1e2 100644 --- a/sys/arch/sparc64/sparc64/autoconf.c +++ b/sys/arch/sparc64/sparc64/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.68 2007/07/29 20:22:07 kettenis Exp $ */ +/* $OpenBSD: autoconf.c,v 1.69 2007/08/07 21:20:54 kettenis Exp $ */ /* $NetBSD: autoconf.c,v 1.51 2001/07/24 19:32:11 eeh Exp $ */ /* @@ -1042,10 +1042,11 @@ device_register(struct device *dev, void *aux) busname = busdev->dv_cfdata->cf_driver->cd_name; if (strcmp(busname, "mainbus") == 0 || strcmp(busname, "upa") == 0) node = ma->ma_node; + else if (strcmp(busname, "sbus") == 0 || + strcmp(busname, "dma") == 0 || strcmp(busname, "ledma") == 0) + node = sa->sa_node; else if (strcmp(busname, "pci") == 0) node = PCITAG_NODE(pa->pa_tag); - else if (strcmp(busname, "sbus") == 0) - node = sa->sa_node; if (node == bootnode) { nail_bootdev(dev, bp); |