summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/msx_slot/ram_mm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/msx_slot/ram_mm.h')
-rw-r--r--src/devices/bus/msx_slot/ram_mm.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/devices/bus/msx_slot/ram_mm.h b/src/devices/bus/msx_slot/ram_mm.h
index 1350d3c3158..584fc064897 100644
--- a/src/devices/bus/msx_slot/ram_mm.h
+++ b/src/devices/bus/msx_slot/ram_mm.h
@@ -1,7 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Wilbert Pol
-#ifndef __MSX_SLOT_RAM_MM_H
-#define __MSX_SLOT_RAM_MM_H
+#ifndef MAME_BUS_MSX_SLOT_RAM_MM_H
+#define MAME_BUS_MSX_SLOT_RAM_MM_H
#include "slot.h"
@@ -12,8 +12,7 @@
#define MCFG_MSX_SLOT_RAMM_SET_RAMIO_BITS(_ramio_set_bits) \
msx_slot_ram_mm_device::set_ramio_set_bits(*device, _ramio_set_bits);
-class msx_slot_ram_mm_device : public device_t
- , public msx_internal_slot_interface
+class msx_slot_ram_mm_device : public device_t, public msx_internal_slot_interface
{
public:
msx_slot_ram_mm_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
@@ -21,14 +20,15 @@ public:
static void set_total_size(device_t &device, uint32_t total_size) { dynamic_cast<msx_slot_ram_mm_device &>(device).m_total_size = total_size; }
static void set_ramio_set_bits(device_t &device, uint8_t ramio_set_bits) { dynamic_cast<msx_slot_ram_mm_device &>(device).m_ramio_set_bits = ramio_set_bits; }
- virtual void device_start() override;
-
virtual DECLARE_READ8_MEMBER(read) override;
virtual DECLARE_WRITE8_MEMBER(write) override;
DECLARE_READ8_MEMBER(read_mapper_bank);
DECLARE_WRITE8_MEMBER(write_mapper_bank);
+protected:
+ virtual void device_start() override;
+
void restore_banks();
private:
@@ -40,6 +40,6 @@ private:
uint8_t m_ramio_set_bits;
};
-extern const device_type MSX_SLOT_RAM_MM;
+DECLARE_DEVICE_TYPE(MSX_SLOT_RAM_MM, msx_slot_ram_mm_device)
-#endif
+#endif // MAME_BUS_MSX_SLOT_RAM_MM_H