summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/i386/i386/conf.c21
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".
OpenPOWER on IntegriCloud