2015-06-11 22:12:16 +00:00
|
|
|
// Copyright 2015 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2017-01-04 16:48:29 +00:00
|
|
|
#include <cinttypes>
|
2017-06-06 08:29:46 +00:00
|
|
|
#include "common/logging/log.h"
|
|
|
|
#include "core/hle/ipc.h"
|
|
|
|
#include "core/hle/result.h"
|
2015-06-11 22:12:16 +00:00
|
|
|
#include "core/hle/service/boss/boss.h"
|
|
|
|
#include "core/hle/service/boss/boss_p.h"
|
|
|
|
#include "core/hle/service/boss/boss_u.h"
|
2016-09-18 00:38:01 +00:00
|
|
|
#include "core/hle/service/service.h"
|
2015-06-11 22:12:16 +00:00
|
|
|
|
|
|
|
namespace Service {
|
|
|
|
namespace BOSS {
|
|
|
|
|
2016-10-02 07:45:58 +00:00
|
|
|
static u32 new_arrival_flag;
|
|
|
|
static u32 ns_data_new_flag;
|
|
|
|
static u32 output_flag;
|
|
|
|
|
|
|
|
void InitializeSession(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u64 unk_param = ((u64)cmd_buff[1] | ((u64)cmd_buff[2] << 32));
|
|
|
|
u32 translation = cmd_buff[3];
|
|
|
|
u32 unk_param4 = cmd_buff[4];
|
|
|
|
|
|
|
|
if (translation != IPC::CallingPidDesc()) {
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0, 0x1, 0); // 0x40
|
2017-05-21 07:11:36 +00:00
|
|
|
cmd_buff[1] = IPC::ERR_INVALID_BUFFER_DESCRIPTOR.raw;
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_ERROR(Service_BOSS, "The translation was invalid, translation={:#010X}", translation);
|
2016-10-02 07:45:58 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x1, 0x1, 0);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param={:#018X}, translation={:#010X}, unk_param4={:#010X}",
|
|
|
|
unk_param, translation, unk_param4);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void RegisterStorage(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2];
|
|
|
|
u32 unk_param3 = cmd_buff[3];
|
|
|
|
u32 unk_flag = cmd_buff[4] & 0xFF;
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x2, 0x1, 0);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
|
|
|
"unk_flag={:#010X}",
|
|
|
|
unk_param1, unk_param2, unk_param3, unk_flag);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void UnregisterStorage(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x3, 0x1, 0);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS, "(STUBBED) called");
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetStorageInfo(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x4, 0x2, 0);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS, "(STUBBED) called");
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void RegisterPrivateRootCa(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
|
|
|
|
u32 translation = cmd_buff[2];
|
|
|
|
u32 buff_addr = cmd_buff[3];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x5, 0x1, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[3] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) translation={:#010X}, buff_addr{:#010X}, buff_size={:#010X}",
|
|
|
|
translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void RegisterPrivateClientCert(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2];
|
|
|
|
u32 translation1 = cmd_buff[3];
|
|
|
|
u32 buff1_addr = cmd_buff[4];
|
|
|
|
u32 buff1_size = (translation1 >> 4);
|
|
|
|
u32 translation2 = cmd_buff[5];
|
|
|
|
u32 buff2_addr = cmd_buff[6];
|
|
|
|
u32 buff2_size = (translation2 >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x6, 0x1, 0x4);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = (buff1_size << 4 | 0xA);
|
|
|
|
cmd_buff[3] = buff1_addr;
|
|
|
|
cmd_buff[2] = (buff2_size << 4 | 0xA);
|
|
|
|
cmd_buff[3] = buff2_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, "
|
|
|
|
"translation1={:#010X}, buff1_addr={:#010X}, buff1_size={:#010X}, "
|
|
|
|
"translation2={:#010X}, buff2_addr={:#010X}, buff2_size={:#010X}",
|
|
|
|
unk_param1, unk_param2, translation1, buff1_addr, buff1_size, translation2,
|
|
|
|
buff2_addr, buff2_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetNewArrivalFlag(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x7, 0x2, 0);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = new_arrival_flag;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS, "(STUBBED) new_arrival_flag={}", new_arrival_flag);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void RegisterNewArrivalEvent(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2];
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x8, 0x1, 0);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS, "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}", unk_param1,
|
|
|
|
unk_param2);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void SetOptoutFlag(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
|
|
|
|
output_flag = cmd_buff[1] & 0xFF;
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x9, 0x1, 0);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS, "output_flag={}", output_flag);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetOptoutFlag(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0xA, 0x2, 0);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = output_flag;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS, "output_flag={}", output_flag);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void RegisterTask(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2] & 0xFF;
|
|
|
|
u32 unk_param3 = cmd_buff[3] & 0xFF;
|
|
|
|
u32 translation = cmd_buff[4];
|
|
|
|
u32 buff_addr = cmd_buff[5];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0xB, 0x1, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[3] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
|
|
|
"translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, unk_param2, unk_param3, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void UnregisterTask(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2] & 0xFF;
|
|
|
|
u32 translation = cmd_buff[3];
|
|
|
|
u32 buff_addr = cmd_buff[4];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0xC, 0x1, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[3] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, translation={:#010X}, "
|
|
|
|
"buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, unk_param2, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void ReconfigureTask(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2] & 0xFF;
|
|
|
|
u32 translation = cmd_buff[3];
|
|
|
|
u32 buff_addr = cmd_buff[4];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0xD, 0x1, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[3] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, translation={:#010X}, "
|
|
|
|
"buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, unk_param2, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetTaskIdList(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0xE, 0x1, 0);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS, "(STUBBED) called");
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetStepIdList(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
|
|
|
|
u32 translation = cmd_buff[2];
|
|
|
|
u32 buff_addr = cmd_buff[3];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0xF, 0x1, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[3] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetNsDataIdList(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2];
|
|
|
|
u32 unk_param3 = cmd_buff[3];
|
|
|
|
u32 unk_param4 = cmd_buff[4];
|
|
|
|
u32 translation = cmd_buff[5];
|
|
|
|
u32 buff_addr = cmd_buff[6];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x10, 0x3, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0 (16 bit value)
|
|
|
|
cmd_buff[3] = 0; // stub 0 (16 bit value)
|
|
|
|
cmd_buff[4] = (buff_size << 4 | 0xC);
|
|
|
|
cmd_buff[5] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
|
|
|
"unk_param4={:#010X}, translation={:#010X}, "
|
|
|
|
"buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr,
|
|
|
|
buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetOwnNsDataIdList(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2];
|
|
|
|
u32 unk_param3 = cmd_buff[3];
|
|
|
|
u32 unk_param4 = cmd_buff[4];
|
|
|
|
u32 translation = cmd_buff[5];
|
|
|
|
u32 buff_addr = cmd_buff[6];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x11, 0x3, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0 (16 bit value)
|
|
|
|
cmd_buff[3] = 0; // stub 0 (16 bit value)
|
|
|
|
cmd_buff[4] = (buff_size << 4 | 0xC);
|
|
|
|
cmd_buff[5] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
|
|
|
"unk_param4={:#010X}, translation={:#010X}, "
|
|
|
|
"buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr,
|
|
|
|
buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetNewDataNsDataIdList(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2];
|
|
|
|
u32 unk_param3 = cmd_buff[3];
|
|
|
|
u32 unk_param4 = cmd_buff[4];
|
|
|
|
u32 translation = cmd_buff[5];
|
|
|
|
u32 buff_addr = cmd_buff[6];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x12, 0x3, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0 (16 bit value)
|
|
|
|
cmd_buff[3] = 0; // stub 0 (16 bit value)
|
|
|
|
cmd_buff[4] = (buff_size << 4 | 0xC);
|
|
|
|
cmd_buff[5] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
|
|
|
"unk_param4={:#010X}, translation={:#010X}, "
|
|
|
|
"buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr,
|
|
|
|
buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetOwnNewDataNsDataIdList(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2];
|
|
|
|
u32 unk_param3 = cmd_buff[3];
|
|
|
|
u32 unk_param4 = cmd_buff[4];
|
|
|
|
u32 translation = cmd_buff[5];
|
|
|
|
u32 buff_addr = cmd_buff[6];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x13, 0x3, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0 (16 bit value)
|
|
|
|
cmd_buff[3] = 0; // stub 0 (16 bit value)
|
|
|
|
cmd_buff[4] = (buff_size << 4 | 0xC);
|
|
|
|
cmd_buff[5] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
|
|
|
"unk_param4={:#010X}, translation={:#010X}, "
|
|
|
|
"buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr,
|
|
|
|
buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void SendProperty(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2];
|
|
|
|
u32 translation = cmd_buff[3];
|
|
|
|
u32 buff_addr = cmd_buff[4];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x14, 0x1, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[3] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, translation={:#010X}, "
|
|
|
|
"buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, unk_param2, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void SendPropertyHandle(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[2] & 0xFF;
|
|
|
|
u32 translation = cmd_buff[3];
|
|
|
|
u32 buff_addr = cmd_buff[4];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x15, 0x1, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[3] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
|
|
|
"buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void ReceiveProperty(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 buff_size = cmd_buff[2];
|
|
|
|
u32 translation = cmd_buff[3];
|
|
|
|
u32 buff_addr = cmd_buff[4];
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x16, 0x2, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0 (32 bit value)
|
2018-03-29 00:25:45 +00:00
|
|
|
cmd_buff[3] = (buff_size << 4 | 0xC);
|
|
|
|
cmd_buff[4] = buff_addr;
|
2016-10-02 07:45:58 +00:00
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, buff_size={:#010X}, "
|
|
|
|
"translation={:#010X}, buff_addr={:#010X}",
|
|
|
|
unk_param1, buff_size, translation, buff_addr);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void UpdateTaskInterval(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2] & 0xFF;
|
|
|
|
u32 translation = cmd_buff[3];
|
|
|
|
u32 buff_addr = cmd_buff[4];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x17, 0x1, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[3] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, "
|
|
|
|
"translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, unk_param2, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void UpdateTaskCount(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
|
|
|
|
u32 buff_size = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2]; // TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 translation = cmd_buff[3];
|
|
|
|
u32 buff_addr = cmd_buff[4];
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x18, 0x1, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[3] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) buff_size={:#010X}, unk_param2={:#010X}, "
|
|
|
|
"translation={:#010X}, buff_addr={:#010X}",
|
|
|
|
buff_size, unk_param2, translation, buff_addr);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetTaskInterval(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
|
|
|
|
u32 unk_param1 = cmd_buff[1]; // TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 translation = cmd_buff[2];
|
|
|
|
u32 buff_addr = cmd_buff[3];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x19, 0x2, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0 ( 32bit value)
|
|
|
|
cmd_buff[3] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[4] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
|
|
|
"buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetTaskCount(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
|
|
|
|
u32 unk_param1 = cmd_buff[1]; // TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 translation = cmd_buff[2];
|
|
|
|
u32 buff_addr = cmd_buff[3];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x1A, 0x2, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0 ( 32bit value)
|
|
|
|
cmd_buff[3] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[4] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
|
|
|
"buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetTaskServiceStatus(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
|
|
|
|
u32 unk_param1 = cmd_buff[1]; // TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 translation = cmd_buff[2];
|
|
|
|
u32 buff_addr = cmd_buff[3];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x1B, 0x2, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0 ( 8bit value)
|
|
|
|
cmd_buff[3] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[4] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
|
|
|
"buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void StartTask(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
|
|
|
|
u32 unk_param1 = cmd_buff[1]; // TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 translation = cmd_buff[2];
|
|
|
|
u32 buff_addr = cmd_buff[3];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x1C, 0x1, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[3] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
|
|
|
"buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void StartTaskImmediate(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
|
|
|
|
u32 unk_param1 = cmd_buff[1]; // TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 translation = cmd_buff[2];
|
|
|
|
u32 buff_addr = cmd_buff[3];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x1D, 0x1, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[3] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
|
|
|
"buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CancelTask(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 translation = cmd_buff[2];
|
|
|
|
u32 buff_addr = cmd_buff[3];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x1E, 0x1, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[3] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
|
|
|
"buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetTaskFinishHandle(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x1F, 0x1, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0;
|
|
|
|
cmd_buff[3] = 0; // stub 0(This should be a handle of task_finish ?)
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS, "(STUBBED) called");
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetTaskState(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 buff_size = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2] & 0xFF;
|
|
|
|
u32 translation = cmd_buff[3];
|
|
|
|
u32 buff_addr = cmd_buff[4];
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x20, 0x4, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0 (8 bit value)
|
|
|
|
cmd_buff[3] = 0; // stub 0 (32 bit value)
|
|
|
|
cmd_buff[4] = 0; // stub 0 (8 bit value)
|
|
|
|
cmd_buff[5] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[6] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) buff_size={:#010X}, unk_param2={:#010X}, "
|
|
|
|
"translation={:#010X}, buff_addr={:#010X}",
|
|
|
|
buff_size, unk_param2, translation, buff_addr);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetTaskResult(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 translation = cmd_buff[2];
|
|
|
|
u32 buff_addr = cmd_buff[3];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x21, 0x4, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0 (8 bit value)
|
|
|
|
cmd_buff[3] = 0; // stub 0 (32 bit value)
|
|
|
|
cmd_buff[4] = 0; // stub 0 (8 bit value)
|
|
|
|
cmd_buff[5] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[6] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
|
|
|
"buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetTaskCommErrorCode(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 translation = cmd_buff[2];
|
|
|
|
u32 buff_addr = cmd_buff[3];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x22, 0x4, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0 (32 bit value)
|
|
|
|
cmd_buff[3] = 0; // stub 0 (32 bit value)
|
|
|
|
cmd_buff[4] = 0; // stub 0 (8 bit value)
|
|
|
|
cmd_buff[5] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[6] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
|
|
|
"buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetTaskStatus(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2] & 0xFF;
|
|
|
|
u32 unk_param3 = cmd_buff[3] & 0xFF;
|
|
|
|
u32 translation = cmd_buff[4];
|
|
|
|
u32 buff_addr = cmd_buff[5];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x23, 0x2, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0 (8 bit value)
|
|
|
|
cmd_buff[3] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[4] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
|
|
|
"translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, unk_param2, unk_param3, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetTaskError(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2] & 0xFF;
|
|
|
|
u32 translation = cmd_buff[4];
|
|
|
|
u32 buff_addr = cmd_buff[5];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x24, 0x2, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0 (8 bit value)
|
|
|
|
cmd_buff[3] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[4] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, translation={:#010X}, "
|
|
|
|
"buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, unk_param2, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetTaskInfo(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2] & 0xFF;
|
|
|
|
u32 translation = cmd_buff[4];
|
|
|
|
u32 buff_addr = cmd_buff[5];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x25, 0x1, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[3] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, translation={:#010X}, "
|
|
|
|
"buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, unk_param2, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DeleteNsData(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x26, 0x1, 0);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS, "(STUBBED) unk_param1={:#010X}", unk_param1);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetNsDataHeaderInfo(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2] & 0xFF;
|
|
|
|
u32 unk_param3 = cmd_buff[3];
|
|
|
|
u32 translation = cmd_buff[4];
|
|
|
|
u32 buff_addr = cmd_buff[5];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x27, 0x1, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = (buff_size << 4 | 0xC);
|
|
|
|
cmd_buff[3] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
|
|
|
"translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, unk_param2, unk_param3, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void ReadNsData(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2];
|
|
|
|
u32 unk_param3 = cmd_buff[3];
|
|
|
|
u32 unk_param4 = cmd_buff[4];
|
|
|
|
u32 translation = cmd_buff[5];
|
|
|
|
u32 buff_addr = cmd_buff[6];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x28, 0x3, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0 (32bit value)
|
|
|
|
cmd_buff[3] = 0; // stub 0 (32bit value)
|
|
|
|
cmd_buff[4] = (buff_size << 4 | 0xC);
|
|
|
|
cmd_buff[5] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
|
|
|
"unk_param4={:#010X}, translation={:#010X}, "
|
|
|
|
"buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr,
|
|
|
|
buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void SetNsDataAdditionalInfo(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2];
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x29, 0x1, 0);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS, "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}", unk_param1,
|
|
|
|
unk_param2);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetNsDataAdditionalInfo(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x2A, 0x2, 0);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0 (32bit value)
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS, "(STUBBED) unk_param1={:#010X}", unk_param1);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void SetNsDataNewFlag(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
ns_data_new_flag = cmd_buff[2] & 0xFF;
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x2B, 0x1, 0);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS, "(STUBBED) unk_param1={:#010X}, ns_data_new_flag={:#010X}",
|
|
|
|
unk_param1, ns_data_new_flag);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetNsDataNewFlag(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x2C, 0x2, 0);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = ns_data_new_flag;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS, "(STUBBED) unk_param1={:#010X}, ns_data_new_flag={:#010X}",
|
|
|
|
unk_param1, ns_data_new_flag);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetNsDataLastUpdate(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x2D, 0x3, 0);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0 (32bit value)
|
|
|
|
cmd_buff[3] = 0; // stub 0 (32bit value)
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS, "(STUBBED) unk_param1={:#010X}", unk_param1);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetErrorCode(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x2E, 0x2, 0);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0 (32bit value)
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS, "(STUBBED) unk_param1={:#010X}", unk_param1);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void RegisterStorageEntry(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2];
|
|
|
|
u32 unk_param3 = cmd_buff[3];
|
|
|
|
u32 unk_param4 = cmd_buff[4];
|
|
|
|
u32 unk_param5 = cmd_buff[5] & 0xFF;
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x2F, 0x1, 0);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
|
|
|
"unk_param4={:#010X}, unk_param5={:#010X}",
|
|
|
|
unk_param1, unk_param2, unk_param3, unk_param4, unk_param5);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetStorageEntryInfo(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x30, 0x3, 0);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0 (32bit value)
|
|
|
|
cmd_buff[3] = 0; // stub 0 (16bit value)
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS, "(STUBBED) called");
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void SetStorageOption(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1] & 0xFF;
|
|
|
|
u32 unk_param2 = cmd_buff[2];
|
|
|
|
u32 unk_param3 = cmd_buff[3];
|
|
|
|
u32 unk_param4 = cmd_buff[4];
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x31, 0x1, 0);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, "
|
|
|
|
"unk_param3={:#010X}, unk_param4={:#010X}",
|
|
|
|
unk_param1, unk_param2, unk_param3, unk_param4);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetStorageOption(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x32, 0x5, 0);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0 (32bit value)
|
|
|
|
cmd_buff[3] = 0; // stub 0 (8bit value)
|
|
|
|
cmd_buff[4] = 0; // stub 0 (16bit value)
|
|
|
|
cmd_buff[5] = 0; // stub 0 (16bit value)
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS, "(STUBBED) called");
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void StartBgImmediate(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
|
|
|
|
u32 unk_param1 = cmd_buff[1]; // TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 translation = cmd_buff[2];
|
|
|
|
u32 buff_addr = cmd_buff[3];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x33, 0x1, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[3] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) buff_size={:#010X}, unk_param2={:#010X}, "
|
|
|
|
"translation={:#010X}, buff_addr={:#010X}",
|
|
|
|
unk_param1, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetTaskActivePriority(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
|
|
|
|
u32 unk_param1 = cmd_buff[1]; // TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 translation = cmd_buff[2];
|
|
|
|
u32 buff_addr = cmd_buff[3];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x34, 0x2, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = 0; // stub 0 (8bit value)
|
|
|
|
cmd_buff[3] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[4] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) buff_size={:#010X}, unk_param2={:#010X}, "
|
|
|
|
"translation={:#010X}, buff_addr={:#010X}",
|
|
|
|
unk_param1, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void RegisterImmediateTask(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2] & 0xFF;
|
|
|
|
u32 unk_param3 = cmd_buff[3] & 0xFF;
|
|
|
|
u32 translation = cmd_buff[4];
|
|
|
|
u32 buff_addr = cmd_buff[5];
|
|
|
|
u32 buff_size = (translation >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x35, 0x1, 0x2);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[3] = (buff_size << 4 | 0xA);
|
|
|
|
cmd_buff[4] = buff_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
|
|
|
"translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
|
|
|
|
unk_param1, unk_param2, unk_param3, translation, buff_addr, buff_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void SetTaskQuery(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2];
|
|
|
|
u32 translation1 = cmd_buff[3];
|
|
|
|
u32 buff1_addr = cmd_buff[4];
|
|
|
|
u32 buff1_size = (translation1 >> 4);
|
|
|
|
u32 translation2 = cmd_buff[5];
|
|
|
|
u32 buff2_addr = cmd_buff[6];
|
|
|
|
u32 buff2_size = (translation2 >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x36, 0x1, 0x4);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = (buff1_size << 4 | 0xA);
|
|
|
|
cmd_buff[3] = buff1_addr;
|
|
|
|
cmd_buff[2] = (buff2_size << 4 | 0xA);
|
|
|
|
cmd_buff[3] = buff2_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, "
|
|
|
|
"translation1={:#010X}, buff1_addr={:#010X}, buff1_size={:#010X}, "
|
|
|
|
"translation2={:#010X}, buff2_addr={:#010X}, buff2_size={:#010X}",
|
|
|
|
unk_param1, unk_param2, translation1, buff1_addr, buff1_size, translation2,
|
|
|
|
buff2_addr, buff2_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void GetTaskQuery(Service::Interface* self) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
// TODO(JamePeng): Figure out the meaning of these parameters
|
|
|
|
u32 unk_param1 = cmd_buff[1];
|
|
|
|
u32 unk_param2 = cmd_buff[2];
|
|
|
|
u32 translation1 = cmd_buff[3];
|
|
|
|
u32 buff1_addr = cmd_buff[4];
|
|
|
|
u32 buff1_size = (translation1 >> 4);
|
|
|
|
u32 translation2 = cmd_buff[5];
|
|
|
|
u32 buff2_addr = cmd_buff[6];
|
|
|
|
u32 buff2_size = (translation2 >> 4);
|
|
|
|
|
|
|
|
cmd_buff[0] = IPC::MakeHeader(0x37, 0x1, 0x4);
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
cmd_buff[2] = (buff1_size << 4 | 0xA);
|
|
|
|
cmd_buff[3] = buff1_addr;
|
|
|
|
cmd_buff[2] = (buff2_size << 4 | 0xC);
|
|
|
|
cmd_buff[3] = buff2_addr;
|
|
|
|
|
2018-04-06 10:30:21 +00:00
|
|
|
NGLOG_WARNING(Service_BOSS,
|
|
|
|
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, "
|
|
|
|
"translation1={:#010X}, buff1_addr={:#010X}, buff1_size={:#010X}, "
|
|
|
|
"translation2={:#010X}, buff2_addr={:#010X}, buff2_size={:#010X}",
|
|
|
|
unk_param1, unk_param2, translation1, buff1_addr, buff1_size, translation2,
|
|
|
|
buff2_addr, buff2_size);
|
2016-10-02 07:45:58 +00:00
|
|
|
}
|
|
|
|
|
2015-06-11 22:12:16 +00:00
|
|
|
void Init() {
|
|
|
|
using namespace Kernel;
|
|
|
|
|
|
|
|
AddService(new BOSS_P_Interface);
|
|
|
|
AddService(new BOSS_U_Interface);
|
2016-10-02 07:45:58 +00:00
|
|
|
|
|
|
|
new_arrival_flag = 0;
|
|
|
|
ns_data_new_flag = 0;
|
|
|
|
output_flag = 0;
|
2015-06-11 22:12:16 +00:00
|
|
|
}
|
|
|
|
|
2016-09-19 01:01:46 +00:00
|
|
|
void Shutdown() {}
|
2015-06-11 22:12:16 +00:00
|
|
|
|
|
|
|
} // namespace BOSS
|
|
|
|
|
|
|
|
} // namespace Service
|