Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
OSReset.h
Go to the documentation of this file.
1#ifndef OSRESET_H
2#define OSRESET_H
3
4#include "dolphin/types.h"
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10vu32 __PIRegs[12] AT_ADDRESS(0xCC003000);
11
12#define OS_RESETCODE_RESTART 0x80000000
13#define OS_RESETCODE_SYSTEM 0x40000000
14
15#define OS_RESETCODE_EXEC 0xC0000000
16#define OS_RESETCODE_NETCONFIG 0xC0010000
17
18#define OS_RESET_TIMEOUT OSMillisecondsToTicks(1000)
19
20#define OS_RESET_RESTART 0
21#define OS_RESET_HOTRESET 1
22#define OS_RESET_SHUTDOWN 2
23
24#define OS_RESET_PRIO_SO 110
25#define OS_RESET_PRIO_IP 111
26#define OS_RESET_PRIO_CARD 127
27#define OS_RESET_PRIO_PAD 127
28#define OS_RESET_PRIO_GX 127
29#define OS_RESET_PRIO_ALARM 4294967295
30
31typedef BOOL (*OSResetFunction)(BOOL final);
32
33typedef struct OSResetFunctionInfo {
35 /* 0x4 */ u32 priority;
36 /* 0x8 */ struct OSResetFunctionInfo* next;
37 /* 0xC */ struct OSResetFunctionInfo* prev;
39
44
47static void Reset(s32 param_0);
48static void KillThreads(void);
50void OSResetSystem(int reset, u32 resetCode, BOOL forceMenu);
52
53#ifdef __cplusplus
54};
55#endif
56
57#endif /* OSRESET_H */
static void Reset(s32 param_0)
vu32 __PIRegs[12] AT_ADDRESS(0xCC003000)
void __OSDoHotReset(s32 param_0)
Definition OSReset.c:142
void OSResetSystem(int reset, u32 resetCode, BOOL forceMenu)
Definition OSReset.c:154
BOOL __OSCallResetFunctions(u32 param_0)
Definition OSReset.c:46
BOOL(* OSResetFunction)(BOOL final)
Definition OSReset.h:31
void OSRegisterResetFunction(OSResetFunctionInfo *info)
Definition OSReset.c:13
u32 OSGetResetCode(void)
Definition OSReset.c:215
static void KillThreads(void)
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition OSReset.h:33
u32 priority
Definition OSReset.h:35
OSResetFunction func
Definition OSReset.h:34
struct OSResetFunctionInfo * prev
Definition OSReset.h:37
struct OSResetFunctionInfo * next
Definition OSReset.h:36
Definition OSReset.h:40
OSResetFunctionInfo * first
Definition OSReset.h:41
OSResetFunctionInfo * last
Definition OSReset.h:42
int BOOL
Definition types.h:27
unsigned long u32
Definition types.h:10
volatile u32 vu32
Definition types.h:15
signed long s32
Definition types.h:6