Line 151: |
Line 151: |
| | 1b || BOOL device_register(char* device, u32 messagequeue) || Registers device to the device tree, so it can be opened (from Starlet and PPC) || Returns 0 on success, else error | | | 1b || BOOL device_register(char* device, u32 messagequeue) || Registers device to the device tree, so it can be opened (from Starlet and PPC) || Returns 0 on success, else error |
| |- | | |- |
− | | 1c || u32 device_open(char* device, int mode) || Similar to IOS_Open on PPC, except now internal to the IOS system || Returns an fd | + | | 1c || s32 device_open(char* device, int mode) || Similar to IOS_Open on PPC, except now internal to the IOS system || Returns an fd |
| |- | | |- |
− | | 1d || device_close(int fd) | + | | 1d || s32 device_close(s32 fd) |
| |- | | |- |
− | | 1e || device_read | + | | 1e || s32 device_read(s32 fd, void *buf, s32 len) |
| |- | | |- |
− | | 1f || device_write | + | | 1f || s32 device_write(s32 fd, void *buf, s32 len) |
| |- | | |- |
− | | 20 || device_seek | + | | 20 || s32 device_seek(s32 fd, s32 where, s32 whence) |
| |- | | |- |
− | | 21 || device_ioctl | + | | 21 || s32 device_ioctl(s32 fd, u32 request, void *input_buffer, u32 input_buffer_len, void *output_buffer, u32 output_buffer_len) |
| |- | | |- |
− | | 22 || device_ioctlv(int fd, int request, int bytes_in, int bytes_out, [[IOS/struct iovec|struct iovec]] *vector) | + | | 22 || s32 device_ioctlv(s32 fd, u32 request, u32 bytes_in, u32 bytes_out, [[IOS/struct iovec|struct iovec]] *vector) |
| |- | | |- |
− | | 23 || device_open_async | + | | 23 || s32 device_open_async(char* device, int mode, void *callback) |
| |- | | |- |
− | | 24 || device_close_async | + | | 24 || s32 device_close_async(s32 fd, void *callback) |
| |- | | |- |
− | | 25 || device_read_async | + | | 25 || s32 device_read_async(s32 fd, void *buf, s32 len, void *callback) |
| |- | | |- |
− | | 26 || device_write_async | + | | 26 || s32 device_write_async(s32 fd, void *buf, s32 len, void *callback) |
| |- | | |- |
− | | 27 || device_seek_async | + | | 27 || s32 device_seek_async(s32 fd, s32 where, s32 whence, void *callback) |
| |- | | |- |
− | | 28 || device_ioctl_async | + | | 28 || s32 device_ioctl_async(s32 fd, u32 request, void *input_buffer, u32 input_buffer_len, void *output_buffer, u32 output_buffer_len, void *callback |
| |- | | |- |
− | | 29 || device_ioctlv_async | + | | 29 || s32 device_ioctlv_async(s32 fd, u32 request, u32 bytes_in, u32 bytes_out, [[IOS/struct iovec|struct iovec]] *vector, void *callback) |
| |- | | |- |
| | 2a || int IOS_ResourceReply([[IOS/ressource_request| struct ios_ressource_request]] *request, int retval) || return from a cmd on a [[IOS| ressource]] | | | 2a || int IOS_ResourceReply([[IOS/ressource_request| struct ios_ressource_request]] *request, int retval) || return from a cmd on a [[IOS| ressource]] |
Line 281: |
Line 281: |
| | 5c || IOSC_DeleteObject | | | 5c || IOSC_DeleteObject |
| |- | | |- |
− | | 5d || set_public_key | + | | 5d || set_public_key (7 arguments) |
| |- | | |- |
− | | 5e || es_syscall_5e | + | | 5e || crypto_syscall_5e (7 arguments) |
| |- | | |- |
− | | 5f || es_syscall_5f | + | | 5f || crypto_syscall_5f |
| |- | | |- |
− | | 60 || es_syscall_60 | + | | 60 || crypto_syscall_60 |
| |- | | |- |
| | 61 || get_keyid | | | 61 || get_keyid |
| |- | | |- |
− | | 62 || es_syscall_62 | + | | 62 || crypto_syscall_62 |
| |- | | |- |
| | 63 || get_key || Used to get entries from the keyring. R0 is key index: | | | 63 || get_key || Used to get entries from the keyring. R0 is key index: |
Line 323: |
Line 323: |
| | 65 || sha | | | 65 || sha |
| |- | | |- |
− | | 66 || aes_async | + | | 66 || aes_async (7 args) |
| |- | | |- |
− | | 67 || aes | + | | 67 || aes (5 args) |
| |- | | |- |
− | | 68 || es_syscall_68 | + | | 68 || crypto_syscall_68 (7 args) |
| |- | | |- |
− | | 69 || es_syscall_69 | + | | 69 || crypto_syscall_69 (5 args) |
| |- | | |- |
− | | 6a || es_syscall_6a | + | | 6a || crypto_syscall_6a (7 args) |
| |- | | |- |
| | 6b || aes_decrypt(int keyid, void *iv, void *in, int len, void *out) | | | 6b || aes_decrypt(int keyid, void *iv, void *in, int len, void *out) |
Line 337: |
Line 337: |
| | 6c || hmac_async | | | 6c || hmac_async |
| |- | | |- |
− | | 6d || es_syscall_6d | + | | 6d || crypto_syscall_6d (8 args) |
| |- | | |- |
− | | 6e || get_ng_cert | + | | 6e || get_ng_cert (10 args) |
| |- | | |- |
| | 6f || key_set_permission_mask | | | 6f || key_set_permission_mask |
| |- | | |- |
− | | 70 || es_syscall_70 | + | | 70 || crypto_syscall_70 |
| |- | | |- |
− | | 71 || es_syscall_71 | + | | 71 || crypto_syscall_71 |
| |- | | |- |
− | | 72 || es_syscall_72 | + | | 72 || crypto_syscall_72 |
| |- | | |- |
− | | 73 || es_syscall_73 | + | | 73 || crypto_syscall_73 |
| |- | | |- |
− | | 74 || es_syscall_74 | + | | 74 || crypto_syscall_74 |
| |- | | |- |
− | | 75 || ?? | + | | 75 || crypto_syscall_75 |
| |- | | |- |
− | | 76 || ?? | + | | 76 || crypto_syscall_76 |
| |} | | |} |
| | | |