summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/spc1000/vdp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/spc1000/vdp.h')
-rw-r--r--src/devices/bus/spc1000/vdp.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/devices/bus/spc1000/vdp.h b/src/devices/bus/spc1000/vdp.h
new file mode 100644
index 00000000000..d7311f8c104
--- /dev/null
+++ b/src/devices/bus/spc1000/vdp.h
@@ -0,0 +1,45 @@
+// license:BSD-3-Clause
+// copyright-holders:Fabio Priuli
+#ifndef __SPC1000_VDP_H__
+#define __SPC1000_VDP_H__
+
+#include "exp.h"
+#include "video/tms9928a.h"
+
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+// ======================> spc1000_vdp_exp_device
+
+class spc1000_vdp_exp_device : public device_t,
+ public device_spc1000_card_interface
+{
+public:
+ // construction/destruction
+ spc1000_vdp_exp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+
+ // optional information overrides
+ virtual machine_config_constructor device_mconfig_additions() const;
+
+public:
+ // device-level overrides
+ virtual void device_start();
+ virtual void device_reset();
+
+ virtual DECLARE_READ8_MEMBER(read);
+ virtual DECLARE_WRITE8_MEMBER(write);
+
+ DECLARE_WRITE_LINE_MEMBER(vdp_interrupt);
+
+private:
+ // internal state
+ required_device<tms9928a_device> m_vdp;
+};
+
+
+// device type definition
+extern const device_type SPC1000_VDP_EXP;
+
+#endif /* __SPC1000_VDP_H__ */