Editing LV2 Functions and Syscalls
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 37: | Line 37: | ||
int64_t modres; | int64_t modres; | ||
uint64_t pe_func; //casted to sys_prx_entry_pe_t (see sys/prx.h) | uint64_t pe_func; //casted to sys_prx_entry_pe_t (see sys/prx.h) | ||
}; | }; | ||
</source> | </source> | ||
Line 304: | Line 292: | ||
|- | |- | ||
! FW version !! Alloc !! Free !! Syscall<br />Table !! Mem_base !! TOC !! Copy<br />to<br />User !! Notes | ! FW version !! Alloc !! Free !! Syscall<br />Table !! Mem_base !! TOC !! Copy<br />to<br />User !! Notes | ||
|- | |- | ||
| 3.56 Retail || 0x60b24 || 0x60f60 || 0x346570 || 0xef60 || 0x330540 || || | | 3.56 Retail || 0x60b24 || 0x60f60 || 0x346570 || 0xef60 || 0x330540 || || | ||
Line 374: | Line 358: | ||
=== LV2 Syscalls === | === LV2 Syscalls === | ||
{| class="wikitable | {| class="wikitable sortable" | ||
|- | |- | ||
! Dec | ! Dec | ||
! Hex | ! Hex | ||
! style="width: | ! style="width:100px" | <abbr title="Firmware Type Specific (CEX,DEX,..)">fw_type</abbr> | ||
! <abbr title="Additional Settings/Flags required (Control Flags,Product Mode,..)">needed_flags</abbr> | ! <abbr title="Additional Settings/Flags required (Control Flags,Product Mode,..)">needed_flags</abbr> | ||
! Name | ! Name | ||
Line 551: | Line 535: | ||
| {{Root}} | | {{Root}} | ||
| sys_process_get_sdk_version | | sys_process_get_sdk_version | ||
| | | 2 params :sys_pid_t pid, uint8_t outbuf[4] | ||
|- | |- | ||
| 26 | | 26 | ||
Line 986: | Line 969: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_lwmutex_create | ||
| int | | int sys_lwmutex_create(sys_lwmutex_t *lwmutex, sys_lwmutex_attribute_t *attr) | ||
|- | |- | ||
| 96 | | 96 | ||
Line 993: | Line 976: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_lwmutex_destroy | ||
| int | | int sys_lwmutex_destroy(sys_lwmutex_t *lwmutex) | ||
|- | |- | ||
| 97 | | 97 | ||
Line 1,000: | Line 983: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_lwmutex_lock | ||
| int | | int sys_lwmutex_lock(sys_lwmutex_t *lwmutex, usecond_t timeout) | ||
|- | |- | ||
| 98 | | 98 | ||
Line 1,007: | Line 990: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_lwmutex_unlock | ||
| int | | int sys_lwmutex_unlock(sys_lwmutex_t *lwmutex) | ||
|- | |- | ||
| 99 | | 99 | ||
Line 1,014: | Line 997: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_lwmutex_trylock | ||
| int | | int sys_lwmutex_trylock(sys_lwmutex_t *lwmutex) | ||
|- | |- | ||
! colspan="6" id="sys_mutex Syscalls"|[[#sys_mutex Syscalls]] (100-104) | ! colspan="6" id="sys_mutex Syscalls"|[[#sys_mutex Syscalls]] (100-104) | ||
Line 1,104: | Line 1,087: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_lwcond_create | ||
| int | | int sys_lwcond_create(sys_lwcond_t *lwcond, sys_lwmutex_t *lwmutex, sys_lwcond_attribute_t *attr) | ||
|- | |- | ||
| 112 | | 112 | ||
Line 1,111: | Line 1,094: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_lwcond_destroy | ||
| int | | int sys_lwcond_destroy(sys_lwcond_t *lwcond) | ||
|- | |- | ||
| 113 | | 113 | ||
Line 1,118: | Line 1,101: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_lwcond_queue_wait | ||
| | | 3 params | ||
|- | |- | ||
! colspan="6" id="sys_semaphore Syscalls"|[[#sys_semaphore Syscalls]] (90-94+114) | ! colspan="6" id="sys_semaphore Syscalls"|[[#sys_semaphore Syscalls]] (90-94+114) | ||
Line 1,134: | Line 1,117: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | | ||
| | | 4 params | ||
|- | |- | ||
| 116 | | 116 | ||
Line 1,141: | Line 1,124: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | | ||
| | | 3 params | ||
|- | |- | ||
| 117 | | 117 | ||
Line 1,148: | Line 1,131: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | | ||
| | | 1 params : sys_lwmutex_t *lwmutex | ||
|- | |- | ||
! colspan="6" id="sys_event Syscalls"|[[#sys_event Syscalls]] (82+83+85-87+118+128-140) | ! colspan="6" id="sys_event Syscalls"|[[#sys_event Syscalls]] (82+83+85-87+118+128-140) | ||
Line 1,422: | Line 1,404: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| sys_spu_image_get_information | | sys_spu_image_get_information? | ||
| int sys_spu_image_get_information(sys_spu_image_t *img, | | int sys_spu_image_get_information?(sys_spu_image_t *img, out:uint[4],out:uint[4]) | ||
|- | |- | ||
| 156 | | 156 | ||
Line 1,450: | Line 1,432: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_raw_spu_load | ||
| | | 3 Params ( sys_spu_image_t * img, sys_addr_t alloc_addr, int size? ), needs much more proper information | ||
|- | |- | ||
| 160 | | 160 | ||
Line 1,501: | Line 1,482: | ||
| | | | ||
| sys_spu_initialize | | sys_spu_initialize | ||
| int sys_spu_initialize( | | int sys_spu_initialize(unsigned int max_usable_spu, unsigned int max_raw_spu) | ||
|- | |- | ||
| 170 | | 170 | ||
Line 1,508: | Line 1,489: | ||
| | | | ||
| sys_spu_thread_group_create | | sys_spu_thread_group_create | ||
| int sys_spu_thread_group_create(sys_spu_thread_group_t *id, | | int sys_spu_thread_group_create(sys_spu_thread_group_t *id, unsigned int num, int prio, sys_spu_thread_group_attribute_t *attr) | ||
|- | |- | ||
| 171 | | 171 | ||
Line 1,522: | Line 1,503: | ||
| | | | ||
| sys_spu_thread_initialize | | sys_spu_thread_initialize | ||
| int sys_spu_thread_initialize(sys_spu_thread_t *thread, sys_spu_thread_group_t group, | | int sys_spu_thread_initialize(sys_spu_thread_t *thread,sys_spu_thread_group_t group,uint spu_num,sys_spu_image_t *img,sys_spu_thread_attribute_t *attr,sys_spu_thread_argument_t *arg) | ||
|- | |- | ||
| 173 | | 173 | ||
Line 1,944: | Line 1,925: | ||
| | | | ||
| sys_spu_thread_group_set_cooperative_victims | | sys_spu_thread_group_set_cooperative_victims | ||
| | | 2 Params | ||
|- | |- | ||
| 251 | | 251 | ||
Line 1,965: | Line 1,945: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_spu_thread_group.. | ||
| | | 2 Params( sys_spu_thread_group_t id, out:uint8[0x40]) | ||
|- | |- | ||
| 254 | | 254 | ||
Line 2,143: | Line 2,122: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | |sys_mmapper_allocate_shared_memory_ext | ||
| int | | int sys_mmapper_allocate_shared_memory_ext(u64 shmem_key, u32 size, u64 pageSizeFlags, u32 memory_container_id, void *entries, u32 entry_count, u32 *mem_id) | ||
|- | |- | ||
| 329 | | 329 | ||
Line 2,172: | Line 2,151: | ||
| | | | ||
| sys_mmapper_allocate_shared_memory | | sys_mmapper_allocate_shared_memory | ||
| | | 4 Params: (uint32_t id? ('UMEM'), size_t size, size_t alignment, sys_memory_t * mem_id) | ||
|- | |- | ||
| 333 | | 333 | ||
Line 2,186: | Line 2,165: | ||
| | | | ||
| sys_mmapper_map_shared_memory | | sys_mmapper_map_shared_memory | ||
| | | 3 Params: (sys_addr_t start_addr, sys_memory_t mem_id, uint64_t flags) ? | ||
|- | |- | ||
| 335 | | 335 | ||
Line 2,193: | Line 2,172: | ||
| | | | ||
| sys_mmapper_unmap_shared_memory | | sys_mmapper_unmap_shared_memory | ||
| | | 2 Params: (sys_addr_t start_addr,sys_memory_t *mem_id ) ? | ||
|- | |- | ||
| 336 | | 336 | ||
Line 2,220: | Line 2,199: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | | ||
| | | 5 Params | ||
|- | |- | ||
| 340 | | 340 | ||
Line 2,527: | Line 2,506: | ||
| {{Root}} | | {{Root}} | ||
| sys_game_get_temperature | | sys_game_get_temperature | ||
| int sys_game_get_temperature( | | int sys_game_get_temperature(0=CELL/1=RSX,uint32_t *temperature) ( HV System Manager access - ServiceID 13 (TEMPERATURE)) | ||
2nd Byte conversion: r.shift (second_byte * 0x64 ) by 8<br> | 2nd Byte conversion: r.shift (second_byte * 0x64 ) by 8<br> | ||
Example: 195 = 0xC3 -> 0xC3 * 0x64 -> 0x4C2C ->> shift -> 0x4C -> XX.76°C | Example: 195 = 0xC3 -> 0xC3 * 0x64 -> 0x4C2C ->> shift -> 0x4C -> XX.76°C | ||
|- | |- | ||
| 384 | | 384 | ||
Line 2,542: | Line 2,515: | ||
| {{Root}} | | {{Root}} | ||
| sys_sm_get_tzpb | | sys_sm_get_tzpb | ||
| 1 Param: syscall(384,uint64_t *tzpb); (uint8_t [0x20]) Get | | 1 Param: syscall(384,uint64_t *tzpb); (uint8_t [0x20]) Get TimeZone Presence <br> HV System Manager access - ServiceID 15 | ||
|- | |- | ||
| 385 | | 385 | ||
Line 2,583: | Line 2,556: | ||
| {{Productmode}} | | {{Productmode}} | ||
| sys_sm_set_fan_policy | | sys_sm_set_fan_policy | ||
| int sys_sm_set_fan_policy (in:uint8, in:uint8, in:uint8)<!--// int sys_sm_set_fan_policy(u8 arg0, u8 arg1, u8 arg2) //--> | | int sys_sm_set_fan_policy (in:uint8, in:uint8, in:uint8)<!--// int sys_sm_set_fan_policy(u8 arg0, u8 arg1, u8 arg2) //--> | ||
|- | |- | ||
| 390 | | 390 | ||
Line 2,599: | Line 2,572: | ||
| sys_sm_request_be_count | | sys_sm_request_be_count | ||
| 4 Params | | 4 Params | ||
uint8_t * | uint8_t *, | ||
uint32_t* total_time_in_seconds, | uint32_t* total_time_in_seconds, | ||
uint32_t* power_on_counter, | uint32_t* power_on_counter, | ||
Line 2,637: | Line 2,610: | ||
| {{Root}} | | {{Root}} | ||
| sys_sm_request_scversion | | sys_sm_request_scversion | ||
| uint8_t SoftID[8],old_PatchID[8],new_PatchID[8]; lv2syscall3(394, (uint64_t)SoftID, (uint64_t)old_PatchID, (uint64_t)new_PatchID);<br />HV System Manager access - ServiceID 30 (REQUEST_SC_VERSION) [[ | | uint8_t SoftID[8],old_PatchID[8],new_PatchID[8]; lv2syscall3(394, (uint64_t)SoftID, (uint64_t)old_PatchID, (uint64_t)new_PatchID);<br />HV System Manager access - ServiceID 30 (REQUEST_SC_VERSION) [[System_Controller_Firmware#.27info0.27 SC Firmware]] | ||
|- | |- | ||
| 395 | | 395 | ||
Line 2,644: | Line 2,617: | ||
| {{Productmode}} | | {{Productmode}} | ||
| sys_sm_request_system_event_log | | sys_sm_request_system_event_log | ||
| int sys_sm_request_system_event_log(int offset(0 - 5),uint64_t *out,uint64_t *out,uint64_t *out,uint8_t buf[0x20], int flag ), 6 Params, HV System Manager access - ServiceID 32 (REQUEST_SYSTEM_EVENT_LOG) | | int sys_sm_request_system_event_log(int offset(0 - 5),uint64_t *out,uint64_t *out,uint64_t *out,uint8_t buf[0x20], int flag ), 6 Params, HV System Manager access - ServiceID 32 (REQUEST_SYSTEM_EVENT_LOG) | ||
|- | |- | ||
| 396 | | 396 | ||
Line 2,665: | Line 2,638: | ||
| {{Root}} | | {{Root}} | ||
| sys_console_write | | sys_console_write | ||
| int sys_console_write(const char *s, | | int sys_console_write(const char *s, unsigned int len)(lv2,lv1::console::write_async <!--///* | ||
* lv2_lv1_log_write | * lv2_lv1_log_write | ||
*/ | */ | ||
static inline int lv2_lv1_log_write(const char *s, | static inline int lv2_lv1_log_write(const char *s, unsigned int len) | ||
{ | { | ||
return Lv2Syscall2(398, (uint64_t) s, len); | return Lv2Syscall2(398, (uint64_t) s, len); | ||
Line 2,685: | Line 2,658: | ||
| {{Productmode}} | | {{Productmode}} | ||
| | | | ||
| int sys_request_system_event_log(int offset(0 - 5),uint64_t *out, int flag ) , HV System Manager access - ServiceID 32 (REQUEST_SYSTEM_EVENT_LOG) <br> sys_sm_request_system_event_log too | | int sys_request_system_event_log(int offset(0 - 5),uint64_t *out, int flag ) , HV System Manager access - ServiceID 32 (REQUEST_SYSTEM_EVENT_LOG) <br> sys_sm_request_system_event_log too | ||
|- | |- | ||
| 401 | | 401 | ||
Line 2,694: | Line 2,667: | ||
| 2 Params: uint64_t param,uint8_t * st (status?/state?) | | 2 Params: uint64_t param,uint8_t * st (status?/state?) | ||
HV System Manager access - ServiceID 40 (BOOT_PARAMETER) | HV System Manager access - ServiceID 40 (BOOT_PARAMETER) | ||
also sends the param to syscon | |||
related to 404 | |||
|- | |- | ||
! colspan="6" id="sys_tty Syscalls"|[[#sys_tty Syscalls]] (402-403) | ! colspan="6" id="sys_tty Syscalls"|[[#sys_tty Syscalls]] (402-403) | ||
Line 2,703: | Line 2,677: | ||
| | | | ||
| sys_tty_read | | sys_tty_read | ||
| int sys_tty_read( | | int sys_tty_read(unsigned int ch, void *buf, unsigned int len, unsigned int *preadlen); | ||
|- | |- | ||
| 403 | | 403 | ||
Line 2,710: | Line 2,684: | ||
| | | | ||
| sys_tty_write | | sys_tty_write | ||
| int sys_tty_write( | | int sys_tty_write(unsigned int ch, const void *buf, unsigned int len, unsigned int *pwritelen); | ||
|- | |- | ||
| 404 | | 404 | ||
Line 2,720: | Line 2,694: | ||
HV System Manager access - ServiceID 42 (BOOT_PARAMETER) | HV System Manager access - ServiceID 42 (BOOT_PARAMETER) | ||
[Network Settings for Debug] related, returns single/dual setting flag? | [Network Settings for Debug] related, returns single/dual setting flag? | ||
|- | |- | ||
| 405 | | 405 | ||
Line 2,730: | Line 2,703: | ||
HV System Manager access - ServiceID 44 | HV System Manager access - ServiceID 44 | ||
factory_process_comp (0,0), dbg_printf comp value | factory_process_comp (0,0), dbg_printf comp value | ||
|- | |- | ||
| 406 | | 406 | ||
Line 2,741: | Line 2,713: | ||
HV System Manager access - ServiceID 46 | HV System Manager access - ServiceID 46 | ||
factory_process_comp (1,x) -> OR-Operation with comp | factory_process_comp (1,x) -> OR-Operation with comp | ||
|- | |- | ||
| 407 | | 407 | ||
Line 2,751: | Line 2,722: | ||
HV System Manager access - ServiceID 48 | HV System Manager access - ServiceID 48 | ||
factory_process_comp (2,0) -> ANDC-Operation with comp=0 | factory_process_comp (2,0) -> ANDC-Operation with comp=0 | ||
|- | |- | ||
| 408 | | 408 | ||
Line 2,765: | Line 2,735: | ||
| {{Productmode}} | | {{Productmode}} | ||
| sys_sm_get_fan_policy | | sys_sm_get_fan_policy | ||
| int sys_sm_get_fan_policy(uint8_t id, uint8_t *st (status? state?), uint8_t *policy (mode), uint8_t * mode (speed), uint8_t *duty) | | int sys_sm_get_fan_policy(uint8_t id, uint8_t *st (status? state?), uint8_t *policy (mode), uint8_t * mode (speed), uint8_t *duty) | ||
|- | |- | ||
! colspan="6" id="sys_game Syscalls"|[[#sys_game Syscalls]] (372-376+410-412) | ! colspan="6" id="sys_game Syscalls"|[[#sys_game Syscalls]] (372-376+410-412) | ||
Line 2,860: | Line 2,830: | ||
| | | | ||
| sys_overlay_get_sdk_version | | sys_overlay_get_sdk_version | ||
| | | 2 Params | ||
|- | |- | ||
| 457 | | 457 | ||
Line 2,946: | Line 2,916: | ||
| {{Root}} | | {{Root}} | ||
| sys_npdrm_check_ekc | | sys_npdrm_check_ekc | ||
| int syscall 470 ( | | int syscall 470 (uint32_t type?, void* npd? [0x60]) | ||
|- | |- | ||
| 471 | | 471 | ||
Line 2,955: | Line 2,925: | ||
| int syscall_471(uint32_t type, char* titleID, void* klicensee, uint8_t* actdat, uint8_t* rif, int32_t licenseType, uint8_t* magicVersion);<!--//The function has different parameters depending if the content is debug, free or paid: | | int syscall_471(uint32_t type, char* titleID, void* klicensee, uint8_t* actdat, uint8_t* rif, int32_t licenseType, uint8_t* magicVersion);<!--//The function has different parameters depending if the content is debug, free or paid: | ||
FREE: syscall471(npd.type, &npd.titleID, freeklicensee, NULL, NULL, npd.license, &npd); | FREE: syscall471(npd.type, &npd.titleID, freeklicensee, NULL, NULL, npd.license, &npd); | ||
PAID: syscall471(npd.type, &npd.titleID, NULL, &actdat.keyTable[rif.actDatIndex], &rif.key, npd.license, &npd) | PAID: syscall471(npd.type, &npd.titleID, NULL, &actdat.keyTable[rif.actDatIndex], &rif.key, npd.license, &npd);//--> | ||
|- | |- | ||
| 472 | | 472 | ||
Line 2,983: | Line 2,952: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| {{Root}} | | {{Root}} | ||
| | | | ||
| int syscall_475( | | int syscall_475(uint32_t type, void* npd?, void* klicensee, uint8_t* actdat, uint8_t* rif, uint8_t magicVersion) | ||
|- | |- | ||
| 476 | | 476 | ||
Line 3,446: | Line 3,415: | ||
| | | | ||
| sys_usbd_event_port_send | | sys_usbd_event_port_send | ||
| | | 4 Params | ||
|- | |- | ||
| 550 | | 550 | ||
Line 3,508: | Line 3,477: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | | ||
| 3 Params | | 3 Params | ||
|- | |- | ||
| 559 | | 559 | ||
Line 3,640: | Line 3,609: | ||
| sys_pad_manager_.... | | sys_pad_manager_.... | ||
| int sys_pad_manager_.... (int8_t device_number?) | | int sys_pad_manager_.... (int8_t device_number?) | ||
|- | |- | ||
! colspan="6" id="sys_bluetooth Syscalls"|[[#sys_bluetooth Syscalls]] | ! colspan="6" id="sys_bluetooth Syscalls"|[[#sys_bluetooth Syscalls]] | ||
Line 3,655: | Line 3,623: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| sys_bluetooth_aud_serial_unk1(0x243,0,unk1*,aud_serial*,unk2*,unk3*,unk4*) | |||
| sys_bluetooth_aud_serial_unk1(0x243,0,unk1*,aud_serial*,unk2*,unk3*,unk4*) | |0xD0044D40 00 00 00 00 / 0xD0044D44 00 82 8E 18 --> 00 7D 39 A0 --> 0x007D39A0 5F 61 75 64 5F 53 45 52 49 41 4C 00 00 00 00 00 _aud_SERIAL..... / 0xD0044D48 00 00 00 00 / 0xD0044D4C 00 00 00 00 | ||
|- | |- | ||
| 580 | | 580 | ||
Line 3,841: | Line 3,809: | ||
| | | | ||
| sys_storage_send_device_command | | sys_storage_send_device_command | ||
| int sys_storage_send_device_command(uint32_t device_handle, | | int sys_storage_send_device_command(uint32_t device_handle, unsigned int command, void *indata, uint64_t inlen, void *outdata, uint64_t outlen) | ||
|- | |- | ||
Line 4,178: | Line 4,146: | ||
| | | | ||
| sys_rsxaudio_initialize | | sys_rsxaudio_initialize | ||
| int sys_rsxaudio_initialize( | | int sys_rsxaudio_initialize(out:uint8[4]) | ||
|- | |- | ||
| 651 | | 651 | ||
Line 4,185: | Line 4,153: | ||
| | | | ||
| sys_rsxaudio_finalize | | sys_rsxaudio_finalize | ||
| | | 1 Params | ||
|- | |- | ||
| 652 | | 652 | ||
Line 4,192: | Line 4,160: | ||
| | | | ||
| sys_rsxaudio_import_shared_memory | | sys_rsxaudio_import_shared_memory | ||
| | | 2 Params | ||
|- | |- | ||
| 653 | | 653 | ||
Line 4,199: | Line 4,167: | ||
| | | | ||
| sys_rsxaudio_unimport_shared_memory | | sys_rsxaudio_unimport_shared_memory | ||
| | | 2 Params | ||
|- | |- | ||
| 654 | | 654 | ||
Line 4,206: | Line 4,174: | ||
| | | | ||
| sys_rsxaudio_create_connection | | sys_rsxaudio_create_connection | ||
| | | 1 Params | ||
|- | |- | ||
| 655 | | 655 | ||
Line 4,213: | Line 4,181: | ||
| | | | ||
| sys_rsxaudio_close_connection | | sys_rsxaudio_close_connection | ||
| | | 1 Params | ||
|- | |- | ||
| 656 | | 656 | ||
Line 4,220: | Line 4,188: | ||
| | | | ||
| sys_rsxaudio_prepare_process | | sys_rsxaudio_prepare_process | ||
| | | 1 Params | ||
|- | |- | ||
| 657 | | 657 | ||
Line 4,227: | Line 4,195: | ||
| | | | ||
| sys_rsxaudio_start_process | | sys_rsxaudio_start_process | ||
| | | 1 Params | ||
|- | |- | ||
| 658 | | 658 | ||
Line 4,234: | Line 4,202: | ||
| | | | ||
| sys_rsxaudio_stop_process | | sys_rsxaudio_stop_process | ||
| | | 1 Params | ||
|- | |- | ||
| 659 | | 659 | ||
Line 4,240: | Line 4,208: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_rsxaudio_ | ||
| | | 3 Params | ||
|- | |- | ||
! colspan="6" id="sys_rsx Syscalls"|[[#sys_rsx Syscalls]] (666-677) | ! colspan="6" id="sys_rsx Syscalls"|[[#sys_rsx Syscalls]] (666-677) | ||
Line 4,267: | Line 4,232: | ||
| | | | ||
| sys_rsx_memory_allocate | | sys_rsx_memory_allocate | ||
| (uint32_t *mem_ctx_id, uint32_t *local_addr, uint64_t | | (uint32_t *mem_ctx_id, uint32_t *local_addr, uint64_t arg_4, uint64_t arg_5, uint64_t arg_6, uint64_t arg_7); | ||
|- | |- | ||
| 669 | | 669 | ||
Line 4,770: | Line 4,735: | ||
| | | | ||
| sys_fs_link | | sys_fs_link | ||
| int sys_fs_link(const | | int sys_fs_link(char const*, char const*) | ||
|- | |- | ||
| 811 | | 811 | ||
Line 4,819: | Line 4,784: | ||
| | | | ||
| sys_fs_fcntl | | sys_fs_fcntl | ||
| int sys_fs_fcntl(int | | int sys_fs_fcntl(int, int, void *, unsigned long) | ||
|- | |- | ||
| 818 | | 818 | ||
Line 4,849: | Line 4,812: | ||
| | | | ||
| sys_fs_fget_block_size | | sys_fs_fget_block_size | ||
| int sys_fs_fget_block_size(int | | int sys_fs_fget_block_size(int, unsigned long *, unsigned long *, unsigned long *, int *) | ||
|- | |- | ||
| 822 | | 822 | ||
Line 4,856: | Line 4,819: | ||
| | | | ||
| sys_fs_get_block_size | | sys_fs_get_block_size | ||
| int sys_fs_get_block_size(const | | int sys_fs_get_block_size(char const*, unsigned long *, unsigned long *, unsigned long *) | ||
|- | |- | ||
| 823 | | 823 | ||
Line 4,863: | Line 4,826: | ||
| | | | ||
| sys_fs_acl_read | | sys_fs_acl_read | ||
| int sys_fs_acl_read(const | | int sys_fs_acl_read(char const*, CellFsAcl *) | ||
|- | |- | ||
| 824 | | 824 | ||
Line 4,870: | Line 4,833: | ||
| | | | ||
| sys_fs_acl_write | | sys_fs_acl_write | ||
| int sys_fs_acl_read(const | | int sys_fs_acl_read(char const*, CellFsAcl *) | ||
|- | |- | ||
| 825 | | 825 | ||
Line 4,877: | Line 4,840: | ||
| | | | ||
| sys_fs_lsn_get_cda_size | | sys_fs_lsn_get_cda_size | ||
| int sys_fs_lsn_get_cda_size(int | | int sys_fs_lsn_get_cda_size(int, unsigned long *) | ||
|- | |- | ||
| 826 | | 826 | ||
Line 4,884: | Line 4,847: | ||
| | | | ||
| sys_fs_lsn_get_cda | | sys_fs_lsn_get_cda | ||
| int sys_fs_lsn_get_cda(int | | int sys_fs_lsn_get_cda(int, CellFsCda *, unsigned long, unsigned long *) | ||
|- | |- | ||
| 827 | | 827 | ||
Line 4,891: | Line 4,854: | ||
| | | | ||
| sys_fs_lsn_lock | | sys_fs_lsn_lock | ||
| int sys_fs_lsn_lock(int | | int sys_fs_lsn_lock(int) | ||
|- | |- | ||
| 828 | | 828 | ||
Line 4,898: | Line 4,861: | ||
| | | | ||
| sys_fs_lsn_unlock | | sys_fs_lsn_unlock | ||
| int sys_fs_lsn_unlock(int | | int sys_fs_lsn_unlock(int) | ||
|- | |- | ||
| 829 | | 829 | ||
Line 4,905: | Line 4,868: | ||
| | | | ||
| sys_fs_lsn_read | | sys_fs_lsn_read | ||
| int sys_fs_lsn_read(int | | int sys_fs_lsn_read(int, CellFsCda const*, unsigned long) | ||
|- | |- | ||
| 830 | | 830 | ||
Line 4,912: | Line 4,875: | ||
| | | | ||
| sys_fs_lsn_write | | sys_fs_lsn_write | ||
| int sys_fs_lsn_write(int | | int sys_fs_lsn_write(int, CellFsCda const*, unsigned long) | ||
|- | |- | ||
| 831 | | 831 | ||
Line 4,933: | Line 4,896: | ||
| | | | ||
| sys_fs_symbolic_link | | sys_fs_symbolic_link | ||
| int sys_fs_symbolic_link(const | | int sys_fs_symbolic_link(char const*, char const*) | ||
|- | |- | ||
| 834 | | 834 | ||
Line 4,947: | Line 4,910: | ||
| | | | ||
| sys_fs_chown | | sys_fs_chown | ||
| int sys_fs_chown(const | | int sys_fs_chown(char const*, int, int) | ||
|- | |- | ||
| 836 | | 836 | ||
Line 4,954: | Line 4,917: | ||
| | | | ||
| sys_fs_newfs | | sys_fs_newfs | ||
| int sys_fs_newfs(const | | int sys_fs_newfs(char const* deviceName, char const*, int, char const**) | ||
|- | |- | ||
| 837 | | 837 | ||
Line 4,961: | Line 4,924: | ||
| | | | ||
| sys_fs_mount | | sys_fs_mount | ||
| int sys_fs_mount(const | | int sys_fs_mount(char const* deviceName, char const*, char const*, int, int, int, char const**) <br>Example: Device Name (e.g CELL_FS_IOS:BUILTIN_FLSH1), Device File System (e.g CELL_FS_FAT), Device Path (e.g. /dev_flash), 0, Write Protection (0 or 1), 0, 0, 0 | ||
|- | |- | ||
| 838 | | 838 | ||
Line 4,968: | Line 4,931: | ||
| | | | ||
| sys_fs_unmount | | sys_fs_unmount | ||
| int sys_fs_unmount(const | | int sys_fs_unmount(char const*, int, int)<br>Parameters: Device Path (e.g. /dev_flash) | ||
|- | |- | ||
| 839 | | 839 | ||
Line 4,988: | Line 4,951: | ||
| | | | ||
| sys_fs_disk_free | | sys_fs_disk_free | ||
| int sys_fs_disk_free(const | | int sys_fs_disk_free(char const*, unsigned long *, unsigned long *) | ||
|- | |- | ||
| 841 | | 841 | ||
Line 4,995: | Line 4,958: | ||
| | | | ||
| sys_fs_get_mount_info_size | | sys_fs_get_mount_info_size | ||
| int sys_fs_get_mount_info_size( | | int sys_fs_get_mount_info_size(unsigned long *) | ||
|- | |- | ||
| 842 | | 842 | ||
Line 5,003: | Line 4,965: | ||
| | | | ||
| sys_fs_get_mount_info | | sys_fs_get_mount_info | ||
| int sys_fs_get_mount_info(CellFsMountInformation* | | int sys_fs_get_mount_info(CellFsMountInformation *, unsigned long, unsigned long *) | ||
|- | |- | ||
| 843 | | 843 | ||
Line 5,012: | Line 4,972: | ||
| | | | ||
| sys_fs_get_fs_info_size | | sys_fs_get_fs_info_size | ||
| int sys_fs_get_fs_info_size( | | int sys_fs_get_fs_info_size(unsigned long *) | ||
|- | |- | ||
| 844 | | 844 | ||
Line 5,019: | Line 4,979: | ||
| | | | ||
| sys_fs_get_fs_info | | sys_fs_get_fs_info | ||
| int sys_fs_get_fs_info( | | int sys_fs_get_fs_info(ulong, ulong*, CellFsInfo *) | ||
|- | |- | ||
| 845 | | 845 | ||
Line 5,026: | Line 4,986: | ||
| | | | ||
| sys_fs_mapped_allocate | | sys_fs_mapped_allocate | ||
| int sys_fs_mapped_allocate(int, | | int sys_fs_mapped_allocate(int, unsigned long, void **) | ||
|- | |- | ||
| 846 | | 846 | ||
Line 5,146: | Line 5,106: | ||
| 0x364 | | 0x364 | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| {{Root}} | | {{Root}} / {{Dbg}} {{Authid}} | ||
| sys_ss_individual_info_manager | | sys_ss_individual_info_manager | ||
| [[Indi_Info_Manager|indi_info_manager_if (Interface)]] <!--///* | | [[Indi_Info_Manager|indi_info_manager_if (Interface)]] <!--///* | ||
Line 5,172: | Line 5,132: | ||
| sys_ss_get_console_id | | sys_ss_get_console_id | ||
| int sys_ss_get_console_id(uint8_t *buf) //returns [[IDPS]] in buf | | int sys_ss_get_console_id(uint8_t *buf) //returns [[IDPS]] in buf | ||
|- | |- | ||
| 871 | | 871 | ||
Line 5,179: | Line 5,138: | ||
| {{dbg}} | | {{dbg}} | ||
| sys_ss_access_control_engine | | sys_ss_access_control_engine | ||
| 3 params | | 3 params | ||
( | (1,sys_pid_t,out:uint8_t [8]) | ||
( | (2,out:uint8_t [8],0) // returns [[Authentication_IDs]] | ||
( | (3,out:uint8_t [8],0) | ||
|- | |- | ||
| 872 | | 872 | ||
Line 5,727: | Line 5,686: | ||
| | | | ||
| sys_dbg_get_lwcond_information | | sys_dbg_get_lwcond_information | ||
| int sys_dbg_get_lwcond_information (sys_pid_t id, sys_lwcond_pseudo_id_t id, sys_dbg_lwcond_information_t* info ) | | int sys_dbg_get_lwcond_information (sys_pid_t id, sys_lwcond_pseudo_id_t id, sys_dbg_lwcond_information_t* info ) | ||
|- | |- | ||
| 952 | | 952 | ||
Line 5,741: | Line 5,700: | ||
| | | | ||
| sys_dbg_vm_get_page_information | | sys_dbg_vm_get_page_information | ||
| int sys_dbg_vm_get_page_information (sys_pid_t id, sys_addr_t addr, | | int sys_dbg_vm_get_page_information (sys_pid_t id, sys_addr_t addr, unsigned int num, sys_vm_page_information_t *pageinfo ) | ||
|- | |- | ||
| 954 | | 954 | ||
Line 5,838: | Line 5,797: | ||
| {{DECR}} | | {{DECR}} | ||
| | | | ||
| | | ys_rsx_trace_ioctl | ||
| | | | ||
|- | |- | ||
Line 6,049: | Line 6,008: | ||
!Name | !Name | ||
!Value | !Value | ||
|- | |- | ||
|BluRayEmuOff | |BluRayEmuOff | ||
|0x04L | |0x04L | ||
|- | |- | ||
| | |BluRayEmuUSB | ||
| | |0x20L | ||
|- | |- | ||
|DebugMode | |DebugMode | ||
|0x10L | |0x10L | ||
|- | |- | ||
| | |Default | ||
| | |0x00L | ||
|- | |||
|DualNIC | |||
|0x80L | |||
|- | |- | ||
| | |HDDSpeedBluRayEmu | ||
| | |0x08L | ||
|- | |- | ||
|HostFSTarget | |HostFSTarget | ||
|0x40L | |0x40L | ||
|- | |- | ||
| | |MemSizeConsole | ||
| | |0x02L | ||
|- | |- | ||
|} | |ReleaseMode | ||
|0x01L | |||
|- | |||
|SystemMode | |||
|0x11L | |||
|- | |||
|} | |||
=== Network Syscalls === | === Network Syscalls === | ||
Networking uses [[LV2_Functions_and_Syscalls#sys_net_Syscalls|syscalls 700-726]] | Networking uses [[LV2_Functions_and_Syscalls#sys_net_Syscalls|syscalls 700-726]] | ||
Line 6,137: | Line 6,096: | ||
|cellFsDirent | |cellFsDirent | ||
|u8 d_type; u8 d_namlen; char d_name[256]; | |u8 d_type; u8 d_namlen; char d_name[256]; | ||
|no | |no | ||
|- | |- | ||
|} | |} | ||
Line 6,390: | Line 6,122: | ||
|- | |- | ||
| 8 | | 8 | ||
| lv2_lv1_peek - graf_chokolo / (4.3x peek) | | lv2_lv1_peek - graf_chokolo / (4.3x peek) | ||
| r3 is a 64 bit address to read. A 64 bit value will be returned in r3 | | r3 is a 64 bit address to read. A 64 bit value will be returned in r3 | ||
|- | |- | ||
Line 6,396: | Line 6,128: | ||
| Peek - ps3cobra | | Peek - ps3cobra | ||
| r3 is a 64 bit address to read. A 64 bit value will be returned in r3 | | r3 is a 64 bit address to read. A 64 bit value will be returned in r3 | ||
|- | |- | ||
| 8 | | 8 | ||
Line 6,442: | Line 6,173: | ||
| Remapper - Hermes, PSJailbreak / (4.2x BD-Emulator) | | Remapper - Hermes, PSJailbreak / (4.2x BD-Emulator) | ||
| hardcoded /dev_bdvd & /app_home remapping | | hardcoded /dev_bdvd & /app_home remapping | ||
|- | |- | ||
| 200 | | 200 | ||
Line 6,469: | Line 6,196: | ||
| 203 | | 203 | ||
| lv2_peek - [[CCAPI]] | | lv2_peek - [[CCAPI]] | ||
| | | | ||
|- | |- | ||
| 204 | | 204 | ||
| lv2_poke - [[CCAPI]] | | lv2_poke - [[CCAPI]] | ||
| | | | ||
|- | |- | ||
| 1022 | | 1022 |