1 /* SPDX-License-Identifier: GPL-2.0
3 * Copyright 2020 HabanaLabs, Ltd.
7 #ifndef GAUDI2_CORESIGHT_REGS_DRV_H_
8 #define GAUDI2_CORESIGHT_REGS_DRV_H_
10 #include "gaudi2_masks.h"
11 #include "../include/gaudi2/gaudi2_coresight.h"
14 /* FUNNEL Offsets - same offsets for all funnels*/
15 #define mmFUNNEL_CTRL_REG_OFFSET \
16 (mmDCORE0_TPC0_EML_FUNNEL_CTRL_REG - \
17 mmDCORE0_TPC0_EML_FUNNEL_BASE)
19 #define mmFUNNEL_PRIORITY_CTRL_REG_OFFSET \
20 (mmDCORE0_TPC0_EML_FUNNEL_PRIORITY_CTRL_REG - \
21 mmDCORE0_TPC0_EML_FUNNEL_BASE)
23 #define mmFUNNEL_ITATBDATA0_OFFSET \
24 (mmDCORE0_TPC0_EML_FUNNEL_ITATBDATA0 - \
25 mmDCORE0_TPC0_EML_FUNNEL_BASE)
27 #define mmFUNNEL_ITATBCTR2_OFFSET \
28 (mmDCORE0_TPC0_EML_FUNNEL_ITATBCTR2 - \
29 mmDCORE0_TPC0_EML_FUNNEL_BASE)
31 #define mmFUNNEL_ITATBCTR1_OFFSET \
32 (mmDCORE0_TPC0_EML_FUNNEL_ITATBCTR1 - \
33 mmDCORE0_TPC0_EML_FUNNEL_BASE)
35 #define mmFUNNEL_ITATBCTR0_OFFSET \
36 (mmDCORE0_TPC0_EML_FUNNEL_ITATBCTR0 - \
37 mmDCORE0_TPC0_EML_FUNNEL_BASE)
39 #define mmFUNNEL_ITCTRL_OFFSET \
40 (mmDCORE0_TPC0_EML_FUNNEL_ITCTRL - \
41 mmDCORE0_TPC0_EML_FUNNEL_BASE)
43 #define mmFUNNEL_CLAIMSET_OFFSET \
44 (mmDCORE0_TPC0_EML_FUNNEL_CLAIMSET - \
45 mmDCORE0_TPC0_EML_FUNNEL_BASE)
47 #define mmFUNNEL_CLAIMCLR_OFFSET \
48 (mmDCORE0_TPC0_EML_FUNNEL_CLAIMCLR - \
49 mmDCORE0_TPC0_EML_FUNNEL_BASE)
51 #define mmFUNNEL_LOCKACCESS_OFFSET \
52 (mmDCORE0_TPC0_EML_FUNNEL_LOCKACCESS - \
53 mmDCORE0_TPC0_EML_FUNNEL_BASE)
55 #define mmFUNNEL_LOCKSTATUS_OFFSET \
56 (mmDCORE0_TPC0_EML_FUNNEL_LOCKSTATUS - \
57 mmDCORE0_TPC0_EML_FUNNEL_BASE)
59 #define mmFUNNEL_AUTHSTATUS_OFFSET \
60 (mmDCORE0_TPC0_EML_FUNNEL_AUTHSTATUS - \
61 mmDCORE0_TPC0_EML_FUNNEL_BASE)
63 #define mmFUNNEL_DEVID_OFFSET \
64 (mmDCORE0_TPC0_EML_FUNNEL_DEVID - \
65 mmDCORE0_TPC0_EML_FUNNEL_BASE)
67 #define mmFUNNEL_DEVTYPE_OFFSET \
68 (mmDCORE0_TPC0_EML_FUNNEL_DEVTYPE - \
69 mmDCORE0_TPC0_EML_FUNNEL_BASE)
71 #define mmFUNNEL_PIDR4_OFFSET \
72 (mmDCORE0_TPC0_EML_FUNNEL_PIDR4 - \
73 mmDCORE0_TPC0_EML_FUNNEL_BASE)
75 #define mmFUNNEL_PERIPHID5_OFFSET \
76 (mmDCORE0_TPC0_EML_FUNNEL_PERIPHID5 - \
77 mmDCORE0_TPC0_EML_FUNNEL_BASE)
79 #define mmFUNNEL_PERIPHID6_OFFSET \
80 (mmDCORE0_TPC0_EML_FUNNEL_PERIPHID6 - \
81 mmDCORE0_TPC0_EML_FUNNEL_BASE)
83 #define mmFUNNEL_PERIPHID7_OFFSET \
84 (mmDCORE0_TPC0_EML_FUNNEL_PERIPHID7 - \
85 mmDCORE0_TPC0_EML_FUNNEL_BASE)
87 #define mmFUNNEL_PIDR0_OFFSET \
88 (mmDCORE0_TPC0_EML_FUNNEL_PIDR0 - \
89 mmDCORE0_TPC0_EML_FUNNEL_BASE)
91 #define mmFUNNEL_PIDR1_OFFSET \
92 (mmDCORE0_TPC0_EML_FUNNEL_PIDR1 - \
93 mmDCORE0_TPC0_EML_FUNNEL_BASE)
95 #define mmFUNNEL_PIDR2_OFFSET \
96 (mmDCORE0_TPC0_EML_FUNNEL_PIDR2 - \
97 mmDCORE0_TPC0_EML_FUNNEL_BASE)
99 #define mmFUNNEL_PIDR3_OFFSET \
100 (mmDCORE0_TPC0_EML_FUNNEL_PIDR3 - \
101 mmDCORE0_TPC0_EML_FUNNEL_BASE)
103 #define mmFUNNEL_CID0_OFFSET \
104 (mmDCORE0_TPC0_EML_FUNNEL_CID0 - \
105 mmDCORE0_TPC0_EML_FUNNEL_BASE)
107 #define mmFUNNEL_CID1_OFFSET \
108 (mmDCORE0_TPC0_EML_FUNNEL_CID1 - \
109 mmDCORE0_TPC0_EML_FUNNEL_BASE)
111 #define mmFUNNEL_CID2_OFFSET \
112 (mmDCORE0_TPC0_EML_FUNNEL_CID2 - \
113 mmDCORE0_TPC0_EML_FUNNEL_BASE)
115 #define mmFUNNEL_CID3_OFFSET \
116 (mmDCORE0_TPC0_EML_FUNNEL_CID3 - \
117 mmDCORE0_TPC0_EML_FUNNEL_BASE)
119 /* ETF Offsets - same offsets for all etfs */
120 #define mmETF_RSZ_OFFSET \
121 (mmDCORE0_TPC0_EML_ETF_RSZ - \
122 mmDCORE0_TPC0_EML_ETF_BASE)
124 #define mmETF_STS_OFFSET \
125 (mmDCORE0_TPC0_EML_ETF_STS - \
126 mmDCORE0_TPC0_EML_ETF_BASE)
128 #define mmETF_RRD_OFFSET \
129 (mmDCORE0_TPC0_EML_ETF_RRD - \
130 mmDCORE0_TPC0_EML_ETF_BASE)
132 #define mmETF_RRP_OFFSET \
133 (mmDCORE0_TPC0_EML_ETF_RRP - \
134 mmDCORE0_TPC0_EML_ETF_BASE)
136 #define mmETF_RWP_OFFSET \
137 (mmDCORE0_TPC0_EML_ETF_RWP - \
138 mmDCORE0_TPC0_EML_ETF_BASE)
140 #define mmETF_TRG_OFFSET \
141 (mmDCORE0_TPC0_EML_ETF_TRG - \
142 mmDCORE0_TPC0_EML_ETF_BASE)
144 #define mmETF_CTL_OFFSET \
145 (mmDCORE0_TPC0_EML_ETF_CTL - \
146 mmDCORE0_TPC0_EML_ETF_BASE)
148 #define mmETF_RWD_OFFSET \
149 (mmDCORE0_TPC0_EML_ETF_RWD - \
150 mmDCORE0_TPC0_EML_ETF_BASE)
152 #define mmETF_MODE_OFFSET \
153 (mmDCORE0_TPC0_EML_ETF_MODE - \
154 mmDCORE0_TPC0_EML_ETF_BASE)
156 #define mmETF_LBUFLEVEL_OFFSET \
157 (mmDCORE0_TPC0_EML_ETF_LBUFLEVEL - \
158 mmDCORE0_TPC0_EML_ETF_BASE)
160 #define mmETF_CBUFLEVEL_OFFSET \
161 (mmDCORE0_TPC0_EML_ETF_CBUFLEVEL - \
162 mmDCORE0_TPC0_EML_ETF_BASE)
164 #define mmETF_BUFWM_OFFSET \
165 (mmDCORE0_TPC0_EML_ETF_BUFWM - \
166 mmDCORE0_TPC0_EML_ETF_BASE)
168 #define mmETF_FFSR_OFFSET \
169 (mmDCORE0_TPC0_EML_ETF_FFSR - \
170 mmDCORE0_TPC0_EML_ETF_BASE)
172 #define mmETF_FFCR_OFFSET \
173 (mmDCORE0_TPC0_EML_ETF_FFCR - \
174 mmDCORE0_TPC0_EML_ETF_BASE)
176 #define mmETF_PSCR_OFFSET \
177 (mmDCORE0_TPC0_EML_ETF_PSCR - \
178 mmDCORE0_TPC0_EML_ETF_BASE)
180 #define mmETF_ITATBMDATA0_OFFSET \
181 (mmDCORE0_TPC0_EML_ETF_ITATBMDATA0 - \
182 mmDCORE0_TPC0_EML_ETF_BASE)
184 #define mmETF_ITATBMCTR2_OFFSET \
185 (mmDCORE0_TPC0_EML_ETF_ITATBMCTR2 - \
186 mmDCORE0_TPC0_EML_ETF_BASE)
188 #define mmETF_ITATBMCTR1_OFFSET \
189 (mmDCORE0_TPC0_EML_ETF_ITATBMCTR1 - \
190 mmDCORE0_TPC0_EML_ETF_BASE)
192 #define mmETF_ITATBMCTR0_OFFSET \
193 (mmDCORE0_TPC0_EML_ETF_ITATBMCTR0 - \
194 mmDCORE0_TPC0_EML_ETF_BASE)
196 #define mmETF_ITMISCOP0_OFFSET \
197 (mmDCORE0_TPC0_EML_ETF_ITMISCOP0 - \
198 mmDCORE0_TPC0_EML_ETF_BASE)
200 #define mmETF_ITTRFLIN_OFFSET \
201 (mmDCORE0_TPC0_EML_ETF_ITTRFLIN - \
202 mmDCORE0_TPC0_EML_ETF_BASE)
204 #define mmETF_ITATBDATA0_OFFSET \
205 (mmDCORE0_TPC0_EML_ETF_ITATBDATA0 - \
206 mmDCORE0_TPC0_EML_ETF_BASE)
208 #define mmETF_ITATBCTR2_OFFSET \
209 (mmDCORE0_TPC0_EML_ETF_ITATBCTR2 - \
210 mmDCORE0_TPC0_EML_ETF_BASE)
212 #define mmETF_ITATBCTR1_OFFSET \
213 (mmDCORE0_TPC0_EML_ETF_ITATBCTR1 - \
214 mmDCORE0_TPC0_EML_ETF_BASE)
216 #define mmETF_ITATBCTR0_OFFSET \
217 (mmDCORE0_TPC0_EML_ETF_ITATBCTR0 - \
218 mmDCORE0_TPC0_EML_ETF_BASE)
220 #define mmETF_ITCTRL_OFFSET \
221 (mmDCORE0_TPC0_EML_ETF_ITCTRL - \
222 mmDCORE0_TPC0_EML_ETF_BASE)
224 #define mmETF_CLAIMSET_OFFSET \
225 (mmDCORE0_TPC0_EML_ETF_CLAIMSET - \
226 mmDCORE0_TPC0_EML_ETF_BASE)
228 #define mmETF_CLAIMCLR_OFFSET \
229 (mmDCORE0_TPC0_EML_ETF_CLAIMCLR - \
230 mmDCORE0_TPC0_EML_ETF_BASE)
232 #define mmETF_LAR_OFFSET \
233 (mmDCORE0_TPC0_EML_ETF_LAR - \
234 mmDCORE0_TPC0_EML_ETF_BASE)
236 #define mmETF_LSR_OFFSET \
237 (mmDCORE0_TPC0_EML_ETF_LSR - \
238 mmDCORE0_TPC0_EML_ETF_BASE)
240 #define mmETF_AUTHSTATUS_OFFSET \
241 (mmDCORE0_TPC0_EML_ETF_AUTHSTATUS - \
242 mmDCORE0_TPC0_EML_ETF_BASE)
244 #define mmETF_DEVID_OFFSET \
245 (mmDCORE0_TPC0_EML_ETF_DEVID - \
246 mmDCORE0_TPC0_EML_ETF_BASE)
248 #define mmETF_DEVTYPE_OFFSET \
249 (mmDCORE0_TPC0_EML_ETF_DEVTYPE - \
250 mmDCORE0_TPC0_EML_ETF_BASE)
252 #define mmETF_PERIPHID4_OFFSET \
253 (mmDCORE0_TPC0_EML_ETF_PERIPHID4 - \
254 mmDCORE0_TPC0_EML_ETF_BASE)
256 #define mmETF_PERIPHID5_OFFSET \
257 (mmDCORE0_TPC0_EML_ETF_PERIPHID5 - \
258 mmDCORE0_TPC0_EML_ETF_BASE)
260 #define mmETF_PERIPHID6_OFFSET \
261 (mmDCORE0_TPC0_EML_ETF_PERIPHID6 - \
262 mmDCORE0_TPC0_EML_ETF_BASE)
264 #define mmETF_PERIPHID7_OFFSET \
265 (mmDCORE0_TPC0_EML_ETF_PERIPHID7 - \
266 mmDCORE0_TPC0_EML_ETF_BASE)
268 #define mmETF_PERIPHID0_OFFSET \
269 (mmDCORE0_TPC0_EML_ETF_PERIPHID0 - \
270 mmDCORE0_TPC0_EML_ETF_BASE)
272 #define mmETF_PERIPHID1_OFFSET \
273 (mmDCORE0_TPC0_EML_ETF_PERIPHID1 - \
274 mmDCORE0_TPC0_EML_ETF_BASE)
276 #define mmETF_PERIPHID2_OFFSET \
277 (mmDCORE0_TPC0_EML_ETF_PERIPHID2 - \
278 mmDCORE0_TPC0_EML_ETF_BASE)
280 #define mmETF_PERIPHID3_OFFSET \
281 (mmDCORE0_TPC0_EML_ETF_PERIPHID3 - \
282 mmDCORE0_TPC0_EML_ETF_BASE)
284 #define mmETF_COMPID0_OFFSET \
285 (mmDCORE0_TPC0_EML_ETF_COMPID0 - \
286 mmDCORE0_TPC0_EML_ETF_BASE)
288 #define mmETF_COMPID1_OFFSET \
289 (mmDCORE0_TPC0_EML_ETF_COMPID1 - \
290 mmDCORE0_TPC0_EML_ETF_BASE)
292 #define mmETF_COMPID2_OFFSET \
293 (mmDCORE0_TPC0_EML_ETF_COMPID2 - \
294 mmDCORE0_TPC0_EML_ETF_BASE)
296 #define mmETF_COMPID3_OFFSET \
297 (mmDCORE0_TPC0_EML_ETF_COMPID3 - \
298 mmDCORE0_TPC0_EML_ETF_BASE)
301 /* STM OFFSETS - same offsets for all stms */
302 #define mmSTM_STMDMASTARTR_OFFSET \
303 (mmDCORE0_TPC0_EML_STM_STMDMASTARTR - \
304 mmDCORE0_TPC0_EML_STM_BASE)
306 #define mmSTM_STMDMASTOPR_OFFSET \
307 (mmDCORE0_TPC0_EML_STM_STMDMASTOPR - \
308 mmDCORE0_TPC0_EML_STM_BASE)
310 #define mmSTM_STMDMASTATR_OFFSET \
311 (mmDCORE0_TPC0_EML_STM_STMDMASTATR - \
312 mmDCORE0_TPC0_EML_STM_BASE)
314 #define mmSTM_STMDMACTLR_OFFSET \
315 (mmDCORE0_TPC0_EML_STM_STMDMACTLR - \
316 mmDCORE0_TPC0_EML_STM_BASE)
318 #define mmSTM_STMDMAIDR_OFFSET \
319 (mmDCORE0_TPC0_EML_STM_STMDMAIDR - \
320 mmDCORE0_TPC0_EML_STM_BASE)
322 #define mmSTM_STMHEER_OFFSET \
323 (mmDCORE0_TPC0_EML_STM_STMHEER - \
324 mmDCORE0_TPC0_EML_STM_BASE)
326 #define mmSTM_STMHETER_OFFSET \
327 (mmDCORE0_TPC0_EML_STM_STMHETER - \
328 mmDCORE0_TPC0_EML_STM_BASE)
330 #define mmSTM_STMHEBSR_OFFSET \
331 (mmDCORE0_TPC0_EML_STM_STMHEBSR - \
332 mmDCORE0_TPC0_EML_STM_BASE)
334 #define mmSTM_STMHEMCR_OFFSET \
335 (mmDCORE0_TPC0_EML_STM_STMHEMCR - \
336 mmDCORE0_TPC0_EML_STM_BASE)
338 #define mmSTM_STMHEEXTMUXR_OFFSET \
339 (mmDCORE0_TPC0_EML_STM_STMHEEXTMUXR - \
340 mmDCORE0_TPC0_EML_STM_BASE)
342 #define mmSTM_STMHEMASTR_OFFSET \
343 (mmDCORE0_TPC0_EML_STM_STMHEMASTR - \
344 mmDCORE0_TPC0_EML_STM_BASE)
346 #define mmSTM_STMHEFEAT1R_OFFSET \
347 (mmDCORE0_TPC0_EML_STM_STMHEFEAT1R - \
348 mmDCORE0_TPC0_EML_STM_BASE)
350 #define mmSTM_STMHEIDR_OFFSET \
351 (mmDCORE0_TPC0_EML_STM_STMHEIDR - \
352 mmDCORE0_TPC0_EML_STM_BASE)
354 #define mmSTM_STMSPER_OFFSET \
355 (mmDCORE0_TPC0_EML_STM_STMSPER - \
356 mmDCORE0_TPC0_EML_STM_BASE)
358 #define mmSTM_STMSPTER_OFFSET \
359 (mmDCORE0_TPC0_EML_STM_STMSPTER - \
360 mmDCORE0_TPC0_EML_STM_BASE)
362 #define mmSTM_STMSPSCR_OFFSET \
363 (mmDCORE0_TPC0_EML_STM_STMSPSCR - \
364 mmDCORE0_TPC0_EML_STM_BASE)
366 #define mmSTM_STMSPMSCR_OFFSET \
367 (mmDCORE0_TPC0_EML_STM_STMSPMSCR - \
368 mmDCORE0_TPC0_EML_STM_BASE)
370 #define mmSTM_STMSPOVERRIDER_OFFSET \
371 (mmDCORE0_TPC0_EML_STM_STMSPOVERRIDER - \
372 mmDCORE0_TPC0_EML_STM_BASE)
374 #define mmSTM_STMSPMOVERRIDER_OFFSET \
375 (mmDCORE0_TPC0_EML_STM_STMSPMOVERRIDER - \
376 mmDCORE0_TPC0_EML_STM_BASE)
378 #define mmSTM_STMSPTRIGCSR_OFFSET \
379 (mmDCORE0_TPC0_EML_STM_STMSPTRIGCSR - \
380 mmDCORE0_TPC0_EML_STM_BASE)
382 #define mmSTM_STMTCSR_OFFSET \
383 (mmDCORE0_TPC0_EML_STM_STMTCSR - \
384 mmDCORE0_TPC0_EML_STM_BASE)
386 #define mmSTM_STMTSSTIMR_OFFSET \
387 (mmDCORE0_TPC0_EML_STM_STMTSSTIMR - \
388 mmDCORE0_TPC0_EML_STM_BASE)
390 #define mmSTM_STMTSFREQR_OFFSET \
391 (mmDCORE0_TPC0_EML_STM_STMTSFREQR - \
392 mmDCORE0_TPC0_EML_STM_BASE)
394 #define mmSTM_STMSYNCR_OFFSET \
395 (mmDCORE0_TPC0_EML_STM_STMSYNCR - \
396 mmDCORE0_TPC0_EML_STM_BASE)
398 #define mmSTM_STMAUXCR_OFFSET \
399 (mmDCORE0_TPC0_EML_STM_STMAUXCR - \
400 mmDCORE0_TPC0_EML_STM_BASE)
402 #define mmSTM_STMFEAT1R_OFFSET \
403 (mmDCORE0_TPC0_EML_STM_STMFEAT1R - \
404 mmDCORE0_TPC0_EML_STM_BASE)
406 #define mmSTM_STMFEAT2R_OFFSET \
407 (mmDCORE0_TPC0_EML_STM_STMFEAT2R - \
408 mmDCORE0_TPC0_EML_STM_BASE)
410 #define mmSTM_STMFEAT3R_OFFSET \
411 (mmDCORE0_TPC0_EML_STM_STMFEAT3R - \
412 mmDCORE0_TPC0_EML_STM_BASE)
414 #define mmSTM_STMITTRIGGER_OFFSET \
415 (mmDCORE0_TPC0_EML_STM_STMITTRIGGER - \
416 mmDCORE0_TPC0_EML_STM_BASE)
418 #define mmSTM_STMITATBDATA0_OFFSET \
419 (mmDCORE0_TPC0_EML_STM_STMITATBDATA0 - \
420 mmDCORE0_TPC0_EML_STM_BASE)
422 #define mmSTM_STMITATBCTR2_OFFSET \
423 (mmDCORE0_TPC0_EML_STM_STMITATBCTR2 - \
424 mmDCORE0_TPC0_EML_STM_BASE)
426 #define mmSTM_STMITATBID_OFFSET \
427 (mmDCORE0_TPC0_EML_STM_STMITATBID - \
428 mmDCORE0_TPC0_EML_STM_BASE)
430 #define mmSTM_STMITATBCTR0_OFFSET \
431 (mmDCORE0_TPC0_EML_STM_STMITATBCTR0 - \
432 mmDCORE0_TPC0_EML_STM_BASE)
434 #define mmSTM_STMITCTRL_OFFSET \
435 (mmDCORE0_TPC0_EML_STM_STMITCTRL - \
436 mmDCORE0_TPC0_EML_STM_BASE)
438 #define mmSTM_STMCLAIMSET_OFFSET \
439 (mmDCORE0_TPC0_EML_STM_STMCLAIMSET - \
440 mmDCORE0_TPC0_EML_STM_BASE)
442 #define mmSTM_STMCLAIMCLR_OFFSET \
443 (mmDCORE0_TPC0_EML_STM_STMCLAIMCLR - \
444 mmDCORE0_TPC0_EML_STM_BASE)
446 #define mmSTM_STMLAR_OFFSET \
447 (mmDCORE0_TPC0_EML_STM_STMLAR - \
448 mmDCORE0_TPC0_EML_STM_BASE)
450 #define mmSTM_STMLSR_OFFSET \
451 (mmDCORE0_TPC0_EML_STM_STMLSR - \
452 mmDCORE0_TPC0_EML_STM_BASE)
454 #define mmSTM_STMAUTHSTATUS_OFFSET \
455 (mmDCORE0_TPC0_EML_STM_STMAUTHSTATUS - \
456 mmDCORE0_TPC0_EML_STM_BASE)
458 #define mmSTM_STMDEVARCH_OFFSET \
459 (mmDCORE0_TPC0_EML_STM_STMDEVARCH - \
460 mmDCORE0_TPC0_EML_STM_BASE)
462 #define mmSTM_STMDEVID_OFFSET \
463 (mmDCORE0_TPC0_EML_STM_STMDEVID - \
464 mmDCORE0_TPC0_EML_STM_BASE)
466 #define mmSTM_STMDEVTYPE_OFFSET \
467 (mmDCORE0_TPC0_EML_STM_STMDEVTYPE - \
468 mmDCORE0_TPC0_EML_STM_BASE)
470 #define mmSTM_STMPIDR4_OFFSET \
471 (mmDCORE0_TPC0_EML_STM_STMPIDR4 - \
472 mmDCORE0_TPC0_EML_STM_BASE)
474 #define mmSTM_STMPIDR5_OFFSET \
475 (mmDCORE0_TPC0_EML_STM_STMPIDR5 - \
476 mmDCORE0_TPC0_EML_STM_BASE)
478 #define mmSTM_STMPIDR6_OFFSET \
479 (mmDCORE0_TPC0_EML_STM_STMPIDR6 - \
480 mmDCORE0_TPC0_EML_STM_BASE)
482 #define mmSTM_STMPIDR7_OFFSET \
483 (mmDCORE0_TPC0_EML_STM_STMPIDR7 - \
484 mmDCORE0_TPC0_EML_STM_BASE)
486 #define mmSTM_STMPIDR0_OFFSET \
487 (mmDCORE0_TPC0_EML_STM_STMPIDR0 - \
488 mmDCORE0_TPC0_EML_STM_BASE)
490 #define mmSTM_STMPIDR1_OFFSET \
491 (mmDCORE0_TPC0_EML_STM_STMPIDR1 - \
492 mmDCORE0_TPC0_EML_STM_BASE)
494 #define mmSTM_STMPIDR2_OFFSET \
495 (mmDCORE0_TPC0_EML_STM_STMPIDR2 - \
496 mmDCORE0_TPC0_EML_STM_BASE)
498 #define mmSTM_STMPIDR3_OFFSET \
499 (mmDCORE0_TPC0_EML_STM_STMPIDR3 - \
500 mmDCORE0_TPC0_EML_STM_BASE)
502 #define mmSTM_STMCIDR0_OFFSET \
503 (mmDCORE0_TPC0_EML_STM_STMCIDR0 - \
504 mmDCORE0_TPC0_EML_STM_BASE)
506 #define mmSTM_STMCIDR1_OFFSET \
507 (mmDCORE0_TPC0_EML_STM_STMCIDR1 - \
508 mmDCORE0_TPC0_EML_STM_BASE)
510 #define mmSTM_STMCIDR2_OFFSET \
511 (mmDCORE0_TPC0_EML_STM_STMCIDR2 - \
512 mmDCORE0_TPC0_EML_STM_BASE)
514 #define mmSTM_STMCIDR3_OFFSET \
515 (mmDCORE0_TPC0_EML_STM_STMCIDR3 - \
516 mmDCORE0_TPC0_EML_STM_BASE)
519 /* SPMU OFFSETS - same offsets for all SPMUs */
520 #define mmSPMU_PMEVCNTR0_EL0_OFFSET \
521 (mmDCORE0_TPC0_EML_SPMU_PMEVCNTR0_EL0 - \
522 mmDCORE0_TPC0_EML_SPMU_BASE)
524 #define mmSPMU_PMEVCNTR1_EL0_OFFSET \
525 (mmDCORE0_TPC0_EML_SPMU_PMEVCNTR1_EL0 - \
526 mmDCORE0_TPC0_EML_SPMU_BASE)
528 #define mmSPMU_PMEVCNTR2_EL0_OFFSET \
529 (mmDCORE0_TPC0_EML_SPMU_PMEVCNTR2_EL0 - \
530 mmDCORE0_TPC0_EML_SPMU_BASE)
532 #define mmSPMU_PMEVCNTR3_EL0_OFFSET \
533 (mmDCORE0_TPC0_EML_SPMU_PMEVCNTR3_EL0 - \
534 mmDCORE0_TPC0_EML_SPMU_BASE)
536 #define mmSPMU_PMEVCNTR4_EL0_OFFSET \
537 (mmDCORE0_TPC0_EML_SPMU_PMEVCNTR4_EL0 - \
538 mmDCORE0_TPC0_EML_SPMU_BASE)
540 #define mmSPMU_PMEVCNTR5_EL0_OFFSET \
541 (mmDCORE0_TPC0_EML_SPMU_PMEVCNTR5_EL0 - \
542 mmDCORE0_TPC0_EML_SPMU_BASE)
544 #define mmSPMU_PMCCNTR_L_EL0_OFFSET \
545 (mmDCORE0_TPC0_EML_SPMU_PMCCNTR_L_EL0 - \
546 mmDCORE0_TPC0_EML_SPMU_BASE)
548 #define mmSPMU_PMCCNTR_H_EL0_OFFSET \
549 (mmDCORE0_TPC0_EML_SPMU_PMCCNTR_H_EL0 - \
550 mmDCORE0_TPC0_EML_SPMU_BASE)
552 #define mmSPMU_PMTRC_OFFSET \
553 (mmDCORE0_TPC0_EML_SPMU_PMTRC - \
554 mmDCORE0_TPC0_EML_SPMU_BASE)
556 #define mmSPMU_TRC_CTRL_HOST_OFFSET \
557 (mmDCORE0_TPC0_EML_SPMU_TRC_CTRL_HOST - \
558 mmDCORE0_TPC0_EML_SPMU_BASE)
560 #define mmSPMU_TRC_STAT_HOST_OFFSET \
561 (mmDCORE0_TPC0_EML_SPMU_TRC_STAT_HOST - \
562 mmDCORE0_TPC0_EML_SPMU_BASE)
564 #define mmSPMU_TRC_EN_HOST_OFFSET \
565 (mmDCORE0_TPC0_EML_SPMU_TRC_EN_HOST - \
566 mmDCORE0_TPC0_EML_SPMU_BASE)
568 #define mmSPMU_PMEVTYPER0_EL0_OFFSET \
569 (mmDCORE0_TPC0_EML_SPMU_PMEVTYPER0_EL0 - \
570 mmDCORE0_TPC0_EML_SPMU_BASE)
572 #define mmSPMU_PMEVTYPER1_EL0_OFFSET \
573 (mmDCORE0_TPC0_EML_SPMU_PMEVTYPER1_EL0 - \
574 mmDCORE0_TPC0_EML_SPMU_BASE)
576 #define mmSPMU_PMEVTYPER2_EL0_OFFSET \
577 (mmDCORE0_TPC0_EML_SPMU_PMEVTYPER2_EL0 - \
578 mmDCORE0_TPC0_EML_SPMU_BASE)
580 #define mmSPMU_PMEVTYPER3_EL0_OFFSET \
581 (mmDCORE0_TPC0_EML_SPMU_PMEVTYPER3_EL0 - \
582 mmDCORE0_TPC0_EML_SPMU_BASE)
584 #define mmSPMU_PMEVTYPER4_EL0_OFFSET \
585 (mmDCORE0_TPC0_EML_SPMU_PMEVTYPER4_EL0 - \
586 mmDCORE0_TPC0_EML_SPMU_BASE)
588 #define mmSPMU_PMEVTYPER5_EL0_OFFSET \
589 (mmDCORE0_TPC0_EML_SPMU_PMEVTYPER5_EL0 - \
590 mmDCORE0_TPC0_EML_SPMU_BASE)
592 #define mmSPMU_PMSSR_OFFSET \
593 (mmDCORE0_TPC0_EML_SPMU_PMSSR - \
594 mmDCORE0_TPC0_EML_SPMU_BASE)
596 #define mmSPMU_PMOVSSR_OFFSET \
597 (mmDCORE0_TPC0_EML_SPMU_PMOVSSR - \
598 mmDCORE0_TPC0_EML_SPMU_BASE)
600 #define mmSPMU_PMCCNTSR_L_OFFSET \
601 (mmDCORE0_TPC0_EML_SPMU_PMCCNTSR_L - \
602 mmDCORE0_TPC0_EML_SPMU_BASE)
604 #define mmSPMU_PMCCNTSR_H_OFFSET \
605 (mmDCORE0_TPC0_EML_SPMU_PMCCNTSR_H - \
606 mmDCORE0_TPC0_EML_SPMU_BASE)
608 #define mmSPMU_PMEVCNTSR0_OFFSET \
609 (mmDCORE0_TPC0_EML_SPMU_PMEVCNTSR0 - \
610 mmDCORE0_TPC0_EML_SPMU_BASE)
612 #define mmSPMU_PMEVCNTSR1_OFFSET \
613 (mmDCORE0_TPC0_EML_SPMU_PMEVCNTSR1 - \
614 mmDCORE0_TPC0_EML_SPMU_BASE)
616 #define mmSPMU_PMEVCNTSR2_OFFSET \
617 (mmDCORE0_TPC0_EML_SPMU_PMEVCNTSR2 - \
618 mmDCORE0_TPC0_EML_SPMU_BASE)
620 #define mmSPMU_PMEVCNTSR3_OFFSET \
621 (mmDCORE0_TPC0_EML_SPMU_PMEVCNTSR3 - \
622 mmDCORE0_TPC0_EML_SPMU_BASE)
624 #define mmSPMU_PMEVCNTSR4_OFFSET \
625 (mmDCORE0_TPC0_EML_SPMU_PMEVCNTSR4 - \
626 mmDCORE0_TPC0_EML_SPMU_BASE)
628 #define mmSPMU_PMEVCNTSR5_OFFSET \
629 (mmDCORE0_TPC0_EML_SPMU_PMEVCNTSR5 - \
630 mmDCORE0_TPC0_EML_SPMU_BASE)
632 #define mmSPMU_PMSCR_OFFSET \
633 (mmDCORE0_TPC0_EML_SPMU_PMSCR - \
634 mmDCORE0_TPC0_EML_SPMU_BASE)
636 #define mmSPMU_PMSRR_OFFSET \
637 (mmDCORE0_TPC0_EML_SPMU_PMSRR - \
638 mmDCORE0_TPC0_EML_SPMU_BASE)
640 #define mmSPMU_PMCNTENSET_EL0_OFFSET \
641 (mmDCORE0_TPC0_EML_SPMU_PMCNTENSET_EL0 - \
642 mmDCORE0_TPC0_EML_SPMU_BASE)
644 #define mmSPMU_PMCNTENCLR_EL0_OFFSET \
645 (mmDCORE0_TPC0_EML_SPMU_PMCNTENCLR_EL0 - \
646 mmDCORE0_TPC0_EML_SPMU_BASE)
648 #define mmSPMU_PMINTENSET_EL1_OFFSET \
649 (mmDCORE0_TPC0_EML_SPMU_PMINTENSET_EL1 - \
650 mmDCORE0_TPC0_EML_SPMU_BASE)
652 #define mmSPMU_PMINTENCLR_EL1_OFFSET \
653 (mmDCORE0_TPC0_EML_SPMU_PMINTENCLR_EL1 - \
654 mmDCORE0_TPC0_EML_SPMU_BASE)
656 #define mmSPMU_PMOVSCLR_EL0_OFFSET \
657 (mmDCORE0_TPC0_EML_SPMU_PMOVSCLR_EL0 - \
658 mmDCORE0_TPC0_EML_SPMU_BASE)
660 #define mmSPMU_PMSWINC_EL0_OFFSET \
661 (mmDCORE0_TPC0_EML_SPMU_PMSWINC_EL0 - \
662 mmDCORE0_TPC0_EML_SPMU_BASE)
664 #define mmSPMU_PMOVSSET_EL0_OFFSET \
665 (mmDCORE0_TPC0_EML_SPMU_PMOVSSET_EL0 - \
666 mmDCORE0_TPC0_EML_SPMU_BASE)
668 #define mmSPMU_PMCFGR_OFFSET \
669 (mmDCORE0_TPC0_EML_SPMU_PMCFGR - \
670 mmDCORE0_TPC0_EML_SPMU_BASE)
672 #define mmSPMU_PMCR_EL0_OFFSET \
673 (mmDCORE0_TPC0_EML_SPMU_PMCR_EL0 - \
674 mmDCORE0_TPC0_EML_SPMU_BASE)
676 #define mmSPMU_PMITCTRL_OFFSET \
677 (mmDCORE0_TPC0_EML_SPMU_PMITCTRL - \
678 mmDCORE0_TPC0_EML_SPMU_BASE)
680 #define mmSPMU_PMCLAIMSET_OFFSET \
681 (mmDCORE0_TPC0_EML_SPMU_PMCLAIMSET - \
682 mmDCORE0_TPC0_EML_SPMU_BASE)
684 #define mmSPMU_PMCLAIMCLR_OFFSET \
685 (mmDCORE0_TPC0_EML_SPMU_PMCLAIMCLR - \
686 mmDCORE0_TPC0_EML_SPMU_BASE)
688 #define mmSPMU_PMDEVAFF0_OFFSET \
689 (mmDCORE0_TPC0_EML_SPMU_PMDEVAFF0 - \
690 mmDCORE0_TPC0_EML_SPMU_BASE)
692 #define mmSPMU_PMDEVAFF1_OFFSET \
693 (mmDCORE0_TPC0_EML_SPMU_PMDEVAFF1 - \
694 mmDCORE0_TPC0_EML_SPMU_BASE)
696 #define mmSPMU_PMLAR_OFFSET \
697 (mmDCORE0_TPC0_EML_SPMU_PMLAR - \
698 mmDCORE0_TPC0_EML_SPMU_BASE)
700 #define mmSPMU_PMLSR_OFFSET \
701 (mmDCORE0_TPC0_EML_SPMU_PMLSR - \
702 mmDCORE0_TPC0_EML_SPMU_BASE)
704 #define mmSPMU_PMAUTHSTATUS_OFFSET \
705 (mmDCORE0_TPC0_EML_SPMU_PMAUTHSTATUS - \
706 mmDCORE0_TPC0_EML_SPMU_BASE)
708 #define mmSPMU_PMDEVARCH_OFFSET \
709 (mmDCORE0_TPC0_EML_SPMU_PMDEVARCH - \
710 mmDCORE0_TPC0_EML_SPMU_BASE)
712 #define mmSPMU_PMDEVID2_OFFSET \
713 (mmDCORE0_TPC0_EML_SPMU_PMDEVID2 - \
714 mmDCORE0_TPC0_EML_SPMU_BASE)
716 #define mmSPMU_PMDEVID1_OFFSET \
717 (mmDCORE0_TPC0_EML_SPMU_PMDEVID1 - \
718 mmDCORE0_TPC0_EML_SPMU_BASE)
720 #define mmSPMU_PMDEVID_OFFSET \
721 (mmDCORE0_TPC0_EML_SPMU_PMDEVID - \
722 mmDCORE0_TPC0_EML_SPMU_BASE)
724 #define mmSPMU_PMDEVTYPE_OFFSET \
725 (mmDCORE0_TPC0_EML_SPMU_PMDEVTYPE - \
726 mmDCORE0_TPC0_EML_SPMU_BASE)
728 #define mmSPMU_PMPIDR4_OFFSET \
729 (mmDCORE0_TPC0_EML_SPMU_PMPIDR4 - \
730 mmDCORE0_TPC0_EML_SPMU_BASE)
732 #define mmSPMU_PMPIDR5_OFFSET \
733 (mmDCORE0_TPC0_EML_SPMU_PMPIDR5 - \
734 mmDCORE0_TPC0_EML_SPMU_BASE)
736 #define mmSPMU_PMPIDR6_OFFSET \
737 (mmDCORE0_TPC0_EML_SPMU_PMPIDR6 - \
738 mmDCORE0_TPC0_EML_SPMU_BASE)
740 #define mmSPMU_PMPIDR7_OFFSET \
741 (mmDCORE0_TPC0_EML_SPMU_PMPIDR7 - \
742 mmDCORE0_TPC0_EML_SPMU_BASE)
744 #define mmSPMU_PMPIDR0_OFFSET \
745 (mmDCORE0_TPC0_EML_SPMU_PMPIDR0 - \
746 mmDCORE0_TPC0_EML_SPMU_BASE)
748 #define mmSPMU_PMPIDR1_OFFSET \
749 (mmDCORE0_TPC0_EML_SPMU_PMPIDR1 - \
750 mmDCORE0_TPC0_EML_SPMU_BASE)
752 #define mmSPMU_PMPIDR2_OFFSET \
753 (mmDCORE0_TPC0_EML_SPMU_PMPIDR2 - \
754 mmDCORE0_TPC0_EML_SPMU_BASE)
756 #define mmSPMU_PMPIDR3_OFFSET \
757 (mmDCORE0_TPC0_EML_SPMU_PMPIDR3 - \
758 mmDCORE0_TPC0_EML_SPMU_BASE)
760 #define mmSPMU_PMCIDR0_OFFSET \
761 (mmDCORE0_TPC0_EML_SPMU_PMCIDR0 - \
762 mmDCORE0_TPC0_EML_SPMU_BASE)
764 #define mmSPMU_PMCIDR1_OFFSET \
765 (mmDCORE0_TPC0_EML_SPMU_PMCIDR1 - \
766 mmDCORE0_TPC0_EML_SPMU_BASE)
768 #define mmSPMU_PMCIDR2_OFFSET \
769 (mmDCORE0_TPC0_EML_SPMU_PMCIDR2 - \
770 mmDCORE0_TPC0_EML_SPMU_BASE)
772 #define mmSPMU_PMCIDR3_OFFSET \
773 (mmDCORE0_TPC0_EML_SPMU_PMCIDR3 - \
774 mmDCORE0_TPC0_EML_SPMU_BASE)
777 /* BMON OFFSETS - same offsets for all BMONs*/
778 #define mmBMON_CR_OFFSET \
779 (mmDCORE0_TPC0_EML_BUSMON_0_CR - \
780 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
782 #define mmBMON_RESET_OFFSET \
783 (mmDCORE0_TPC0_EML_BUSMON_0_REG_RESET - \
784 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
786 #define mmBMON_INT_CLR_OFFSET \
787 (mmDCORE0_TPC0_EML_BUSMON_0_INT_CLR - \
788 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
790 #define mmBMON_TRIG_TH_OFFSET \
791 (mmDCORE0_TPC0_EML_BUSMON_0_TRIG_TH - \
792 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
794 #define mmBMON_ADDRL_S0_OFFSET \
795 (mmDCORE0_TPC0_EML_BUSMON_0_ADDRL_S0 - \
796 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
798 #define mmBMON_ADDRH_S0_OFFSET \
799 (mmDCORE0_TPC0_EML_BUSMON_0_ADDRH_S0 - \
800 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
802 #define mmBMON_ADDRL_E0_OFFSET \
803 (mmDCORE0_TPC0_EML_BUSMON_0_ADDRL_E0 - \
804 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
806 #define mmBMON_ADDRH_E0_OFFSET \
807 (mmDCORE0_TPC0_EML_BUSMON_0_ADDRH_E0 - \
808 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
810 #define mmBMON_ADDRL_S1_OFFSET \
811 (mmDCORE0_TPC0_EML_BUSMON_0_ADDRL_S1 - \
812 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
814 #define mmBMON_ADDRH_S1_OFFSET \
815 (mmDCORE0_TPC0_EML_BUSMON_0_ADDRH_S1 - \
816 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
818 #define mmBMON_ADDRL_E1_OFFSET \
819 (mmDCORE0_TPC0_EML_BUSMON_0_ADDRL_E1 - \
820 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
822 #define mmBMON_ADDRH_E1_OFFSET \
823 (mmDCORE0_TPC0_EML_BUSMON_0_ADDRH_E1 - \
824 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
826 #define mmBMON_ADDRL_S2_OFFSET \
827 (mmDCORE0_TPC0_EML_BUSMON_0_ADDRL_S2 - \
828 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
830 #define mmBMON_ADDRH_S2_OFFSET \
831 (mmDCORE0_TPC0_EML_BUSMON_0_ADDRH_S2 - \
832 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
834 #define mmBMON_ADDRL_E2_OFFSET \
835 (mmDCORE0_TPC0_EML_BUSMON_0_ADDRL_E2 - \
836 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
838 #define mmBMON_ADDRH_E2_OFFSET \
839 (mmDCORE0_TPC0_EML_BUSMON_0_ADDRH_E2 - \
840 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
842 #define mmBMON_ADDRL_S3_OFFSET \
843 (mmDCORE0_TPC0_EML_BUSMON_0_ADDRL_S3 - \
844 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
846 #define mmBMON_ADDRH_S3_OFFSET \
847 (mmDCORE0_TPC0_EML_BUSMON_0_ADDRH_S3 - \
848 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
850 #define mmBMON_ADDRL_E3_OFFSET \
851 (mmDCORE0_TPC0_EML_BUSMON_0_ADDRL_E3 - \
852 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
854 #define mmBMON_ADDRH_E3_OFFSET \
855 (mmDCORE0_TPC0_EML_BUSMON_0_ADDRH_E3 - \
856 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
858 #define mmBMON_REDUCTION_OFFSET \
859 (mmDCORE0_TPC0_EML_BUSMON_0_REDUCTION - \
860 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
862 #define mmBMON_IDL_OFFSET \
863 (mmDCORE0_TPC0_EML_BUSMON_0_IDL - \
864 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
866 #define mmBMON_IDH_OFFSET \
867 (mmDCORE0_TPC0_EML_BUSMON_0_IDH - \
868 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
870 #define mmBMON_IDENL_OFFSET \
871 (mmDCORE0_TPC0_EML_BUSMON_0_IDENL - \
872 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
874 #define mmBMON_IDENH_OFFSET \
875 (mmDCORE0_TPC0_EML_BUSMON_0_IDENH - \
876 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
878 #define mmBMON_LATENCY_SMP_OFFSET \
879 (mmDCORE0_TPC0_EML_BUSMON_0_LATENCY_SMP - \
880 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
882 #define mmBMON_ATTR_OFFSET \
883 (mmDCORE0_TPC0_EML_BUSMON_0_ATTR - \
884 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
886 #define mmBMON_ATTREN_OFFSET \
887 (mmDCORE0_TPC0_EML_BUSMON_0_ATTREN - \
888 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
890 #define mmBMON_USRENL_OFFSET \
891 (mmDCORE0_TPC0_EML_BUSMON_0_USRENL - \
892 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
894 #define mmBMON_USRL_OFFSET \
895 (mmDCORE0_TPC0_EML_BUSMON_0_USRL - \
896 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
898 #define mmBMON_USRENH_OFFSET \
899 (mmDCORE0_TPC0_EML_BUSMON_0_USRENH - \
900 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
902 #define mmBMON_USRH_OFFSET \
903 (mmDCORE0_TPC0_EML_BUSMON_0_USRH - \
904 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
906 #define mmBMON_CAPTURE_OFFSET \
907 (mmDCORE0_TPC0_EML_BUSMON_0_CAPTURE - \
908 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
910 #define mmBMON_RELEASE_OFFSET \
911 (mmDCORE0_TPC0_EML_BUSMON_0_RELEASE - \
912 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
914 #define mmBMON_WIN_CAPTURE_OFFSET \
915 (mmDCORE0_TPC0_EML_BUSMON_0_WIN_CAPTURE - \
916 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
918 #define mmBMON_BW_WIN_OFFSET \
919 (mmDCORE0_TPC0_EML_BUSMON_0_BW_WIN - \
920 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
922 #define mmBMON_MATCH_CNT_SOD_OFFSET \
923 (mmDCORE0_TPC0_EML_BUSMON_0_MATCH_CNT_SOD - \
924 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
926 #define mmBMON_MATCH_CNT_WIN_OFFSET \
927 (mmDCORE0_TPC0_EML_BUSMON_0_MATCH_CNT_WIN - \
928 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
930 #define mmBMON_CYCCNT_L_OFFSET \
931 (mmDCORE0_TPC0_EML_BUSMON_0_CYCCNT_L - \
932 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
934 #define mmBMON_CYCCNT_H_OFFSET \
935 (mmDCORE0_TPC0_EML_BUSMON_0_CYCCNT_H - \
936 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
938 #define mmBMON_MAXLAT_SOD_OFFSET \
939 (mmDCORE0_TPC0_EML_BUSMON_0_MAXLAT_SOD - \
940 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
942 #define mmBMON_MINLAT_SOD_OFFSET \
943 (mmDCORE0_TPC0_EML_BUSMON_0_MINLAT_SOD - \
944 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
946 #define mmBMON_MAXBW_SOD_OFFSET \
947 (mmDCORE0_TPC0_EML_BUSMON_0_MAXBW_SOD - \
948 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
950 #define mmBMON_MINBW_SOD_OFFSET \
951 (mmDCORE0_TPC0_EML_BUSMON_0_MINBW_SOD - \
952 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
954 #define mmBMON_MAXOS_SOD_OFFSET \
955 (mmDCORE0_TPC0_EML_BUSMON_0_MAXOS_SOD - \
956 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
958 #define mmBMON_MINOS_SOD_OFFSET \
959 (mmDCORE0_TPC0_EML_BUSMON_0_MINOS_SOD - \
960 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
962 #define mmBMON_ADDRL_SNAPSHOT_OFFSET \
963 (mmDCORE0_TPC0_EML_BUSMON_0_ADDRL_SNAPSHOT - \
964 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
966 #define mmBMON_ADDRH_SNAPSHOT_OFFSET \
967 (mmDCORE0_TPC0_EML_BUSMON_0_ADDRH_SNAPSHOT - \
968 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
970 #define mmBMON_IDL_SNAPSHOT_OFFSET \
971 (mmDCORE0_TPC0_EML_BUSMON_0_IDL_SNAPSHOT - \
972 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
974 #define mmBMON_IDH_SNAPSHOT_OFFSET \
975 (mmDCORE0_TPC0_EML_BUSMON_0_IDH_SNAPSHOT - \
976 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
978 #define mmBMON_ATTR_SNAPSHOT_OFFSET \
979 (mmDCORE0_TPC0_EML_BUSMON_0_ATTR_SNAPSHOT - \
980 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
982 #define mmBMON_STM_TRC_OFFSET \
983 (mmDCORE0_TPC0_EML_BUSMON_0_STM_TRC - \
984 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
986 #define mmBMON_STM_TRC_DROP_OFFSET \
987 (mmDCORE0_TPC0_EML_BUSMON_0_STM_TRC_DROP - \
988 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
990 #define mmBMON_DEVARCH_OFFSET \
991 (mmDCORE0_TPC0_EML_BUSMON_0_DEVARCH - \
992 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
994 #define mmBMON_PMDEVID2_OFFSET \
995 (mmDCORE0_TPC0_EML_BUSMON_0_PMDEVID2 - \
996 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
998 #define mmBMON_PMDEVID1_OFFSET \
999 (mmDCORE0_TPC0_EML_BUSMON_0_PMDEVID1 - \
1000 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
1002 #define mmBMON_PMDEVID_OFFSET \
1003 (mmDCORE0_TPC0_EML_BUSMON_0_PMDEVID - \
1004 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
1006 #define mmBMON_DEVTYPE_OFFSET \
1007 (mmDCORE0_TPC0_EML_BUSMON_0_DEVTYPE - \
1008 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
1010 #define mmBMON_PIDR4_OFFSET \
1011 (mmDCORE0_TPC0_EML_BUSMON_0_PIDR4 - \
1012 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
1014 #define mmBMON_PIDR5_OFFSET \
1015 (mmDCORE0_TPC0_EML_BUSMON_0_PIDR5 - \
1016 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
1018 #define mmBMON_PIDR6_OFFSET \
1019 (mmDCORE0_TPC0_EML_BUSMON_0_PIDR6 - \
1020 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
1022 #define mmBMON_PIDR7_OFFSET \
1023 (mmDCORE0_TPC0_EML_BUSMON_0_PIDR7 - \
1024 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
1026 #define mmBMON_PIDR0_OFFSET \
1027 (mmDCORE0_TPC0_EML_BUSMON_0_PIDR0 - \
1028 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
1030 #define mmBMON_PIDR1_OFFSET \
1031 (mmDCORE0_TPC0_EML_BUSMON_0_PIDR1 - \
1032 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
1034 #define mmBMON_PIDR2_OFFSET \
1035 (mmDCORE0_TPC0_EML_BUSMON_0_PIDR2 - \
1036 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
1038 #define mmBMON_PIDR3_OFFSET \
1039 (mmDCORE0_TPC0_EML_BUSMON_0_PIDR3 - \
1040 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
1042 #define mmBMON_CIDR0_OFFSET \
1043 (mmDCORE0_TPC0_EML_BUSMON_0_CIDR0 - \
1044 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
1046 #define mmBMON_CIDR1_OFFSET \
1047 (mmDCORE0_TPC0_EML_BUSMON_0_CIDR1 - \
1048 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
1050 #define mmBMON_CIDR2_OFFSET \
1051 (mmDCORE0_TPC0_EML_BUSMON_0_CIDR2 - \
1052 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
1054 #define mmBMON_CIDR3_OFFSET \
1055 (mmDCORE0_TPC0_EML_BUSMON_0_CIDR3 - \
1056 mmDCORE0_TPC0_EML_BUSMON_0_BASE)
1059 /* Coresight unlock offset */
1060 #define mmCORESIGHT_UNLOCK_REGISTER_OFFSET mmSTM_STMLAR_OFFSET
1061 #define mmCORESIGHT_UNLOCK_STATUS_REGISTER_OFFSET mmSTM_STMLSR_OFFSET
1063 #endif /* GAUDI2_CORESIGHT_REGS_DRV_H_ */