1 #ifndef MIDI_CAMDDEVICES_H
2 #define MIDI_CAMDDEVICES_H
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
10 # include <exec/types.h>
13 #ifndef LIBCORE_COMPILER_H
14 # include <libcore/compiler.h>
19 void (* ASM ActivateXmit
)(APTR
REG(a2
) userdata
,ULONG
REG(d0
) portnum
);
22 struct MidiDeviceData
{
31 /* Called right after LoadSeg() */
33 /* Added. -Kjetil M. */
38 /* Called right before UnLoadSeg() */
39 void (*Expunge
)(void);
41 struct MidiPortData
*(ASM
*OpenPort
)(
42 REG(a3
) struct MidiDeviceData
*data
,
44 REG(a0
) ULONG (* ASM transmitfunc
)(APTR
REG(a2
) userdata
),
45 REG(a1
) void (* ASM recievefunc
)(UWORD
REG(d0
) input
, APTR
REG(a2
) userdata
),
49 void (ASM
*ClosePort
)(
50 REG(a3
) struct MidiDeviceData
*data
,
54 /* Number of ports. Cam be set in the Init-function if prefered. */
57 /* 0=Old format, 1=new. Aros only supports the new format, so set this flag (ie. Flags=1) for now. */
62 #define MDD_Magic ((ULONG)'M'<<24|(ULONG)'D'<<16|'E'<<8|'V')