2 padhook.h Open PS2 Loader In Game Reset
4 Copyright 2009-2010, Ifcaro, jimmikaelkael & Polo
5 Copyright 2006-2008 Polo
6 Licenced under Academic Free License version 3.0
7 Review OpenUsbLd README & LICENSE files for further details.
9 SPU definitions taken from PS2SDK freesd.
10 Copyright (c) 2004 TyRaNiD <tiraniddo@hotmail.com>
11 Copyright (c) 2004,2007 Lukasz Bruun <mail@lukasz.dk>
19 #define PADOPEN_HOOK 0
20 #define PADOPEN_CHECK 1
22 int Install_PadOpen_Hook(u32 mem_start
, u32 mem_end
, int mode
);
26 #define DEV9_R_1460 ((volatile u16*)0xBF801460)
27 #define DEV9_R_1464 ((volatile u16*)0xBF801464)
28 #define DEV9_R_1466 ((volatile u16*)0xBF801466)
29 #define DEV9_R_146C ((volatile u16*)0xBF80146C)
30 #define DEV9_R_146E ((volatile u16*)0xBF80146E)
31 #define DEV9_R_1474 ((volatile u16*)0xBF801474)
35 #define CDVD_R_NDIN ((volatile u8*)0xBF402005)
36 #define CDVD_R_POFF ((volatile u8*)0xBF402008)
37 #define CDVD_R_SCMD ((volatile u8*)0xBF402016)
38 #define CDVD_R_SDIN ((volatile u8*)0xBF402017)
73 #define IGR_LIBPAD_V1 1
74 #define IGR_LIBPAD_V2 2
76 #define IGR_PAD_STABLE_V1 0x06
77 #define IGR_PAD_STABLE_V2 0x01
79 #define IGR_COMBO_R1_L1_R2_L2 0xF0
80 #define IGR_COMBO_START_SELECT 0xF6
81 #define IGR_COMBO_R3_L3 0xF9
83 #define NB_PADOPEN_PATTERN 7