summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/pce/pce_slot.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/pce/pce_slot.h')
-rw-r--r--src/devices/bus/pce/pce_slot.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/devices/bus/pce/pce_slot.h b/src/devices/bus/pce/pce_slot.h
index 3aa6b3593dd..77d5a82d0b3 100644
--- a/src/devices/bus/pce/pce_slot.h
+++ b/src/devices/bus/pce/pce_slot.h
@@ -1,7 +1,9 @@
// license:BSD-3-Clause
// copyright-holders:Fabio Priuli
-#ifndef __PCE_SLOT_H
-#define __PCE_SLOT_H
+#ifndef MAME_BUS_PCE_PCE_SLOT_H
+#define MAME_BUS_PCE_PCE_SLOT_H
+
+#pragma once
#include "softlist_dev.h"
@@ -28,7 +30,6 @@ class device_pce_cart_interface : public device_slot_card_interface
{
public:
// construction/destruction
- device_pce_cart_interface(const machine_config &mconfig, device_t &device);
virtual ~device_pce_cart_interface();
// reading and writing
@@ -42,13 +43,16 @@ public:
uint32_t get_rom_size() { return m_rom_size; }
uint32_t get_ram_size() { return m_ram.size(); }
+ void rom_map_setup(uint32_t size);
+
+protected:
+ device_pce_cart_interface(const machine_config &mconfig, device_t &device);
+
// internal state
uint8_t *m_rom;
uint32_t m_rom_size;
std::vector<uint8_t> m_ram;
- void rom_map_setup(uint32_t size);
-
uint8_t rom_bank_map[8]; // 128K chunks of rom
};
@@ -95,18 +99,16 @@ public:
virtual DECLARE_READ8_MEMBER(read_cart);
virtual DECLARE_WRITE8_MEMBER(write_cart);
-
protected:
-
const char *m_interface;
int m_type;
- device_pce_cart_interface* m_cart;
+ device_pce_cart_interface *m_cart;
};
// device type definition
-extern const device_type PCE_CART_SLOT;
+DECLARE_DEVICE_TYPE(PCE_CART_SLOT, pce_cart_slot_device)
/***************************************************************************
@@ -126,4 +128,4 @@ extern const device_type PCE_CART_SLOT;
static_cast<pce_cart_slot_device *>(device)->set_intf("tg16_cart");
-#endif
+#endif // MAME_BUS_PCE_PCE_SLOT_H