mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
DSPSpy: First version submitted, resurrected from the ages of time. Build the dsp code by running dspbuild.bat (or an equivalent shell script), then build the elf using devkitpro/libogc and boot it on your Wii using Homebrew Channel or whatever. You'll get a lot of numbers on your screen.
DSPTool: build fix. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2995 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
59
Source/DSPSpy/dsp.h
Normal file
59
Source/DSPSpy/dsp.h
Normal file
@ -0,0 +1,59 @@
|
||||
#ifndef __DSP_H__
|
||||
#define __DSP_H__
|
||||
|
||||
#include <gctypes.h>
|
||||
|
||||
#define DSPTASK_INIT 0
|
||||
#define DSPTASK_RUN 1
|
||||
#define DSPTASK_YIELD 2
|
||||
#define DSPTASK_DONE 3
|
||||
|
||||
#define DSPTASK_CLEARALL 0x00000000
|
||||
#define DSPTASK_ATTACH 0x00000001
|
||||
#define DSPTASK_CANCEL 0x00000002
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
typedef void (*DSPCallback)(void *task);
|
||||
|
||||
typedef struct _dsp_task {
|
||||
vu32 state;
|
||||
vu32 prio;
|
||||
vu32 flags;
|
||||
|
||||
u16 init_vec;
|
||||
u16 resume_vec;
|
||||
|
||||
u16 *iram_maddr;
|
||||
u32 iram_len;
|
||||
u16 iram_addr;
|
||||
|
||||
u16 *dram_maddr;
|
||||
u32 dram_len;
|
||||
u16 dram_addr;
|
||||
|
||||
DSPCallback init_cb;
|
||||
DSPCallback res_cb;
|
||||
DSPCallback done_cb;
|
||||
DSPCallback req_cb;
|
||||
|
||||
struct _dsp_task *next;
|
||||
struct _dsp_task *prev;
|
||||
} dsptask_t;
|
||||
|
||||
void DSP_Init();
|
||||
u32 DSP_CheckMailTo();
|
||||
u32 DSP_CheckMailFrom();
|
||||
u32 DSP_ReadMailFrom();
|
||||
void DSP_AssertInt();
|
||||
void DSP_SendMailTo(u32 mail);
|
||||
u32 DSP_ReadCPUtoDSP();
|
||||
dsptask_t* DSP_AddTask(dsptask_t *task);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user