summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio/namco52.h
blob: 43fa2c1795b81f3cd27381a07078f7f89565c0ac (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
32
33
34
35
#ifndef NAMCO52_H
#define NAMCO52_H

#include "devlegcy.h"
#include "sound/discrete.h"
#include "devcb.h"


typedef struct _namco_52xx_interface namco_52xx_interface;
struct _namco_52xx_interface
{
	const char *	discrete;	/* name of the discrete sound device */
	int				firstnode;	/* index of the first node */
	attoseconds_t	extclock;	/* external clock period */
	devcb_read8		romread;	/* ROM read handler */
	devcb_read8 	si;			/* SI (pin 6) read handler */
};


#define MDRV_NAMCO_52XX_ADD(_tag, _clock, _interface) \
	MDRV_DEVICE_ADD(_tag, NAMCO_52XX, _clock) \
	MDRV_DEVICE_CONFIG(_interface)


WRITE8_DEVICE_HANDLER( namco_52xx_write );


DECLARE_LEGACY_DEVICE(NAMCO_52XX, namco_52xx);


/* discrete nodes */
#define NAMCO_52XX_P_DATA(base)		(base)


#endif	/* NAMCO52_H */