Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
ras_reg.h
Go to the documentation of this file.
1#ifndef RAS_REG
2#define RAS_REG
3
4#define RAS1_TREF_RID_SIZE 8
5#define RAS1_TREF_RID_SHIFT 24
6#define RAS1_TREF_RID_MASK 0xff000000
7#define RAS1_TREF_GET_RID(ras1_tref) \
8 ((((unsigned long)(ras1_tref)) & RAS1_TREF_RID_MASK) >> RAS1_TREF_RID_SHIFT)
9
10#define RAS1_IREF_RID_SIZE 8
11#define RAS1_IREF_RID_SHIFT 24
12#define RAS1_IREF_RID_MASK 0xff000000
13#define RAS1_IREF_GET_RID(ras1_iref) \
14 ((((unsigned long)(ras1_iref)) & RAS1_IREF_RID_MASK) >> RAS1_IREF_RID_SHIFT)
15
16#define RAS_PERF_SELA_SIZE 5
17#define RAS_PERF_SELA_SHIFT 0
18#define RAS_PERF_SELA_MASK 0x0000001f
19#define RAS_PERF_GET_SELA(ras_perf) \
20 ((((unsigned long)(ras_perf)) & RAS_PERF_SELA_MASK) >> RAS_PERF_SELA_SHIFT)
21
22#define RAS_PERF_SELB_SIZE 5
23#define RAS_PERF_SELB_SHIFT 5
24#define RAS_PERF_SELB_MASK 0x000003e0
25#define RAS_PERF_GET_SELB(ras_perf) \
26 ((((unsigned long)(ras_perf)) & RAS_PERF_SELB_MASK) >> RAS_PERF_SELB_SHIFT)
27
28#define RAS_PERF_NTEV_SIZE 5
29#define RAS_PERF_NTEV_SHIFT 10
30#define RAS_PERF_NTEV_MASK 0x00007c00
31#define RAS_PERF_GET_NTEV(ras_perf) \
32 ((((unsigned long)(ras_perf)) & RAS_PERF_NTEV_MASK) >> RAS_PERF_NTEV_SHIFT)
33
34#define RAS_PERF_NBMP_SIZE 3
35#define RAS_PERF_NBMP_SHIFT 15
36#define RAS_PERF_NBMP_MASK 0x00038000
37#define RAS_PERF_GET_NBMP(ras_perf) \
38 ((((unsigned long)(ras_perf)) & RAS_PERF_NBMP_MASK) >> RAS_PERF_NBMP_SHIFT)
39
40#define RAS_PERF_NBR_SIZE 3
41#define RAS_PERF_NBR_SHIFT 18
42#define RAS_PERF_NBR_MASK 0x001c0000
43#define RAS_PERF_GET_NBR(ras_perf) \
44 ((((unsigned long)(ras_perf)) & RAS_PERF_NBR_MASK) >> RAS_PERF_NBR_SHIFT)
45
46#define RAS_PERF_PAD0_SIZE 3
47#define RAS_PERF_PAD0_SHIFT 21
48#define RAS_PERF_PAD0_MASK 0x00e00000
49#define RAS_PERF_GET_PAD0(ras_perf) \
50 ((((unsigned long)(ras_perf)) & RAS_PERF_PAD0_MASK) >> RAS_PERF_PAD0_SHIFT)
51#define RAS_PERF_RID_SIZE 8
52#define RAS_PERF_RID_SHIFT 24
53#define RAS_PERF_RID_MASK 0xff000000
54#define RAS_PERF_GET_RID(ras_perf) \
55 ((((unsigned long)(ras_perf)) & RAS_PERF_RID_MASK) >> RAS_PERF_RID_SHIFT)
56
57#define RAS_PERF_TOTAL_SIZE 32
58#define RAS_PERF(selA, selB, ntev, nbmp, nbr, rid) \
59 ((((unsigned long)(selA)) << RAS_PERF_SELA_SHIFT) | \
60 (((unsigned long)(selB)) << RAS_PERF_SELB_SHIFT) | \
61 (((unsigned long)(ntev)) << RAS_PERF_NTEV_SHIFT) | \
62 (((unsigned long)(nbmp)) << RAS_PERF_NBMP_SHIFT) | \
63 (((unsigned long)(nbr)) << RAS_PERF_NBR_SHIFT) | \
64 (((unsigned long)(rid)) << RAS_PERF_RID_SHIFT))
65
66#define RAS1_TREF_TI0_SIZE 3
67#define RAS1_TREF_TI0_SHIFT 0
68#define RAS1_TREF_TI0_MASK 0x00000007
69#define RAS1_TREF_GET_TI0(ras1_tref) \
70 ((((unsigned long)(ras1_tref)) & RAS1_TREF_TI0_MASK) >> RAS1_TREF_TI0_SHIFT)
71
72#define RAS1_TREF_TC0_SIZE 3
73#define RAS1_TREF_TC0_SHIFT 3
74#define RAS1_TREF_TC0_MASK 0x00000038
75#define RAS1_TREF_GET_TC0(ras1_tref) \
76 ((((unsigned long)(ras1_tref)) & RAS1_TREF_TC0_MASK) >> RAS1_TREF_TC0_SHIFT)
77
78#define RAS1_TREF_TE0_SIZE 1
79#define RAS1_TREF_TE0_SHIFT 6
80#define RAS1_TREF_TE0_MASK 0x00000040
81#define RAS1_TREF_GET_TE0(ras1_tref) \
82 ((((unsigned long)(ras1_tref)) & RAS1_TREF_TE0_MASK) >> RAS1_TREF_TE0_SHIFT)
83
84#define RAS1_TREF_CC0_SIZE 3
85#define RAS1_TREF_CC0_SHIFT 7
86#define RAS1_TREF_CC0_MASK 0x00000380
87#define RAS1_TREF_GET_CC0(ras1_tref) \
88 ((((unsigned long)(ras1_tref)) & RAS1_TREF_CC0_MASK) >> RAS1_TREF_CC0_SHIFT)
89
90#define RAS1_TREF_PAD0_SIZE 2
91#define RAS1_TREF_PAD0_SHIFT 10
92#define RAS1_TREF_PAD0_MASK 0x00000c00
93#define RAS1_TREF_GET_PAD0(ras1_tref) \
94 ((((unsigned long)(ras1_tref)) & RAS1_TREF_PAD0_MASK) >> RAS1_TREF_PAD0_SHIFT)
95
96#define RAS1_TREF_TI1_SIZE 3
97#define RAS1_TREF_TI1_SHIFT 12
98#define RAS1_TREF_TI1_MASK 0x00007000
99#define RAS1_TREF_GET_TI1(ras1_tref) \
100 ((((unsigned long)(ras1_tref)) & RAS1_TREF_TI1_MASK) >> RAS1_TREF_TI1_SHIFT)
101
102#define RAS1_TREF_TC1_SIZE 3
103#define RAS1_TREF_TC1_SHIFT 15
104#define RAS1_TREF_TC1_MASK 0x00038000
105#define RAS1_TREF_GET_TC1(ras1_tref) \
106 ((((unsigned long)(ras1_tref)) & RAS1_TREF_TC1_MASK) >> RAS1_TREF_TC1_SHIFT)
107
108#define RAS1_TREF_TE1_SIZE 1
109#define RAS1_TREF_TE1_SHIFT 18
110#define RAS1_TREF_TE1_MASK 0x00040000
111#define RAS1_TREF_GET_TE1(ras1_tref) \
112 ((((unsigned long)(ras1_tref)) & RAS1_TREF_TE1_MASK) >> RAS1_TREF_TE1_SHIFT)
113
114#define RAS1_TREF_CC1_SIZE 3
115#define RAS1_TREF_CC1_SHIFT 19
116#define RAS1_TREF_CC1_MASK 0x00380000
117#define RAS1_TREF_GET_CC1(ras1_tref) \
118 ((((unsigned long)(ras1_tref)) & RAS1_TREF_CC1_MASK) >> RAS1_TREF_CC1_SHIFT)
119
120#define RAS1_TREF_PAD1_SIZE 2
121#define RAS1_TREF_PAD1_SHIFT 22
122#define RAS1_TREF_PAD1_MASK 0x00c00000
123#define RAS1_TREF_GET_PAD1(ras1_tref) \
124 ((((unsigned long)(ras1_tref)) & RAS1_TREF_PAD1_MASK) >> RAS1_TREF_PAD1_SHIFT)
125
126#define RAS1_TREF_RID_SIZE 8
127#define RAS1_TREF_RID_SHIFT 24
128#define RAS1_TREF_RID_MASK 0xff000000
129#define RAS1_TREF_GET_RID(ras1_tref) \
130 ((((unsigned long)(ras1_tref)) & RAS1_TREF_RID_MASK) >> RAS1_TREF_RID_SHIFT)
131
132#define SC_RAS1_SS_SET_SS0(line, ras1_ss,ss0) \
133 FAST_GPFLAGSET(line, ras1_ss,ss0,RAS1_SS_SS0)
134
135#define SC_RAS1_SS_SET_TS0(line, ras1_ss,ts0) \
136 FAST_GPFLAGSET(line, ras1_ss,ts0,RAS1_SS_TS0)
137
138#define SC_RAS1_SS_SET_SS1(line, ras1_ss,ss1) \
139 FAST_GPFLAGSET(line, ras1_ss,ss1,RAS1_SS_SS1)
140
141#define SC_RAS1_SS_SET_TS1(line, ras1_ss,ts1) \
142 FAST_GPFLAGSET(line, ras1_ss,ts1,RAS1_SS_TS1)
143
144#define SC_RAS1_SS_SET_PAD0(line, ras1_ss,pad0) \
145 FAST_GPFLAGSET(line, ras1_ss,pad0,RAS1_SS_PAD0)
146
147#define SC_RAS1_SS_SET_RID(line, ras1_ss,rid) \
148 FAST_GPFLAGSET(line, ras1_ss,rid,RAS1_SS_RID)
149
150#define SC_RAS1_IREF_SET_BI0(line, ras1_iref,bi0) \
151 FAST_GPFLAGSET(line, ras1_iref,bi0,RAS1_IREF_BI0)
152
153#define SC_RAS1_IREF_SET_BC0(line, ras1_iref,bc0) \
154 FAST_GPFLAGSET(line, ras1_iref,bc0,RAS1_IREF_BC0)
155
156#define SC_RAS1_IREF_SET_BI1(line, ras1_iref,bi1) \
157 FAST_GPFLAGSET(line, ras1_iref,bi1,RAS1_IREF_BI1)
158
159#define SC_RAS1_IREF_SET_BC1(line, ras1_iref,bc1) \
160 FAST_GPFLAGSET(line, ras1_iref,bc1,RAS1_IREF_BC1)
161
162#define SC_RAS1_IREF_SET_BI2(line, ras1_iref,bi2) \
163 FAST_GPFLAGSET(line, ras1_iref,bi2,RAS1_IREF_BI2)
164
165#define SC_RAS1_IREF_SET_BC2(line, ras1_iref,bc2) \
166 FAST_GPFLAGSET(line, ras1_iref,bc2,RAS1_IREF_BC2)
167
168#define SC_RAS1_IREF_SET_BI3(line, ras1_iref,bi3) \
169 FAST_GPFLAGSET(line, ras1_iref,bi3,RAS1_IREF_BI3)
170
171#define SC_RAS1_IREF_SET_BC3(line, ras1_iref,bc3) \
172 FAST_GPFLAGSET(line, ras1_iref,bc3,RAS1_IREF_BC3)
173
174#define SC_RAS1_IREF_SET_RID(line, ras1_iref,rid) \
175 FAST_GPFLAGSET(line, ras1_iref,rid,RAS1_IREF_RID)
176
177#define SC_RAS1_TREF_SET_TI0(line, ras1_tref,ti0) \
178 FAST_GPFLAGSET(line, ras1_tref,ti0,RAS1_TREF_TI0)
179
180#define SC_RAS1_TREF_SET_TC0(line, ras1_tref,tc0) \
181 FAST_GPFLAGSET(line, ras1_tref,tc0,RAS1_TREF_TC0)
182
183#define SC_RAS1_TREF_SET_TE0(line, ras1_tref,te0) \
184 FAST_GPFLAGSET(line, ras1_tref,te0,RAS1_TREF_TE0)
185
186#define SC_RAS1_TREF_SET_CC0(line, ras1_tref,cc0) \
187 FAST_GPFLAGSET(line, ras1_tref,cc0,RAS1_TREF_CC0)
188
189#define SC_RAS1_TREF_SET_PAD0(line, ras1_tref,pad0) \
190 FAST_GPFLAGSET(line, ras1_tref,pad0,RAS1_TREF_PAD0)
191
192#define SC_RAS1_TREF_SET_TI1(line, ras1_tref,ti1) \
193 FAST_GPFLAGSET(line, ras1_tref,ti1,RAS1_TREF_TI1)
194
195#define SC_RAS1_TREF_SET_TC1(line, ras1_tref,tc1) \
196 FAST_GPFLAGSET(line, ras1_tref,tc1,RAS1_TREF_TC1)
197
198#define SC_RAS1_TREF_SET_TE1(line, ras1_tref,te1) \
199 FAST_GPFLAGSET(line, ras1_tref,te1,RAS1_TREF_TE1)
200
201#define SC_RAS1_TREF_SET_CC1(line, ras1_tref,cc1) \
202 FAST_GPFLAGSET(line, ras1_tref,cc1,RAS1_TREF_CC1)
203
204#define SC_RAS1_TREF_SET_PAD1(line, ras1_tref,pad1) \
205 FAST_GPFLAGSET(line, ras1_tref,pad1,RAS1_TREF_PAD1)
206
207#define SC_RAS1_TREF_SET_RID(line, ras1_tref,rid) \
208 FAST_GPFLAGSET(line, ras1_tref,rid,RAS1_TREF_RID)
209
210#define SC_RAS_PERF_SET_SELA(line, ras_perf,selA) \
211 FAST_GPFLAGSET(line, ras_perf,selA,RAS_PERF_SELA)
212
213#define SC_RAS_PERF_SET_SELB(line, ras_perf,selB) \
214 FAST_GPFLAGSET(line, ras_perf,selB,RAS_PERF_SELB)
215
216#define SC_RAS_PERF_SET_NTEV(line, ras_perf,ntev) \
217 FAST_GPFLAGSET(line, ras_perf,ntev,RAS_PERF_NTEV)
218
219#define SC_RAS_PERF_SET_NBMP(line, ras_perf,nbmp) \
220 FAST_GPFLAGSET(line, ras_perf,nbmp,RAS_PERF_NBMP)
221
222#define SC_RAS_PERF_SET_NBR(line, ras_perf,nbr) \
223 FAST_GPFLAGSET(line, ras_perf,nbr,RAS_PERF_NBR)
224
225#define SC_RAS_PERF_SET_PAD0(line, ras_perf,pad0) \
226 FAST_GPFLAGSET(line, ras_perf,pad0,RAS_PERF_PAD0)
227
228#define SC_RAS_PERF_SET_RID(line, ras_perf,rid) \
229 FAST_GPFLAGSET(line, ras_perf,rid,RAS_PERF_RID)
230
231
232#endif // RAS_REG