psl1ght
A free SDK for Sony's PS3 console
Loading...
Searching...
No Matches
prx.h
Go to the documentation of this file.
1
5#ifndef __LV2_PRX_H__
6#define __LV2_PRX_H__
7
8#include <ppu-types.h>
9#include <lv2/prx.h>
10
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16
17#define SYS_PRX_RESIDENT 0
18#define SYS_PRX_NO_RESIDENT 1
19
20#define SYS_PRX_START_OK 0
21
22#define SYS_PRX_STOP_SUCCESS 0
23#define SYS_PRX_STOP_OK 0
24#define SYS_PRX_STOP_FAIL 1
25
26#define SYS_PRX_MODULE_FILENAME_SIZE 512
27
28#define SYS_PRX_PROCESS_ELF_ID 0
29
30#define SYS_PRX_LOAD_MODULE_FLAGS_VALIDMASK 0x0000000000000001
31#define SYS_PRX_LOAD_MODULE_FLAGS_FIXEDADDR 0x0000000000000001 /* PRX is pre fixed */
32
33
34typedef s32 sysPrxId ;
35typedef u64 sysPrxFlags ;
36
38{
39 u64 base ;
41 u64 memsize ;
42 u64 index ;
43 u64 type ;
45
46typedef s32 (*sys_prx_entry_t) (size_t args, void *argv);
47
48typedef s32 (*sys_prx_entry_pe_t) (u64 entry, size_t args, void *argv);
49
50typedef struct _sys_prx_start_option {
51 u64 size; /* sizeof(this) */
53
54typedef struct _sys_prx_stop_option {
55 u64 size; /* sizeof(this) */
57
59 u64 size; /* sizeof(this) */
61
65
67 u64 size; /* sizeof(this) */
69
71 u64 size; /* sizeof(this) */
73
75 u64 size; /* sizeof(this) */
77
81
85
86#ifdef __LP64__
87typedef u32 sysPrxUserPchar;
88typedef u32 sysPrxUserSegmentVector;
89typedef u32 sysPrxUserPprxId;
90typedef u32 sysPrxUserPconstVoid;
91typedef u32 sysPrxUserPstopLevel;
92#else
93typedef char *sysPrxUser_pchar;
96typedef const void *sysPrxUserPconstVoid;
97typedef const void *sysPrxUserPstopLevel;
98#endif
99
107
121
122
123#ifdef __cplusplus
124 }
125#endif
126
127#endif
128
dynamic libraries.
sysPrxUserPprxId idlist
Definition prx.h:104
sysPrxUserPstopLevel levellist
Definition prx.h:105
sysPrxUserSegmentVector segments
Definition prx.h:118
sysPrxUserPchar filename
Definition prx.h:116
char name[30]
Definition prx.h:110
char version[2]
Definition prx.h:111
char * sysPrxUser_pchar
Definition prx.h:93
const void * sysPrxUserPconstVoid
Definition prx.h:96
struct _sys_prx_stop_option sysPrxStopOption
struct _sys_prx_load_module_option sysPrxLoadModuleOption
struct _sys_prx_load_module_list_option sysPrxLoadModuleListOption
const void * sysPrxUserPstopLevel
Definition prx.h:97
struct _sys_prx_segment_info sysPrxSegmentInfo
s32(* sys_prx_entry_pe_t)(u64 entry, size_t args, void *argv)
Definition prx.h:48
u64 sysPrxFlags
Definition prx.h:35
struct _sys_prx_unload_module_option sysPrxUnloadModuleOption
sysPrxSegmentInfo * sysPrxUserSegmentVector
Definition prx.h:94
struct _sys_prx_stop_module_option sysPrxStopModuleOption
struct _sys_prx_start_module_option sysPrxStartModuleOption
struct _sys_prx_register_module_option sysPrxRegisterModuleOption
s32 sysPrxId
Definition prx.h:34
sysPrxId * sysPrxUserPprxId
Definition prx.h:95
struct sys_prx_module_info_t sysPrxModuleInfo
struct _sys_prx_get_module_id_by_name_option sysPrxGetModuleIdByNameOption
struct sys_prx_get_module_list_t sysPrxModuleList
struct _sys_prx_start_option sysPrxStartOption
s32(* sys_prx_entry_t)(size_t args, void *argv)
Definition prx.h:46