You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.4 KiB
48 lines
1.4 KiB
/*
|
|
# _____ ___ ____ ___ ____
|
|
# ____| | ____| | | |____|
|
|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
|
|
#-----------------------------------------------------------------------
|
|
# (c) 2003 Marcus R. Brown (mrbrown@0xd6.org)
|
|
# Licenced under Academic Free License version 2.0
|
|
# Review ps2sdk README & LICENSE files for further details.
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
* IOP reset and status routines.
|
|
*/
|
|
|
|
#ifndef __IOPCONTROL_H__
|
|
#define __IOPCONTROL_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/** Resets IOP
|
|
* This is a high level wrapper for SifIopReset
|
|
* @param arg a const character pointer for path to module that will be loaded afterwards or an empty string. NULL must not be specified.
|
|
* @return 1 for success or 0 for failure.
|
|
*/
|
|
int SifIopReboot(const char *arg);
|
|
/** Resets IOP
|
|
* @param arg a const character pointer for path to module that will be loaded afterwards or a blank. NULL is not officially supported, but is supported for backward-compatibility with old homebrew projects.
|
|
* @param mode Bitmask for optional settings. 0x80000000 for verbose messages and 0x100 for magicgate.
|
|
* @return 1 for success or 0 for failure.
|
|
*/
|
|
int SifIopReset(const char *arg, int mode);
|
|
/**
|
|
* @return 1 for SIF initialized or 0 for not initialized.
|
|
*/
|
|
int SifIopIsAlive(void);
|
|
/**
|
|
* @return 1 for bootup complete or 0 for incomplete.
|
|
*/
|
|
int SifIopSync(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __IOPCONTROL_H__ */
|