summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/vboy/rom.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-09-13 08:41:44 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-09-13 08:41:44 +0200
commitf88cefad27a1737c76e09d99c9fb43e173506081 (patch)
tree2d8167d03579c46e226471747eb4407bd00ed6fa /src/devices/bus/vboy/rom.h
parente92ac9e0fa8e99869894bea00589bbb526be30aa (diff)
Move all devices into separate part of src tree (nw)
Diffstat (limited to 'src/devices/bus/vboy/rom.h')
-rw-r--r--src/devices/bus/vboy/rom.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/devices/bus/vboy/rom.h b/src/devices/bus/vboy/rom.h
new file mode 100644
index 00000000000..0f26468892b
--- /dev/null
+++ b/src/devices/bus/vboy/rom.h
@@ -0,0 +1,47 @@
+// license:BSD-3-Clause
+// copyright-holders:Fabio Priuli
+#ifndef __VBOY_ROM_H
+#define __VBOY_ROM_H
+
+#include "slot.h"
+
+
+// ======================> vboy_rom_device
+
+class vboy_rom_device : public device_t,
+ public device_vboy_cart_interface
+{
+public:
+ // construction/destruction
+ vboy_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
+ vboy_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+
+ // device-level overrides
+ virtual void device_start() {}
+
+ // reading and writing
+ virtual DECLARE_READ32_MEMBER(read_cart);
+};
+
+// ======================> vboy_eeprom_device
+
+class vboy_eeprom_device : public vboy_rom_device
+{
+public:
+ // construction/destruction
+ vboy_eeprom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+
+ // reading and writing
+ virtual DECLARE_READ32_MEMBER(read_eeprom);
+ virtual DECLARE_WRITE32_MEMBER(write_eeprom);
+};
+
+
+
+// device type definition
+extern const device_type VBOY_ROM_STD;
+extern const device_type VBOY_ROM_EEPROM;
+
+
+
+#endif