PS2SDK
PS2 Homebrew Libraries
iopcontrol.h
Go to the documentation of this file.
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # (c) 2003 Marcus R. Brown (mrbrown@0xd6.org)
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
9 */
10 
16 #ifndef __IOPCONTROL_H__
17 #define __IOPCONTROL_H__
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
28 extern int SifIopReboot(const char *arg);
34 extern int SifIopReset(const char *arg, int mode);
38 extern int SifIopIsAlive(void);
42 extern int SifIopSync(void);
43 
47 static inline int HasIopRebootedSinceLastCall(void)
48 {
49  static int _rb_count;
50  extern int _iop_reboot_count;
51  if (_rb_count != _iop_reboot_count) {
52  _rb_count = _iop_reboot_count;
53  return 1;
54  }
55  return 0;
56 }
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 #endif /* __IOPCONTROL_H__ */
SifIopSync
int SifIopSync(void)
SifIopReboot
int SifIopReboot(const char *arg)
HasIopRebootedSinceLastCall
static int HasIopRebootedSinceLastCall(void)
Definition: iopcontrol.h:47
SifIopReset
int SifIopReset(const char *arg, int mode)
SifIopIsAlive
int SifIopIsAlive(void)