summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-06-08 09:12:48 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-06-08 09:12:48 +0000
commitfdc68389b9dfe6e5d35bc6cb6b180e9daf9e61e2 (patch)
treea4460d2ec87ff4da7cc88b4cae0ebcf64034dc98 /sys/arch/i386
parent9a887c22a316f9b94faed82ec7af6c138ff71262 (diff)
Initial support ATAPI CD-ROMs.
Based on Manuel Bouyer's drivers.
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/conf/GENERIC5
-rw-r--r--sys/arch/i386/conf/files.i3869
-rw-r--r--sys/arch/i386/i386/conf.c8
3 files changed, 18 insertions, 4 deletions
diff --git a/sys/arch/i386/conf/GENERIC b/sys/arch/i386/conf/GENERIC
index c54c3aa4fc2..356393cb9ea 100644
--- a/sys/arch/i386/conf/GENERIC
+++ b/sys/arch/i386/conf/GENERIC
@@ -1,4 +1,4 @@
-# $OpenBSD: GENERIC,v 1.17 1996/06/01 11:55:46 deraadt Exp $
+# $OpenBSD: GENERIC,v 1.18 1996/06/08 09:12:37 downsj Exp $
# $NetBSD: GENERIC,v 1.48 1996/05/20 18:17:23 mrg Exp $
#
# GENERIC -- everything that's currently supported
@@ -174,6 +174,9 @@ wdc0 at isa? port 0x1f0 irq 14 # ST506, ESDI, and IDE controllers
#wdc1 at isa? port 0x170 irq ?
wd* at wdc? drive ?
+atapibus* at wdc?
+acd* at atapibus? drive?
+
wt0 at isa? port 0x300 irq 5 drq 1 # Archive and Wangtek QIC tape drives
ed0 at isa? port 0x280 iomem 0xd0000 irq 9 # WD/SMC, 3C503, and NE[12]000
diff --git a/sys/arch/i386/conf/files.i386 b/sys/arch/i386/conf/files.i386
index 090060a917a..3b6d3146ce0 100644
--- a/sys/arch/i386/conf/files.i386
+++ b/sys/arch/i386/conf/files.i386
@@ -1,4 +1,4 @@
-# $OpenBSD: files.i386,v 1.17 1996/05/10 12:43:59 deraadt Exp $
+# $OpenBSD: files.i386,v 1.18 1996/06/08 09:12:38 downsj Exp $
# $NetBSD: files.i386,v 1.73 1996/05/07 00:58:36 thorpej Exp $
#
# new style config file for i386 architecture
@@ -50,6 +50,13 @@ file arch/i386/i386/rd_root.c ramdisk_hooks
major {rd = 17}
#
+# Machine-independent ATAPI drivers
+#
+
+include "../../../dev/atapi/files.atapi"
+
+
+#
# System bus types
#
diff --git a/sys/arch/i386/i386/conf.c b/sys/arch/i386/i386/conf.c
index 952f0fbf57e..0766c2e7a27 100644
--- a/sys/arch/i386/i386/conf.c
+++ b/sys/arch/i386/i386/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.15 1996/05/07 07:21:31 deraadt Exp $ */
+/* $OpenBSD: conf.c,v 1.16 1996/06/08 09:12:39 downsj Exp $ */
/* $NetBSD: conf.c,v 1.75 1996/05/03 19:40:20 christos Exp $ */
/*
@@ -51,6 +51,8 @@ bdev_decl(sd);
bdev_decl(st);
#include "cd.h"
bdev_decl(cd);
+#include "acd.h"
+bdev_decl(acd);
#include "mcd.h"
bdev_decl(mcd);
#include "vnd.h"
@@ -83,6 +85,7 @@ struct bdevsw bdevsw[] =
bdev_disk_init(NSCD,scd), /* 15: Sony CD-ROM */
bdev_disk_init(NCCD,ccd), /* 16: concatenated disk driver */
bdev_disk_init(NRD,rd), /* 17: ram disk driver */
+ bdev_disk_init(NACD,acd), /* 18: ATAPI CD-ROM */
};
int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
@@ -147,6 +150,7 @@ cdev_decl(st);
#include "ss.h"
cdev_decl(ss);
cdev_decl(cd);
+cdev_decl(acd);
#include "lpt.h"
cdev_decl(lpt);
#include "ch.h"
@@ -215,7 +219,7 @@ struct cdevsw cdevsw[] =
cdev_ocis_init(NAPM,apm), /* 21: Advancded Power Management */
cdev_fd_init(1,filedesc), /* 22: file descriptor pseudo-device */
cdev_bpftun_init(NBPFILTER,bpf),/* 23: Berkeley packet filter */
- cdev_notdef(), /* 24 */
+ cdev_disk_init(NACD,acd), /* 24: ATAPI CD-ROM */
cdev_ocis_init(NPCMCIA,pcmcia), /* 25: PCMCIA Bus */
cdev_joy_init(NJOY,joy), /* 26: joystick */
cdev_spkr_init(NSPKR,spkr), /* 27: PC speaker */