|
|
1.1 root 1: /*
1.1.1.2 root 2: DSP M56001 emulation
3: Dummy emulation, Hatari glue
1.1 root 4:
1.1.1.2 root 5: (C) 2001-2008 ARAnyM developer team
6: Adaption to Hatari (C) 2008 by Thomas Huth
1.1 root 7:
1.1.1.2 root 8: This program is free software; you can redistribute it and/or modify
9: it under the terms of the GNU General Public License as published by
10: the Free Software Foundation; either version 2 of the License, or
11: (at your option) any later version.
12:
13: This program is distributed in the hope that it will be useful,
14: but WITHOUT ANY WARRANTY; without even the implied warranty of
15: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16: GNU General Public License for more details.
17:
18: You should have received a copy of the GNU General Public License
19: along with this program; if not, write to the Free Software
20: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21: */
22:
23: #ifndef DSP_H
24: #define DSP_H
25:
1.1.1.3 root 26: #if ENABLE_DSP_EMU
1.1.1.2 root 27: # include "dsp_core.h"
28: #endif
1.1 root 29:
1.1.1.9 ! root 30: #define DSP_CPU_FREQ_RATIO 2 /* Dsp Freq = 2 * Cpu Freq (32 MHz vs 16 MHz on Falcon) */
1.1.1.4 root 31:
1.1.1.3 root 32: extern bool bDspEnabled;
1.1.1.4 root 33: extern bool bDspHostInterruptPending;
1.1.1.3 root 34:
1.1.1.9 ! root 35: extern Uint64 DSP_CyclesGlobalClockCounter;
! 36:
1.1.1.3 root 37: /* Dsp commands */
1.1.1.7 root 38: extern bool DSP_ProcessIRQ(void);
1.1 root 39: extern void DSP_Init(void);
40: extern void DSP_UnInit(void);
41: extern void DSP_Reset(void);
1.1.1.8 root 42: extern void DSP_Enable(void);
43: extern void DSP_Disable(void);
1.1.1.3 root 44: extern void DSP_Run(int nHostCycles);
45:
46: /* Save Dsp state to snapshot */
47: extern void DSP_MemorySnapShot_Capture(bool bSave);
48:
49: /* Dsp Debugger commands */
50: extern void DSP_SetDebugging(bool enabled);
1.1.1.5 root 51: extern Uint16 DSP_GetPC(void);
1.1.1.7 root 52: extern Uint16 DSP_GetNextPC(Uint16 pc);
1.1.1.5 root 53: extern Uint16 DSP_GetInstrCycles(void);
1.1.1.3 root 54: extern Uint32 DSP_ReadMemory(Uint16 addr, char space, const char **mem_str);
1.1.1.9 ! root 55: extern Uint16 DSP_DisasmMemory(FILE *fp, Uint16 dsp_memdump_addr, Uint16 dsp_memdump_upper, char space);
1.1.1.7 root 56: extern Uint16 DSP_DisasmAddress(FILE *out, Uint16 lowerAdr, Uint16 UpperAdr);
1.1.1.8 root 57: extern void DSP_Info(FILE *fp, Uint32 dummy);
1.1.1.9 ! root 58: extern void DSP_DisasmRegisters(FILE *fp);
1.1.1.3 root 59: extern int DSP_GetRegisterAddress(const char *arg, Uint32 **addr, Uint32 *mask);
1.1.1.4 root 60: extern bool DSP_Disasm_SetRegister(const char *arg, Uint32 value);
1.1.1.3 root 61:
62: /* Dsp SSI commands */
63: extern Uint32 DSP_SsiReadTxValue(void);
64: extern void DSP_SsiWriteRxValue(Uint32 value);
1.1.1.4 root 65: extern void DSP_SsiReceive_SC0(void);
66: extern void DSP_SsiReceive_SC1(Uint32 value);
67: extern void DSP_SsiReceive_SC2(Uint32 value);
68: extern void DSP_SsiReceive_SCK(void);
69: extern void DSP_SsiTransmit_SC0(void);
70: extern void DSP_SsiTransmit_SC1(void);
71: extern void DSP_SsiTransmit_SC2(Uint32 frame);
72: extern void DSP_SsiTransmit_SCK(void);
1.1.1.3 root 73:
1.1 root 74:
1.1.1.3 root 75: /* Dsp Host interface commands */
1.1.1.2 root 76: extern void DSP_HandleReadAccess(void);
77: extern void DSP_HandleWriteAccess(void);
1.1.1.8 root 78: extern Uint8 DSP_GetHREQ ( void );
79: extern int DSP_ProcessIACK ( void );
1.1.1.4 root 80:
1.1 root 81:
1.1.1.2 root 82: #endif /* DSP_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.