summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/odyssey2/rom.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/odyssey2/rom.h')
-rw-r--r--src/devices/bus/odyssey2/rom.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/devices/bus/odyssey2/rom.h b/src/devices/bus/odyssey2/rom.h
index d3931e96b88..823b47462c7 100644
--- a/src/devices/bus/odyssey2/rom.h
+++ b/src/devices/bus/odyssey2/rom.h
@@ -1,7 +1,9 @@
// license:BSD-3-Clause
// copyright-holders:Fabio Priuli
-#ifndef __O2_ROM_H
-#define __O2_ROM_H
+#ifndef MAME_BUS_ODYSSEY2_ROM_H
+#define MAME_BUS_ODYSSEY2_ROM_H
+
+#pragma once
#include "slot.h"
@@ -13,13 +15,8 @@ class o2_rom_device : public device_t,
{
public:
// construction/destruction
- o2_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);
o2_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_rom04) override;
virtual DECLARE_READ8_MEMBER(read_rom0c) override;
@@ -27,6 +24,12 @@ public:
virtual void write_bank(int bank) override;
protected:
+ o2_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;
+
int m_bank_base;
};
@@ -57,11 +60,9 @@ public:
};
-
// device type definition
-extern const device_type O2_ROM_STD;
-extern const device_type O2_ROM_12K;
-extern const device_type O2_ROM_16K;
-
+DECLARE_DEVICE_TYPE(O2_ROM_STD, o2_rom_device)
+DECLARE_DEVICE_TYPE(O2_ROM_12K, o2_rom12_device)
+DECLARE_DEVICE_TYPE(O2_ROM_16K, o2_rom16_device)
-#endif
+#endif // MAME_BUS_ODYSSEY2_ROM_H