You've already forked smb-decomp
mirror of
https://github.com/encounter/smb-decomp.git
synced 2026-03-30 11:38:28 -07:00
74e69e9c7e
* Rename stcoli functions * Add gen_compile_commands.py script * Add shebang * gen_compile_commands: pretend to be GCC * Separately compilable game headers * Separately compilable system dolphin headers * Remove stcoli changes from this PR * Fix EOF newlines
37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
#ifndef _DOLPHIN_DSP_H_
|
|
#define _DOLPHIN_DSP_H_
|
|
|
|
#include <dolphin/os.h>
|
|
|
|
typedef struct DSPTaskInfo DSPTaskInfo;
|
|
typedef void (*DSPCallback)(void *task);
|
|
struct DSPTaskInfo
|
|
{
|
|
/*0x00*/ volatile u32 state;
|
|
/*0x04*/ volatile u32 priority;
|
|
/*0x08*/ volatile u32 flags;
|
|
/*0x0C*/ u16 *iram_mmem_addr;
|
|
/*0x10*/ u32 iram_length;
|
|
/*0x14*/ u32 iram_addr;
|
|
/*0x18*/ u16 *dram_mmem_addr;
|
|
/*0x1C*/ u32 dram_length;
|
|
/*0x20*/ u32 dram_addr;
|
|
/*0x24*/ u16 dsp_init_vector;
|
|
/*0x26*/ u16 dsp_resume_vector;
|
|
/*0x28*/ DSPCallback init_cb;
|
|
/*0x2C*/ DSPCallback res_cb;
|
|
/*0x30*/ DSPCallback done_cb;
|
|
/*0x34*/ DSPCallback req_cb;
|
|
/*0x38*/ DSPTaskInfo *next;
|
|
/*0x3C*/ DSPTaskInfo *prev;
|
|
OSTime t_context;
|
|
OSTime t_task;
|
|
};
|
|
|
|
u32 DSPCheckMailFromDSP(void);
|
|
u32 DSPCheckMailToDSP(void);
|
|
u32 DSPReadMailFromDSP(void);
|
|
void DSPSendMailToDSP(u32 msg);
|
|
|
|
#endif
|