psl1ght
A free SDK for Sony's PS3 console
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
13 extern "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 
34 typedef s32 sysPrxId ;
35 typedef u64 sysPrxFlags ;
36 
37 typedef struct _sys_prx_segment_info
38 {
39  u64 base ;
40  u64 filesize ;
41  u64 memsize ;
42  u64 index ;
43  u64 type ;
45 
46 typedef s32 (*sys_prx_entry_t) (size_t args, void *argv);
47 
48 typedef s32 (*sys_prx_entry_pe_t) (u64 entry, size_t args, void *argv);
49 
50 typedef struct _sys_prx_start_option {
51  u64 size; /* sizeof(this) */
53 
54 typedef struct _sys_prx_stop_option {
55  u64 size; /* sizeof(this) */
57 
59  u64 size; /* sizeof(this) */
61 
63  u64 size; /* sizeof(this) */
65 
67  u64 size; /* sizeof(this) */
69 
71  u64 size; /* sizeof(this) */
73 
75  u64 size; /* sizeof(this) */
77 
79  u64 size; /* sizeof(this) */
81 
83  u64 size; /* sizeof(this) */
85 
86 #ifdef __LP64__
87 typedef u32 sysPrxUserPchar;
88 typedef u32 sysPrxUserSegmentVector;
89 typedef u32 sysPrxUserPprxId;
90 typedef u32 sysPrxUserPconstVoid;
91 typedef u32 sysPrxUserPstopLevel;
92 #else
93 typedef char *sysPrxUser_pchar;
95 typedef sysPrxId *sysPrxUserPprxId;
96 typedef const void *sysPrxUserPconstVoid;
97 typedef const void *sysPrxUserPstopLevel;
98 #endif
99 
101  u64 size; /* 8 */
102  u32 max;
103  u32 count; /* 16 */
104  sysPrxUserPprxId idlist;
105  sysPrxUserPstopLevel levellist; /* 24 */
107 
108 typedef struct sys_prx_module_info_t {
109  u64 size;
110  char name[30];
111  char version[2];
112  u32 modattribute;
113  u32 start_entry;
114  u32 stop_entry;
115  u32 all_segments_num;
116  sysPrxUserPchar filename;
117  u32 filename_size;
118  sysPrxUserSegmentVector segments;
119  u32 segments_num;
121 
122 
123 #ifdef __cplusplus
124  }
125 #endif
126 
127 #endif
128 
Definition: prx.h:58
Definition: prx.h:70
Definition: prx.h:74
Definition: prx.h:37
Definition: prx.h:50
Definition: prx.h:100
dynamic libraries.
Definition: prx.h:54
Definition: prx.h:66
Definition: prx.h:108