PS2SDK
PS2 Homebrew Libraries
dev9.c
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright ps2dev - http://www.ps2dev.org
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
9 */
10 
11 #include "accore_internal.h"
12 
13 int acDev9ModuleStart(int argc, char **argv)
14 {
15  int AcMemDelayReg;
16  int AcIoDelayReg;
17 
18  (void)argc;
19  (void)argv;
20  AcMemDelayReg = GetAcMemDelayReg();
21  SetAcMemDelayReg((AcMemDelayReg & 0xFFFFFF00) | 0x66);
22  AcIoDelayReg = GetAcIoDelayReg();
23  SetAcIoDelayReg((AcIoDelayReg & 0x80FFD700) | 0x6F000855);
24  *((volatile acUint16 *)0xB241510C) = 0;
25  *((volatile acUint16 *)0xB241511C) = 0;
26  *((volatile acUint16 *)0xB2416000) = 0;
27  *((volatile acUint16 *)0xB2416032) = 0;
28  *((volatile acUint16 *)0xB2416036) = 0;
29  *((volatile acUint16 *)0xB241603A) = 0;
30  *((volatile acUint16 *)0xB2417000) = 6;
31  *((volatile acUint16 *)0xB241601E) = 0;
32  return 0;
33 }