summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/sparc64/autoconf.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/arch/sparc64/sparc64/autoconf.c b/sys/arch/sparc64/sparc64/autoconf.c
index 497513fa678..0603e75fb6f 100644
--- a/sys/arch/sparc64/sparc64/autoconf.c
+++ b/sys/arch/sparc64/sparc64/autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.c,v 1.12 2001/09/26 20:21:04 jason Exp $ */
+/* $OpenBSD: autoconf.c,v 1.13 2001/09/28 22:20:48 jason Exp $ */
/* $NetBSD: autoconf.c,v 1.51 2001/07/24 19:32:11 eeh Exp $ */
/*
@@ -1455,6 +1455,7 @@ static struct {
{ "pci", BUSCLASS_PCI, "ppb" },
{ "ide", BUSCLASS_PCI, "pciide" },
{ "disk", BUSCLASS_NONE, "wd" },
+ { "cmdk", BUSCLASS_NONE, "wd" },
{ "network", BUSCLASS_NONE, "hme" },
{ "SUNW,fas", BUSCLASS_NONE, "esp" },
{ "SUNW,hme", BUSCLASS_NONE, "hme" },
@@ -1611,6 +1612,15 @@ device_register(dev, aux)
bootpath_store(1, bp + 1);
DPRINTF(ACDB_BOOTDEV, ("\t-- found bus controller %s\n",
dev->dv_xname));
+ if (strcmp(bp->name, "ide") == 0 &&
+ strcmp((bp + 1)->name, "ata") == 0 &&
+ strcmp((bp + 2)->name, "cmdk") == 0) {
+ if (((bp + 2)->val[0] == (bp + 1)->val[0]) &&
+ ((bp + 1)->val[1] == 0)) {
+ (bp + 1)->dev = dev;
+ bootpath_store(1, bp + 2);
+ }
+ }
return;
}
} else if (strcmp(dvname, "le") == 0 ||