2021-09-15 23:24:19 +00:00
|
|
|
#ifndef ULTRA64_INTERNAL_H
|
|
|
|
#define ULTRA64_INTERNAL_H
|
2020-10-03 15:22:44 +00:00
|
|
|
|
2021-12-01 00:08:57 +00:00
|
|
|
#include "pi.h"
|
|
|
|
|
2020-10-03 15:22:44 +00:00
|
|
|
typedef struct {
|
2022-11-13 23:07:27 +00:00
|
|
|
/* 0x00 */ u32 active;
|
|
|
|
/* 0x04 */ OSThread* thread;
|
2020-10-03 15:22:44 +00:00
|
|
|
/* 0x08 */ OSMesgQueue* cmdQueue;
|
2022-11-13 23:07:27 +00:00
|
|
|
/* 0x0C */ OSMesgQueue* evtQueue;
|
|
|
|
/* 0x10 */ OSMesgQueue* acsQueue;
|
|
|
|
/* 0x14 */ s32 (*dma)(s32, u32, void*, size_t);
|
|
|
|
/* 0x18 */ s32 (*edma)(OSPiHandle*, s32, u32, void*, size_t);
|
|
|
|
} OSDevMgr; // size = 0x1C
|
2020-10-03 15:22:44 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
/* 0x00 */ OSMesgQueue* queue;
|
|
|
|
/* 0x04 */ OSMesg msg;
|
|
|
|
} __OSEventState; // size = 0x08
|
|
|
|
|
2022-11-13 23:07:27 +00:00
|
|
|
extern OSDevMgr __osPiDevMgr;
|
2020-10-03 15:22:44 +00:00
|
|
|
extern __OSEventState __osEventStateTab[];
|
|
|
|
|
|
|
|
#endif
|