2009-05-03 20:53:31 +02:00
|
|
|
#ifndef _SYS_H_
|
|
|
|
#define _SYS_H_
|
2009-06-05 00:13:39 +02:00
|
|
|
|
2010-04-10 11:15:22 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2009-12-20 05:26:30 +01:00
|
|
|
void wiilight(int enable);
|
2009-06-05 00:13:39 +02:00
|
|
|
|
2009-05-03 20:53:31 +02:00
|
|
|
/* Prototypes */
|
|
|
|
void Sys_Init(void);
|
|
|
|
void Sys_Reboot(void);
|
|
|
|
void Sys_Shutdown(void);
|
2009-06-01 17:50:18 +02:00
|
|
|
void Sys_ShutdownToIdel(void);
|
|
|
|
void Sys_ShutdownToStandby(void);
|
|
|
|
void Sys_LoadMenu(void);
|
2009-12-20 05:26:30 +01:00
|
|
|
void Sys_BackToLoader(void);
|
2009-11-15 20:52:58 +01:00
|
|
|
int Sys_ChangeIos(int ios);
|
2009-05-06 11:51:16 +02:00
|
|
|
int Sys_IosReload(int IOS);
|
2009-11-15 20:52:58 +01:00
|
|
|
bool Sys_IsHermes();
|
2009-12-03 02:06:09 +01:00
|
|
|
s32 IOS_ReloadIOSsafe(int ios);
|
2009-12-20 05:26:30 +01:00
|
|
|
void ScreenShot();
|
2009-12-03 02:06:09 +01:00
|
|
|
|
2009-12-04 16:05:20 +01:00
|
|
|
void ShowMemInfo();
|
2009-12-03 02:06:09 +01:00
|
|
|
extern s32 ios222rev;
|
2009-12-04 16:05:20 +01:00
|
|
|
extern s32 ios223rev;
|
2009-12-03 02:06:09 +01:00
|
|
|
extern s32 ios249rev;
|
2009-12-04 16:05:20 +01:00
|
|
|
extern s32 ios250rev;
|
2009-12-20 05:26:30 +01:00
|
|
|
|
2010-04-10 11:15:22 +02:00
|
|
|
#define IOS_TYPE_UNK 0
|
|
|
|
#define IOS_TYPE_WANIN 1
|
|
|
|
#define IOS_TYPE_HERMES 2
|
|
|
|
#define IOS_TYPE_KWIIRK 3
|
|
|
|
|
|
|
|
int get_ios_type();
|
|
|
|
int is_ios_type(int type);
|
|
|
|
int ios_supports_frag();
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2009-05-03 20:53:31 +02:00
|
|
|
#endif
|
2009-12-04 16:05:20 +01:00
|
|
|
|