summaryrefslogtreecommitdiffstatshomepage
path: root/trunk/src/emu/machine/rtc65271.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/emu/machine/rtc65271.h')
-rw-r--r--trunk/src/emu/machine/rtc65271.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/trunk/src/emu/machine/rtc65271.h b/trunk/src/emu/machine/rtc65271.h
new file mode 100644
index 00000000000..2c33a9b9a0d
--- /dev/null
+++ b/trunk/src/emu/machine/rtc65271.h
@@ -0,0 +1,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)(device_t *device, int state);
+};
+
+
+#define MCFG_RTC65271_ADD(_tag, _callback) \
+ MCFG_DEVICE_ADD(_tag, RTC65271, 0) \
+ MCFG_DEVICE_CONFIG_DATAPTR(rtc65271_config, interrupt_callback, _callback)
+
+
+UINT8 rtc65271_r(device_t *device, int xramsel, offs_t offset);
+void rtc65271_w(device_t *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