hoc-sys: revert to an ancient version that works on mariko units
This commit is contained in:
@@ -31,8 +31,6 @@
|
||||
#include "file_utils.h"
|
||||
#include "errors.h"
|
||||
#include "clock_manager.h"
|
||||
#include "emc_patcher.h"
|
||||
|
||||
IpcService::IpcService(ClockManager* clockMgr)
|
||||
{
|
||||
std::int32_t priority;
|
||||
@@ -191,9 +189,6 @@ Result IpcService::ServiceHandlerFunc(void* arg, const IpcServerRequest* r, u8*
|
||||
return ipcSrv->SetReverseNXRTMode(mode);
|
||||
}
|
||||
break;
|
||||
case HocClkIpcCmd_UpdateEMCRegs: // Trigger, not data
|
||||
return ipcSrv->PatchEmcRegs();
|
||||
break;
|
||||
}
|
||||
|
||||
return SYSCLK_ERROR(Generic);
|
||||
@@ -230,7 +225,6 @@ Result IpcService::Exit()
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Result IpcService::GetProfileCount(std::uint64_t* tid, std::uint8_t* out_count)
|
||||
{
|
||||
Config* config = this->clockMgr->GetConfig();
|
||||
@@ -269,7 +263,7 @@ Result IpcService::SetProfiles(SysClkIpc_SetProfiles_Args* args)
|
||||
|
||||
if(!config->SetProfiles(args->tid, &profiles, true))
|
||||
{
|
||||
return SYSCLK_ERROR(ConfigSaveFailed); // 0x584
|
||||
return SYSCLK_ERROR(ConfigSaveFailed);
|
||||
}
|
||||
|
||||
return 0;
|
||||
@@ -351,9 +345,3 @@ Result IpcService::SetReverseNXRTMode(ReverseNXMode mode) {
|
||||
ClockManager::GetInstance()->SetRNXRTMode(mode);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Result IpcService::PatchEmcRegs() {
|
||||
EMCpatcher::GetInstance()->Run();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user