mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-25 01:50:57 +01:00
* Replace CELL_EABORT with exception. * Improve error codes a bit. * pkg_id == 1 should not return an error if root permission is present. * Avoid passing vm pointers to native API, use temp buffer instead.
32 lines
1.1 KiB
C
32 lines
1.1 KiB
C
#pragma once
|
|
|
|
#include "Emu/Memory/vm_ptr.h"
|
|
#include "Emu/Cell/ErrorCodes.h"
|
|
|
|
// Unofficial error code names
|
|
enum sys_ss_rng_error : u32
|
|
{
|
|
SYS_SS_RNG_ERROR_INVALID_PKG = 0x80010500,
|
|
SYS_SS_RNG_ERROR_ENOMEM = 0x80010501,
|
|
SYS_SS_RNG_ERROR_EAGAIN = 0x80010503,
|
|
SYS_SS_RNG_ERROR_EFAULT = 0x80010509,
|
|
};
|
|
|
|
struct CellSsOpenPSID
|
|
{
|
|
be_t<u64> high;
|
|
be_t<u64> low;
|
|
};
|
|
|
|
error_code sys_ss_random_number_generator(u64 pkg_id, vm::ptr<void> buf, u64 size);
|
|
error_code sys_ss_access_control_engine(u64 pkg_id, u64 a2, u64 a3);
|
|
s32 sys_ss_get_console_id(vm::ptr<u8> buf);
|
|
s32 sys_ss_get_open_psid(vm::ptr<CellSsOpenPSID> ptr);
|
|
error_code sys_ss_appliance_info_manager(u32 code, vm::ptr<u8> buffer);
|
|
error_code sys_ss_get_cache_of_product_mode(vm::ptr<u8> ptr);
|
|
error_code sys_ss_secure_rtc(u64 cmd, u64 a2, u64 a3, u64 a4);
|
|
error_code sys_ss_get_cache_of_flash_ext_flag(vm::ptr<u64> flag);
|
|
error_code sys_ss_get_boot_device(vm::ptr<u64> dev);
|
|
error_code sys_ss_update_manager(u64 pkg_id, u64 a1, u64 a2, u64 a3, u64 a4, u64 a5, u64 a6);
|
|
error_code sys_ss_virtual_trm_manager(u64 pkg_id, u64 a1, u64 a2, u64 a3, u64 a4);
|