summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author Angelo Salese <angelosa@users.noreply.github.com>2012-09-12 01:24:33 +0000
committer Angelo Salese <angelosa@users.noreply.github.com>2012-09-12 01:24:33 +0000
commitd08ebf6013e0cd5a74da8224d14eb7ca0f9e9606 (patch)
tree93f08f84466e7a97f3be290403a5c854964b38a9 /src/emu
parent088753e7c55b3c26b72513be9b9d3534b3e40544 (diff)
Place-holder
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/emu.mak1
-rw-r--r--src/emu/machine/seibu_cop.c96
-rw-r--r--src/emu/machine/seibu_cop.h74
3 files changed, 171 insertions, 0 deletions
diff --git a/src/emu/emu.mak b/src/emu/emu.mak
index 67d9bb9bde0..4e65cda9391 100644
--- a/src/emu/emu.mak
+++ b/src/emu/emu.mak
@@ -250,6 +250,7 @@ EMUMACHINEOBJS = \
$(EMUMACHINE)/scsidev.o \
$(EMUMACHINE)/scsihd.o \
$(EMUMACHINE)/secflash.o \
+ $(EMUMACHINE)/seibu_cop.o \
$(EMUMACHINE)/smc91c9x.o \
$(EMUMACHINE)/tc009xlvc.o \
$(EMUMACHINE)/timekpr.o \
diff --git a/src/emu/machine/seibu_cop.c b/src/emu/machine/seibu_cop.c
new file mode 100644
index 00000000000..588062471e5
--- /dev/null
+++ b/src/emu/machine/seibu_cop.c
@@ -0,0 +1,96 @@
+/***************************************************************************
+
+Template for skeleton device
+
+***************************************************************************/
+
+#include "emu.h"
+#include "machine/seibu_cop.h"
+
+
+
+//**************************************************************************
+// GLOBAL VARIABLES
+//**************************************************************************
+
+// device type definition
+const device_type SEIBU_COP = &device_creator<seibu_cop_device>;
+
+
+//**************************************************************************
+// LIVE DEVICE
+//**************************************************************************
+
+//-------------------------------------------------
+// seibu_cop_device - constructor
+//-------------------------------------------------
+
+seibu_cop_device::seibu_cop_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+ : device_t(mconfig, SEIBU_COP, "seibu_cop", tag, owner, clock)
+{
+
+}
+
+
+//-------------------------------------------------
+// device_config_complete - perform any
+// operations now that the configuration is
+// complete
+//-------------------------------------------------
+
+void seibu_cop_device::device_config_complete()
+{
+ // inherit a copy of the static data
+ const seibu_cop_interface *intf = reinterpret_cast<const seibu_cop_interface *>(static_config());
+ if (intf != NULL)
+ *static_cast<seibu_cop_interface *>(this) = *intf;
+
+ // or initialize to defaults if none provided
+ else
+ {
+ memset(&m_in_mreq_cb, 0, sizeof(m_in_mreq_cb));
+ memset(&m_out_mreq_cb, 0, sizeof(m_out_mreq_cb));
+ }
+}
+
+//-------------------------------------------------
+// device_validity_check - perform validity checks
+// on this device
+//-------------------------------------------------
+
+void seibu_cop_device::device_validity_check(validity_checker &valid) const
+{
+}
+
+
+//-------------------------------------------------
+// device_start - device-specific startup
+//-------------------------------------------------
+
+void seibu_cop_device::device_start()
+{
+
+}
+
+
+//-------------------------------------------------
+// device_reset - device-specific reset
+//-------------------------------------------------
+
+void seibu_cop_device::device_reset()
+{
+}
+
+
+//**************************************************************************
+// READ/WRITE HANDLERS
+//**************************************************************************
+
+READ8_MEMBER( seibu_cop_device::read )
+{
+ return 0;
+}
+
+WRITE8_MEMBER( seibu_cop_device::write )
+{
+}
diff --git a/src/emu/machine/seibu_cop.h b/src/emu/machine/seibu_cop.h
new file mode 100644
index 00000000000..7b883540faf
--- /dev/null
+++ b/src/emu/machine/seibu_cop.h
@@ -0,0 +1,74 @@
+/***************************************************************************
+
+Template for skeleton device
+
+***************************************************************************/
+
+#pragma once
+
+#ifndef __SEIBU_COPDEV_H__
+#define __SEIBU_COPDEV_H__
+
+
+
+//**************************************************************************
+// INTERFACE CONFIGURATION MACROS
+//**************************************************************************
+
+#define MCFG_SEIBU_COP_ADD(_tag,_freq) \
+ MCFG_DEVICE_ADD(_tag, SEIBU_COP, _freq) \
+
+#define SEIBU_COP_INTERFACE(_name) \
+ const seibu_cop_interface (_name) =
+
+
+struct seibu_cop_interface
+{
+ // memory accessors
+ devcb_read8 m_in_mreq_cb;
+ devcb_write8 m_out_mreq_cb;
+};
+
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+// ======================> seibu_cop_device
+
+class seibu_cop_device : public device_t,
+ public seibu_cop_interface
+{
+public:
+ // construction/destruction
+ seibu_cop_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+
+ // I/O operations
+ DECLARE_WRITE8_MEMBER( write );
+ DECLARE_READ8_MEMBER( read );
+
+protected:
+ // device-level overrides
+ virtual void device_config_complete();
+ virtual void device_validity_check(validity_checker &valid) const;
+ virtual void device_start();
+ virtual void device_reset();
+
+private:
+ devcb_resolved_read8 m_in_mreq_func;
+ devcb_resolved_write8 m_out_mreq_func;
+};
+
+
+// device type definition
+extern const device_type SEIBU_COP;
+
+
+
+//**************************************************************************
+// GLOBAL VARIABLES
+//**************************************************************************
+
+
+
+#endif