blob: f2095acdefaea571d7a076b7c495dfcd64b917f3 (
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
|
/*
rtc65271.h: include file for rtc65271.c
*/
#ifndef __RTC65271_H__
#define __RTC65271_H__
#include "devlegcy.h"
typedef struct _rtc65271_config rtc65271_config;
struct _rtc65271_config
{
void (*interrupt_callback)(running_device *device, int state);
};
#define MDRV_RTC65271_ADD(_tag, _callback) \
MDRV_DEVICE_ADD(_tag, RTC65271, 0) \
MDRV_DEVICE_CONFIG_DATAPTR(rtc65271_config, interrupt_callback, _callback)
UINT8 rtc65271_r(running_device *device, int xramsel, offs_t offset);
void rtc65271_w(running_device *device, int xramsel, offs_t offset, UINT8 data);
READ8_DEVICE_HANDLER( rtc65271_rtc_r );
READ8_DEVICE_HANDLER( rtc65271_xram_r );
WRITE8_DEVICE_HANDLER( rtc65271_rtc_w );
WRITE8_DEVICE_HANDLER( rtc65271_xram_w );
DECLARE_LEGACY_NVRAM_DEVICE(RTC65271, rtc65271);
#endif
|