PS2SDK
PS2 Homebrew Libraries
loadfile.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 __LOADFILE_H__
17 #define __LOADFILE_H__
18 
19 #include <tamtypes.h>
20 
21 #include <loadfile-common.h>
22 
23 /* Extended error codes */
25 #define SCE_EBINDMISS 0x10000
26 
27 #define SCE_ECALLMISS 0x10001
28 
29 #define SCE_ELOADMISS 0x10003
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
42 extern int SifLoadFileInit(void);
48 extern void SifLoadFileExit(void);
49 
72 extern int SifLoadModule(const char *path, int arg_len, const char *args);
90 extern int SifLoadStartModule(const char *path, int arg_len, const char *args, int *mod_res);
91 
106 extern int SifLoadModuleEncrypted(const char *path, int arg_len, const char *args);
107 
126 extern int SifLoadModuleBuffer(void *ptr, int arg_len, const char *args);
147 extern int SifLoadStartModuleBuffer(void *ptr, int arg_len, const char *args, int *mod_res);
148 
149 extern int SifStopModule(int id, int arg_len, const char *args, int *mod_res);
150 extern int SifUnloadModule(int id);
151 extern int SifSearchModuleByName(const char *name);
152 extern int SifSearchModuleByAddress(const void *ptr);
153 
170 extern int SifLoadElfPart(const char *path, const char *secname, t_ExecData *data);
186 int SifLoadElf(const char *path, t_ExecData *data);
199 extern int SifLoadElfEncrypted(const char *path, t_ExecData *data);
200 
223 extern int SifIopSetVal(u32 iop_addr, int val, int type);
244 extern int SifIopGetVal(u32 iop_addr, void *val, int type);
245 
264 extern int SifExecModuleBuffer(void *ptr, u32 size, u32 arg_len, const char *args, int *mod_res);
282 extern int SifExecModuleFile(const char *path, u32 arg_len, const char *args, int *mod_res);
283 
284 
302 extern int _SifLoadModule(const char *path, int arg_len, const char *args,
303  int *modres, int fno, int dontwait);
304 
305 #ifdef __cplusplus
306 }
307 #endif
308 
309 #endif /* __LOADFILE_H__ */
SifExecModuleBuffer
int SifExecModuleBuffer(void *ptr, u32 size, u32 arg_len, const char *args, int *mod_res)
SifLoadElfPart
int SifLoadElfPart(const char *path, const char *secname, t_ExecData *data)
SifLoadFileInit
int SifLoadFileInit(void)
SifLoadModuleEncrypted
int SifLoadModuleEncrypted(const char *path, int arg_len, const char *args)
SifLoadModule
int SifLoadModule(const char *path, int arg_len, const char *args)
tamtypes.h
SifLoadStartModule
int SifLoadStartModule(const char *path, int arg_len, const char *args, int *mod_res)
t_ExecData
Definition: loadfile-common.h:53
SifLoadElfEncrypted
int SifLoadElfEncrypted(const char *path, t_ExecData *data)
SifLoadFileExit
void SifLoadFileExit(void)
SifExecModuleFile
int SifExecModuleFile(const char *path, u32 arg_len, const char *args, int *mod_res)
_SifLoadModule
int _SifLoadModule(const char *path, int arg_len, const char *args, int *modres, int fno, int dontwait)
SifLoadStartModuleBuffer
int SifLoadStartModuleBuffer(void *ptr, int arg_len, const char *args, int *mod_res)
SifIopGetVal
int SifIopGetVal(u32 iop_addr, void *val, int type)
SifLoadModuleBuffer
int SifLoadModuleBuffer(void *ptr, int arg_len, const char *args)
loadfile-common.h
SifLoadElf
int SifLoadElf(const char *path, t_ExecData *data)
SifIopSetVal
int SifIopSetVal(u32 iop_addr, int val, int type)