The contents of this archive must be copied to the directory
/etc/conf/mcd first.

The driver uses major number 16, modify the appropriate line in
/usr/include/sys/devices.h:

#define MCD_MAJOR	16	/* Mitsumi CD-ROM drive			*/

An example devices.h is in the directory src, if devices.h isn't
already modified, copy this file to /usr/include.

Take a look at Space.c, the I/O address for the Mitsumi controler
must be changed to the right value. Space.c comes with the I/O address
0x300, which is the default I/O address for this controler. If you
jumpered it to another address it must be changed in Space.c appropriate.
Also the interrupt must be set correct, the default is IRQ10. The
driver doesn't use DMA yet, a later release might do. The controler
comes with the default of DMA channel 5, which is very bad because 5
is used by SoundBlaster cards by default. I jumpered my controler to
channel 6 and in Space.h 6 also is configured. This is not essential
with this release of the driver, but I would suggest to jumper the
card to a free DMA channel and configure it correct in Space.c, this
will save you trouble later.

Copy the file cdrom.h in the directory src to /usr/include/sys. This
header file includes ioctl functions and structures for the audio
support. The definitions are common for all supported CD-ROM drives,
this header file will become part of a future COHERENT distribution.

Add the following line into the section "old-style Coherent drivers"
into the file /etc/conf/mdevice:

mcd	-	CGHo	mcd	16	16	0	255	-1	-1

Add the following line into the section "old-style Coherent drivers"
into the file /etc/conf/sdevice:

mcd	Y	0	0	0	0	0x0	0x0	0x0	0x0

Now build a new kernel including this driver:
cd /etc/conf
bin/idmkcoh -o /coh.test

To create the special files in /dev needed for the drive run the
mkdev shell script. The script also creates a link to /dev/cdrom
if this file doesn't exist already. This is the default device used
by xcdplayer and cdview, it can be linked to other CD-ROM drivers
when more then one drive is installed in the machine.

Now reboot the machine with the new kernel coh.test. The driver prints
the release message to the console and some informations about the
used Mitsumi CD-ROM if one was found. If the driver doesn't find a CD-ROM
drive it print the message "No Mitsumi CD-ROM drive recognized" instead.
This means that eighter the I/O address in Space.c is wrong or the driver
isn't compatible to the used CD-ROM drive. So far I've tested it with
a Mitsumi FX001D revision 2.0. Theoretical this driver should work at
least with the drives LU005, FX001 and FX001D.
