~ubuntu-branches/ubuntu/raring/mame/raring-proposed

« back to all changes in this revision

Viewing changes to mess/src/emu/machine/jvsdev.h

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Jordi Mallach, Emmanuel Kasper
  • Date: 2011-12-19 22:56:27 UTC
  • mfrom: (0.1.2)
  • Revision ID: package-import@ubuntu.com-20111219225627-ub5oga1oys4ogqzm
Tags: 0.144-1
[ Jordi Mallach ]
* Fix syntax errors in DEP5 copyright file (lintian).
* Use a versioned copyright Format specification field.
* Update Vcs-* URLs.
* Move transitional packages to the new metapackages section, and make
  them priority extra.
* Remove references to GNU/Linux and MESS sources from copyright.
* Add build variables for s390x.
* Use .xz tarballs as it cuts 4MB for the upstream sources.
* Add nplayers.ini as a patch. Update copyright file to add CC-BY-SA-3.0.

[ Emmanuel Kasper ]
* New upstream release. Closes: #651538.
* Add Free Desktop compliant png icons of various sizes taken from
  the hydroxygen iconset
* Mess is now built from a new source package, to avoid possible source
  incompatibilities between mame and the mess overlay.
* Mame-tools are not built from the mame source package anymore, but
  from the mess source package

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef __JVSDEV_H__
2
 
#define __JVSDEV_H__
3
 
 
4
 
#include "emu.h"
5
 
 
6
 
#define MCFG_JVS_DEVICE_ADD(_tag, _type, _host) \
7
 
        MCFG_DEVICE_ADD(_tag, _type, 0) \
8
 
        jvs_device::static_set_jvs_host_tag(*device, _host); \
9
 
 
10
 
class jvs_host;
11
 
 
12
 
class jvs_device : public device_t
13
 
{
14
 
public:
15
 
        jvs_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
16
 
        static void static_set_jvs_host_tag(device_t &device, const char *jvs_host_tag);
17
 
 
18
 
        void chain(jvs_device *dev);
19
 
        void message(UINT8 dest, const UINT8 *send_buffer, UINT32 send_size, UINT8 *recv_buffer, UINT32 &recv_size);
20
 
        bool get_address_set_line();
21
 
 
22
 
protected:
23
 
        UINT32 jvs_outputs;
24
 
 
25
 
        void handle_output(const char *tag, UINT8 id, UINT8 val);
26
 
 
27
 
        // device-level overrides
28
 
        virtual void device_start();
29
 
        virtual void device_reset();
30
 
 
31
 
        // JVS device overrides
32
 
        virtual const char *device_id();
33
 
        virtual UINT8 command_format_version();
34
 
        virtual UINT8 jvs_standard_version();
35
 
        virtual UINT8 comm_method_version();
36
 
        virtual void function_list(UINT8 *&buf);
37
 
        virtual bool switches(UINT8 *&buf, UINT8 count_players, UINT8 bytes_per_switch);
38
 
        virtual bool coin_counters(UINT8 *&buf, UINT8 count);
39
 
        virtual bool coin_add(UINT8 slot, INT32 count);
40
 
        virtual bool analogs(UINT8 *&buf, UINT8 count);
41
 
        virtual bool swoutputs(UINT8 count, const UINT8 *vals);
42
 
        virtual bool swoutputs(UINT8 id, UINT8 val);
43
 
 
44
 
private:
45
 
        const char *jvs_host_tag;
46
 
        jvs_device *next_device;
47
 
        UINT8 jvs_address;
48
 
        UINT32 jvs_reset_counter;
49
 
 
50
 
        int handle_message(const UINT8 *send_buffer, UINT32 send_size, UINT8 *&recv_buffer);
51
 
};
52
 
 
53
 
#endif