Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
pi_reg.h
Go to the documentation of this file.
1#ifndef PI_REG_H
2#define PI_REG_H
3
5
6#define PI_REG_INTSR 0x000
7#define PI_REG_INTMSK 0x004
8#define PI_REG_CPBAS 0x00C
9#define PI_REG_CPTOP 0x010
10#define PI_REG_CPWRT 0x014
11#define PI_REG_CPABT 0x018
12#define PI_REG_PIESR 0x01C
13#define PI_REG_PIEAR 0x020
14#define PI_REG_CONFIG 0x024
15#define PI_REG_DURAR 0x028
16#define PI_REG_CHIPID 0x02C
17#define PI_REG_STRGTH 0x030
18#define PI_REG_CPUDBB 0x034
19
20#define PI_REGSP_CP 0x0C000000
21#define PI_REGSP_PE 0x0C001000
22#define PI_REGSP_VI 0x0C002000
23#define PI_REGSP_PI 0x0C003000
24#define PI_REGSP_MEM 0x0C004000
25#define PI_REGSP_DSP 0x0C005000
26#define PI_REGSP_IO 0x0C006000
27#define PI_GFXSP 0x0C008000
28
29#define PI_CPWRT_REG_CPWRT_SIZE 24
30#define PI_CPWRT_REG_CPWRT_SHIFT 5
31#define PI_CPWRT_REG_CPWRT_MASK 0x1fffffe0
32#define PI_CPWRT_REG_GET_CPWRT(pi_cpwrt_reg) \
33 ((((unsigned long)(pi_cpwrt_reg)) & PI_CPWRT_REG_CPWRT_MASK) >> PI_CPWRT_REG_CPWRT_SHIFT)
34
35#define XF_PERF0_F_PERF_B_SIZE 5
36#define XF_PERF0_F_PERF_B_SHIFT 5
37#define XF_PERF0_F_PERF_B_MASK 0x000003e0
38#define XF_PERF0_F_GET_PERF_B(xf_perf0_f) \
39 ((((unsigned long)(xf_perf0_f)) & XF_PERF0_F_PERF_B_MASK) >> XF_PERF0_F_PERF_B_SHIFT)
40
41#define XF_PERF0_F_PERF_C_SIZE 5
42#define XF_PERF0_F_PERF_C_SHIFT 10
43#define XF_PERF0_F_PERF_C_MASK 0x00007c00
44#define XF_PERF0_F_GET_PERF_C(xf_perf0_f) \
45 ((((unsigned long)(xf_perf0_f)) & XF_PERF0_F_PERF_C_MASK) >> XF_PERF0_F_PERF_C_SHIFT)
46
47#define XF_PERF0_F_PERF_D_SIZE 5
48#define XF_PERF0_F_PERF_D_SHIFT 15
49#define XF_PERF0_F_PERF_D_MASK 0x000f8000
50#define XF_PERF0_F_GET_PERF_D(xf_perf0_f) \
51 ((((unsigned long)(xf_perf0_f)) & XF_PERF0_F_PERF_D_MASK) >> XF_PERF0_F_PERF_D_SHIFT)
52
53#define XF_PERF0_F_PERF_A_SIZE 5
54#define XF_PERF0_F_PERF_A_SHIFT 0
55#define XF_PERF0_F_PERF_A_MASK 0x0000001f
56#define XF_PERF0_F_GET_PERF_A(xf_perf0_f) \
57 ((((unsigned long)(xf_perf0_f)) & XF_PERF0_F_PERF_A_MASK) >> XF_PERF0_F_PERF_A_SHIFT)
58
59#define PI_CPWRT_REG_CPWRAP_SIZE 1
60#define PI_CPWRT_REG_CPWRAP_SHIFT 29
61#define PI_CPWRT_REG_CPWRAP_MASK 0x20000000
62#define PI_CPWRT_REG_GET_CPWRAP(pi_cpwrt_reg) \
63 ((((unsigned long)(pi_cpwrt_reg)) & PI_CPWRT_REG_CPWRAP_MASK) >> PI_CPWRT_REG_CPWRAP_SHIFT)
64
65
66#define SC_PI_CPWRT_REG_SET_CPWRT(line, pi_cpwrt_reg,cpwrt) \
67 FAST_GPFLAGSET(line, pi_cpwrt_reg,cpwrt,PI_CPWRT_REG_CPWRT)
68
69#define SC_PI_CPWRT_REG_SET_CPWRAP(line, pi_cpwrt_reg,cpwrap) \
70 FAST_GPFLAGSET(line, pi_cpwrt_reg,cpwrap,PI_CPWRT_REG_CPWRAP)
71
72
73#endif // PI_REG_H