From f196352632ad5a728a16d81b8ad7156caf7fe738 Mon Sep 17 00:00:00 2001 From: rahnds Date: Tue, 11 Feb 1997 14:51:28 +0000 Subject: [PATCH] Add ramdisk (rd) character major number, put the device in the character to block mapping table. --- sys/arch/mvme68k/mvme68k/conf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/arch/mvme68k/mvme68k/conf.c b/sys/arch/mvme68k/mvme68k/conf.c index 33e53e49d7a..ccf2befca54 100644 --- a/sys/arch/mvme68k/mvme68k/conf.c +++ b/sys/arch/mvme68k/mvme68k/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.14 1997/01/27 19:50:04 deraadt Exp $ */ +/* $OpenBSD: conf.c,v 1.15 1997/02/11 14:51:28 rahnds Exp $ */ /*- * Copyright (c) 1995 Theo de Raadt @@ -163,6 +163,7 @@ cdev_decl(lp); cdev_decl(lptwo); cdev_decl(xd); +cdev_decl(rd); dev_decl(filedesc,open); @@ -199,6 +200,7 @@ struct cdevsw cdevsw[] = cdev_notdef(), /* 16 */ cdev_notdef(), /* 17: concatenated disk */ cdev_notdef(), /* 18 */ + cdev_disk_init(NRD,rd), /* 18: ramdisk device */ cdev_disk_init(NVND,vnd), /* 19: vnode disk */ cdev_tape_init(NST,st), /* 20: SCSI tape */ cdev_fd_init(1,filedesc), /* 21: file descriptor pseudo-dev */ @@ -280,7 +282,7 @@ static int chrtoblktbl[] = { /* 15 */ NODEV, /* 16 */ NODEV, /* 17 */ NODEV, - /* 18 */ NODEV, + /* 18 */ 9, /* 19 */ 6, /* vnode disk */ /* 20 */ NODEV, /* 21 */ NODEV, -- 2.20.1