sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
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
17#ifndef __IOPCONTROL_H__
18#define __IOPCONTROL_H__
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
29extern int SifIopReboot(const char *arg);
35extern int SifIopReset(const char *arg, int mode);
39extern int SifIopIsAlive(void);
43extern int SifIopSync(void);
44
48static inline int HasIopRebootedSinceLastCall(void)
49{
50 static int _rb_count;
51 extern int _iop_reboot_count;
52 if (_rb_count != _iop_reboot_count) {
53 _rb_count = _iop_reboot_count;
54 return 1;
55 }
56 return 0;
57}
58
59#ifdef __cplusplus
60}
61#endif
62
63#endif /* __IOPCONTROL_H__ */
int SifIopIsAlive(void)
Definition iopcontrol.c:91
int SifIopReboot(const char *arg)
Definition iopcontrol.c:74
int SifIopReset(const char *arg, int mode)
Definition iopcontrol.c:31
int SifIopSync(void)
Definition iopcontrol.c:96