blob: 461f63c55378feaf060613b1c678ec70c0c8e997 (
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
|
/***************************************************************************
NEC uPD4990A
Serial I/O Calendar & Clock IC
***************************************************************************/
#ifndef __PD4990A_OLD_H__
#define __PD4990A_OLD_H__
/***************************************************************************
MACROS / CONSTANTS
***************************************************************************/
class upd4990a_old_device : public device_t
{
public:
upd4990a_old_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
~upd4990a_old_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();
private:
// internal state
void *m_token;
};
extern ATTR_DEPRECATED const device_type UPD4990A_OLD;
#define MCFG_UPD4990A_OLD_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, UPD4990A_OLD, 0)
/***************************************************************************
PROTOTYPES
***************************************************************************/
/* this should be refactored, once RTCs get unified */
extern void upd4990a_addretrace( device_t *device );
extern DECLARE_READ8_DEVICE_HANDLER( upd4990a_testbit_r );
extern DECLARE_READ8_DEVICE_HANDLER( upd4990a_databit_r );
extern DECLARE_WRITE16_DEVICE_HANDLER( upd4990a_control_16_w );
#endif /*__PD4990A_H__*/
|