layout adjustment
[open-ps2-loader.git] / include / system.h
blob5d33c7a4f7cdb3d23899968d5b6a74f6d8e92c03
1 #ifndef __SYSTEM_H
2 #define __SYSTEM_H
4 #ifdef VMC
5 #include "include/mcemu.h"
6 #endif
8 #define SYS_LOAD_MC_MODULES 0x01
9 #define SYS_LOAD_PAD_MODULES 0x02
11 void delay(int count);
12 unsigned int USBA_crc32(char *string);
13 int sysGetDiscID(char *discID);
14 void sysReset(int modload_mask);
15 void sysExecExit();
16 void sysPowerOff(void);
17 int sysPcmciaCheck(void);
18 void sysGetCDVDFSV(void **data_irx, int *size_irx);
19 #ifdef VMC
20 void sysLaunchLoaderElf(char *filename, char *mode_str, int size_cdvdman_irx, void **cdvdman_irx, int size_mcemu_irx, void **mcemu_irx, int compatflags, int alt_ee_core);
21 #else
22 void sysLaunchLoaderElf(char *filename, char *mode_str, int size_cdvdman_irx, void **cdvdman_irx, int compatflags, int alt_ee_core);
23 #endif
24 int sysExecElf(char *path, int argc, char **argv);
25 int sysPS3Detect(void);
26 int sysSetIPConfig(char* ipconfig);
27 int sysLoadModuleBuffer(void *buffer, int size, int argc, char *argv);
28 void sysApplyKernelPatches(void);
29 int sysCheckMC(void);
30 #ifdef VMC
31 int sysCheckVMC(const char* prefix, const char* sep, char* name, int createSize, vmc_superblock_t* vmc_superblock);
32 #endif
34 #endif