summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/neogeo/boot_svc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/neogeo/boot_svc.h')
-rw-r--r--src/devices/bus/neogeo/boot_svc.h38
1 files changed, 20 insertions, 18 deletions
diff --git a/src/devices/bus/neogeo/boot_svc.h b/src/devices/bus/neogeo/boot_svc.h
index f0c676c8359..42c99e28d27 100644
--- a/src/devices/bus/neogeo/boot_svc.h
+++ b/src/devices/bus/neogeo/boot_svc.h
@@ -1,7 +1,9 @@
// license:BSD-3-Clause
// copyright-holders:S. Smith,David Haywood,Fabio Priuli
-#ifndef __NEOGEO_BOOTSVC_H
-#define __NEOGEO_BOOTSVC_H
+#ifndef MAME_BUS_NEOGEO_BOOT_SVC_H
+#define MAME_BUS_NEOGEO_BOOT_SVC_H
+
+#pragma once
#include "slot.h"
#include "boot_misc.h"
@@ -12,10 +14,10 @@
svcboot
**************************************************/
-class neogeo_svcboot_cart : public neogeo_bootleg_cart
+class neogeo_svcboot_cart_device : public neogeo_bootleg_cart_device
{
public:
- neogeo_svcboot_cart(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ neogeo_svcboot_cart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
virtual machine_config_constructor device_mconfig_additions() const override;
@@ -23,52 +25,52 @@ public:
virtual DECLARE_READ16_MEMBER(protection_r) override { return m_pvc_prot->protection_r(space, offset, mem_mask); }
virtual DECLARE_WRITE16_MEMBER(protection_w) override { m_pvc_prot->protection_w(space, offset, data, mem_mask); }
virtual void decrypt_all(DECRYPT_ALL_PARAMS) override;
- virtual int get_fixed_bank_type(void) override { return 0; }
+ virtual int get_fixed_bank_type() override { return 0; }
private:
required_device<pvc_prot_device> m_pvc_prot;
};
-extern const device_type NEOGEO_SVCBOOT_CART;
+DECLARE_DEVICE_TYPE(NEOGEO_SVCBOOT_CART, neogeo_svcboot_cart_device)
/*************************************************
svcplus
**************************************************/
-class neogeo_svcplus_cart : public neogeo_bootleg_cart
+class neogeo_svcplus_cart_device : public neogeo_bootleg_cart_device
{
public:
- neogeo_svcplus_cart(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ neogeo_svcplus_cart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
virtual void decrypt_all(DECRYPT_ALL_PARAMS) override;
- virtual int get_fixed_bank_type(void) override { return 0; }
+ virtual int get_fixed_bank_type() override { return 0; }
};
-extern const device_type NEOGEO_SVCPLUS_CART;
+DECLARE_DEVICE_TYPE(NEOGEO_SVCPLUS_CART, neogeo_svcplus_cart_device)
/*************************************************
svcplusa
**************************************************/
-class neogeo_svcplusa_cart : public neogeo_bootleg_cart
+class neogeo_svcplusa_cart_device : public neogeo_bootleg_cart_device
{
public:
- neogeo_svcplusa_cart(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ neogeo_svcplusa_cart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
virtual void decrypt_all(DECRYPT_ALL_PARAMS) override;
- virtual int get_fixed_bank_type(void) override { return 0; }
+ virtual int get_fixed_bank_type() override { return 0; }
};
-extern const device_type NEOGEO_SVCPLUSA_CART;
+DECLARE_DEVICE_TYPE(NEOGEO_SVCPLUSA_CART, neogeo_svcplusa_cart_device)
/*************************************************
svcsplus
**************************************************/
-class neogeo_svcsplus_cart : public neogeo_bootleg_cart
+class neogeo_svcsplus_cart_device : public neogeo_bootleg_cart_device
{
public:
- neogeo_svcsplus_cart(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ neogeo_svcsplus_cart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
virtual machine_config_constructor device_mconfig_additions() const override;
@@ -76,13 +78,13 @@ public:
virtual DECLARE_READ16_MEMBER(protection_r) override { return m_pvc_prot->protection_r(space, offset, mem_mask); }
virtual DECLARE_WRITE16_MEMBER(protection_w) override { m_pvc_prot->protection_w(space, offset, data, mem_mask); }
virtual void decrypt_all(DECRYPT_ALL_PARAMS) override;
- virtual int get_fixed_bank_type(void) override { return 0; }
+ virtual int get_fixed_bank_type() override { return 0; }
private:
required_device<pvc_prot_device> m_pvc_prot;
};
-extern const device_type NEOGEO_SVCSPLUS_CART;
+DECLARE_DEVICE_TYPE(NEOGEO_SVCSPLUS_CART, neogeo_svcsplus_cart_device)