#define MIDI_CSR	0xfffc04
#define	MIDI_DATA	0xfffc06

typedef struct {
	char *buffer;		/*	buffer that holds midi Data	*/
	int	head;
	int tail;
	int size;
	int flag;
}MIDI_BUFFER;

#define BUFFER	0	/*	offsets for accessing BUFFER struct	*/
#define	HEAD	4
#define	TAIL	6
#define	SIZE	8
#define FLAG	10

#define	ENABLE_TX	0x20

/*
** Midi handler function numbers
*/

#define MIDIGET	0
#define MIDIPUT	1
#define MIDISTATIN	2
#define MIDISTATOUT	3
#define GET_MIDINREC	4
#define GET_MIDOUET_MIDOUET_MIDOUET_MIDOUET_MIDOU  w'  wG  y*  yG  G  G  *  G  -  =  @  E  -  =  @  E  -  I  I  I  -  I  I  I  ;  @  D  G  E;  F@  GD  GG  H(  y(pppp?llllll?lllllll^l]l\l\l\ll^l]l\l\l\l?hhhhhh<hhhhhh?p>ppppp<pppppp?p>ppppppppppp?||||||tttttttttttt?p>p=p<p<p<pppppppppppppppppp