blob: cacee5de1cd78e69bf2d825c531476af33e012f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/*
Sega/Yamaha AICA emulation
*/
#ifndef __AICA_H__
#define __AICA_H__
#include "devlegcy.h"
typedef struct _aica_interface aica_interface;
struct _aica_interface
{
int master;
int roffset; /* offset in the region */
void (*irq_callback)(device_t *device, int state); /* irq callback */
};
void aica_set_ram_base(device_t *device, void *base, int size);
// AICA register access
READ16_DEVICE_HANDLER( aica_r );
WRITE16_DEVICE_HANDLER( aica_w );
// MIDI I/O access
WRITE16_DEVICE_HANDLER( aica_midi_in );
READ16_DEVICE_HANDLER( aica_midi_out_r );
DECLARE_LEGACY_SOUND_DEVICE(AICA, aica);
#endif /* __AICA_H__ */
|