summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/990_tap.h
blob: 280a70f6676452ca7caad375bcacc562f7c1804a (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
36
37
38
39
40
41
42
/*
    990_tap.h: include file for 990_tap.c
*/
extern DECLARE_READ16_DEVICE_HANDLER(ti990_tpc_r);
extern DECLARE_WRITE16_DEVICE_HANDLER(ti990_tpc_w);

/***************************************************************************
    TYPE DEFINITIONS
***************************************************************************/

struct ti990_tpc_interface
{
	void (*interrupt_callback)(running_machine &machine, int state);
};
/***************************************************************************
    MACROS
***************************************************************************/

class tap_990_device : public device_t
{
public:
	tap_990_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
	~tap_990_device() { global_free(m_token); }

	// access to legacy token
	void *token() const { assert(m_token != NULL); return m_token; }
protected:
	// device-level overrides
	virtual void device_config_complete();
	virtual void device_start();
	virtual machine_config_constructor device_mconfig_additions() const;
private:
	// internal state
	void *m_token;
};

extern const device_type TI990_TAPE_CTRL;


#define MCFG_TI990_TAPE_CTRL_ADD(_tag, _intrf)  \
	MCFG_DEVICE_ADD((_tag),  TI990_TAPE_CTRL, 0)\
	MCFG_DEVICE_CONFIG(_intrf)