~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to src/mame/machine/maple-dc.h

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Emmanuel Kasper, Jordi Mallach
  • Date: 2012-06-05 20:02:23 UTC
  • mfrom: (0.3.1) (0.1.4)
  • Revision ID: package-import@ubuntu.com-20120605200223-gnlpogjrg6oqe9md
Tags: 0.146-1
[ Emmanuel Kasper ]
* New upstream release
* Drop patch to fix man pages section and patches to link with flac 
  and jpeg system lib: all this has been pushed upstream by Cesare Falco
* Add DM-Upload-Allowed: yes field.

[ Jordi Mallach ]
* Create a "gnu" TARGETOS stanza that defines NO_AFFINITY_NP.
* Stop setting TARGETOS to "unix" in d/rules. It should be autodetected,
  and set to the appropriate value.
* mame_manpage_section.patch: Change mame's manpage section to 6 (games),
  in the TH declaration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
#include "cpu/sh4/sh4.h"
5
5
 
6
 
#define MCFG_MAPLE_DC_ADD(_tag, _maincpu_tag) \
 
6
#define MCFG_MAPLE_DC_ADD(_tag, _maincpu_tag, _irq_cb)  \
7
7
        MCFG_DEVICE_ADD(_tag, MAPLE_DC, 0) \
8
 
        maple_dc_device::static_set_maincpu_tag(*device, _maincpu_tag);
 
8
        maple_dc_device::static_set_maincpu_tag(*device, _maincpu_tag); \
 
9
        maple_dc_device::static_set_irq_cb(*device, _irq_cb);
9
10
 
10
11
class maple_device;
11
12
 
14
15
public:
15
16
        maple_dc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
16
17
        static void static_set_maincpu_tag(device_t &device, const char *maincpu_tag);
 
18
        static void static_set_irq_cb(device_t &device, void (*irq_cb)(running_machine &));
17
19
 
18
20
        DECLARE_READ32_MEMBER(sb_mdstar_r);  // 5f6c04
19
21
        DECLARE_WRITE32_MEMBER(sb_mdstar_w);
57
59
 
58
60
        UINT32 dma_state, dma_adr, dma_port, dma_dest;
59
61
        bool dma_endflag;
 
62
        void (*irq_cb)(running_machine &);
60
63
 
61
64
        void dma_step();
62
65