psl1ght
A free SDK for Sony's PS3 console
ppu
include
lv2
syscalls.h
1
/*
2
*/
3
4
#ifndef __SYSCALL_SYSCALLS_H__
5
#define __SYSCALL_SYSCALLS_H__
6
7
#define MAX_NUM_OF_SYSTEM_CALLS 1024
8
9
/* lv2 syscalls */
10
11
#define SYSCALL_PROCESS_GETPID 1
12
#define SYSCALL_PROCESS_WAIT_FOR_CHILD 2
13
#define SYSCALL_PROCESS_GET_STATUS 4
14
#define SYSCALL_PROCESS_DETACH_CHILD 5
15
#define SYSCALL_PROCESS_GET_NUMBER_OF_OBJECT 12
16
#define SYSCALL_PROCESS_GET_ID 13
17
#define SYSCALL_PROCESS_IS_SPU_LOCK_LINE_RESERVATION_ADDRESS 14
18
#define SYSCALL_PROCESS_GETPPID 18
19
#define SYSCALL_PROCESS_KILL 19
20
#define SYSCALL_PROCESS_WAIT_FOR_CHILD2 23
21
#define SYSCALL_PROCESS_GET_SDK_VERSION 25
22
#define SYSCALL_PROCESS_GET_PPU_GUID 31
23
24
#define SYSCALL_PPU_THREAD_YIELD 43
/* thread.h */
25
#define SYSCALL_PPU_THREAD_JOIN 44
/* thread.h */
26
#define SYSCALL_PPU_THREAD_DETACH 45
/* thread.h */
27
#define SYSCALL_PPU_THREAD_GET_JOIN_STATE 46
/* thread.h */
28
#define SYSCALL_PPU_THREAD_SET_PRIORITY 47
/* thread.h */
29
#define SYSCALL_PPU_THREAD_GET_PRIORITY 48
/* thread.h */
30
#define SYSCALL_PPU_THREAD_GET_STACK_INFORMATION 49
/* thread.h */
31
#define SYSCALL_PPU_THREAD_RENAME 56
/* thread.h */
32
#define SYSCALL_PPU_THREAD_RECOVER_PAGE_FAULT 57
/* thread.h */
33
#define SYSCALL_PPU_THREAD_GET_PAGE_FAULT_CONTEXT 58
/* thread.h */
34
35
#define SYSCALL_TRACE_ALLOCATE_BUFFER 67
36
#define SYSCALL_TRACE_FREE_BUFFER 68
37
#define SYSCALL_TRACE_CREATE2 69
38
#define SYSCALL_TRACE_CREATE2_IN_CBEPM 77
39
40
#define SYSCALL_TIMER_CREATE 70
41
#define SYSCALL_TIMER_DESTROY 71
42
#define SYSCALL_TIMER_GET_INFORMATION 72
43
#define SYSCALL_TIMER_START 73
44
#define SYSCALL_TIMER_STOP 74
45
#define SYSCALL_TIMER_CONNECT_EVENT_QUEUE 75
46
#define SYSCALL_TIMER_DISCONNECT_EVENT_QUEUE 76
47
#define SYSCALL_TIMER_USLEEP 141
/* systime.h */
48
#define SYSCALL_TIMER_SLEEP 142
/* systime.h */
49
50
#define SYSCALL_INTERRUPT_TAG_CREATE 80
/* interrupt.h */
51
#define SYSCALL_INTERRUPT_TAG_DESTROY 81
/* interrupt.h */
52
#define SYSCALL_INTERRUPT_THREAD_ESTABLISH 84
/* interrupt.h */
53
#define SYSCALL_INTERRUPT_THREAD_EOI 88
/* interrupt.h */
54
#define SYSCALL_INTERRUPT_THREAD_DISESTABLISH 89
/* interrupt.h */
55
56
#define SYSCALL_EVENT_FLAG_CREATE 82
57
#define SYSCALL_EVENT_FLAG_DESTROY 83
58
#define SYSCALL_EVENT_FLAG_WAIT 85
59
#define SYSCALL_EVENT_FLAG_TRYWAIT 86
60
#define SYSCALL_EVENT_FLAG_SET 87
61
#define SYSCALL_EVENT_FLAG_CLEAR 118
62
#define SYSCALL_EVENT_QUEUE_CREATE 128
63
#define SYSCALL_EVENT_QUEUE_DESTROY 129
64
#define SYSCALL_EVENT_QUEUE_RECEIVE 130
65
#define SYSCALL_EVENT_QUEUE_TRYRECEIVE 131
66
#define SYSCALL_EVENT_FLAG_CANCEL 132
67
#define SYSCALL_EVENT_QUEUE_DRAIN 133
68
#define SYSCALL_EVENT_PORT_CREATE 134
69
#define SYSCALL_EVENT_PORT_DESTROY 135
70
#define SYSCALL_EVENT_PORT_CONNECT_LOCAL 136
71
#define SYSCALL_EVENT_PORT_DISCONNECT 137
72
#define SYSCALL_EVENT_PORT_SEND 138
73
#define SYSCALL_EVENT_FLAG_GET 139
74
#define SYSCALL_EVENT_PORT_CONNECT_IPC 140
75
76
#define SYSCALL_SEMAPHORE_CREATE 90
/* sem.h */
77
#define SYSCALL_SEMAPHORE_DESTROY 91
/* sem.h */
78
#define SYSCALL_SEMAPHORE_WAIT 92
/* sem.h */
79
#define SYSCALL_SEMAPHORE_TRYWAIT 93
/* sem.h */
80
#define SYSCALL_SEMAPHORE_POST 94
/* sem.h */
81
#define SYSCALL_SEMAPHORE_GET_VALUE 114
/* sem.h */
82
83
#define SYSCALL_MUTEX_CREATE 100
/* mutex.h */
84
#define SYSCALL_MUTEX_DESTROY 101
/* mutex.h */
85
#define SYSCALL_MUTEX_LOCK 102
/* mutex.h */
86
#define SYSCALL_MUTEX_TRYLOCK 103
/* mutex.h */
87
#define SYSCALL_MUTEX_UNLOCK 104
/* mutex.h */
88
89
#define SYSCALL_COND_CREATE 105
/* cond.h */
90
#define SYSCALL_COND_DESTROY 106
/* cond.h */
91
#define SYSCALL_COND_WAIT 107
/* cond.h */
92
#define SYSCALL_COND_SIGNAL 108
/* cond.h */
93
#define SYSCALL_COND_SIGNAL_ALL 109
/* cond.h */
94
#define SYSCALL_COND_SIGNAL_TO 110
/* cond.h */
95
96
#define SYSCALL_RWLOCK_CREATE 120
97
#define SYSCALL_RWLOCK_DESTROY 121
98
#define SYSCALL_RWLOCK_RLOCK 122
99
#define SYSCALL_RWLOCK_TRYRLOCK 123
100
#define SYSCALL_RWLOCK_RUNLOCK 124
101
#define SYSCALL_RWLOCK_WLOCK 125
102
#define SYSCALL_RWLOCK_WUNLOCK 127
103
#define SYSCALL_RWLOCK_TRYWLOCK 148
104
105
#define SYSCALL_TIME_GET_CURRENT_TIME 145
/* systime.h */
106
#define SYSCALL_TIME_SET_CURRENT_TIME 146
/* systime.h */
107
#define SYSCALL_TIME_GET_TIMEBASE_FREQUENCY 147
/* systime.h */
108
109
#define SYSCALL_SPU_CREATE_INTERRUPT_TAG 150
110
#define SYSCALL_SPU_SET_INT_MASK 151
111
#define SYSCALL_SPU_GET_INT_MASK 152
112
#define SYSCALL_SPU_SET_INT_STAT 153
113
#define SYSCALL_SPU_GET_INT_STAT 154
114
#define SYSCALL_SPU_IMAGE_OPEN 156
115
#define SYSCALL_SPU_CREATE 160
116
#define SYSCALL_SPU_DESTROY 161
117
#define SYSCALL_SPU_READ_PUINT_MB 163
118
#define SYSCALL_SPU_THREAD_GET_EXIT_STATUS 165
119
#define SYSCALL_SPU_THREAD_SET_ARGUMENT 166
120
#define SYSCALL_SPU_THREAD_GROUP_START_ON_EXIT 167
121
#define SYSCALL_SPU_INITIALIZE 169
122
#define SYSCALL_SPU_THREAD_GROUP_CREATE 170
123
#define SYSCALL_SPU_THREAD_GROUP_DESTROY 171
124
#define SYSCALL_SPU_THREAD_INITIALIZE 172
125
#define SYSCALL_SPU_THREAD_GROUP_START 173
126
#define SYSCALL_SPU_THREAD_GROUP_SUSPEND 174
127
#define SYSCALL_SPU_THREAD_GROUP_RESUME 175
128
#define SYSCALL_SPU_THREAD_GROUP_YIELD 176
129
#define SYSCALL_SPU_THREAD_GROUP_TERMINATE 177
130
#define SYSCALL_SPU_THREAD_GROUP_JOIN 178
131
#define SYSCALL_SPU_THREAD_GROUP_SET_PRIORITY 179
132
#define SYSCALL_SPU_THREAD_GROUP_GET_PRIORITY 180
133
#define SYSCALL_SPU_THREAD_WRITE_LS 181
134
#define SYSCALL_SPU_THREAD_READ_LS 182
135
#define SYSCALL_SPU_THREAD_WRITE_SNR 184
136
#define SYSCALL_SPU_THREAD_GROUP_CONNECT_EVENT 185
137
#define SYSCALL_SPU_THREAD_GROUP_DISCONNECT_EVENT 186
138
#define SYSCALL_SPU_THREAD_SET_SPU_CFG 187
139
#define SYSCALL_SPU_THREAD_GET_SPU_CFG 188
140
#define SYSCALL_SPU_THREAD_WRITE_SPU_MB 190
141
#define SYSCALL_SPU_THREAD_CONNECT_EVENT 191
142
#define SYSCALL_SPU_THREAD_DISCONNECT_EVENT 192
143
#define SYSCALL_SPU_THREAD_BIND_QUEUE 193
144
#define SYSCALL_SPU_THREAD_UNBIND_QUEUE 194
145
#define SYSCALL_SPU_SET_SPU_CFG 196
146
#define SYSCALL_SPU_GET_SPU_CFG 197
147
#define SYSCALL_SPU_THREAD_RECOVER_PAGE_FAULT 198
148
#define SYSCALL_SPU_RECOVER_PAGE_FAULT 199
149
#define SYSCALL_SPU_THREAD_GROUP_SET_COOPERATIVE_VICTIMS 250
150
#define SYSCALL_SPU_THREAD_GROUP_CONNECT_EVENT_ALL_THREADS 251
151
#define SYSCALL_SPU_THREAD_GROUP_DISCONNECT_EVENT_ALL_THREADS 252
152
#define SYSCALL_SPU_THREAD_GROUP_LOG 254
153
#define SYSCALL_SPU_IMAGE_OPEN_BY_FD 260
154
155
#define SYSCALL_VM_MEMORY_MAP 300
156
#define SYSCALL_VM_UNMAP 301
157
#define SYSCALL_VM_APPEND_MEMORY 302
158
#define SYSCALL_VM_RETURN_MEMORY 303
159
#define SYSCALL_VM_LOCK 304
160
#define SYSCALL_VM_UNLOCK 305
161
#define SYSCALL_VM_TOUCH 306
162
#define SYSCALL_VM_FLUSH 307
163
#define SYSCALL_VM_INVALIDATE 308
164
#define SYSCALL_VM_STORE 309
165
#define SYSCALL_VM_SYNC 310
166
#define SYSCALL_VM_TEST 311
167
#define SYSCALL_VM_GET_STATISTICS 312
168
169
#define SYSCALL_MEMORY_CONTAINER_CREATE 324
/* memory.h */
170
#define SYSCALL_MEMORY_CONTAINER_DESTROY 325
/* memory.h */
171
#define SYSCALL_MEMORY_CONTAINER_GET_SIZE 343
172
#define SYSCALL_MEMORY_ALLOCATE 348
/* memory.h */
173
#define SYSCALL_MEMORY_FREE 349
/* memory.h */
174
#define SYSCALL_MEMORY_ALLOCATE_FROM_CONTAINER 350
/* memory.h */
175
#define SYSCALL_MEMORY_GET_PAGE_ATTRIBUTE 351
176
#define SYSCALL_MEMORY_GET_USER_MEMORY_SIZE 352
177
178
#define SYSCALL_MMAPPER_ALLOCATE_FIXED_ADDRESS 326
179
#define SYSCALL_MMAPPER_ENABLE_PAGE_FAULT_NOTIFICATION 327
180
#define SYSCALL_MMAPPER_ALLOCATE_ADDRESS 330
/* memory.h */
181
#define SYSCALL_MMAPPER_FREE_ADDRESS 331
/* memory.h */
182
#define SYSCALL_MMAPPER_CHANGE_ADDRESS_ACCESS_RIGHT 336
183
#define SYSCALL_MMAPPER_SEARCH_AND_MAP 337
/* memory.h */
184
185
#define SYSCALL_TTY_READ 402
/* tty.h */
186
#define SYSCALL_TTY_WRITE 403
/* tty.h */
187
188
#define SYSCALL_OVERLAY_LOAD_MODULE 450
189
#define SYSCALL_OVERLAY_UNLOAD_MODULE 451
190
#define SYSCALL_OVERLAY_GET_MODULE_LIST 452
191
#define SYSCALL_OVERLAY_GET_MODULE_INFO 453
192
#define SYSCALL_OVERLAY_LOAD_MODULE_BY_FD 454
193
#define SYSCALL_OVERLAY_GET_MODULE_INFO2 455
194
#define SYSCALL_OVERLAY_GET_SDK_VERSION 456
195
196
#define SYSCALL_PRX_GET_MODULE_ID_BY_ADDRESS 461
197
#define SYSCALL_PRX_LOAD_MODULE_BY_FD 463
198
#define SYSCALL_PRX_LOAD_MODULE_ON_MEMCONTAINER_BY_FD 464
199
#define SYSCALL_PRX_LOAD_MODULE_LIST 465
200
#define SYSCALL_PRX_LOAD_MODULE_LIST_ON_MEMCONTAINER 466
201
#define SYSCALL_PRX_GET_PPU_GUID 467
202
#define SYSCALL_PRX_LOAD_MODULE 480
203
#define SYSCALL_PRX_START_MODULE 481
204
#define SYSCALL_PRX_STOP_MODULE 482
205
#define SYSCALL_PRX_UNLOAD_MODULE 483
206
#define SYSCALL_PRX_REGISTER_MODULE 484
207
#define SYSCALL_PRX_QUERY_MODULE 485
208
#define SYSCALL_PRX_REGISTER_LIBRARY 486
209
#define SYSCALL_PRX_UNREGISTER_LIBRARY 487
210
#define SYSCALL_PRX_LINK_LIBRARY 488
211
#define SYSCALL_PRX_UNLINK_LIBRARY 489
212
#define SYSCALL_PRX_QUERY_LIBRARY 490
213
#define SYSCALL_PRX_GET_MODULE_LIST 494
214
#define SYSCALL_PRX_GET_MODULE_INFO 495
215
#define SYSCALL_PRX_GET_MODULE_ID_BY_NAME 496
216
#define SYSCALL_PRX_LOAD_MODULE_ON_MEMCONTAINER 497
217
#define SYSCALL_PRX_START 498
218
#define SYSCALL_PRX_STOP 499
219
220
#define SYSCALL_STORAGE_OPEN 600
221
#define SYSCALL_STORAGE_CLOSE 601
222
#define SYSCALL_STORAGE_READ 602
223
#define SYSCALL_STORAGE_WRITE 603
224
#define SYSCALL_STORAGE_SEND_DEVICE_COMMAND 604
225
#define SYSCALL_STORAGE_ASYNC_CONFIGURE 605
226
#define SYSCALL_STORAGE_ASYNC_READ 606
227
#define SYSCALL_STORAGE_ASYNC_WRITE 607
228
#define SYSCALL_STORAGE_ASYNC_CANCEL 608
229
#define SYSCALL_STORAGE_GET_DEVICE_INFO 609
230
#define SYSCALL_STORAGE_GET_DEVICE_CONFIG 610
231
#define SYSCALL_STORAGE_REPORT_DEVICES 611
232
#define SYSCALL_STORAGE_CONFIGURE_MEDIUM_EVENT 612
233
#define SYSCALL_STORAGE_SET_MEDIUM_POLLING_INTERVAL 613
234
#define SYSCALL_STORAGE_CREATE_REGION 614
235
#define SYSCALL_STORAGE_DELETE_REGION 615
236
#define SYSCALL_STORAGE_EXECUTE_DEVICE_COMMAND 616
237
#define SYSCALL_STORAGE_GET_REGION_ACL 617
238
#define SYSCALL_STORAGE_SET_REGION_ACL 618
239
#define SYSCALL_STORAGE_ASYNC_SEND_DEVICE_COMMAND 619
240
#define SYSCALL_STORAGE_GET_REGION_OFFSET 622
241
#define SYSCALL_STORAGE_SET_EMULATED_SPEED 623
242
243
#define SYSCALL_IO_BUFFER_CREATE 624
244
#define SYSCALL_IO_BUFFER_DESTROY 625
245
#define SYSCALL_IO_BUFFER_ALLOCATE 626
246
#define SYSCALL_IO_BUFFER_FREE 627
247
248
#define SYSCALL_GPIO_SET 630
249
#define SYSCALL_GPIO_GET 631
250
251
#define SYSCALL_FSW_CONNECT_EVENT 633
252
#define SYSCALL_FSW_DISCONNECT_EVENT 634
253
254
#define SYSCALL_RSX_DEVICE_OPEN 666
255
#define SYSCALL_RSX_DEVICE_CLOSE 667
256
#define SYSCALL_RSX_MEMORY_ALLOCATE 668
257
#define SYSCALL_RSX_MEMORY_FREE 669
258
#define SYSCALL_RSX_CONTEXT_ALLOCATE 670
259
#define SYSCALL_RSX_CONTEXT_FREE 671
260
#define SYSCALL_RSX_CONTEXT_IOMAP 672
261
#define SYSCALL_RSX_CONTEXT_IOUNMAP 673
262
#define SYSCALL_RSX_CONTEXT_ATTRIBUTE 674
263
#define SYSCALL_RSX_DEVICE_MAP 675
264
#define SYSCALL_RSX_DEVICE_UNMAP 676
265
#define SYSCALL_RSX_ATTRIBUTE 677
266
267
#define SYSCALL_BDEMU_SEND_COMMAND 699
268
269
#define SYSCALL_SS_GET_OPEN_PSID 872
270
271
#define SYSCALL_DECI3_OPEN 880
272
#define SYSCALL_DECI3_CREATE_EVENT_PATH 881
273
#define SYSCALL_DECI3_CLOSE 882
274
#define SYSCALL_DECI3_SEND 883
275
#define SYSCALL_DECI3_RECEIVE 884
276
277
278
#endif
/* __SYSCALL_SYSCALLS_H__ */
279
Generated on Wed Aug 7 2019 09:58:38 for psl1ght by
1.8.15