#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_MIDOUw'wGy*yGGG*G-=@E-=@E-III-III;@DGE;F@GDGGH(y(pppp?llllll?lllllll^l]l\l\l\ll^l]l\l\l\l?hhhhhhpppppppppppppppp?||||||tttttttttttt?p>p=p