summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-04-21 23:35:53 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-04-21 23:35:53 +0000
commit1de0cd2637c5230feb1e1c54287a8e7782539c94 (patch)
tree651e5f966ebc0a2420afe265a5320868b72c6bca /sys
parent74759b22d6880e16968225b71bddbd677bd9b8e7 (diff)
Add ramdisk support.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/mac68k/mac68k/autoconf.c5
-rw-r--r--sys/arch/mac68k/mac68k/conf.c6
2 files changed, 6 insertions, 5 deletions
diff --git a/sys/arch/mac68k/mac68k/autoconf.c b/sys/arch/mac68k/mac68k/autoconf.c
index eee8aba8224..0680e6db680 100644
--- a/sys/arch/mac68k/mac68k/autoconf.c
+++ b/sys/arch/mac68k/mac68k/autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.c,v 1.15 2002/03/14 01:26:35 millert Exp $ */
+/* $OpenBSD: autoconf.c,v 1.16 2002/04/21 23:35:52 miod Exp $ */
/* $NetBSD: autoconf.c,v 1.38 1996/12/18 05:46:09 scottr Exp $ */
/*
@@ -137,6 +137,7 @@ struct nam2blk {
} nam2blk[] = {
{ "sd", 4 },
{ "cd", 6 },
+ { "rd", 13 },
};
static int
@@ -165,7 +166,7 @@ getdisk(str, len, defpart, devp)
for (dv = alldevs.tqh_first; dv != NULL;
dv = dv->dv_list.tqe_next) {
if (dv->dv_class == DV_DISK)
- printf(" %s[a-h]", dv->dv_xname);
+ printf(" %s[a-p]", dv->dv_xname);
#ifdef NFSCLIENT
if (dv->dv_class == DV_IFNET)
printf(" %s", dv->dv_xname);
diff --git a/sys/arch/mac68k/mac68k/conf.c b/sys/arch/mac68k/mac68k/conf.c
index 25c71cb0b88..eef0ca21468 100644
--- a/sys/arch/mac68k/mac68k/conf.c
+++ b/sys/arch/mac68k/mac68k/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.27 2001/12/11 23:19:02 miod Exp $ */
+/* $OpenBSD: conf.c,v 1.28 2002/04/21 23:35:52 miod Exp $ */
/* $NetBSD: conf.c,v 1.41 1997/02/11 07:35:49 scottr Exp $ */
/*
@@ -133,7 +133,7 @@ struct cdevsw cdevsw[] =
cdev_disk_init(NCD,cd), /* 15: SCSI CD-ROM */
cdev_notdef(), /* 16 */
cdev_ch_init(NCH,ch), /* 17: SCSI autochanger */
- cdev_notdef(), /* 18 */
+ cdev_disk_init(NRD,rd), /* 18: ramdisk device */
cdev_disk_init(NVND,vnd), /* 19: vnode disk driver */
cdev_disk_init(NCCD,ccd), /* 20: concatenated disk driver */
cdev_fd_init(1,filedesc), /* 21: file descriptor pseudo-device */
@@ -237,7 +237,7 @@ static int chrtoblktab[] = {
/* 15 */ 6,
/* 16 */ NODEV,
/* 17 */ NODEV,
- /* 18 */ NODEV,
+ /* 18 */ 13,
/* 19 */ 8,
/* 20 */ 9,
};