diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1993-10-11 07:39:13 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1993-10-11 07:39:13 +0000 |
commit | 396138442fe237520848f1928d4fb15e8542193c (patch) | |
tree | 65786bc6470927fee973346c6395f0095e00bf6a | |
parent | 316de0240a276f817816893a313902d783f3e6b3 (diff) | |
download | FreeBSD-src-396138442fe237520848f1928d4fb15e8542193c.zip FreeBSD-src-396138442fe237520848f1928d4fb15e8542193c.tar.gz |
Add support for Holger Viets mitsumi cd rom driver as prepared by Gary
Clark II.
-rw-r--r-- | sys/i386/i386/conf.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/sys/i386/i386/conf.c b/sys/i386/i386/conf.c index a384256..d38af7d 100644 --- a/sys/i386/i386/conf.c +++ b/sys/i386/i386/conf.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)conf.c 5.8 (Berkeley) 5/12/91 - * $Id$ + * $Id: conf.c,v 1.9 1993/10/09 23:56:53 rgrimes Exp $ */ #include "param.h" @@ -102,6 +102,20 @@ int /*cddump(),*/cdsize(); #define cdsize NULL #endif +#include "mcd.h" +#if NMCD > 0 +int mcdopen(),mcdclose(),mcdstrategy(),mcdioctl(); +int /*mcddump(),*/mcdsize(); +#define mcddump enxio +#else +#define mcdopen enxio +#define mcdclose enxio +#define mcdstrategy enxio +#define mcdioctl enxio +#define mcddump enxio +#define mcdsize NULL +#endif + #include "ch.h" #if NCH > 0 int chopen(),chclose(),chioctl(); @@ -170,6 +184,8 @@ struct bdevsw bdevsw[] = stdump, stsize, NULL }, { cdopen, cdclose, cdstrategy, cdioctl, /*6*/ cddump, cdsize, NULL }, + { mcdopen, mcdclose, mcdstrategy, mcdioctl, /*7*/ + mcddump, mcdsize, NULL }, /* * If you need a bdev major number, please contact the 386bsd patchkit * coordinator by sending mail to "patches@cs.montana.edu". @@ -425,6 +441,9 @@ struct cdevsw cdevsw[] = { sioopen, sioclose, sioread, siowrite, /*28*/ sioioctl, siostop, sioreset, sio_tty, /* sio */ sioselect, enodev, NULL }, + { mcdopen, mcdclose, rawread, enodev, /*29*/ + mcdioctl, enodev, nullop, NULL, /* mitsumi cd */ + seltrue, enodev, mcdstrategy }, /* * If you need a cdev major number, please contact the 386bsd patchkit * coordinator by sending mail to "patches@cs.montana.edu". |