summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/cchip_dev.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/cchip_dev.h')
-rw-r--r--src/mame/machine/cchip_dev.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/mame/machine/cchip_dev.h b/src/mame/machine/cchip_dev.h
new file mode 100644
index 00000000000..dd1f9a8655d
--- /dev/null
+++ b/src/mame/machine/cchip_dev.h
@@ -0,0 +1,43 @@
+// license:BSD-3-Clause
+// copyright-holders:David Haywood, Jonathan Gevaryahu
+
+#ifndef MAME_MACHINE_CCHIP_DEV
+#define MAME_MACHINE_CCHIP_DEV
+
+#pragma once
+
+#include "cpu/upd7810/upd7811.h"
+#include "machine/bankdev.h"
+
+DECLARE_DEVICE_TYPE(TAITO_CCHIP_DEV, taito_cchip_device)
+
+#define MCFG_TAITO_CCHIP_DEV_ADD(_tag, _clock) \
+ MCFG_DEVICE_ADD(_tag, TAITO_CCHIP_DEV, _clock)
+
+
+class taito_cchip_device : public device_t
+{
+public:
+ // construction/destruction
+ taito_cchip_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+ required_device<cpu_device> m_upd7811;
+ required_device<address_map_bank_device> m_upd4464_bank;
+ required_shared_ptr<uint8_t> m_upd4464;
+
+ // can this be accessed externally?
+ DECLARE_READ8_MEMBER(asic_r);
+ DECLARE_WRITE8_MEMBER(asic_w);
+ DECLARE_READ8_MEMBER(mem_r);
+ DECLARE_WRITE8_MEMBER(mem_w);
+
+protected:
+ virtual void device_add_mconfig(machine_config &config) override;
+ virtual void device_start() override;
+ virtual const tiny_rom_entry *device_rom_region() const override;
+ virtual void device_reset() override;
+
+private:
+};
+
+#endif // MAME_MACHINE_CCHIP_DEV