summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/jvsdev.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-09-13 08:41:44 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-09-13 08:41:44 +0200
commitf88cefad27a1737c76e09d99c9fb43e173506081 (patch)
tree2d8167d03579c46e226471747eb4407bd00ed6fa /src/emu/machine/jvsdev.h
parente92ac9e0fa8e99869894bea00589bbb526be30aa (diff)
Move all devices into separate part of src tree (nw)
Diffstat (limited to 'src/emu/machine/jvsdev.h')
-rw-r--r--src/emu/machine/jvsdev.h54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/emu/machine/jvsdev.h b/src/emu/machine/jvsdev.h
deleted file mode 100644
index 97382ea1655..00000000000
--- a/src/emu/machine/jvsdev.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Olivier Galibert
-#ifndef __JVSDEV_H__
-#define __JVSDEV_H__
-
-#include "emu.h"
-
-#define MCFG_JVS_DEVICE_ADD(_tag, _type, _host) \
- MCFG_DEVICE_ADD(_tag, _type, 0) \
- jvs_device::static_set_jvs_host_tag(*device, _host);
-class jvs_host;
-
-class jvs_device : public device_t
-{
-public:
- jvs_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
- static void static_set_jvs_host_tag(device_t &device, const char *jvs_host_tag);
-
- void chain(jvs_device *dev);
- void message(UINT8 dest, const UINT8 *send_buffer, UINT32 send_size, UINT8 *recv_buffer, UINT32 &recv_size);
- bool get_address_set_line();
-
-protected:
- UINT32 jvs_outputs;
-
- void handle_output(ioport_port *port, UINT8 id, UINT8 val);
-
- // device-level overrides
- virtual void device_start();
- virtual void device_reset();
-
- // JVS device overrides
- virtual const char *device_id();
- virtual UINT8 command_format_version();
- virtual UINT8 jvs_standard_version();
- virtual UINT8 comm_method_version();
- virtual void function_list(UINT8 *&buf);
- virtual bool switches(UINT8 *&buf, UINT8 count_players, UINT8 bytes_per_switch);
- virtual bool coin_counters(UINT8 *&buf, UINT8 count);
- virtual bool coin_add(UINT8 slot, INT32 count);
- virtual bool analogs(UINT8 *&buf, UINT8 count);
- virtual bool swoutputs(UINT8 count, const UINT8 *vals);
- virtual bool swoutputs(UINT8 id, UINT8 val);
-
-private:
- const char *jvs_host_tag;
- jvs_device *next_device;
- UINT8 jvs_address;
- UINT32 jvs_reset_counter;
-
- int handle_message(const UINT8 *send_buffer, UINT32 send_size, UINT8 *&recv_buffer);
-};
-
-#endif