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

« back to all changes in this revision

Viewing changes to mess/src/emu/cpu/jaguar/jaguar.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
 
    jaguar.h
4
 
    Interface file for the portable Jaguar DSP emulator.
5
 
    Written by Aaron Giles
6
 
 
7
 
***************************************************************************/
8
 
 
9
 
#pragma once
10
 
 
11
 
#ifndef __JAGUAR_H__
12
 
#define __JAGUAR_H__
13
 
 
14
 
 
15
 
 
16
 
/***************************************************************************
17
 
    GLOBAL CONSTANTS
18
 
***************************************************************************/
19
 
 
20
 
#define JAGUAR_VARIANT_GPU              0
21
 
#define JAGUAR_VARIANT_DSP              1
22
 
 
23
 
 
24
 
 
25
 
/***************************************************************************
26
 
    REGISTER ENUMERATION
27
 
***************************************************************************/
28
 
 
29
 
enum
30
 
{
31
 
        JAGUAR_PC=1,JAGUAR_FLAGS,
32
 
        JAGUAR_R0,JAGUAR_R1,JAGUAR_R2,JAGUAR_R3,JAGUAR_R4,JAGUAR_R5,JAGUAR_R6,JAGUAR_R7,
33
 
        JAGUAR_R8,JAGUAR_R9,JAGUAR_R10,JAGUAR_R11,JAGUAR_R12,JAGUAR_R13,JAGUAR_R14,JAGUAR_R15,
34
 
        JAGUAR_R16,JAGUAR_R17,JAGUAR_R18,JAGUAR_R19,JAGUAR_R20,JAGUAR_R21,JAGUAR_R22,JAGUAR_R23,
35
 
        JAGUAR_R24,JAGUAR_R25,JAGUAR_R26,JAGUAR_R27,JAGUAR_R28,JAGUAR_R29,JAGUAR_R30,JAGUAR_R31
36
 
};
37
 
 
38
 
enum
39
 
{
40
 
        G_FLAGS = 0,
41
 
        G_MTXC,
42
 
        G_MTXA,
43
 
        G_END,
44
 
        G_PC,
45
 
        G_CTRL,
46
 
        G_HIDATA,
47
 
        G_DIVCTRL,
48
 
        G_DUMMY,
49
 
        G_REMAINDER,
50
 
        G_CTRLMAX
51
 
};
52
 
 
53
 
enum
54
 
{
55
 
        D_FLAGS = 0,
56
 
        D_MTXC,
57
 
        D_MTXA,
58
 
        D_END,
59
 
        D_PC,
60
 
        D_CTRL,
61
 
        D_MOD,
62
 
        D_DIVCTRL,
63
 
        D_MACHI,
64
 
        D_REMAINDER,
65
 
        D_CTRLMAX
66
 
};
67
 
 
68
 
 
69
 
 
70
 
/***************************************************************************
71
 
    CONFIGURATION STRUCTURE
72
 
***************************************************************************/
73
 
 
74
 
typedef void (*jaguar_int_func)(device_t *device);
75
 
 
76
 
 
77
 
typedef struct _jaguar_cpu_config jaguar_cpu_config;
78
 
struct _jaguar_cpu_config
79
 
{
80
 
        jaguar_int_func         cpu_int_callback;
81
 
};
82
 
 
83
 
 
84
 
 
85
 
/***************************************************************************
86
 
    INTERRUPT CONSTANTS
87
 
***************************************************************************/
88
 
 
89
 
#define JAGUAR_IRQ0             0               /* IRQ0 */
90
 
#define JAGUAR_IRQ1             1               /* IRQ1 */
91
 
#define JAGUAR_IRQ2             2               /* IRQ2 */
92
 
#define JAGUAR_IRQ3             3               /* IRQ3 */
93
 
#define JAGUAR_IRQ4             4               /* IRQ4 */
94
 
#define JAGUAR_IRQ5             5               /* IRQ5 */
95
 
 
96
 
 
97
 
 
98
 
/***************************************************************************
99
 
    PUBLIC FUNCTIONS
100
 
***************************************************************************/
101
 
 
102
 
DECLARE_LEGACY_CPU_DEVICE(JAGUARGPU, jaguargpu);
103
 
extern void jaguargpu_ctrl_w(device_t *device, offs_t offset, UINT32 data, UINT32 mem_mask);
104
 
extern UINT32 jaguargpu_ctrl_r(device_t *device, offs_t offset);
105
 
 
106
 
DECLARE_LEGACY_CPU_DEVICE(JAGUARDSP, jaguardsp);
107
 
extern void jaguardsp_ctrl_w(device_t *device, offs_t offset, UINT32 data, UINT32 mem_mask);
108
 
extern UINT32 jaguardsp_ctrl_r(device_t *device, offs_t offset);
109
 
 
110
 
 
111
 
#endif /* __JAGUAR_H__ */