mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-07-07 20:11:51 -04:00
link jaudio os
This commit is contained in:
@@ -4,6 +4,14 @@
|
||||
#include "types.h"
|
||||
#include "libultra/libultra.h"
|
||||
|
||||
extern int Z_osSendMesg(OSMesgQueue* mq, OSMesg msg, s32 block);
|
||||
extern void Z_osWritebackDCacheAll();
|
||||
extern void osInvalDCache2(void* src, s32 size);
|
||||
extern void osWritebackDCache2(void* src, s32 size);
|
||||
extern void Z_osCreateMesgQueue (OSMesgQueue* mq, OSMesg* msg, s32 count );
|
||||
extern s32 Z_osSendMesg(OSMesgQueue* mq, OSMesg msg, s32 flags );
|
||||
extern s32 Z_osRecvMesg(OSMesgQueue* mq, OSMesg* msg, s32 flags );
|
||||
extern s32 Z_osEPiStartDma (OSPiHandle * handler, OSIoMesg* msg, s32 dir);
|
||||
extern void Z_bcopy (void* dst, void* src, size_t size);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,12 +5,15 @@
|
||||
#include "dolphin/os/OSThread.h"
|
||||
#include "dolphin/os/OSMessage.h"
|
||||
|
||||
#define OS_MESG_NOBLOCK 0
|
||||
#define OS_MESG_BLOCK 1
|
||||
|
||||
typedef void* OSMesg;
|
||||
|
||||
typedef struct OSMesgQueue_s {
|
||||
/* 0x00 */ OSThread* mtqueue;
|
||||
/* 0x04 */ OSThread* fullqueue;
|
||||
/* 0x08 */ int validCount;
|
||||
/* 0x08 */ volatile int validCount;
|
||||
/* 0x0C */ int first;
|
||||
/* 0x10 */ int msgCount;
|
||||
/* 0x14 */ OSMesg* msg;
|
||||
|
||||
Reference in New Issue
Block a user