-1) Decide if you want the midi driver to be part of the kernel, or
    a loadable module.  If you want it to be part of the kernel follow
    the first set of instruction.  If you want it to be a loadable
    module, follow the second set.  The loadable module stuff hasn't
    been tested.  I don't know if it will work.

KERNEL BUILTIN
0) All paths are relative to /usr/src/linux
1) Put the files midi.c, midiconf.c, quad.c and quad.h in drivers/char
2) Put midi.h in include/linux
3) Edit midiconf.c for the correct setup for your MPU401s.
4) Apply the patches in midi.patch from the /usr/src/linux directory
     patch -p < midi.patch
5) make a major number for MIDI_MAJOR in include/linux/major.h
   Something like:
     #define MIDI_MAJOR 28
6) make the midi devices in /dev.  Feel free to make extras if you
   have more than 3 MPU401s.  Having extra entries in /dev doesn't
   hurt anything.  I've assumed that the MIDI_MAJOR number is 28,
   if it is something else, change the 28s in the following lines
   to the correct value.

   mknod /dev/midi0 c 28 0
   mknod /dev/midi1 c 28 1
   mknod /dev/midi2 c 28 2
   chmod 666 /dev/midi*

7) reconfig "make config"
8) rebuild and install the kernel normally
9) you're done

LOADABLE MODULE
1) Put midi.h in <linux/midi.h>
2) Edit midiconf.c for the correct setup for your MPU401s.
3) make a major number for MIDI_MAJOR in <linux/major.h>
   Something like:
     #define MIDI_MAJOR 28
4) make the midi devices in /dev.  Feel free to make extras if you
   have more than 3 MPU401s.  Having extra entries in /dev doesn't
   hurt anything.  I've assumed that the MIDI_MAJOR number is 28,
   if it is something else, change the 28s in the following lines
   to the correct value.

   mknod /dev/midi0 c 28 0
   mknod /dev/midi1 c 28 1
   mknod /dev/midi2 c 28 2
   chmod 666 /dev/midi*

5) Take a look at the Makefile, I don't think you'll need to make
    any changes, but you never know.
6) make
7) "insmod midimodule" to install module
8) "rmmod midimodule" (or is that "rmmod midi"?) to remove module
9) that's it
