sm64pc/lib/src/libultra_internal.h

56 lines
1.5 KiB
C
Raw Normal View History

2019-08-25 06:46:40 +02:00
#ifndef _LIBULTRA_INTERNAL_H_
#define _LIBULTRA_INTERNAL_H_
#include <ultra64.h>
2020-02-03 06:51:26 +01:00
typedef struct {
u32 initialized; // probably something like initialized?
2019-08-25 06:46:40 +02:00
OSThread *mgrThread;
OSMesgQueue *unk08;
OSMesgQueue *unk0c;
OSMesgQueue *unk10;
2020-02-03 06:51:26 +01:00
s32 (*dma_func)(s32, u32, void *, size_t);
#ifdef VERSION_EU
s32 (*edma_func)(OSPiHandle*, s32, u32, void *, size_t);
#else
2019-08-25 06:46:40 +02:00
u64 force_align;
2020-02-03 06:51:26 +01:00
#endif
2019-08-25 06:46:40 +02:00
} OSMgrArgs;
s32 __osDisableInt();
void __osRestoreInt(s32);
2020-02-03 06:51:26 +01:00
void __osEnqueueAndYield(OSThread **);
void __osDequeueThread(OSThread **, OSThread *);
void __osEnqueueThread(OSThread **, OSThread *);
OSThread *__osPopThread(OSThread **);
s32 __osSiRawStartDma(s32, void *);
2019-08-25 06:46:40 +02:00
void __osSiCreateAccessQueue();
void __osSiGetAccess();
void __osSiRelAccess();
2020-02-03 06:51:26 +01:00
u32 __osProbeTLB(void *);
2019-08-25 06:46:40 +02:00
void __osPiCreateAccessQueue();
void __osPiGetAccess();
void __osSetSR(u32);
u32 __osGetSR();
void __osSetFpcCsr(u32);
2020-02-03 06:51:26 +01:00
s32 __osSiRawReadIo(void *, u32 *);
s32 __osSiRawWriteIo(void *, u32);
2019-08-25 06:46:40 +02:00
s32 osPiRawReadIo(u32 a0, u32 *a1);
void __osSpSetStatus(u32);
u32 __osSpGetStatus();
2020-02-03 06:51:26 +01:00
s32 __osSpSetPc(void *);
2019-08-25 06:46:40 +02:00
s32 __osSpDeviceBusy();
s32 __osSiDeviceBusy();
s32 __osSpRawStartDma(u32 dir, void *sp_ptr, void *dram_ptr, size_t size);
void __osViInit();
2020-02-03 06:51:26 +01:00
OSViContext *__osViGetCurrentContext();
OSViContext *__osViGetCurrentContext2();
2019-08-25 06:46:40 +02:00
void __osViSwapContext();
void __osSetTimerIntr(u64);
u64 __osInsertTimer(OSTimer *);
void __osSetCompare(u32);
s32 __osAiDeviceBusy();
void __osDispatchThread();
u32 __osGetCause();
2020-02-03 06:51:26 +01:00
s32 __osAtomicDec(u32 *);
2019-08-25 06:46:40 +02:00
#endif