diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2017-09-30 03:21:51 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-04 06:40:30 -0400 |
commit | a61661172728fd0c173c1ebd73cc45233a1c23a4 (patch) | |
tree | 09672fd4d58e3576fd78146bb12281325119ddd1 /drivers | |
parent | 3663e9cccc73589b1b2aa2148c8cb220bad99077 (diff) |
gpu: nvgpu: falcon: Qualify unsigned HW constants
- Falcon HW header re-generate for gv11b.
- Re-generate hardware headers so that all unsigned
constants are qualified with postfix U. This removes
the need for compiler to do implicit signed->unsigned
conversions
Change-Id: I313945edac1112a32c965d9565b30dc95a002752
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1571352
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_falcon_gv11b.h | 270 |
1 files changed, 135 insertions, 135 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_falcon_gv11b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_falcon_gv11b.h index fdeb4a37..4bb8f2de 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_falcon_gv11b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_falcon_gv11b.h | |||
@@ -58,542 +58,542 @@ | |||
58 | 58 | ||
59 | static inline u32 falcon_falcon_irqsset_r(void) | 59 | static inline u32 falcon_falcon_irqsset_r(void) |
60 | { | 60 | { |
61 | return 0x00000000; | 61 | return 0x00000000U; |
62 | } | 62 | } |
63 | static inline u32 falcon_falcon_irqsset_swgen0_set_f(void) | 63 | static inline u32 falcon_falcon_irqsset_swgen0_set_f(void) |
64 | { | 64 | { |
65 | return 0x40; | 65 | return 0x40U; |
66 | } | 66 | } |
67 | static inline u32 falcon_falcon_irqsclr_r(void) | 67 | static inline u32 falcon_falcon_irqsclr_r(void) |
68 | { | 68 | { |
69 | return 0x00000004; | 69 | return 0x00000004U; |
70 | } | 70 | } |
71 | static inline u32 falcon_falcon_irqstat_r(void) | 71 | static inline u32 falcon_falcon_irqstat_r(void) |
72 | { | 72 | { |
73 | return 0x00000008; | 73 | return 0x00000008U; |
74 | } | 74 | } |
75 | static inline u32 falcon_falcon_irqstat_halt_true_f(void) | 75 | static inline u32 falcon_falcon_irqstat_halt_true_f(void) |
76 | { | 76 | { |
77 | return 0x10; | 77 | return 0x10U; |
78 | } | 78 | } |
79 | static inline u32 falcon_falcon_irqstat_exterr_true_f(void) | 79 | static inline u32 falcon_falcon_irqstat_exterr_true_f(void) |
80 | { | 80 | { |
81 | return 0x20; | 81 | return 0x20U; |
82 | } | 82 | } |
83 | static inline u32 falcon_falcon_irqstat_swgen0_true_f(void) | 83 | static inline u32 falcon_falcon_irqstat_swgen0_true_f(void) |
84 | { | 84 | { |
85 | return 0x40; | 85 | return 0x40U; |
86 | } | 86 | } |
87 | static inline u32 falcon_falcon_irqmode_r(void) | 87 | static inline u32 falcon_falcon_irqmode_r(void) |
88 | { | 88 | { |
89 | return 0x0000000c; | 89 | return 0x0000000cU; |
90 | } | 90 | } |
91 | static inline u32 falcon_falcon_irqmset_r(void) | 91 | static inline u32 falcon_falcon_irqmset_r(void) |
92 | { | 92 | { |
93 | return 0x00000010; | 93 | return 0x00000010U; |
94 | } | 94 | } |
95 | static inline u32 falcon_falcon_irqmset_gptmr_f(u32 v) | 95 | static inline u32 falcon_falcon_irqmset_gptmr_f(u32 v) |
96 | { | 96 | { |
97 | return (v & 0x1) << 0; | 97 | return (v & 0x1U) << 0U; |
98 | } | 98 | } |
99 | static inline u32 falcon_falcon_irqmset_wdtmr_f(u32 v) | 99 | static inline u32 falcon_falcon_irqmset_wdtmr_f(u32 v) |
100 | { | 100 | { |
101 | return (v & 0x1) << 1; | 101 | return (v & 0x1U) << 1U; |
102 | } | 102 | } |
103 | static inline u32 falcon_falcon_irqmset_mthd_f(u32 v) | 103 | static inline u32 falcon_falcon_irqmset_mthd_f(u32 v) |
104 | { | 104 | { |
105 | return (v & 0x1) << 2; | 105 | return (v & 0x1U) << 2U; |
106 | } | 106 | } |
107 | static inline u32 falcon_falcon_irqmset_ctxsw_f(u32 v) | 107 | static inline u32 falcon_falcon_irqmset_ctxsw_f(u32 v) |
108 | { | 108 | { |
109 | return (v & 0x1) << 3; | 109 | return (v & 0x1U) << 3U; |
110 | } | 110 | } |
111 | static inline u32 falcon_falcon_irqmset_halt_f(u32 v) | 111 | static inline u32 falcon_falcon_irqmset_halt_f(u32 v) |
112 | { | 112 | { |
113 | return (v & 0x1) << 4; | 113 | return (v & 0x1U) << 4U; |
114 | } | 114 | } |
115 | static inline u32 falcon_falcon_irqmset_exterr_f(u32 v) | 115 | static inline u32 falcon_falcon_irqmset_exterr_f(u32 v) |
116 | { | 116 | { |
117 | return (v & 0x1) << 5; | 117 | return (v & 0x1U) << 5U; |
118 | } | 118 | } |
119 | static inline u32 falcon_falcon_irqmset_swgen0_f(u32 v) | 119 | static inline u32 falcon_falcon_irqmset_swgen0_f(u32 v) |
120 | { | 120 | { |
121 | return (v & 0x1) << 6; | 121 | return (v & 0x1U) << 6U; |
122 | } | 122 | } |
123 | static inline u32 falcon_falcon_irqmset_swgen1_f(u32 v) | 123 | static inline u32 falcon_falcon_irqmset_swgen1_f(u32 v) |
124 | { | 124 | { |
125 | return (v & 0x1) << 7; | 125 | return (v & 0x1U) << 7U; |
126 | } | 126 | } |
127 | static inline u32 falcon_falcon_irqmclr_r(void) | 127 | static inline u32 falcon_falcon_irqmclr_r(void) |
128 | { | 128 | { |
129 | return 0x00000014; | 129 | return 0x00000014U; |
130 | } | 130 | } |
131 | static inline u32 falcon_falcon_irqmclr_gptmr_f(u32 v) | 131 | static inline u32 falcon_falcon_irqmclr_gptmr_f(u32 v) |
132 | { | 132 | { |
133 | return (v & 0x1) << 0; | 133 | return (v & 0x1U) << 0U; |
134 | } | 134 | } |
135 | static inline u32 falcon_falcon_irqmclr_wdtmr_f(u32 v) | 135 | static inline u32 falcon_falcon_irqmclr_wdtmr_f(u32 v) |
136 | { | 136 | { |
137 | return (v & 0x1) << 1; | 137 | return (v & 0x1U) << 1U; |
138 | } | 138 | } |
139 | static inline u32 falcon_falcon_irqmclr_mthd_f(u32 v) | 139 | static inline u32 falcon_falcon_irqmclr_mthd_f(u32 v) |
140 | { | 140 | { |
141 | return (v & 0x1) << 2; | 141 | return (v & 0x1U) << 2U; |
142 | } | 142 | } |
143 | static inline u32 falcon_falcon_irqmclr_ctxsw_f(u32 v) | 143 | static inline u32 falcon_falcon_irqmclr_ctxsw_f(u32 v) |
144 | { | 144 | { |
145 | return (v & 0x1) << 3; | 145 | return (v & 0x1U) << 3U; |
146 | } | 146 | } |
147 | static inline u32 falcon_falcon_irqmclr_halt_f(u32 v) | 147 | static inline u32 falcon_falcon_irqmclr_halt_f(u32 v) |
148 | { | 148 | { |
149 | return (v & 0x1) << 4; | 149 | return (v & 0x1U) << 4U; |
150 | } | 150 | } |
151 | static inline u32 falcon_falcon_irqmclr_exterr_f(u32 v) | 151 | static inline u32 falcon_falcon_irqmclr_exterr_f(u32 v) |
152 | { | 152 | { |
153 | return (v & 0x1) << 5; | 153 | return (v & 0x1U) << 5U; |
154 | } | 154 | } |
155 | static inline u32 falcon_falcon_irqmclr_swgen0_f(u32 v) | 155 | static inline u32 falcon_falcon_irqmclr_swgen0_f(u32 v) |
156 | { | 156 | { |
157 | return (v & 0x1) << 6; | 157 | return (v & 0x1U) << 6U; |
158 | } | 158 | } |
159 | static inline u32 falcon_falcon_irqmclr_swgen1_f(u32 v) | 159 | static inline u32 falcon_falcon_irqmclr_swgen1_f(u32 v) |
160 | { | 160 | { |
161 | return (v & 0x1) << 7; | 161 | return (v & 0x1U) << 7U; |
162 | } | 162 | } |
163 | static inline u32 falcon_falcon_irqmclr_ext_f(u32 v) | 163 | static inline u32 falcon_falcon_irqmclr_ext_f(u32 v) |
164 | { | 164 | { |
165 | return (v & 0xff) << 8; | 165 | return (v & 0xffU) << 8U; |
166 | } | 166 | } |
167 | static inline u32 falcon_falcon_irqmask_r(void) | 167 | static inline u32 falcon_falcon_irqmask_r(void) |
168 | { | 168 | { |
169 | return 0x00000018; | 169 | return 0x00000018U; |
170 | } | 170 | } |
171 | static inline u32 falcon_falcon_irqdest_r(void) | 171 | static inline u32 falcon_falcon_irqdest_r(void) |
172 | { | 172 | { |
173 | return 0x0000001c; | 173 | return 0x0000001cU; |
174 | } | 174 | } |
175 | static inline u32 falcon_falcon_irqdest_host_gptmr_f(u32 v) | 175 | static inline u32 falcon_falcon_irqdest_host_gptmr_f(u32 v) |
176 | { | 176 | { |
177 | return (v & 0x1) << 0; | 177 | return (v & 0x1U) << 0U; |
178 | } | 178 | } |
179 | static inline u32 falcon_falcon_irqdest_host_wdtmr_f(u32 v) | 179 | static inline u32 falcon_falcon_irqdest_host_wdtmr_f(u32 v) |
180 | { | 180 | { |
181 | return (v & 0x1) << 1; | 181 | return (v & 0x1U) << 1U; |
182 | } | 182 | } |
183 | static inline u32 falcon_falcon_irqdest_host_mthd_f(u32 v) | 183 | static inline u32 falcon_falcon_irqdest_host_mthd_f(u32 v) |
184 | { | 184 | { |
185 | return (v & 0x1) << 2; | 185 | return (v & 0x1U) << 2U; |
186 | } | 186 | } |
187 | static inline u32 falcon_falcon_irqdest_host_ctxsw_f(u32 v) | 187 | static inline u32 falcon_falcon_irqdest_host_ctxsw_f(u32 v) |
188 | { | 188 | { |
189 | return (v & 0x1) << 3; | 189 | return (v & 0x1U) << 3U; |
190 | } | 190 | } |
191 | static inline u32 falcon_falcon_irqdest_host_halt_f(u32 v) | 191 | static inline u32 falcon_falcon_irqdest_host_halt_f(u32 v) |
192 | { | 192 | { |
193 | return (v & 0x1) << 4; | 193 | return (v & 0x1U) << 4U; |
194 | } | 194 | } |
195 | static inline u32 falcon_falcon_irqdest_host_exterr_f(u32 v) | 195 | static inline u32 falcon_falcon_irqdest_host_exterr_f(u32 v) |
196 | { | 196 | { |
197 | return (v & 0x1) << 5; | 197 | return (v & 0x1U) << 5U; |
198 | } | 198 | } |
199 | static inline u32 falcon_falcon_irqdest_host_swgen0_f(u32 v) | 199 | static inline u32 falcon_falcon_irqdest_host_swgen0_f(u32 v) |
200 | { | 200 | { |
201 | return (v & 0x1) << 6; | 201 | return (v & 0x1U) << 6U; |
202 | } | 202 | } |
203 | static inline u32 falcon_falcon_irqdest_host_swgen1_f(u32 v) | 203 | static inline u32 falcon_falcon_irqdest_host_swgen1_f(u32 v) |
204 | { | 204 | { |
205 | return (v & 0x1) << 7; | 205 | return (v & 0x1U) << 7U; |
206 | } | 206 | } |
207 | static inline u32 falcon_falcon_irqdest_host_ext_f(u32 v) | 207 | static inline u32 falcon_falcon_irqdest_host_ext_f(u32 v) |
208 | { | 208 | { |
209 | return (v & 0xff) << 8; | 209 | return (v & 0xffU) << 8U; |
210 | } | 210 | } |
211 | static inline u32 falcon_falcon_irqdest_target_gptmr_f(u32 v) | 211 | static inline u32 falcon_falcon_irqdest_target_gptmr_f(u32 v) |
212 | { | 212 | { |
213 | return (v & 0x1) << 16; | 213 | return (v & 0x1U) << 16U; |
214 | } | 214 | } |
215 | static inline u32 falcon_falcon_irqdest_target_wdtmr_f(u32 v) | 215 | static inline u32 falcon_falcon_irqdest_target_wdtmr_f(u32 v) |
216 | { | 216 | { |
217 | return (v & 0x1) << 17; | 217 | return (v & 0x1U) << 17U; |
218 | } | 218 | } |
219 | static inline u32 falcon_falcon_irqdest_target_mthd_f(u32 v) | 219 | static inline u32 falcon_falcon_irqdest_target_mthd_f(u32 v) |
220 | { | 220 | { |
221 | return (v & 0x1) << 18; | 221 | return (v & 0x1U) << 18U; |
222 | } | 222 | } |
223 | static inline u32 falcon_falcon_irqdest_target_ctxsw_f(u32 v) | 223 | static inline u32 falcon_falcon_irqdest_target_ctxsw_f(u32 v) |
224 | { | 224 | { |
225 | return (v & 0x1) << 19; | 225 | return (v & 0x1U) << 19U; |
226 | } | 226 | } |
227 | static inline u32 falcon_falcon_irqdest_target_halt_f(u32 v) | 227 | static inline u32 falcon_falcon_irqdest_target_halt_f(u32 v) |
228 | { | 228 | { |
229 | return (v & 0x1) << 20; | 229 | return (v & 0x1U) << 20U; |
230 | } | 230 | } |
231 | static inline u32 falcon_falcon_irqdest_target_exterr_f(u32 v) | 231 | static inline u32 falcon_falcon_irqdest_target_exterr_f(u32 v) |
232 | { | 232 | { |
233 | return (v & 0x1) << 21; | 233 | return (v & 0x1U) << 21U; |
234 | } | 234 | } |
235 | static inline u32 falcon_falcon_irqdest_target_swgen0_f(u32 v) | 235 | static inline u32 falcon_falcon_irqdest_target_swgen0_f(u32 v) |
236 | { | 236 | { |
237 | return (v & 0x1) << 22; | 237 | return (v & 0x1U) << 22U; |
238 | } | 238 | } |
239 | static inline u32 falcon_falcon_irqdest_target_swgen1_f(u32 v) | 239 | static inline u32 falcon_falcon_irqdest_target_swgen1_f(u32 v) |
240 | { | 240 | { |
241 | return (v & 0x1) << 23; | 241 | return (v & 0x1U) << 23U; |
242 | } | 242 | } |
243 | static inline u32 falcon_falcon_irqdest_target_ext_f(u32 v) | 243 | static inline u32 falcon_falcon_irqdest_target_ext_f(u32 v) |
244 | { | 244 | { |
245 | return (v & 0xff) << 24; | 245 | return (v & 0xffU) << 24U; |
246 | } | 246 | } |
247 | static inline u32 falcon_falcon_curctx_r(void) | 247 | static inline u32 falcon_falcon_curctx_r(void) |
248 | { | 248 | { |
249 | return 0x00000050; | 249 | return 0x00000050U; |
250 | } | 250 | } |
251 | static inline u32 falcon_falcon_nxtctx_r(void) | 251 | static inline u32 falcon_falcon_nxtctx_r(void) |
252 | { | 252 | { |
253 | return 0x00000054; | 253 | return 0x00000054U; |
254 | } | 254 | } |
255 | static inline u32 falcon_falcon_mailbox0_r(void) | 255 | static inline u32 falcon_falcon_mailbox0_r(void) |
256 | { | 256 | { |
257 | return 0x00000040; | 257 | return 0x00000040U; |
258 | } | 258 | } |
259 | static inline u32 falcon_falcon_mailbox1_r(void) | 259 | static inline u32 falcon_falcon_mailbox1_r(void) |
260 | { | 260 | { |
261 | return 0x00000044; | 261 | return 0x00000044U; |
262 | } | 262 | } |
263 | static inline u32 falcon_falcon_itfen_r(void) | 263 | static inline u32 falcon_falcon_itfen_r(void) |
264 | { | 264 | { |
265 | return 0x00000048; | 265 | return 0x00000048U; |
266 | } | 266 | } |
267 | static inline u32 falcon_falcon_itfen_ctxen_enable_f(void) | 267 | static inline u32 falcon_falcon_itfen_ctxen_enable_f(void) |
268 | { | 268 | { |
269 | return 0x1; | 269 | return 0x1U; |
270 | } | 270 | } |
271 | static inline u32 falcon_falcon_idlestate_r(void) | 271 | static inline u32 falcon_falcon_idlestate_r(void) |
272 | { | 272 | { |
273 | return 0x0000004c; | 273 | return 0x0000004cU; |
274 | } | 274 | } |
275 | static inline u32 falcon_falcon_idlestate_falcon_busy_v(u32 r) | 275 | static inline u32 falcon_falcon_idlestate_falcon_busy_v(u32 r) |
276 | { | 276 | { |
277 | return (r >> 0) & 0x1; | 277 | return (r >> 0U) & 0x1U; |
278 | } | 278 | } |
279 | static inline u32 falcon_falcon_idlestate_ext_busy_v(u32 r) | 279 | static inline u32 falcon_falcon_idlestate_ext_busy_v(u32 r) |
280 | { | 280 | { |
281 | return (r >> 1) & 0x7fff; | 281 | return (r >> 1U) & 0x7fffU; |
282 | } | 282 | } |
283 | static inline u32 falcon_falcon_os_r(void) | 283 | static inline u32 falcon_falcon_os_r(void) |
284 | { | 284 | { |
285 | return 0x00000080; | 285 | return 0x00000080U; |
286 | } | 286 | } |
287 | static inline u32 falcon_falcon_engctl_r(void) | 287 | static inline u32 falcon_falcon_engctl_r(void) |
288 | { | 288 | { |
289 | return 0x000000a4; | 289 | return 0x000000a4U; |
290 | } | 290 | } |
291 | static inline u32 falcon_falcon_cpuctl_r(void) | 291 | static inline u32 falcon_falcon_cpuctl_r(void) |
292 | { | 292 | { |
293 | return 0x00000100; | 293 | return 0x00000100U; |
294 | } | 294 | } |
295 | static inline u32 falcon_falcon_cpuctl_startcpu_f(u32 v) | 295 | static inline u32 falcon_falcon_cpuctl_startcpu_f(u32 v) |
296 | { | 296 | { |
297 | return (v & 0x1) << 1; | 297 | return (v & 0x1U) << 1U; |
298 | } | 298 | } |
299 | static inline u32 falcon_falcon_cpuctl_sreset_f(u32 v) | 299 | static inline u32 falcon_falcon_cpuctl_sreset_f(u32 v) |
300 | { | 300 | { |
301 | return (v & 0x1) << 2; | 301 | return (v & 0x1U) << 2U; |
302 | } | 302 | } |
303 | static inline u32 falcon_falcon_cpuctl_hreset_f(u32 v) | 303 | static inline u32 falcon_falcon_cpuctl_hreset_f(u32 v) |
304 | { | 304 | { |
305 | return (v & 0x1) << 3; | 305 | return (v & 0x1U) << 3U; |
306 | } | 306 | } |
307 | static inline u32 falcon_falcon_cpuctl_halt_intr_f(u32 v) | 307 | static inline u32 falcon_falcon_cpuctl_halt_intr_f(u32 v) |
308 | { | 308 | { |
309 | return (v & 0x1) << 4; | 309 | return (v & 0x1U) << 4U; |
310 | } | 310 | } |
311 | static inline u32 falcon_falcon_cpuctl_halt_intr_m(void) | 311 | static inline u32 falcon_falcon_cpuctl_halt_intr_m(void) |
312 | { | 312 | { |
313 | return 0x1 << 4; | 313 | return 0x1U << 4U; |
314 | } | 314 | } |
315 | static inline u32 falcon_falcon_cpuctl_halt_intr_v(u32 r) | 315 | static inline u32 falcon_falcon_cpuctl_halt_intr_v(u32 r) |
316 | { | 316 | { |
317 | return (r >> 4) & 0x1; | 317 | return (r >> 4U) & 0x1U; |
318 | } | 318 | } |
319 | static inline u32 falcon_falcon_cpuctl_stopped_m(void) | 319 | static inline u32 falcon_falcon_cpuctl_stopped_m(void) |
320 | { | 320 | { |
321 | return 0x1 << 5; | 321 | return 0x1U << 5U; |
322 | } | 322 | } |
323 | static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_f(u32 v) | 323 | static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_f(u32 v) |
324 | { | 324 | { |
325 | return (v & 0x1) << 6; | 325 | return (v & 0x1U) << 6U; |
326 | } | 326 | } |
327 | static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_m(void) | 327 | static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_m(void) |
328 | { | 328 | { |
329 | return 0x1 << 6; | 329 | return 0x1U << 6U; |
330 | } | 330 | } |
331 | static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_v(u32 r) | 331 | static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_v(u32 r) |
332 | { | 332 | { |
333 | return (r >> 6) & 0x1; | 333 | return (r >> 6U) & 0x1U; |
334 | } | 334 | } |
335 | static inline u32 falcon_falcon_cpuctl_alias_r(void) | 335 | static inline u32 falcon_falcon_cpuctl_alias_r(void) |
336 | { | 336 | { |
337 | return 0x00000130; | 337 | return 0x00000130U; |
338 | } | 338 | } |
339 | static inline u32 falcon_falcon_cpuctl_alias_startcpu_f(u32 v) | 339 | static inline u32 falcon_falcon_cpuctl_alias_startcpu_f(u32 v) |
340 | { | 340 | { |
341 | return (v & 0x1) << 1; | 341 | return (v & 0x1U) << 1U; |
342 | } | 342 | } |
343 | static inline u32 falcon_falcon_imemc_r(u32 i) | 343 | static inline u32 falcon_falcon_imemc_r(u32 i) |
344 | { | 344 | { |
345 | return 0x00000180 + i*16; | 345 | return 0x00000180U + i*16U; |
346 | } | 346 | } |
347 | static inline u32 falcon_falcon_imemc_offs_f(u32 v) | 347 | static inline u32 falcon_falcon_imemc_offs_f(u32 v) |
348 | { | 348 | { |
349 | return (v & 0x3f) << 2; | 349 | return (v & 0x3fU) << 2U; |
350 | } | 350 | } |
351 | static inline u32 falcon_falcon_imemc_blk_f(u32 v) | 351 | static inline u32 falcon_falcon_imemc_blk_f(u32 v) |
352 | { | 352 | { |
353 | return (v & 0xff) << 8; | 353 | return (v & 0xffU) << 8U; |
354 | } | 354 | } |
355 | static inline u32 falcon_falcon_imemc_aincw_f(u32 v) | 355 | static inline u32 falcon_falcon_imemc_aincw_f(u32 v) |
356 | { | 356 | { |
357 | return (v & 0x1) << 24; | 357 | return (v & 0x1U) << 24U; |
358 | } | 358 | } |
359 | static inline u32 falcon_falcon_imemd_r(u32 i) | 359 | static inline u32 falcon_falcon_imemd_r(u32 i) |
360 | { | 360 | { |
361 | return 0x00000184 + i*16; | 361 | return 0x00000184U + i*16U; |
362 | } | 362 | } |
363 | static inline u32 falcon_falcon_imemt_r(u32 i) | 363 | static inline u32 falcon_falcon_imemt_r(u32 i) |
364 | { | 364 | { |
365 | return 0x00000188 + i*16; | 365 | return 0x00000188U + i*16U; |
366 | } | 366 | } |
367 | static inline u32 falcon_falcon_sctl_r(void) | 367 | static inline u32 falcon_falcon_sctl_r(void) |
368 | { | 368 | { |
369 | return 0x00000240; | 369 | return 0x00000240U; |
370 | } | 370 | } |
371 | static inline u32 falcon_falcon_mmu_phys_sec_r(void) | 371 | static inline u32 falcon_falcon_mmu_phys_sec_r(void) |
372 | { | 372 | { |
373 | return 0x00100ce4; | 373 | return 0x00100ce4U; |
374 | } | 374 | } |
375 | static inline u32 falcon_falcon_bootvec_r(void) | 375 | static inline u32 falcon_falcon_bootvec_r(void) |
376 | { | 376 | { |
377 | return 0x00000104; | 377 | return 0x00000104U; |
378 | } | 378 | } |
379 | static inline u32 falcon_falcon_bootvec_vec_f(u32 v) | 379 | static inline u32 falcon_falcon_bootvec_vec_f(u32 v) |
380 | { | 380 | { |
381 | return (v & 0xffffffff) << 0; | 381 | return (v & 0xffffffffU) << 0U; |
382 | } | 382 | } |
383 | static inline u32 falcon_falcon_dmactl_r(void) | 383 | static inline u32 falcon_falcon_dmactl_r(void) |
384 | { | 384 | { |
385 | return 0x0000010c; | 385 | return 0x0000010cU; |
386 | } | 386 | } |
387 | static inline u32 falcon_falcon_dmactl_dmem_scrubbing_m(void) | 387 | static inline u32 falcon_falcon_dmactl_dmem_scrubbing_m(void) |
388 | { | 388 | { |
389 | return 0x1 << 1; | 389 | return 0x1U << 1U; |
390 | } | 390 | } |
391 | static inline u32 falcon_falcon_dmactl_imem_scrubbing_m(void) | 391 | static inline u32 falcon_falcon_dmactl_imem_scrubbing_m(void) |
392 | { | 392 | { |
393 | return 0x1 << 2; | 393 | return 0x1U << 2U; |
394 | } | 394 | } |
395 | static inline u32 falcon_falcon_dmactl_require_ctx_f(u32 v) | 395 | static inline u32 falcon_falcon_dmactl_require_ctx_f(u32 v) |
396 | { | 396 | { |
397 | return (v & 0x1) << 0; | 397 | return (v & 0x1U) << 0U; |
398 | } | 398 | } |
399 | static inline u32 falcon_falcon_hwcfg_r(void) | 399 | static inline u32 falcon_falcon_hwcfg_r(void) |
400 | { | 400 | { |
401 | return 0x00000108; | 401 | return 0x00000108U; |
402 | } | 402 | } |
403 | static inline u32 falcon_falcon_hwcfg_imem_size_v(u32 r) | 403 | static inline u32 falcon_falcon_hwcfg_imem_size_v(u32 r) |
404 | { | 404 | { |
405 | return (r >> 0) & 0x1ff; | 405 | return (r >> 0U) & 0x1ffU; |
406 | } | 406 | } |
407 | static inline u32 falcon_falcon_hwcfg_dmem_size_v(u32 r) | 407 | static inline u32 falcon_falcon_hwcfg_dmem_size_v(u32 r) |
408 | { | 408 | { |
409 | return (r >> 9) & 0x1ff; | 409 | return (r >> 9U) & 0x1ffU; |
410 | } | 410 | } |
411 | static inline u32 falcon_falcon_dmatrfbase_r(void) | 411 | static inline u32 falcon_falcon_dmatrfbase_r(void) |
412 | { | 412 | { |
413 | return 0x00000110; | 413 | return 0x00000110U; |
414 | } | 414 | } |
415 | static inline u32 falcon_falcon_dmatrfbase1_r(void) | 415 | static inline u32 falcon_falcon_dmatrfbase1_r(void) |
416 | { | 416 | { |
417 | return 0x00000128; | 417 | return 0x00000128U; |
418 | } | 418 | } |
419 | static inline u32 falcon_falcon_dmatrfmoffs_r(void) | 419 | static inline u32 falcon_falcon_dmatrfmoffs_r(void) |
420 | { | 420 | { |
421 | return 0x00000114; | 421 | return 0x00000114U; |
422 | } | 422 | } |
423 | static inline u32 falcon_falcon_dmatrfcmd_r(void) | 423 | static inline u32 falcon_falcon_dmatrfcmd_r(void) |
424 | { | 424 | { |
425 | return 0x00000118; | 425 | return 0x00000118U; |
426 | } | 426 | } |
427 | static inline u32 falcon_falcon_dmatrfcmd_imem_f(u32 v) | 427 | static inline u32 falcon_falcon_dmatrfcmd_imem_f(u32 v) |
428 | { | 428 | { |
429 | return (v & 0x1) << 4; | 429 | return (v & 0x1U) << 4U; |
430 | } | 430 | } |
431 | static inline u32 falcon_falcon_dmatrfcmd_write_f(u32 v) | 431 | static inline u32 falcon_falcon_dmatrfcmd_write_f(u32 v) |
432 | { | 432 | { |
433 | return (v & 0x1) << 5; | 433 | return (v & 0x1U) << 5U; |
434 | } | 434 | } |
435 | static inline u32 falcon_falcon_dmatrfcmd_size_f(u32 v) | 435 | static inline u32 falcon_falcon_dmatrfcmd_size_f(u32 v) |
436 | { | 436 | { |
437 | return (v & 0x7) << 8; | 437 | return (v & 0x7U) << 8U; |
438 | } | 438 | } |
439 | static inline u32 falcon_falcon_dmatrfcmd_ctxdma_f(u32 v) | 439 | static inline u32 falcon_falcon_dmatrfcmd_ctxdma_f(u32 v) |
440 | { | 440 | { |
441 | return (v & 0x7) << 12; | 441 | return (v & 0x7U) << 12U; |
442 | } | 442 | } |
443 | static inline u32 falcon_falcon_dmatrffboffs_r(void) | 443 | static inline u32 falcon_falcon_dmatrffboffs_r(void) |
444 | { | 444 | { |
445 | return 0x0000011c; | 445 | return 0x0000011cU; |
446 | } | 446 | } |
447 | static inline u32 falcon_falcon_imctl_debug_r(void) | 447 | static inline u32 falcon_falcon_imctl_debug_r(void) |
448 | { | 448 | { |
449 | return 0x0000015c; | 449 | return 0x0000015cU; |
450 | } | 450 | } |
451 | static inline u32 falcon_falcon_imctl_debug_addr_blk_f(u32 v) | 451 | static inline u32 falcon_falcon_imctl_debug_addr_blk_f(u32 v) |
452 | { | 452 | { |
453 | return (v & 0xffffff) << 0; | 453 | return (v & 0xffffffU) << 0U; |
454 | } | 454 | } |
455 | static inline u32 falcon_falcon_imctl_debug_cmd_f(u32 v) | 455 | static inline u32 falcon_falcon_imctl_debug_cmd_f(u32 v) |
456 | { | 456 | { |
457 | return (v & 0x7) << 24; | 457 | return (v & 0x7U) << 24U; |
458 | } | 458 | } |
459 | static inline u32 falcon_falcon_imstat_r(void) | 459 | static inline u32 falcon_falcon_imstat_r(void) |
460 | { | 460 | { |
461 | return 0x00000144; | 461 | return 0x00000144U; |
462 | } | 462 | } |
463 | static inline u32 falcon_falcon_traceidx_r(void) | 463 | static inline u32 falcon_falcon_traceidx_r(void) |
464 | { | 464 | { |
465 | return 0x00000148; | 465 | return 0x00000148U; |
466 | } | 466 | } |
467 | static inline u32 falcon_falcon_traceidx_maxidx_v(u32 r) | 467 | static inline u32 falcon_falcon_traceidx_maxidx_v(u32 r) |
468 | { | 468 | { |
469 | return (r >> 16) & 0xff; | 469 | return (r >> 16U) & 0xffU; |
470 | } | 470 | } |
471 | static inline u32 falcon_falcon_traceidx_idx_f(u32 v) | 471 | static inline u32 falcon_falcon_traceidx_idx_f(u32 v) |
472 | { | 472 | { |
473 | return (v & 0xff) << 0; | 473 | return (v & 0xffU) << 0U; |
474 | } | 474 | } |
475 | static inline u32 falcon_falcon_tracepc_r(void) | 475 | static inline u32 falcon_falcon_tracepc_r(void) |
476 | { | 476 | { |
477 | return 0x0000014c; | 477 | return 0x0000014cU; |
478 | } | 478 | } |
479 | static inline u32 falcon_falcon_tracepc_pc_v(u32 r) | 479 | static inline u32 falcon_falcon_tracepc_pc_v(u32 r) |
480 | { | 480 | { |
481 | return (r >> 0) & 0xffffff; | 481 | return (r >> 0U) & 0xffffffU; |
482 | } | 482 | } |
483 | static inline u32 falcon_falcon_exterraddr_r(void) | 483 | static inline u32 falcon_falcon_exterraddr_r(void) |
484 | { | 484 | { |
485 | return 0x00000168; | 485 | return 0x00000168U; |
486 | } | 486 | } |
487 | static inline u32 falcon_falcon_exterrstat_r(void) | 487 | static inline u32 falcon_falcon_exterrstat_r(void) |
488 | { | 488 | { |
489 | return 0x0000016c; | 489 | return 0x0000016cU; |
490 | } | 490 | } |
491 | static inline u32 falcon_falcon_exterrstat_valid_m(void) | 491 | static inline u32 falcon_falcon_exterrstat_valid_m(void) |
492 | { | 492 | { |
493 | return 0x1 << 31; | 493 | return 0x1U << 31U; |
494 | } | 494 | } |
495 | static inline u32 falcon_falcon_exterrstat_valid_v(u32 r) | 495 | static inline u32 falcon_falcon_exterrstat_valid_v(u32 r) |
496 | { | 496 | { |
497 | return (r >> 31) & 0x1; | 497 | return (r >> 31U) & 0x1U; |
498 | } | 498 | } |
499 | static inline u32 falcon_falcon_exterrstat_valid_true_v(void) | 499 | static inline u32 falcon_falcon_exterrstat_valid_true_v(void) |
500 | { | 500 | { |
501 | return 0x00000001; | 501 | return 0x00000001U; |
502 | } | 502 | } |
503 | static inline u32 falcon_falcon_icd_cmd_r(void) | 503 | static inline u32 falcon_falcon_icd_cmd_r(void) |
504 | { | 504 | { |
505 | return 0x00000200; | 505 | return 0x00000200U; |
506 | } | 506 | } |
507 | static inline u32 falcon_falcon_icd_cmd_opc_s(void) | 507 | static inline u32 falcon_falcon_icd_cmd_opc_s(void) |
508 | { | 508 | { |
509 | return 4; | 509 | return 4U; |
510 | } | 510 | } |
511 | static inline u32 falcon_falcon_icd_cmd_opc_f(u32 v) | 511 | static inline u32 falcon_falcon_icd_cmd_opc_f(u32 v) |
512 | { | 512 | { |
513 | return (v & 0xf) << 0; | 513 | return (v & 0xfU) << 0U; |
514 | } | 514 | } |
515 | static inline u32 falcon_falcon_icd_cmd_opc_m(void) | 515 | static inline u32 falcon_falcon_icd_cmd_opc_m(void) |
516 | { | 516 | { |
517 | return 0xf << 0; | 517 | return 0xfU << 0U; |
518 | } | 518 | } |
519 | static inline u32 falcon_falcon_icd_cmd_opc_v(u32 r) | 519 | static inline u32 falcon_falcon_icd_cmd_opc_v(u32 r) |
520 | { | 520 | { |
521 | return (r >> 0) & 0xf; | 521 | return (r >> 0U) & 0xfU; |
522 | } | 522 | } |
523 | static inline u32 falcon_falcon_icd_cmd_opc_rreg_f(void) | 523 | static inline u32 falcon_falcon_icd_cmd_opc_rreg_f(void) |
524 | { | 524 | { |
525 | return 0x8; | 525 | return 0x8U; |
526 | } | 526 | } |
527 | static inline u32 falcon_falcon_icd_cmd_opc_rstat_f(void) | 527 | static inline u32 falcon_falcon_icd_cmd_opc_rstat_f(void) |
528 | { | 528 | { |
529 | return 0xe; | 529 | return 0xeU; |
530 | } | 530 | } |
531 | static inline u32 falcon_falcon_icd_cmd_idx_f(u32 v) | 531 | static inline u32 falcon_falcon_icd_cmd_idx_f(u32 v) |
532 | { | 532 | { |
533 | return (v & 0x1f) << 8; | 533 | return (v & 0x1fU) << 8U; |
534 | } | 534 | } |
535 | static inline u32 falcon_falcon_icd_rdata_r(void) | 535 | static inline u32 falcon_falcon_icd_rdata_r(void) |
536 | { | 536 | { |
537 | return 0x0000020c; | 537 | return 0x0000020cU; |
538 | } | 538 | } |
539 | static inline u32 falcon_falcon_dmemc_r(u32 i) | 539 | static inline u32 falcon_falcon_dmemc_r(u32 i) |
540 | { | 540 | { |
541 | return 0x000001c0 + i*8; | 541 | return 0x000001c0U + i*8U; |
542 | } | 542 | } |
543 | static inline u32 falcon_falcon_dmemc_offs_f(u32 v) | 543 | static inline u32 falcon_falcon_dmemc_offs_f(u32 v) |
544 | { | 544 | { |
545 | return (v & 0x3f) << 2; | 545 | return (v & 0x3fU) << 2U; |
546 | } | 546 | } |
547 | static inline u32 falcon_falcon_dmemc_offs_m(void) | 547 | static inline u32 falcon_falcon_dmemc_offs_m(void) |
548 | { | 548 | { |
549 | return 0x3f << 2; | 549 | return 0x3fU << 2U; |
550 | } | 550 | } |
551 | static inline u32 falcon_falcon_dmemc_blk_f(u32 v) | 551 | static inline u32 falcon_falcon_dmemc_blk_f(u32 v) |
552 | { | 552 | { |
553 | return (v & 0xff) << 8; | 553 | return (v & 0xffU) << 8U; |
554 | } | 554 | } |
555 | static inline u32 falcon_falcon_dmemc_blk_m(void) | 555 | static inline u32 falcon_falcon_dmemc_blk_m(void) |
556 | { | 556 | { |
557 | return 0xff << 8; | 557 | return 0xffU << 8U; |
558 | } | 558 | } |
559 | static inline u32 falcon_falcon_dmemc_aincw_f(u32 v) | 559 | static inline u32 falcon_falcon_dmemc_aincw_f(u32 v) |
560 | { | 560 | { |
561 | return (v & 0x1) << 24; | 561 | return (v & 0x1U) << 24U; |
562 | } | 562 | } |
563 | static inline u32 falcon_falcon_dmemc_aincr_f(u32 v) | 563 | static inline u32 falcon_falcon_dmemc_aincr_f(u32 v) |
564 | { | 564 | { |
565 | return (v & 0x1) << 25; | 565 | return (v & 0x1U) << 25U; |
566 | } | 566 | } |
567 | static inline u32 falcon_falcon_dmemd_r(u32 i) | 567 | static inline u32 falcon_falcon_dmemd_r(u32 i) |
568 | { | 568 | { |
569 | return 0x000001c4 + i*8; | 569 | return 0x000001c4U + i*8U; |
570 | } | 570 | } |
571 | static inline u32 falcon_falcon_debug1_r(void) | 571 | static inline u32 falcon_falcon_debug1_r(void) |
572 | { | 572 | { |
573 | return 0x00000090; | 573 | return 0x00000090U; |
574 | } | 574 | } |
575 | static inline u32 falcon_falcon_debug1_ctxsw_mode_s(void) | 575 | static inline u32 falcon_falcon_debug1_ctxsw_mode_s(void) |
576 | { | 576 | { |
577 | return 1; | 577 | return 1U; |
578 | } | 578 | } |
579 | static inline u32 falcon_falcon_debug1_ctxsw_mode_f(u32 v) | 579 | static inline u32 falcon_falcon_debug1_ctxsw_mode_f(u32 v) |
580 | { | 580 | { |
581 | return (v & 0x1) << 16; | 581 | return (v & 0x1U) << 16U; |
582 | } | 582 | } |
583 | static inline u32 falcon_falcon_debug1_ctxsw_mode_m(void) | 583 | static inline u32 falcon_falcon_debug1_ctxsw_mode_m(void) |
584 | { | 584 | { |
585 | return 0x1 << 16; | 585 | return 0x1U << 16U; |
586 | } | 586 | } |
587 | static inline u32 falcon_falcon_debug1_ctxsw_mode_v(u32 r) | 587 | static inline u32 falcon_falcon_debug1_ctxsw_mode_v(u32 r) |
588 | { | 588 | { |
589 | return (r >> 16) & 0x1; | 589 | return (r >> 16U) & 0x1U; |
590 | } | 590 | } |
591 | static inline u32 falcon_falcon_debug1_ctxsw_mode_init_f(void) | 591 | static inline u32 falcon_falcon_debug1_ctxsw_mode_init_f(void) |
592 | { | 592 | { |
593 | return 0x0; | 593 | return 0x0U; |
594 | } | 594 | } |
595 | static inline u32 falcon_falcon_debuginfo_r(void) | 595 | static inline u32 falcon_falcon_debuginfo_r(void) |
596 | { | 596 | { |
597 | return 0x00000094; | 597 | return 0x00000094U; |
598 | } | 598 | } |
599 | #endif | 599 | #endif |