summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/vc4000/rom.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/vc4000/rom.h')
-rw-r--r--src/devices/bus/vc4000/rom.h29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/devices/bus/vc4000/rom.h b/src/devices/bus/vc4000/rom.h
index dcd5d3b37f8..a8d524f2989 100644
--- a/src/devices/bus/vc4000/rom.h
+++ b/src/devices/bus/vc4000/rom.h
@@ -1,7 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Fabio Priuli
-#ifndef __VC4000_ROM_H
-#define __VC4000_ROM_H
+#ifndef MAME_BUS_VC4000_ROM_H
+#define MAME_BUS_VC4000_ROM_H
#include "slot.h"
@@ -13,15 +13,17 @@ class vc4000_rom_device : public device_t,
{
public:
// construction/destruction
- vc4000_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source);
vc4000_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- // device-level overrides
- virtual void device_start() override {}
- virtual void device_reset() override {}
-
// reading and writing
virtual DECLARE_READ8_MEMBER(read_rom) override;
+
+protected:
+ vc4000_rom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
+
+ // device-level overrides
+ virtual void device_start() override { }
+ virtual void device_reset() override { }
};
// ======================> vc4000_rom4k_device
@@ -62,13 +64,10 @@ public:
-
-
// device type definition
-extern const device_type VC4000_ROM_STD;
-extern const device_type VC4000_ROM_ROM4K;
-extern const device_type VC4000_ROM_RAM1K;
-extern const device_type VC4000_ROM_CHESS2;
-
+DECLARE_DEVICE_TYPE(VC4000_ROM_STD, vc4000_rom_device)
+DECLARE_DEVICE_TYPE(VC4000_ROM_ROM4K, vc4000_rom4k_device)
+DECLARE_DEVICE_TYPE(VC4000_ROM_RAM1K, vc4000_ram1k_device)
+DECLARE_DEVICE_TYPE(VC4000_ROM_CHESS2, vc4000_chess2_device)
-#endif
+#endif // MAME_BUS_VC4000_ROM_H