-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
we'd like to replace impose as well in FW 400
- Loading branch information
Showing
2 changed files
with
237 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,192 @@ | ||
/* | ||
* This file is part of PRO CFW. | ||
* PRO CFW is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* PRO CFW is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with PRO CFW. If not, see <http://www.gnu.org/licenses/ . | ||
*/ | ||
|
||
#include <pspkernel.h> | ||
#include <pspreg.h> | ||
#include <stdio.h> | ||
#include <string.h> | ||
#include <systemctrl.h> | ||
#include <systemctrl_se.h> | ||
#include <pspsysmem_kernel.h> | ||
#include <pspiofilemgr_kernel.h> | ||
#include <psprtc.h> | ||
#include "utils.h" | ||
#include "libs.h" | ||
#include "strsafe.h" | ||
#include "systemctrl.h" | ||
#include "main.h" | ||
|
||
static nid_entry SysMemForKernel_nid[] = { | ||
{ 0x12720EDA, 0xB9796F69, }, | ||
{ 0x3EEE43C5, 0xA4AC3934, }, | ||
{ 0x5136926D, 0xFEB5C72B, }, | ||
{ 0x523E300A, 0xF5780DAA, }, | ||
// for impose.prx | ||
{ 0x4823B9D9, UNKNOWNNID, }, | ||
{ 0x9CCA041E, UNKNOWNNID, }, | ||
}; | ||
|
||
static nid_entry ModuleMgrForKernel_nid[] = { | ||
{ 0x24C5ABC2, 0xE3CCC6EA, }, | ||
{ 0x63A3CAFB, 0xDF8FFFAB, }, | ||
}; | ||
|
||
static nid_entry LoadExecForKernel_nid[] = { | ||
{ 0x63D88393, 0x29413885, }, | ||
// for impose.prx | ||
{ 0x2EAA8A5A, UNKNOWNNID, }, | ||
{ 0x6274D0D5, UNKNOWNNID, }, | ||
}; | ||
|
||
static nid_entry sceImpose_driver_nid[] = { | ||
{ 0x869EB4A8, 0x4D849B71, }, | ||
{ 0xCD1291FD, 0x55864BD7, }, | ||
}; | ||
|
||
static nid_entry sceCtrl_driver_nid[] = { | ||
// for impose.prx | ||
{ 0x29A5082C, UNKNOWNNID, }, | ||
{ 0x591B3F36, UNKNOWNNID, }, | ||
{ 0xE3870772, UNKNOWNNID, }, | ||
{ 0xEB97D7AA, UNKNOWNNID, }, | ||
}; | ||
|
||
static nid_entry sceSysreg_driver_nid[] = { | ||
{ 0x15574362, 0x9EBB3C43, }, | ||
{ 0x21797DCF, 0x94914740, }, | ||
{ 0x23D205CA, 0x774775CA, }, | ||
{ 0x643169E5, 0xE7849809, }, | ||
{ 0x67583EF1, 0xB733A263, }, | ||
{ 0x88E26FBC, 0x34EED467, }, | ||
{ 0x8E6586AD, 0x2D858336, }, | ||
{ 0xA36C4E9E, 0x97EA6913, }, | ||
{ 0xB60FBA15, 0x2B3BE2C8, }, | ||
{ 0xC4B60AB3, 0x47966D28, }, | ||
{ 0xD80E8AAF, 0x119647A7, }, | ||
{ 0xD83733C9, 0x4643F826, }, | ||
{ 0xE08034E0, 0x5D3DD0B3, }, | ||
{ 0xE65B0490, 0x314A489C, }, | ||
}; | ||
|
||
static nid_entry sceSyscon_driver_nid[] = { | ||
{ 0x581D72B2, 0xF7E9487A, }, | ||
}; | ||
|
||
static nid_entry sceClockgen_driver_nid[] = { | ||
{ 0x17FA615B, 0xACC30ECE, }, | ||
}; | ||
|
||
static nid_entry sceGe_driver_nid[] = { | ||
{ 0x1DDA69CE, 0xD4D665C9, }, | ||
{ 0xA402A161, 0x23E9F5FA, }, | ||
{ 0xC545B81E, 0x862248FD, }, | ||
{ 0xDC09D302, 0x7E2381D2, }, | ||
{ 0xF5423CAA, 0xF489E74B, }, | ||
}; | ||
|
||
static nid_entry sceDisplay_driver_nid[] = { | ||
// for impose.prx | ||
{ 0x0E20F177, UNKNOWNNID, }, | ||
{ 0x2E6AA0AB, UNKNOWNNID, }, | ||
{ 0x390C7E0E, UNKNOWNNID, }, | ||
{ 0x6E57C773, UNKNOWNNID, }, | ||
{ 0x96CFAC38, UNKNOWNNID, }, | ||
{ 0xDB98F049, UNKNOWNNID, }, | ||
{ 0xDEA197D4, UNKNOWNNID, }, | ||
{ 0xE55F0D50, UNKNOWNNID, }, | ||
{ 0xEB6C2BA3, UNKNOWNNID, }, | ||
}; | ||
|
||
static nid_entry sceRtc_driver_nid[] = { | ||
// for impose.prx | ||
{ 0x1D90BCF2, UNKNOWNNID, }, | ||
{ 0x8EB1DEAC, UNKNOWNNID, }, | ||
}; | ||
|
||
static nid_entry sceCodec_driver_nid[] = { | ||
// for impose.prx | ||
{ 0x073DE131, UNKNOWNNID, }, | ||
{ 0x261C6EE8, UNKNOWNNID, }, | ||
{ 0x856E7487, UNKNOWNNID, }, | ||
}; | ||
|
||
static nid_entry scePower_driver_nid[] = { | ||
// for impose.prx | ||
{ 0x1BA2FCAE, UNKNOWNNID, }, | ||
{ 0x45BB59FE, UNKNOWNNID, }, | ||
{ 0x56083981, UNKNOWNNID, }, | ||
{ 0xAC664491, UNKNOWNNID, }, | ||
{ 0xC35907C2, UNKNOWNNID, }, | ||
{ 0xC6D21BB6, UNKNOWNNID, }, | ||
{ 0xCF0F53E5, UNKNOWNNID, }, | ||
{ 0xD61C63BD, UNKNOWNNID, }, | ||
{ 0xFBFD57EB, UNKNOWNNID, }, | ||
}; | ||
|
||
static nid_entry sceReg_driver_nid[] = { | ||
// for impose.prx | ||
{ 0x24DDA193, UNKNOWNNID, }, | ||
{ 0x3273A94B, UNKNOWNNID, }, | ||
{ 0x636D5C60, UNKNOWNNID, }, | ||
{ 0x9943E18A, UNKNOWNNID, }, | ||
{ 0x9C756292, UNKNOWNNID, }, | ||
{ 0xB8FD8784, UNKNOWNNID, }, | ||
{ 0xCDC72B4D, UNKNOWNNID, }, | ||
{ 0xD3CD942D, UNKNOWNNID, }, | ||
{ 0xE4D4F126, UNKNOWNNID, }, | ||
}; | ||
|
||
static nid_entry sceHprm_driver_nid[] = { | ||
// for impose.prx | ||
{ 0x1910B327, UNKNOWNNID, }, | ||
{ 0x3459F450, UNKNOWNNID, }, | ||
{ 0x3709DC86, UNKNOWNNID, }, | ||
{ 0x404D9DE4, UNKNOWNNID, }, | ||
{ 0x71E989F4, UNKNOWNNID, }, | ||
{ 0xAE42F741, UNKNOWNNID, }, | ||
{ 0xCA90EB48, UNKNOWNNID, }, | ||
{ 0xE5AB910C, UNKNOWNNID, }, | ||
{ 0xF7FA0802, UNKNOWNNID, }, | ||
}; | ||
|
||
static nid_entry sceDve_driver_nid[] = { | ||
// for impose.prx | ||
{ 0x738FE169, UNKNOWNNID, }, | ||
{ 0x89CCB808, UNKNOWNNID, }, | ||
{ 0xC597DDDD, UNKNOWNNID, }, | ||
}; | ||
|
||
resolver_config nid_fix_400_to_620[] = { | ||
NID_ENTRY(SysMemForKernel), | ||
NID_ENTRY(ModuleMgrForKernel), | ||
NID_ENTRY(LoadExecForKernel), | ||
NID_ENTRY(sceImpose_driver), | ||
NID_ENTRY(sceSysreg_driver), | ||
NID_ENTRY(sceSyscon_driver), | ||
NID_ENTRY(sceClockgen_driver), | ||
NID_ENTRY(sceGe_driver), | ||
NID_ENTRY(sceCtrl_driver), | ||
NID_ENTRY(sceDisplay_driver), | ||
NID_ENTRY(sceRtc_driver), | ||
NID_ENTRY(sceCodec_driver), | ||
NID_ENTRY(scePower_driver), | ||
NID_ENTRY(sceReg_driver), | ||
NID_ENTRY(sceHprm_driver), | ||
NID_ENTRY(sceDve_driver), | ||
}; | ||
|
||
u32 nid_fix_400_to_620_size = NELEMS(nid_fix_400_to_620); |