1
/***************************************************************************
4
Interface file for the portable Jaguar DSP emulator.
7
***************************************************************************/
16
/***************************************************************************
18
***************************************************************************/
20
#define JAGUAR_VARIANT_GPU 0
21
#define JAGUAR_VARIANT_DSP 1
25
/***************************************************************************
27
***************************************************************************/
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
70
/***************************************************************************
71
CONFIGURATION STRUCTURE
72
***************************************************************************/
74
typedef void (*jaguar_int_func)(device_t *device);
77
typedef struct _jaguar_cpu_config jaguar_cpu_config;
78
struct _jaguar_cpu_config
80
jaguar_int_func cpu_int_callback;
85
/***************************************************************************
87
***************************************************************************/
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 */
98
/***************************************************************************
100
***************************************************************************/
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);
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);
111
#endif /* __JAGUAR_H__ */