Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/i386 recognize ed as boot device



details:   https://anonhg.NetBSD.org/src/rev/c12e59981e1b
branches:  trunk
changeset: 509472:c12e59981e1b
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat May 05 17:53:59 2001 +0000

description:
recognize ed as boot device

diffstat:

 sys/arch/i386/i386/autoconf.c |  13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diffs (48 lines):

diff -r 214cad22b869 -r c12e59981e1b sys/arch/i386/i386/autoconf.c
--- a/sys/arch/i386/i386/autoconf.c     Sat May 05 17:46:37 2001 +0000
+++ b/sys/arch/i386/i386/autoconf.c     Sat May 05 17:53:59 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.55 2000/11/26 17:44:09 ad Exp $ */
+/*     $NetBSD: autoconf.c,v 1.56 2001/05/05 17:53:59 jdolecek Exp $   */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -161,7 +161,8 @@
                if (dv->dv_class == DV_DISK &&
                    (!strcmp(dv->dv_cfdata->cf_driver->cd_name, "sd") ||
                     !strcmp(dv->dv_cfdata->cf_driver->cd_name, "wd") ||
-                    !strcmp(dv->dv_cfdata->cf_driver->cd_name, "ld")))
+                    !strcmp(dv->dv_cfdata->cf_driver->cd_name, "ld") ||
+                    !strcmp(dv->dv_cfdata->cf_driver->cd_name, "ed")))
                        i386_ndisks++;
 
        if (i386_ndisks == 0)
@@ -198,7 +199,8 @@
 #endif
                if (!strcmp(dv->dv_cfdata->cf_driver->cd_name, "sd") ||
                    !strcmp(dv->dv_cfdata->cf_driver->cd_name, "wd") ||
-                   !strcmp(dv->dv_cfdata->cf_driver->cd_name, "ld")) {
+                   !strcmp(dv->dv_cfdata->cf_driver->cd_name, "ld") ||
+                   !strcmp(dv->dv_cfdata->cf_driver->cd_name, "ed")) {
                        n++;
                        sprintf(i386_alldisks->dl_nativedisks[n].ni_devname,
                            "%s%d", dv->dv_cfdata->cf_driver->cd_name,
@@ -398,7 +400,8 @@
 
                        if (!strcmp(dv->dv_cfdata->cf_driver->cd_name, "sd") ||
                            !strcmp(dv->dv_cfdata->cf_driver->cd_name, "wd") ||
-                           !strcmp(dv->dv_cfdata->cf_driver->cd_name, "ld")) {
+                           !strcmp(dv->dv_cfdata->cf_driver->cd_name, "ld") ||
+                           !strcmp(dv->dv_cfdata->cf_driver->cd_name, "ed")) {
                                /*
                                 * Don't trust BIOS device numbers, try
                                 * to match the information passed by the
@@ -411,7 +414,7 @@
                                goto found;
                        }
 
-                       /* no "fd", "wd", "sd", "ld" */
+                       /* no "fd", "wd", "sd", "ld", "ed" */
                        continue;
 
 found:



Home | Main Index | Thread Index | Old Index