diff options
Diffstat (limited to 'src/emu/cpu/tms32031/tms32031.h')
-rw-r--r-- | src/emu/cpu/tms32031/tms32031.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/src/emu/cpu/tms32031/tms32031.h b/src/emu/cpu/tms32031/tms32031.h new file mode 100644 index 00000000000..3a19a6e93a7 --- /dev/null +++ b/src/emu/cpu/tms32031/tms32031.h @@ -0,0 +1,71 @@ +/*************************************************************************** + + tms32031.h + Interface file for the portable TMS32C031 emulator. + Written by Aaron Giles + +***************************************************************************/ + +#ifndef _TMS32031_H +#define _TMS32031_H + +#include "cpuintrf.h" + + +/*************************************************************************** + TYPE DEFINITIONS +***************************************************************************/ + +struct tms32031_config +{ + UINT32 bootoffset; + void (*xf0_w)(UINT8 val); + void (*xf1_w)(UINT8 val); + void (*iack_w)(UINT8 val, offs_t addr); +}; + + +/*************************************************************************** + REGISTER ENUMERATION +***************************************************************************/ + +enum +{ + TMS32031_PC=1, + TMS32031_R0,TMS32031_R1,TMS32031_R2,TMS32031_R3, + TMS32031_R4,TMS32031_R5,TMS32031_R6,TMS32031_R7, + TMS32031_R0F,TMS32031_R1F,TMS32031_R2F,TMS32031_R3F, + TMS32031_R4F,TMS32031_R5F,TMS32031_R6F,TMS32031_R7F, + TMS32031_AR0,TMS32031_AR1,TMS32031_AR2,TMS32031_AR3, + TMS32031_AR4,TMS32031_AR5,TMS32031_AR6,TMS32031_AR7, + TMS32031_DP,TMS32031_IR0,TMS32031_IR1,TMS32031_BK, + TMS32031_SP,TMS32031_ST,TMS32031_IE,TMS32031_IF, + TMS32031_IOF,TMS32031_RS,TMS32031_RE,TMS32031_RC +}; + + +/*************************************************************************** + INTERRUPT CONSTANTS +***************************************************************************/ + +#define TMS32031_IRQ0 0 /* IRQ0 */ +#define TMS32031_IRQ1 1 /* IRQ1 */ +#define TMS32031_IRQ2 2 /* IRQ2 */ +#define TMS32031_IRQ3 3 /* IRQ3 */ +#define TMS32031_XINT0 4 /* serial 0 transmit interrupt */ +#define TMS32031_RINT0 5 /* serial 0 receive interrupt */ +#define TMS32031_XINT1 6 /* serial 1 transmit interrupt */ +#define TMS32031_RINT1 7 /* serial 1 receive interrupt */ +#define TMS32031_TINT0 8 /* timer 0 interrupt */ +#define TMS32031_TINT1 9 /* timer 1 interrupt */ +#define TMS32031_DINT 10 /* DMA interrupt */ + + +/*************************************************************************** + PUBLIC FUNCTIONS +***************************************************************************/ + +extern void tms32031_get_info(UINT32 state, cpuinfo *info); +extern void tms32032_get_info(UINT32 state, cpuinfo *info); + +#endif /* _TMS32031_H */ |