00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PSPSDK_H
00016 #define PSPSDK_H
00017
00018 #include <pspkerneltypes.h>
00019 #include <pspmodulemgr.h>
00020 #include <pspmoduleinfo.h>
00021 #include <pspthreadman.h>
00022
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026
00031
00043 int pspSdkQueryModuleInfoV1(SceUID uid, SceKernelModuleInfo *modinfo);
00044
00056 int pspSdkGetModuleIdList(SceUID *readbuf, int readbufsize, int *idcount);
00057
00066 int pspSdkInstallNoDeviceCheckPatch(void);
00067
00075 int pspSdkInstallNoPlainModuleCheckPatch(void);
00076
00084 int pspSdkInstallKernelLoadModulePatch(void);
00085
00094 SceUID pspSdkLoadStartModule(const char *filename, int mpid);
00095
00106 SceUID pspSdkLoadStartModuleWithArgs(const char *filename, int mpid, int argc, char * const argv[]);
00107
00113 void pspSdkFixupImports(int moduleId);
00114
00121 int pspSdkLoadInetModules();
00122
00128 int pspSdkInetInit();
00129
00133 void pspSdkInetTerm();
00134
00144 int pspSdkReferThreadStatusByName(const char *name, SceUID *pUID, SceKernelThreadInfo *pInfo);
00145
00155 int pspSdkReferSemaStatusByName(const char *name, SceUID *pUID, SceKernelSemaInfo *pInfo);
00156
00166 int pspSdkReferEventFlagStatusByName(const char *name, SceUID *pUID, SceKernelEventFlagInfo *pInfo);
00167
00177 int pspSdkReferMboxStatusByName(const char *name, SceUID *pUID, SceKernelMbxInfo *pInfo);
00178
00188 int pspSdkReferVplStatusByName(const char *name, SceUID *pUID, SceKernelVplInfo *pInfo);
00189
00199 int pspSdkReferFplStatusByName(const char *name, SceUID *pUID, SceKernelFplInfo *pInfo);
00200
00210 int pspSdkReferMppStatusByName(const char *name, SceUID *pUID, SceKernelMppInfo *pInfo);
00211
00221 int pspSdkReferCallbackStatusByName(const char *name, SceUID *pUID, SceKernelCallbackInfo *pInfo);
00222
00232 int pspSdkReferVTimerStatusByName(const char *name, SceUID *pUID, SceKernelVTimerInfo *pInfo);
00233
00243 int pspSdkReferThreadEventHandlerStatusByName(const char *name, SceUID *pUID, SceKernelThreadEventHandlerInfo *pInfo);
00244
00252 unsigned int pspSdkDisableInterrupts(void);
00253
00259 void pspSdkEnableInterrupts(unsigned int istate);
00260
00276 unsigned int pspSdkSetK1(unsigned int k1);
00277
00283 unsigned int pspSdkGetK1(void);
00284
00288 void pspSdkDisableFPUExceptions(void);
00289
00292 #ifdef __cplusplus
00293 }
00294 #endif
00295
00296 #endif