int sys_game_get_temperature(uint32_t _dev, uint32_t *temperature) { system_call_2(383, (uint64_t)_dev, (uint64_t)((uint32_t)temperature)); return_to_user_prog(int); }
int ps3mapi_get_fw_version(void) { system_call_2(8, SYSCALL8_OPCODE_PS3MAPI, PS3MAPI_OPCODE_GET_FW_VERSION); return_to_user_prog(int); }
int ps3mapi_get_core_minversion(void) { system_call_2(8, SYSCALL8_OPCODE_PS3MAPI, PS3MAPI_OPCODE_GET_CORE_MINVERSION); return_to_user_prog(int); }
int led(uint64_t color, uint64_t mode) { system_call_2(386, (uint64_t)color, (uint64_t)mode); return_to_user_prog(int); }
int ps3mapi_remove_hook(void) { system_call_2(8, SYSCALL8_OPCODE_PS3MAPI, PS3MAPI_OPCODE_REMOVE_HOOK); return_to_user_prog(int); }
int ps3mapi_pcheck_syscall8() { system_call_2(8, SYSCALL8_OPCODE_PS3MAPI, PS3MAPI_OPCODE_PCHECK_SYSCALL8); return_to_user_prog(int); }
static void lv1_poke(uint64_t addr, uint64_t val) { system_call_2(7, HV_BASE + addr, val); }
void pokeq(uint64_t addr, uint64_t val) { system_call_2(poke_syscall, addr, val); }
/*********************************************************************** * #define SC_GET_TEMPERATURE (383) ***********************************************************************/ void get_temperature(uint32_t _dev, uint32_t *_temp) { system_call_2(383, (uint64_t)_dev, (uint64_t)_temp); }