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

« back to all changes in this revision

Viewing changes to mess/src/emu/machine/k033906.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
 
/***************************************************************************
2
 
 
3
 
    Konami 033906
4
 
 
5
 
***************************************************************************/
6
 
 
7
 
#pragma once
8
 
 
9
 
#ifndef __K033906_H__
10
 
#define __K033906_H__
11
 
 
12
 
#include "emu.h"
13
 
 
14
 
 
15
 
 
16
 
/***************************************************************************
17
 
    DEVICE CONFIGURATION MACROS
18
 
***************************************************************************/
19
 
 
20
 
#define MCFG_K033906_ADD(_tag, _config) \
21
 
        MCFG_DEVICE_ADD(_tag, K033906, 0) \
22
 
        MCFG_DEVICE_CONFIG(_config)
23
 
 
24
 
 
25
 
/***************************************************************************
26
 
    TYPE DEFINITIONS
27
 
***************************************************************************/
28
 
 
29
 
 
30
 
// ======================> k033906_interface
31
 
 
32
 
struct k033906_interface
33
 
{
34
 
        const char         *m_voodoo_tag;
35
 
};
36
 
 
37
 
 
38
 
 
39
 
// ======================> k033906_device
40
 
 
41
 
class k033906_device :  public device_t,
42
 
                        public k033906_interface
43
 
{
44
 
public:
45
 
    // construction/destruction
46
 
    k033906_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
47
 
 
48
 
        UINT32 k033906_r(UINT32 offset);
49
 
        void k033906_w(UINT32 offset, UINT32 data, UINT32 mem_mask);
50
 
        void k033906_set_reg(UINT8 state);
51
 
 
52
 
protected:
53
 
    // device-level overrides
54
 
    virtual void device_config_complete();
55
 
    virtual void device_start();
56
 
    virtual void device_reset() { }
57
 
    virtual void device_post_load() { }
58
 
    virtual void device_clock_changed() { }
59
 
 
60
 
private:
61
 
 
62
 
        UINT32 k033906_reg_r(int reg);
63
 
        void k033906_reg_w(int reg, UINT32 data);
64
 
 
65
 
        /* i/o lines */
66
 
        UINT32 *     m_reg;
67
 
        UINT32 *     m_ram;
68
 
 
69
 
        int          m_reg_set; // 1 = access reg / 0 = access ram
70
 
 
71
 
        device_t *m_voodoo;
72
 
};
73
 
 
74
 
 
75
 
// device type definition
76
 
extern const device_type K033906;
77
 
 
78
 
 
79
 
 
80
 
/***************************************************************************
81
 
    PROTOTYPES
82
 
***************************************************************************/
83
 
 
84
 
extern READ32_DEVICE_HANDLER( k033906_r );
85
 
extern WRITE32_DEVICE_HANDLER( k033906_w );
86
 
extern WRITE_LINE_DEVICE_HANDLER( k033906_set_reg );
87
 
 
88
 
 
89
 
#endif  /* __K033906_H__ */