summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/dmv/k233.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/dmv/k233.h')
-rw-r--r--src/devices/bus/dmv/k233.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/devices/bus/dmv/k233.h b/src/devices/bus/dmv/k233.h
new file mode 100644
index 00000000000..5aeb5b6c782
--- /dev/null
+++ b/src/devices/bus/dmv/k233.h
@@ -0,0 +1,44 @@
+// license:BSD-3-Clause
+// copyright-holders:Sandro Ronco
+#pragma once
+
+#ifndef __DMV_K233_H__
+#define __DMV_K233_H__
+
+#include "emu.h"
+#include "dmvbus.h"
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+// ======================>
+
+class dmv_k233_device :
+ public device_t,
+ public device_dmvslot_interface
+{
+public:
+ // construction/destruction
+ dmv_k233_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+
+protected:
+ // device-level overrides
+ virtual void device_start();
+ virtual void device_reset();
+
+ // dmvcart_interface overrides
+ virtual void io_write(address_space &space, int ifsel, offs_t offset, UINT8 data);
+ virtual bool read(offs_t offset, UINT8 &data);
+ virtual bool write(offs_t offset, UINT8 data);
+
+private:
+ bool m_enabled;
+ UINT8 * m_ram;
+};
+
+
+// device type definition
+extern const device_type DMV_K233;
+
+#endif /* __DMV_K233_H__ */