47 #define DSPTASK_INIT 0 49 #define DSPTASK_YIELD 2 50 #define DSPTASK_DONE 3 63 #define DSPTASK_CLEARALL 0x00000000 64 #define DSPTASK_ATTACH 0x00000001 65 #define DSPTASK_CANCEL 0x00000002 void(* DSPCallback)(void)
function pointer typedef for the user's DSP interrupt callback
Definition: dsp.h:93
vu32 flags
Definition: dsp.h:118
void DSP_Unhalt()
Definition: dsp.c:400
void * iram_maddr
Definition: dsp.h:120
void(* DSPTaskCallback)(dsptask_t *task)
function pointer typedef for the user's DSP task callbacks
Definition: dsp.h:87
dsptask_t * DSP_AddTask(dsptask_t *task)
Add a DSP task to the tasklist and start executing if necessary.
Definition: dsp.c:414
u32 dram_len
Definition: dsp.h:125
DSPCallback DSP_RegisterCallback(DSPCallback usr_cb)
Register an user's interrupt callback. This may be used to handle DSP interrupts on its own....
Definition: dsp.c:328
struct _dsp_task * next
Definition: dsp.h:136
vu32 prio
Definition: dsp.h:117
void DSP_Halt()
Definition: dsp.c:390
void DSP_SendMailTo(u32 mail)
Send mail to DSP.
Definition: dsp.c:358
vu32 state
Definition: dsp.h:116
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
void DSP_CancelTask(dsptask_t *task)
Definition: dsp.c:427
u16 init_vec
Definition: dsp.h:128
u32 DSP_ReadCPUtoDSP()
Read back CPU->DSP mailbox.
Definition: dsp.c:364
u32 dram_addr
Definition: dsp.h:126
u32 DSP_ReadMailFrom()
Read mail from DSP.
Definition: dsp.c:353
uint16_t u16
16bit unsigned integer
Definition: gctypes.h:18
DSPTaskCallback done_cb
Definition: dsp.h:133
u32 iram_addr
Definition: dsp.h:122
DSPTaskCallback init_cb
Definition: dsp.h:131
void * dram_maddr
Definition: dsp.h:124
u16 resume_vec
Definition: dsp.h:129
DSPTaskCallback res_cb
Definition: dsp.h:132
DSPTaskCallback req_cb
Definition: dsp.h:134
void DSP_Init()
Initialize DSP subsystem.
Definition: dsp.c:306
u32 DSP_CheckMailTo()
Check if mail was sent to DSP.
Definition: dsp.c:343
struct _dsp_task * prev
Definition: dsp.h:137
volatile u32 vu32
32bit unsigned volatile integer
Definition: gctypes.h:29
void DSP_Reset()
Definition: dsp.c:379
u32 iram_len
Definition: dsp.h:121
void DSP_AssertInt()
Asserts the processor interface interrupt.
Definition: dsp.c:371
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19
dsptask_t * DSP_AssertTask(dsptask_t *task)
Definition: dsp.c:436
u32 DSP_CheckMailFrom()
Check for mail from DSP.
Definition: dsp.c:348