summaryrefslogtreecommitdiffstats
path: root/lib/libdisk
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2000-06-05 13:33:39 +0000
committernyan <nyan@FreeBSD.org>2000-06-05 13:33:39 +0000
commit78e26067f4dfa91f2899935acda22b6750b58562 (patch)
tree964f452625235a557ffdae225485192f082f93af /lib/libdisk
parent29e2987f18333cd9024fc33d510b463c60268660 (diff)
downloadFreeBSD-src-78e26067f4dfa91f2899935acda22b6750b58562.zip
FreeBSD-src-78e26067f4dfa91f2899935acda22b6750b58562.tar.gz
Re-support "wd" if PC98 is defined. Because PC-98 still uses the wd driver.
Diffstat (limited to 'lib/libdisk')
-rw-r--r--lib/libdisk/create_chunk.c6
-rw-r--r--lib/libdisk/disk.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/lib/libdisk/create_chunk.c b/lib/libdisk/create_chunk.c
index 5273428..2c6ad2d 100644
--- a/lib/libdisk/create_chunk.c
+++ b/lib/libdisk/create_chunk.c
@@ -278,9 +278,13 @@ MakeDev(struct chunk *c1, const char *path)
msgDebug("MakeDev: Called with %s on path %s\n", p, path);
if (!strcmp(p, "X"))
return 0;
-
+
if (!strncmp(p, "ad", 2))
cmaj = 116, p += 2;
+#ifdef PC98
+ else if (!strncmp(p, "wd", 2))
+ cmaj = 3, p += 2;
+#endif
else if (!strncmp(p, "wfd", 3))
cmaj = 87, p += 3;
else if (!strncmp(p, "afd", 3))
diff --git a/lib/libdisk/disk.c b/lib/libdisk/disk.c
index 48ae3f5..f75dcbf 100644
--- a/lib/libdisk/disk.c
+++ b/lib/libdisk/disk.c
@@ -441,7 +441,11 @@ Collapse_Disk(struct disk *d)
}
#endif
+#ifdef PC98
+static char * device_list[] = {"wd", "ad", "da", "afd", "fla", "idad", "mlxd", "amrd", "twed", "fd", 0};
+#else
static char * device_list[] = {"ad", "da", "afd", "fla", "idad", "mlxd", "amrd", "twed", "fd", 0};
+#endif
char **
Disk_Names()
OpenPOWER on IntegriCloud