mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
dolphin lib work (#237)
* getLayerNo_common_common finally matched * dolphin ai / ar / card work from prime decomp * work on dolphin dvd / dsp / db * more dolphin os work * si work * remove asm * build fix
This commit is contained in:
@@ -7,6 +7,25 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define OS_RESETCODE_RESTART 0x80000000
|
||||
#define OS_RESETCODE_SYSTEM 0x40000000
|
||||
|
||||
#define OS_RESETCODE_EXEC 0xC0000000
|
||||
#define OS_RESETCODE_NETCONFIG 0xC0010000
|
||||
|
||||
#define OS_RESET_TIMEOUT OSMillisecondsToTicks(1000)
|
||||
|
||||
#define OS_RESET_RESTART 0
|
||||
#define OS_RESET_HOTRESET 1
|
||||
#define OS_RESET_SHUTDOWN 2
|
||||
|
||||
#define OS_RESET_PRIO_SO 110
|
||||
#define OS_RESET_PRIO_IP 111
|
||||
#define OS_RESET_PRIO_CARD 127
|
||||
#define OS_RESET_PRIO_PAD 127
|
||||
#define OS_RESET_PRIO_GX 127
|
||||
#define OS_RESET_PRIO_ALARM 4294967295
|
||||
|
||||
typedef s32 (*OSResetFunction)(s32);
|
||||
|
||||
typedef struct OSResetFunctionInfo {
|
||||
@@ -16,12 +35,17 @@ typedef struct OSResetFunctionInfo {
|
||||
/* 0xC */ struct OSResetFunctionInfo* prev;
|
||||
} OSResetFunctionInfo;
|
||||
|
||||
typedef struct OSResetQueue {
|
||||
OSResetFunctionInfo* first;
|
||||
OSResetFunctionInfo* last;
|
||||
} OSResetQueue;
|
||||
|
||||
void OSRegisterResetFunction(OSResetFunctionInfo* info);
|
||||
BOOL __OSCallResetFunctions(s32 param_0);
|
||||
BOOL __OSCallResetFunctions(u32 param_0);
|
||||
static void Reset(s32 param_0);
|
||||
static void KillThreads(void);
|
||||
void __OSDoHotReset(s32 param_0);
|
||||
void OSResetSystem(s32 reset, u32 resetCode, BOOL forceMenu);
|
||||
void OSResetSystem(int reset, u32 resetCode, BOOL forceMenu);
|
||||
u32 OSGetResetCode(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user