2021-09-15 23:24:19 +00:00
|
|
|
#ifndef ULTRA64_INTERNAL_H
|
|
|
|
#define ULTRA64_INTERNAL_H
|
2020-10-03 15:22:44 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
/* 0x00 */ u32 initialized;
|
|
|
|
/* 0x04 */ OSThread* mgrThread;
|
|
|
|
/* 0x08 */ OSMesgQueue* cmdQueue;
|
|
|
|
/* 0x0C */ OSMesgQueue* eventQueue;
|
|
|
|
/* 0x10 */ OSMesgQueue* acccessQueue;
|
|
|
|
/* 0x14 */ s32 (*piDmaCallback)(s32, u32, void*, size_t);
|
|
|
|
/* 0x18 */ s32 (*epiDmaCallback)(OSPiHandle*, s32, u32, void*, size_t);
|
|
|
|
} OSMgrArgs; // size = 0x1C
|
|
|
|
|
|
|
|
typedef struct {
|
2021-11-28 12:50:35 +00:00
|
|
|
/* 0x00 */ s32 (*handler)(void);
|
|
|
|
/* 0x04 */ void* sp;
|
2020-10-03 15:22:44 +00:00
|
|
|
} __osHwInt; // size = 0x08
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
/* 0x00 */ OSMesgQueue* queue;
|
|
|
|
/* 0x04 */ OSMesg msg;
|
|
|
|
} __OSEventState; // size = 0x08
|
|
|
|
|
|
|
|
extern OSMgrArgs __osPiDevMgr;
|
|
|
|
extern __osHwInt __osHwIntTable[];
|
|
|
|
extern __OSEventState __osEventStateTab[];
|
|
|
|
|
|
|
|
#endif
|