blob: 14e8cdaeca5e6796d59eff401365b3799662e515 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/*
ataridev.h
*/
#ifndef _ATARIDEV_H
#define _ATARIDEV_H
#define ATARI_5200 0
#define ATARI_400 1
#define ATARI_800 2
#define ATARI_600XL 3
#define ATARI_800XL 4
/*----------- defined in machine/ataricrt.c -----------*/
MACHINE_START( a400 );
MACHINE_START( a800 );
MACHINE_START( a800xl );
MACHINE_START( a5200 );
MACHINE_START( xegs );
/*----------- defined in machine/atarifdc.c -----------*/
/***************************************************************************
MACROS
***************************************************************************/
class atari_fdc_device : public device_t
{
public:
atari_fdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
~atari_fdc_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 void device_reset();
virtual machine_config_constructor device_mconfig_additions() const;
private:
// internal state
void *m_token;
};
extern const device_type ATARI_FDC;
#define MCFG_ATARI_FDC_ADD(_tag) \
MCFG_DEVICE_ADD((_tag), ATARI_FDC, 0)
/***************************************************************************
FUNCTION PROTOTYPES
***************************************************************************/
DECLARE_READ8_DEVICE_HANDLER( atari_serin_r );
DECLARE_WRITE8_DEVICE_HANDLER( atari_serout_w );
WRITE_LINE_DEVICE_HANDLER( atarifdc_pia_cb2_w );
#endif /* _ATARIDEV_H */
|