* vimgr OK

* spec

* OSIoMesg, add OS_MESG defines, other review

* Review
This commit is contained in:
EllipticEllipsis
2021-11-11 15:30:31 -03:00
committed by GitHub
parent b245740020
commit 285381e662
8 changed files with 135 additions and 10 deletions
+1 -1
View File
@@ -445,7 +445,7 @@ s32 __osSiRawWriteIo(u32 devAddr, u32 data);
u32 __osSpGetStatus(void);
void __osSpSetStatus(u32 value);
void osCreateViManager(OSPri pri);
void viMgrMain(OSDevMgr* iParm1);
// void viMgrMain(OSDevMgr* iParm1);
__OSViContext* __osViGetCurrentContext(void);
void osWritebackDCacheAll(void);
OSThread* __osGetCurrFaultedThread(void);
+19
View File
@@ -8,6 +8,25 @@
#define OS_READ 0
#define OS_WRITE 1
/*
* I/O message types
*/
#define OS_MESG_TYPE_BASE 10
#define OS_MESG_TYPE_LOOPBACK (OS_MESG_TYPE_BASE+0)
#define OS_MESG_TYPE_DMAREAD (OS_MESG_TYPE_BASE+1)
#define OS_MESG_TYPE_DMAWRITE (OS_MESG_TYPE_BASE+2)
#define OS_MESG_TYPE_VRETRACE (OS_MESG_TYPE_BASE+3)
#define OS_MESG_TYPE_COUNTER (OS_MESG_TYPE_BASE+4)
#define OS_MESG_TYPE_EDMAREAD (OS_MESG_TYPE_BASE+5)
#define OS_MESG_TYPE_EDMAWRITE (OS_MESG_TYPE_BASE+6)
/*
* I/O message priority
*/
#define OS_MESG_PRI_NORMAL 0
#define OS_MESG_PRI_HIGH 1
typedef u32 OSIntMask;
typedef u32 OSPageMask;
+3
View File
@@ -20,4 +20,7 @@ typedef struct {
/* 0x4 */ OSPri priority;
} __OSThreadTail;
extern __osHwInt __osHwIntTable[];
extern __OSEventState __osEventStateTab[];
#endif
+5 -5
View File
@@ -88,8 +88,8 @@ extern __OSViContext* __osViNext;
extern OSViMode osViModeFpalLan1;
// extern u8 ldigs[];
// extern u8 udigs[];
extern OSDevMgr __osViDevMgr;
extern UNK_TYPE4 __additional_scanline;
// extern OSDevMgr __osViDevMgr;
extern u32 __additional_scanline;
// extern UNK_TYPE1 D_80098180;
extern char bootThreadName[];
extern char idleThreadName[];
@@ -352,9 +352,9 @@ extern OSPiHandle CartRomHandle;
extern OSThread viThread;
extern u8 viThreadStack[0x1000];
extern OSMesgQueue viEventQueue;
extern OSMesg viEventBuf[5];
extern OSIoMesg viRetraceMsg;
extern OSIoMesg viCounterMsg;
// extern OSMesg viEventBuf[5];
// extern OSIoMesg viRetraceMsg;
// extern OSIoMesg viCounterMsg;
extern u16 viRetrace;
extern DmaEntry dmadata[1568];
// extern UNK_TYPE1 D_80186028;