PSPSDK 2024-12-16
Loading...
Searching...
No Matches
pspsdk.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * pspsdk.h - Interface to the PSPSDK utility library.
7 *
8 * Copyright (c) 2005 Marcus R. Brown <mrbrown@ocgnet.org>
9 * Copyright (c) 2005 James Forshaw <tyranid@gmail.com>
10 * Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
11 *
12 */
13
14#ifndef PSPSDK_H
15#define PSPSDK_H
16
17#include <pspkerneltypes.h>
18#include <pspmodulemgr.h>
19#include <pspmoduleinfo.h>
20#include <pspthreadman.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
43
56
66
75
84
93SceUID pspSdkLoadStartModule(const char *filename, int mpid);
94
105SceUID pspSdkLoadStartModuleWithArgs(const char *filename, int mpid, int argc, char * const argv[]);
106
113
121
128
133
144
155
166
177
188
199
210
221
232
243
251unsigned int pspSdkDisableInterrupts(void);
252
259
275unsigned int pspSdkSetK1(unsigned int k1);
276
282unsigned int pspSdkGetK1(void);
283
288
299
302#ifdef __cplusplus
303}
304#endif
305
306#endif /* PSPSDK_H */
#define k1
Definition as_reg_compat.h:45
int pspSdkReferMppStatusByName(const char *name, SceUID *pUID, SceKernelMppInfo *pInfo)
Search for a message pipe with the given name and retrieve it's SceKernelMppInfo struct.
Definition threadutils.c:236
int pspSdkReferSemaStatusByName(const char *name, SceUID *pUID, SceKernelSemaInfo *pInfo)
Search for a semaphore with the given name and retrieve it's SceKernelSemaInfo struct.
Definition threadutils.c:72
int pspSdkReferEventFlagStatusByName(const char *name, SceUID *pUID, SceKernelEventFlagInfo *pInfo)
Search for an event flag with the given name and retrieve it's SceKernelEventFlagInfo struct.
Definition threadutils.c:99
int pspSdkReferMboxStatusByName(const char *name, SceUID *pUID, SceKernelMbxInfo *pInfo)
Search for a message box with the given name and retrieve it's SceKernelMbxInfo struct.
Definition threadutils.c:153
void pspSdkInetTerm()
Terminate Inet related modules.
int pspSdkInstallNoPlainModuleCheckPatch(void)
Patch sceLoadCore module to remove loading plain module checks.
int pspSdkInstallNoDeviceCheckPatch(void)
Patch the sceModuleManager module to nullify LoadDeviceCheck() calls.
int pspSdkGetModuleIdList(SceUID *readbuf, int readbufsize, int *idcount)
Get the list of module IDs.
Definition query_mod.c:21
SceSize pspSdkTotalFreeUserMemSize(void)
Gets the amount of memory available in the user partition(s).
Definition memory.c:44
int pspSdkReferFplStatusByName(const char *name, SceUID *pUID, SceKernelFplInfo *pInfo)
Search for a FPL with the given name and retrieve it's SceKernelFplInfo struct.
Definition threadutils.c:208
SceUID pspSdkLoadStartModule(const char *filename, int mpid)
Load a module and start it.
Definition loadmodule.c:62
unsigned int pspSdkSetK1(unsigned int k1)
Set the processors K1 register to a known value.
int pspSdkReferThreadEventHandlerStatusByName(const char *name, SceUID *pUID, SceKernelThreadEventHandlerInfo *pInfo)
Search for a thread event handler with the given name and retrieve it's SceKernelThreadEventHandlerIn...
Definition threadutils.c:317
int pspSdkReferVTimerStatusByName(const char *name, SceUID *pUID, SceKernelVTimerInfo *pInfo)
Search for a vtimer with the given name and retrieve it's SceKernelVTimerInfo struct.
Definition threadutils.c:290
void pspSdkEnableInterrupts(unsigned int istate)
Enable interrupts.
int pspSdkReferCallbackStatusByName(const char *name, SceUID *pUID, SceKernelCallbackInfo *pInfo)
Search for a callback with the given name and retrieve it's SceKernelCallbackInfo struct.
Definition threadutils.c:263
void pspSdkFixupImports(int moduleId)
Manually fixup library imports for late binding modules.
Definition fixup.c:70
int pspSdkReferThreadStatusByName(const char *name, SceUID *pUID, SceKernelThreadInfo *pInfo)
Search for a thread with the given name and retrieve it's SceKernelThreadInfo struct.
Definition threadutils.c:126
int pspSdkReferVplStatusByName(const char *name, SceUID *pUID, SceKernelVplInfo *pInfo)
Search for a VPL with the given name and retrieve it's SceKernelVplInfo struct.
Definition threadutils.c:181
int pspSdkQueryModuleInfoV1(SceUID uid, SceKernelModuleInfo *modinfo)
Query a modules information from its uid.
Definition query_mod.c:29
SceUID pspSdkLoadStartModuleWithArgs(const char *filename, int mpid, int argc, char *const argv[])
Load a module and start it with arguments.
Definition loadmodule.c:19
unsigned int pspSdkDisableInterrupts(void)
Disable interrupts.
int pspSdkInstallKernelLoadModulePatch(void)
Patch sceLoadModuleWithApiType to remove the kernel check in loadmodule allowing all modules to load.
unsigned int pspSdkGetK1(void)
Get the current value of the processors K1 register.
void pspSdkDisableFPUExceptions(void)
Disable the CPUs FPU exceptions.
int pspSdkLoadInetModules()
Load Inet related modules.
int pspSdkInetInit()
Initialize Inet related modules.
unsigned int SceSize
Definition pspkerneltypes.h:27
int SceUID
UIDs are used to describe many different kernel objects.
Definition pspkerneltypes.h:24
char * name
Definition pspsysmem_kernel.h:4
float x
Definition psptypes.h:0
Structure to hold the status information for a callback.
Definition pspthreadman.h:1032
Structure to hold the event flag information.
Definition pspthreadman.h:676
Fixed pool status information.
Definition pspthreadman.h:1503
Current state of a messagebox.
Definition pspthreadman.h:812
Definition pspmodulemgr.h:166
Message Pipe status info.
Definition pspthreadman.h:1298
Current state of a semaphore.
Definition pspthreadman.h:481
Struct for event handler info.
Definition pspthreadman.h:1772
Structure to hold the status information for a thread.
Definition pspthreadman.h:84
Definition pspthreadman.h:1733
Variable pool status info.
Definition pspthreadman.h:1402