1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-29 12:04:29 +00:00
oot/include/ultra64/os_internal.h

40 lines
765 B
C
Raw Normal View History

2020-03-17 04:31:30 +00:00
#ifndef _ULTRA64_OS_INTERNAL_H_
#define _ULTRA64_OS_INTERNAL_H_
/* Internal functions used by the operating system */
/* Do not include this header in application code */
/* Variables */
typedef struct
{
u32 initialized;
OSThread *mgrThread;
OSMesgQueue *cmdQueue;
OSMesgQueue *eventQueue;
OSMesgQueue *acccessQueue;
s32 (*piDmaCallback)(s32, u32, void*, size_t);
s32 (*epiDmaCallback)(OSPiHandle *, s32, u32, void *, size_t);
} OSMgrArgs;
typedef struct
{
OSMesgQueue* queue;
OSMesg msg;
} __osHwInt;
typedef struct
{
OSMesgQueue* queue;
OSMesg msg;
} __OSEventState;
/* Functions */
u32 __osProbeTLB(void *);
s32 __osDisableInt(void);
OSThread *__osPopThread(OSThread**);
void __osCleanupThread(void);
#endif