Import SDK Types
This commit is contained in:
parent
84b3e69630
commit
4fe4c38e0d
86 changed files with 6528 additions and 27 deletions
46
include/dolphin/os/OSReset.h
Normal file
46
include/dolphin/os/OSReset.h
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
#ifndef _DOLPHIN_OSRESET
|
||||
#define _DOLPHIN_OSRESET
|
||||
|
||||
#include <types.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
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 BOOL (*OSResetFunction)(BOOL final);
|
||||
typedef struct OSResetFunctionInfo OSResetFunctionInfo;
|
||||
|
||||
struct OSResetFunctionInfo {
|
||||
// public
|
||||
OSResetFunction func;
|
||||
u32 priority;
|
||||
|
||||
// private
|
||||
OSResetFunctionInfo* next;
|
||||
OSResetFunctionInfo* prev;
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _DOLPHIN_OSRESET
|
||||
Loading…
Add table
Add a link
Reference in a new issue