summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-09-20 23:12:20 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-09-20 23:12:20 +0000
commit8233f73b89e50d61e7a5fa577d552d0bc30a001d (patch)
tree8168a05b7c335deeed8aa8a651a568fb95a2f378 /sys
parentc922f1a659a0bb42a2e826c000568c540770e4af (diff)
Add wd & acd entries
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/arc/arc/conf.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/sys/arch/arc/arc/conf.c b/sys/arch/arc/arc/conf.c
index 8975ce8265f..495348e802a 100644
--- a/sys/arch/arc/arc/conf.c
+++ b/sys/arch/arc/arc/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.5 1996/08/29 09:25:54 deraadt Exp $ */
+/* $OpenBSD: conf.c,v 1.6 1996/09/20 23:12:19 niklas Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)conf.c 8.2 (Berkeley) 11/14/93
- * $Id: conf.c,v 1.5 1996/08/29 09:25:54 deraadt Exp $
+ * $Id: conf.c,v 1.6 1996/09/20 23:12:19 niklas Exp $
*/
#include <sys/param.h>
@@ -63,6 +63,10 @@ bdev_decl(sd);
bdev_decl(cd);
#include "fdc.h"
bdev_decl(fd);
+#include "wdc.h"
+bdev_decl(wd);
+#include "acd.h"
+bdev_decl(acd);
struct bdevsw bdevsw[] =
{
@@ -70,8 +74,8 @@ struct bdevsw bdevsw[] =
bdev_swap_init(1,sw), /* 1: should be here swap pseudo-dev */
bdev_disk_init(NVND,vnd), /* 2: vnode disk driver */
bdev_disk_init(NCD,cd), /* 3: SCSI CD-ROM */
- bdev_notdef(), /* 4: */
- bdev_notdef(), /* 5: */
+ bdev_disk_init(NWDC,wd), /* 4: ST506/ESDI/IDE disk */
+ bdev_disk_init(NACD,cd), /* 5: ATAPI CD-ROM */
bdev_notdef(), /* 6: */
bdev_disk_init(NFDC,fd), /* 7: Floppy disk driver */
bdev_notdef(), /* 8: */
@@ -144,6 +148,8 @@ cdev_decl(cd);
cdev_decl(random);
#include "uk.h"
cdev_decl(uk);
+cdev_decl(wd);
+cdev_decl(acd);
/* open, close, read, ioctl */
cdev_decl(ipl);
@@ -173,8 +179,8 @@ struct cdevsw cdevsw[] =
cdev_mouse_init(1,pms), /* 15: builtin PS2 style mouse */
cdev_lpr_init(NLPR,lpr), /* 16: lpr paralell printer interface */
cdev_tty_init(NACE,ace), /* 17: ace 16C450 serial interface */
- cdev_notdef(), /* 18: */
- cdev_notdef(), /* 19: */
+ cdev_disk_init(NWDC,wd), /* 18: ST506/ESDI/IDE disk */
+ cdev_disk_init(NACD,acd), /* 19: ATAPI CD-ROM */
cdev_tty_init(NPTY,pts), /* 20: pseudo-tty slave */
cdev_ptc_init(NPTY,ptc), /* 21: pseudo-tty master */
cdev_notdef(), /* 22: */
@@ -259,8 +265,8 @@ static int chrtoblktbl[MAXDEV] = {
/* 15 */ NODEV,
/* 16 */ NODEV,
/* 17 */ NODEV,
- /* 18 */ NODEV,
- /* 19 */ NODEV,
+ /* 18 */ 4,
+ /* 19 */ 5,
/* 20 */ NODEV,
/* 21 */ NODEV,
/* 22 */ NODEV,