Debian Codegraph @

src/vendorcode/cavium/include/bdk/libbdk-arch/bdk-csrs-dtx.h

raw symbols SCIP
1 #ifndef __BDK_CSRS_DTX_H__
2 #define __BDK_CSRS_DTX_H__
3 /* This file is auto-generated. Do not edit */
4
5 /***********************license start***************
6 * Copyright (c) 2003-2017 Cavium Inc. ([email protected]). All rights
7 * reserved.
8 *
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions are
12 * met:
13 *
14 * * Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
16 *
17 * * Redistributions in binary form must reproduce the above
18 * copyright notice, this list of conditions and the following
19 * disclaimer in the documentation and/or other materials provided
20 * with the distribution.
21
22 * * Neither the name of Cavium Inc. nor the names of
23 * its contributors may be used to endorse or promote products
24 * derived from this software without specific prior written
25 * permission.
26
27 * This Software, including technical data, may be subject to U.S. export control
28 * laws, including the U.S. Export Administration Act and its associated
29 * regulations, and may be subject to export or import regulations in other
30 * countries.
31
32 * TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS"
33 * AND WITH ALL FAULTS AND CAVIUM NETWORKS MAKES NO PROMISES, REPRESENTATIONS OR
34 * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO
35 * THE SOFTWARE, INCLUDING ITS CONDITION, ITS CONFORMITY TO ANY REPRESENTATION OR
36 * DESCRIPTION, OR THE EXISTENCE OF ANY LATENT OR PATENT DEFECTS, AND CAVIUM
37 * SPECIFICALLY DISCLAIMS ALL IMPLIED (IF ANY) WARRANTIES OF TITLE,
38 * MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, LACK OF
39 * VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION OR
40 * CORRESPONDENCE TO DESCRIPTION. THE ENTIRE RISK ARISING OUT OF USE OR
41 * PERFORMANCE OF THE SOFTWARE LIES WITH YOU.
42 ***********************license end**************************************/
43
44
45 /**
46 * @file
47 *
48 * Configuration and status register (CSR) address and type definitions for
49 * Cavium DTX.
50 *
51 * This file is auto generated. Do not edit.
52 *
53 */
54
55 /**
56 * Register (RSL) dtx_bch_bcst_rsp
57 *
58 * DTX BCH Control Register
59 */
60 union bdk_dtx_bch_bcst_rsp
61 {
62 uint64_t u;
63 struct bdk_dtx_bch_bcst_rsp_s
64 {
65 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
66 uint64_t reserved_1_63 : 63;
67 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
68 #else /* Word 0 - Little Endian */
69 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
70 uint64_t reserved_1_63 : 63;
71 #endif /* Word 0 - End */
72 } s;
73 /* struct bdk_dtx_bch_bcst_rsp_s cn; */
74 };
75 typedef union bdk_dtx_bch_bcst_rsp bdk_dtx_bch_bcst_rsp_t;
76
77 #define BDK_DTX_BCH_BCST_RSP BDK_DTX_BCH_BCST_RSP_FUNC()
78 static inline uint64_t BDK_DTX_BCH_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
79 static inline uint64_t BDK_DTX_BCH_BCST_RSP_FUNC(void)
80 {
81 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX))
82 return 0x87e0feb88080ll;
83 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
84 return 0x87e0feb88080ll;
85 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
86 return 0x87e0feb88080ll;
87 __bdk_csr_fatal("DTX_BCH_BCST_RSP", 0, 0, 0, 0, 0);
88 }
89
90 #define typedef_BDK_DTX_BCH_BCST_RSP bdk_dtx_bch_bcst_rsp_t
91 #define bustype_BDK_DTX_BCH_BCST_RSP BDK_CSR_TYPE_RSL
92 #define basename_BDK_DTX_BCH_BCST_RSP "DTX_BCH_BCST_RSP"
93 #define busnum_BDK_DTX_BCH_BCST_RSP 0
94 #define arguments_BDK_DTX_BCH_BCST_RSP -1,-1,-1,-1
95
96 /**
97 * Register (RSL) dtx_bch_ctl
98 *
99 * DTX BCH Control Register
100 */
101 union bdk_dtx_bch_ctl
102 {
103 uint64_t u;
104 struct bdk_dtx_bch_ctl_s
105 {
106 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
107 uint64_t reserved_5_63 : 59;
108 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
109 uint64_t reserved_2_3 : 2;
110 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
111 debug data. Not applicable when software directly reads the DAT(0..1) registers.
112 For diagnostic use only. */
113 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
114 #else /* Word 0 - Little Endian */
115 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
116 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
117 debug data. Not applicable when software directly reads the DAT(0..1) registers.
118 For diagnostic use only. */
119 uint64_t reserved_2_3 : 2;
120 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
121 uint64_t reserved_5_63 : 59;
122 #endif /* Word 0 - End */
123 } s;
124 /* struct bdk_dtx_bch_ctl_s cn; */
125 };
126 typedef union bdk_dtx_bch_ctl bdk_dtx_bch_ctl_t;
127
128 #define BDK_DTX_BCH_CTL BDK_DTX_BCH_CTL_FUNC()
129 static inline uint64_t BDK_DTX_BCH_CTL_FUNC(void) __attribute__ ((pure, always_inline));
130 static inline uint64_t BDK_DTX_BCH_CTL_FUNC(void)
131 {
132 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX))
133 return 0x87e0feb88060ll;
134 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
135 return 0x87e0feb88060ll;
136 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
137 return 0x87e0feb88060ll;
138 __bdk_csr_fatal("DTX_BCH_CTL", 0, 0, 0, 0, 0);
139 }
140
141 #define typedef_BDK_DTX_BCH_CTL bdk_dtx_bch_ctl_t
142 #define bustype_BDK_DTX_BCH_CTL BDK_CSR_TYPE_RSL
143 #define basename_BDK_DTX_BCH_CTL "DTX_BCH_CTL"
144 #define busnum_BDK_DTX_BCH_CTL 0
145 #define arguments_BDK_DTX_BCH_CTL -1,-1,-1,-1
146
147 /**
148 * Register (RSL) dtx_bch_dat#
149 *
150 * DTX BCH Raw Data Register
151 */
152 union bdk_dtx_bch_datx
153 {
154 uint64_t u;
155 struct bdk_dtx_bch_datx_s
156 {
157 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
158 uint64_t reserved_36_63 : 28;
159 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
160 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
161 #else /* Word 0 - Little Endian */
162 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
163 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
164 uint64_t reserved_36_63 : 28;
165 #endif /* Word 0 - End */
166 } s;
167 /* struct bdk_dtx_bch_datx_s cn; */
168 };
169 typedef union bdk_dtx_bch_datx bdk_dtx_bch_datx_t;
170
171 static inline uint64_t BDK_DTX_BCH_DATX(unsigned long a) __attribute__ ((pure, always_inline));
172 static inline uint64_t BDK_DTX_BCH_DATX(unsigned long a)
173 {
174 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
175 return 0x87e0feb88040ll + 8ll * ((a) & 0x1);
176 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
177 return 0x87e0feb88040ll + 8ll * ((a) & 0x1);
178 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
179 return 0x87e0feb88040ll + 8ll * ((a) & 0x1);
180 __bdk_csr_fatal("DTX_BCH_DATX", 1, a, 0, 0, 0);
181 }
182
183 #define typedef_BDK_DTX_BCH_DATX(a) bdk_dtx_bch_datx_t
184 #define bustype_BDK_DTX_BCH_DATX(a) BDK_CSR_TYPE_RSL
185 #define basename_BDK_DTX_BCH_DATX(a) "DTX_BCH_DATX"
186 #define busnum_BDK_DTX_BCH_DATX(a) (a)
187 #define arguments_BDK_DTX_BCH_DATX(a) (a),-1,-1,-1
188
189 /**
190 * Register (RSL) dtx_bch_ena#
191 *
192 * DTX BCH Data Enable Register
193 */
194 union bdk_dtx_bch_enax
195 {
196 uint64_t u;
197 struct bdk_dtx_bch_enax_s
198 {
199 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
200 uint64_t reserved_36_63 : 28;
201 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
202 buses. Normally only one block will drive each bit. */
203 #else /* Word 0 - Little Endian */
204 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
205 buses. Normally only one block will drive each bit. */
206 uint64_t reserved_36_63 : 28;
207 #endif /* Word 0 - End */
208 } s;
209 /* struct bdk_dtx_bch_enax_s cn; */
210 };
211 typedef union bdk_dtx_bch_enax bdk_dtx_bch_enax_t;
212
213 static inline uint64_t BDK_DTX_BCH_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
214 static inline uint64_t BDK_DTX_BCH_ENAX(unsigned long a)
215 {
216 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
217 return 0x87e0feb88020ll + 8ll * ((a) & 0x1);
218 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
219 return 0x87e0feb88020ll + 8ll * ((a) & 0x1);
220 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
221 return 0x87e0feb88020ll + 8ll * ((a) & 0x1);
222 __bdk_csr_fatal("DTX_BCH_ENAX", 1, a, 0, 0, 0);
223 }
224
225 #define typedef_BDK_DTX_BCH_ENAX(a) bdk_dtx_bch_enax_t
226 #define bustype_BDK_DTX_BCH_ENAX(a) BDK_CSR_TYPE_RSL
227 #define basename_BDK_DTX_BCH_ENAX(a) "DTX_BCH_ENAX"
228 #define busnum_BDK_DTX_BCH_ENAX(a) (a)
229 #define arguments_BDK_DTX_BCH_ENAX(a) (a),-1,-1,-1
230
231 /**
232 * Register (RSL) dtx_bch_sel#
233 *
234 * DTX BCH Select Register
235 */
236 union bdk_dtx_bch_selx
237 {
238 uint64_t u;
239 struct bdk_dtx_bch_selx_s
240 {
241 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
242 uint64_t reserved_24_63 : 40;
243 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
244 #else /* Word 0 - Little Endian */
245 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
246 uint64_t reserved_24_63 : 40;
247 #endif /* Word 0 - End */
248 } s;
249 /* struct bdk_dtx_bch_selx_s cn; */
250 };
251 typedef union bdk_dtx_bch_selx bdk_dtx_bch_selx_t;
252
253 static inline uint64_t BDK_DTX_BCH_SELX(unsigned long a) __attribute__ ((pure, always_inline));
254 static inline uint64_t BDK_DTX_BCH_SELX(unsigned long a)
255 {
256 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
257 return 0x87e0feb88000ll + 8ll * ((a) & 0x1);
258 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
259 return 0x87e0feb88000ll + 8ll * ((a) & 0x1);
260 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
261 return 0x87e0feb88000ll + 8ll * ((a) & 0x1);
262 __bdk_csr_fatal("DTX_BCH_SELX", 1, a, 0, 0, 0);
263 }
264
265 #define typedef_BDK_DTX_BCH_SELX(a) bdk_dtx_bch_selx_t
266 #define bustype_BDK_DTX_BCH_SELX(a) BDK_CSR_TYPE_RSL
267 #define basename_BDK_DTX_BCH_SELX(a) "DTX_BCH_SELX"
268 #define busnum_BDK_DTX_BCH_SELX(a) (a)
269 #define arguments_BDK_DTX_BCH_SELX(a) (a),-1,-1,-1
270
271 /**
272 * Register (RSL) dtx_bgx#_bcst_rsp
273 *
274 * DTX BGX Control Register
275 */
276 union bdk_dtx_bgxx_bcst_rsp
277 {
278 uint64_t u;
279 struct bdk_dtx_bgxx_bcst_rsp_s
280 {
281 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
282 uint64_t reserved_1_63 : 63;
283 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
284 #else /* Word 0 - Little Endian */
285 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
286 uint64_t reserved_1_63 : 63;
287 #endif /* Word 0 - End */
288 } s;
289 /* struct bdk_dtx_bgxx_bcst_rsp_s cn; */
290 };
291 typedef union bdk_dtx_bgxx_bcst_rsp bdk_dtx_bgxx_bcst_rsp_t;
292
293 static inline uint64_t BDK_DTX_BGXX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
294 static inline uint64_t BDK_DTX_BGXX_BCST_RSP(unsigned long a)
295 {
296 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
297 return 0x87e0fe700080ll + 0x8000ll * ((a) & 0x1);
298 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=3))
299 return 0x87e0fe700080ll + 0x8000ll * ((a) & 0x3);
300 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
301 return 0x87e0fe700080ll + 0x8000ll * ((a) & 0x1);
302 __bdk_csr_fatal("DTX_BGXX_BCST_RSP", 1, a, 0, 0, 0);
303 }
304
305 #define typedef_BDK_DTX_BGXX_BCST_RSP(a) bdk_dtx_bgxx_bcst_rsp_t
306 #define bustype_BDK_DTX_BGXX_BCST_RSP(a) BDK_CSR_TYPE_RSL
307 #define basename_BDK_DTX_BGXX_BCST_RSP(a) "DTX_BGXX_BCST_RSP"
308 #define busnum_BDK_DTX_BGXX_BCST_RSP(a) (a)
309 #define arguments_BDK_DTX_BGXX_BCST_RSP(a) (a),-1,-1,-1
310
311 /**
312 * Register (RSL) dtx_bgx#_ctl
313 *
314 * DTX BGX Control Register
315 */
316 union bdk_dtx_bgxx_ctl
317 {
318 uint64_t u;
319 struct bdk_dtx_bgxx_ctl_s
320 {
321 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
322 uint64_t reserved_5_63 : 59;
323 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
324 uint64_t reserved_2_3 : 2;
325 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
326 debug data. Not applicable when software directly reads the DAT(0..1) registers.
327 For diagnostic use only. */
328 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
329 #else /* Word 0 - Little Endian */
330 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
331 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
332 debug data. Not applicable when software directly reads the DAT(0..1) registers.
333 For diagnostic use only. */
334 uint64_t reserved_2_3 : 2;
335 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
336 uint64_t reserved_5_63 : 59;
337 #endif /* Word 0 - End */
338 } s;
339 /* struct bdk_dtx_bgxx_ctl_s cn; */
340 };
341 typedef union bdk_dtx_bgxx_ctl bdk_dtx_bgxx_ctl_t;
342
343 static inline uint64_t BDK_DTX_BGXX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
344 static inline uint64_t BDK_DTX_BGXX_CTL(unsigned long a)
345 {
346 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
347 return 0x87e0fe700060ll + 0x8000ll * ((a) & 0x1);
348 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=3))
349 return 0x87e0fe700060ll + 0x8000ll * ((a) & 0x3);
350 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
351 return 0x87e0fe700060ll + 0x8000ll * ((a) & 0x1);
352 __bdk_csr_fatal("DTX_BGXX_CTL", 1, a, 0, 0, 0);
353 }
354
355 #define typedef_BDK_DTX_BGXX_CTL(a) bdk_dtx_bgxx_ctl_t
356 #define bustype_BDK_DTX_BGXX_CTL(a) BDK_CSR_TYPE_RSL
357 #define basename_BDK_DTX_BGXX_CTL(a) "DTX_BGXX_CTL"
358 #define busnum_BDK_DTX_BGXX_CTL(a) (a)
359 #define arguments_BDK_DTX_BGXX_CTL(a) (a),-1,-1,-1
360
361 /**
362 * Register (RSL) dtx_bgx#_dat#
363 *
364 * DTX BGX Raw Data Register
365 */
366 union bdk_dtx_bgxx_datx
367 {
368 uint64_t u;
369 struct bdk_dtx_bgxx_datx_s
370 {
371 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
372 uint64_t reserved_36_63 : 28;
373 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
374 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
375 #else /* Word 0 - Little Endian */
376 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
377 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
378 uint64_t reserved_36_63 : 28;
379 #endif /* Word 0 - End */
380 } s;
381 /* struct bdk_dtx_bgxx_datx_s cn; */
382 };
383 typedef union bdk_dtx_bgxx_datx bdk_dtx_bgxx_datx_t;
384
385 static inline uint64_t BDK_DTX_BGXX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
386 static inline uint64_t BDK_DTX_BGXX_DATX(unsigned long a, unsigned long b)
387 {
388 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a<=1) && (b<=1)))
389 return 0x87e0fe700040ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
390 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=3) && (b<=1)))
391 return 0x87e0fe700040ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
392 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=1) && (b<=1)))
393 return 0x87e0fe700040ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
394 __bdk_csr_fatal("DTX_BGXX_DATX", 2, a, b, 0, 0);
395 }
396
397 #define typedef_BDK_DTX_BGXX_DATX(a,b) bdk_dtx_bgxx_datx_t
398 #define bustype_BDK_DTX_BGXX_DATX(a,b) BDK_CSR_TYPE_RSL
399 #define basename_BDK_DTX_BGXX_DATX(a,b) "DTX_BGXX_DATX"
400 #define busnum_BDK_DTX_BGXX_DATX(a,b) (a)
401 #define arguments_BDK_DTX_BGXX_DATX(a,b) (a),(b),-1,-1
402
403 /**
404 * Register (RSL) dtx_bgx#_ena#
405 *
406 * DTX BGX Data Enable Register
407 */
408 union bdk_dtx_bgxx_enax
409 {
410 uint64_t u;
411 struct bdk_dtx_bgxx_enax_s
412 {
413 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
414 uint64_t reserved_36_63 : 28;
415 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
416 buses. Normally only one block will drive each bit. */
417 #else /* Word 0 - Little Endian */
418 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
419 buses. Normally only one block will drive each bit. */
420 uint64_t reserved_36_63 : 28;
421 #endif /* Word 0 - End */
422 } s;
423 /* struct bdk_dtx_bgxx_enax_s cn; */
424 };
425 typedef union bdk_dtx_bgxx_enax bdk_dtx_bgxx_enax_t;
426
427 static inline uint64_t BDK_DTX_BGXX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
428 static inline uint64_t BDK_DTX_BGXX_ENAX(unsigned long a, unsigned long b)
429 {
430 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a<=1) && (b<=1)))
431 return 0x87e0fe700020ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
432 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=3) && (b<=1)))
433 return 0x87e0fe700020ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
434 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=1) && (b<=1)))
435 return 0x87e0fe700020ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
436 __bdk_csr_fatal("DTX_BGXX_ENAX", 2, a, b, 0, 0);
437 }
438
439 #define typedef_BDK_DTX_BGXX_ENAX(a,b) bdk_dtx_bgxx_enax_t
440 #define bustype_BDK_DTX_BGXX_ENAX(a,b) BDK_CSR_TYPE_RSL
441 #define basename_BDK_DTX_BGXX_ENAX(a,b) "DTX_BGXX_ENAX"
442 #define busnum_BDK_DTX_BGXX_ENAX(a,b) (a)
443 #define arguments_BDK_DTX_BGXX_ENAX(a,b) (a),(b),-1,-1
444
445 /**
446 * Register (RSL) dtx_bgx#_sel#
447 *
448 * DTX BGX Select Register
449 */
450 union bdk_dtx_bgxx_selx
451 {
452 uint64_t u;
453 struct bdk_dtx_bgxx_selx_s
454 {
455 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
456 uint64_t reserved_24_63 : 40;
457 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
458 #else /* Word 0 - Little Endian */
459 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
460 uint64_t reserved_24_63 : 40;
461 #endif /* Word 0 - End */
462 } s;
463 /* struct bdk_dtx_bgxx_selx_s cn; */
464 };
465 typedef union bdk_dtx_bgxx_selx bdk_dtx_bgxx_selx_t;
466
467 static inline uint64_t BDK_DTX_BGXX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
468 static inline uint64_t BDK_DTX_BGXX_SELX(unsigned long a, unsigned long b)
469 {
470 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a<=1) && (b<=1)))
471 return 0x87e0fe700000ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
472 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=3) && (b<=1)))
473 return 0x87e0fe700000ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
474 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=1) && (b<=1)))
475 return 0x87e0fe700000ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
476 __bdk_csr_fatal("DTX_BGXX_SELX", 2, a, b, 0, 0);
477 }
478
479 #define typedef_BDK_DTX_BGXX_SELX(a,b) bdk_dtx_bgxx_selx_t
480 #define bustype_BDK_DTX_BGXX_SELX(a,b) BDK_CSR_TYPE_RSL
481 #define basename_BDK_DTX_BGXX_SELX(a,b) "DTX_BGXX_SELX"
482 #define busnum_BDK_DTX_BGXX_SELX(a,b) (a)
483 #define arguments_BDK_DTX_BGXX_SELX(a,b) (a),(b),-1,-1
484
485 /**
486 * Register (RSL) dtx_broadcast_ctl
487 *
488 * DTX BROADCAST Control Register
489 */
490 union bdk_dtx_broadcast_ctl
491 {
492 uint64_t u;
493 struct bdk_dtx_broadcast_ctl_s
494 {
495 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
496 uint64_t reserved_5_63 : 59;
497 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
498 uint64_t reserved_2_3 : 2;
499 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
500 debug data. Not applicable when software directly reads the DAT(0..1) registers.
501 For diagnostic use only. */
502 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
503 #else /* Word 0 - Little Endian */
504 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
505 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
506 debug data. Not applicable when software directly reads the DAT(0..1) registers.
507 For diagnostic use only. */
508 uint64_t reserved_2_3 : 2;
509 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
510 uint64_t reserved_5_63 : 59;
511 #endif /* Word 0 - End */
512 } s;
513 /* struct bdk_dtx_broadcast_ctl_s cn; */
514 };
515 typedef union bdk_dtx_broadcast_ctl bdk_dtx_broadcast_ctl_t;
516
517 #define BDK_DTX_BROADCAST_CTL BDK_DTX_BROADCAST_CTL_FUNC()
518 static inline uint64_t BDK_DTX_BROADCAST_CTL_FUNC(void) __attribute__ ((pure, always_inline));
519 static inline uint64_t BDK_DTX_BROADCAST_CTL_FUNC(void)
520 {
521 return 0x87e0fe7f0060ll;
522 }
523
524 #define typedef_BDK_DTX_BROADCAST_CTL bdk_dtx_broadcast_ctl_t
525 #define bustype_BDK_DTX_BROADCAST_CTL BDK_CSR_TYPE_RSL
526 #define basename_BDK_DTX_BROADCAST_CTL "DTX_BROADCAST_CTL"
527 #define busnum_BDK_DTX_BROADCAST_CTL 0
528 #define arguments_BDK_DTX_BROADCAST_CTL -1,-1,-1,-1
529
530 /**
531 * Register (RSL) dtx_broadcast_ena#
532 *
533 * DTX BROADCAST Data Enable Register
534 */
535 union bdk_dtx_broadcast_enax
536 {
537 uint64_t u;
538 struct bdk_dtx_broadcast_enax_s
539 {
540 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
541 uint64_t reserved_36_63 : 28;
542 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
543 buses. Normally only one block will drive each bit. */
544 #else /* Word 0 - Little Endian */
545 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
546 buses. Normally only one block will drive each bit. */
547 uint64_t reserved_36_63 : 28;
548 #endif /* Word 0 - End */
549 } s;
550 /* struct bdk_dtx_broadcast_enax_s cn; */
551 };
552 typedef union bdk_dtx_broadcast_enax bdk_dtx_broadcast_enax_t;
553
554 static inline uint64_t BDK_DTX_BROADCAST_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
555 static inline uint64_t BDK_DTX_BROADCAST_ENAX(unsigned long a)
556 {
557 if (a<=1)
558 return 0x87e0fe7f0020ll + 8ll * ((a) & 0x1);
559 __bdk_csr_fatal("DTX_BROADCAST_ENAX", 1, a, 0, 0, 0);
560 }
561
562 #define typedef_BDK_DTX_BROADCAST_ENAX(a) bdk_dtx_broadcast_enax_t
563 #define bustype_BDK_DTX_BROADCAST_ENAX(a) BDK_CSR_TYPE_RSL
564 #define basename_BDK_DTX_BROADCAST_ENAX(a) "DTX_BROADCAST_ENAX"
565 #define busnum_BDK_DTX_BROADCAST_ENAX(a) (a)
566 #define arguments_BDK_DTX_BROADCAST_ENAX(a) (a),-1,-1,-1
567
568 /**
569 * Register (RSL) dtx_broadcast_sel#
570 *
571 * DTX BROADCAST Select Register
572 */
573 union bdk_dtx_broadcast_selx
574 {
575 uint64_t u;
576 struct bdk_dtx_broadcast_selx_s
577 {
578 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
579 uint64_t reserved_24_63 : 40;
580 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
581 #else /* Word 0 - Little Endian */
582 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
583 uint64_t reserved_24_63 : 40;
584 #endif /* Word 0 - End */
585 } s;
586 /* struct bdk_dtx_broadcast_selx_s cn; */
587 };
588 typedef union bdk_dtx_broadcast_selx bdk_dtx_broadcast_selx_t;
589
590 static inline uint64_t BDK_DTX_BROADCAST_SELX(unsigned long a) __attribute__ ((pure, always_inline));
591 static inline uint64_t BDK_DTX_BROADCAST_SELX(unsigned long a)
592 {
593 if (a<=1)
594 return 0x87e0fe7f0000ll + 8ll * ((a) & 0x1);
595 __bdk_csr_fatal("DTX_BROADCAST_SELX", 1, a, 0, 0, 0);
596 }
597
598 #define typedef_BDK_DTX_BROADCAST_SELX(a) bdk_dtx_broadcast_selx_t
599 #define bustype_BDK_DTX_BROADCAST_SELX(a) BDK_CSR_TYPE_RSL
600 #define basename_BDK_DTX_BROADCAST_SELX(a) "DTX_BROADCAST_SELX"
601 #define busnum_BDK_DTX_BROADCAST_SELX(a) (a)
602 #define arguments_BDK_DTX_BROADCAST_SELX(a) (a),-1,-1,-1
603
604 /**
605 * Register (RSL) dtx_bts_bcst_rsp
606 *
607 * DTX BTS Control Register
608 */
609 union bdk_dtx_bts_bcst_rsp
610 {
611 uint64_t u;
612 struct bdk_dtx_bts_bcst_rsp_s
613 {
614 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
615 uint64_t reserved_1_63 : 63;
616 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
617 #else /* Word 0 - Little Endian */
618 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
619 uint64_t reserved_1_63 : 63;
620 #endif /* Word 0 - End */
621 } s;
622 /* struct bdk_dtx_bts_bcst_rsp_s cn; */
623 };
624 typedef union bdk_dtx_bts_bcst_rsp bdk_dtx_bts_bcst_rsp_t;
625
626 #define BDK_DTX_BTS_BCST_RSP BDK_DTX_BTS_BCST_RSP_FUNC()
627 static inline uint64_t BDK_DTX_BTS_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
628 static inline uint64_t BDK_DTX_BTS_BCST_RSP_FUNC(void)
629 {
630 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
631 return 0x87e0fe090080ll;
632 __bdk_csr_fatal("DTX_BTS_BCST_RSP", 0, 0, 0, 0, 0);
633 }
634
635 #define typedef_BDK_DTX_BTS_BCST_RSP bdk_dtx_bts_bcst_rsp_t
636 #define bustype_BDK_DTX_BTS_BCST_RSP BDK_CSR_TYPE_RSL
637 #define basename_BDK_DTX_BTS_BCST_RSP "DTX_BTS_BCST_RSP"
638 #define busnum_BDK_DTX_BTS_BCST_RSP 0
639 #define arguments_BDK_DTX_BTS_BCST_RSP -1,-1,-1,-1
640
641 /**
642 * Register (RSL) dtx_bts_ctl
643 *
644 * DTX BTS Control Register
645 */
646 union bdk_dtx_bts_ctl
647 {
648 uint64_t u;
649 struct bdk_dtx_bts_ctl_s
650 {
651 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
652 uint64_t reserved_5_63 : 59;
653 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
654 uint64_t reserved_2_3 : 2;
655 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
656 debug data. Not applicable when software directly reads the DAT(0..1) registers.
657 For diagnostic use only. */
658 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
659 #else /* Word 0 - Little Endian */
660 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
661 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
662 debug data. Not applicable when software directly reads the DAT(0..1) registers.
663 For diagnostic use only. */
664 uint64_t reserved_2_3 : 2;
665 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
666 uint64_t reserved_5_63 : 59;
667 #endif /* Word 0 - End */
668 } s;
669 /* struct bdk_dtx_bts_ctl_s cn; */
670 };
671 typedef union bdk_dtx_bts_ctl bdk_dtx_bts_ctl_t;
672
673 #define BDK_DTX_BTS_CTL BDK_DTX_BTS_CTL_FUNC()
674 static inline uint64_t BDK_DTX_BTS_CTL_FUNC(void) __attribute__ ((pure, always_inline));
675 static inline uint64_t BDK_DTX_BTS_CTL_FUNC(void)
676 {
677 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
678 return 0x87e0fe090060ll;
679 __bdk_csr_fatal("DTX_BTS_CTL", 0, 0, 0, 0, 0);
680 }
681
682 #define typedef_BDK_DTX_BTS_CTL bdk_dtx_bts_ctl_t
683 #define bustype_BDK_DTX_BTS_CTL BDK_CSR_TYPE_RSL
684 #define basename_BDK_DTX_BTS_CTL "DTX_BTS_CTL"
685 #define busnum_BDK_DTX_BTS_CTL 0
686 #define arguments_BDK_DTX_BTS_CTL -1,-1,-1,-1
687
688 /**
689 * Register (RSL) dtx_bts_dat#
690 *
691 * DTX BTS Raw Data Register
692 */
693 union bdk_dtx_bts_datx
694 {
695 uint64_t u;
696 struct bdk_dtx_bts_datx_s
697 {
698 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
699 uint64_t reserved_36_63 : 28;
700 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
701 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
702 #else /* Word 0 - Little Endian */
703 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
704 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
705 uint64_t reserved_36_63 : 28;
706 #endif /* Word 0 - End */
707 } s;
708 /* struct bdk_dtx_bts_datx_s cn; */
709 };
710 typedef union bdk_dtx_bts_datx bdk_dtx_bts_datx_t;
711
712 static inline uint64_t BDK_DTX_BTS_DATX(unsigned long a) __attribute__ ((pure, always_inline));
713 static inline uint64_t BDK_DTX_BTS_DATX(unsigned long a)
714 {
715 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
716 return 0x87e0fe090040ll + 8ll * ((a) & 0x1);
717 __bdk_csr_fatal("DTX_BTS_DATX", 1, a, 0, 0, 0);
718 }
719
720 #define typedef_BDK_DTX_BTS_DATX(a) bdk_dtx_bts_datx_t
721 #define bustype_BDK_DTX_BTS_DATX(a) BDK_CSR_TYPE_RSL
722 #define basename_BDK_DTX_BTS_DATX(a) "DTX_BTS_DATX"
723 #define busnum_BDK_DTX_BTS_DATX(a) (a)
724 #define arguments_BDK_DTX_BTS_DATX(a) (a),-1,-1,-1
725
726 /**
727 * Register (RSL) dtx_bts_ena#
728 *
729 * DTX BTS Data Enable Register
730 */
731 union bdk_dtx_bts_enax
732 {
733 uint64_t u;
734 struct bdk_dtx_bts_enax_s
735 {
736 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
737 uint64_t reserved_36_63 : 28;
738 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
739 buses. Normally only one block will drive each bit. */
740 #else /* Word 0 - Little Endian */
741 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
742 buses. Normally only one block will drive each bit. */
743 uint64_t reserved_36_63 : 28;
744 #endif /* Word 0 - End */
745 } s;
746 /* struct bdk_dtx_bts_enax_s cn; */
747 };
748 typedef union bdk_dtx_bts_enax bdk_dtx_bts_enax_t;
749
750 static inline uint64_t BDK_DTX_BTS_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
751 static inline uint64_t BDK_DTX_BTS_ENAX(unsigned long a)
752 {
753 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
754 return 0x87e0fe090020ll + 8ll * ((a) & 0x1);
755 __bdk_csr_fatal("DTX_BTS_ENAX", 1, a, 0, 0, 0);
756 }
757
758 #define typedef_BDK_DTX_BTS_ENAX(a) bdk_dtx_bts_enax_t
759 #define bustype_BDK_DTX_BTS_ENAX(a) BDK_CSR_TYPE_RSL
760 #define basename_BDK_DTX_BTS_ENAX(a) "DTX_BTS_ENAX"
761 #define busnum_BDK_DTX_BTS_ENAX(a) (a)
762 #define arguments_BDK_DTX_BTS_ENAX(a) (a),-1,-1,-1
763
764 /**
765 * Register (RSL) dtx_bts_sel#
766 *
767 * DTX BTS Select Register
768 */
769 union bdk_dtx_bts_selx
770 {
771 uint64_t u;
772 struct bdk_dtx_bts_selx_s
773 {
774 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
775 uint64_t reserved_24_63 : 40;
776 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
777 #else /* Word 0 - Little Endian */
778 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
779 uint64_t reserved_24_63 : 40;
780 #endif /* Word 0 - End */
781 } s;
782 /* struct bdk_dtx_bts_selx_s cn; */
783 };
784 typedef union bdk_dtx_bts_selx bdk_dtx_bts_selx_t;
785
786 static inline uint64_t BDK_DTX_BTS_SELX(unsigned long a) __attribute__ ((pure, always_inline));
787 static inline uint64_t BDK_DTX_BTS_SELX(unsigned long a)
788 {
789 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
790 return 0x87e0fe090000ll + 8ll * ((a) & 0x1);
791 __bdk_csr_fatal("DTX_BTS_SELX", 1, a, 0, 0, 0);
792 }
793
794 #define typedef_BDK_DTX_BTS_SELX(a) bdk_dtx_bts_selx_t
795 #define bustype_BDK_DTX_BTS_SELX(a) BDK_CSR_TYPE_RSL
796 #define basename_BDK_DTX_BTS_SELX(a) "DTX_BTS_SELX"
797 #define busnum_BDK_DTX_BTS_SELX(a) (a)
798 #define arguments_BDK_DTX_BTS_SELX(a) (a),-1,-1,-1
799
800 /**
801 * Register (RSL) dtx_ccu#_msw_bcst_rsp
802 *
803 * DTX CCU_MSW Control Register
804 */
805 union bdk_dtx_ccux_msw_bcst_rsp
806 {
807 uint64_t u;
808 struct bdk_dtx_ccux_msw_bcst_rsp_s
809 {
810 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
811 uint64_t reserved_1_63 : 63;
812 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
813 #else /* Word 0 - Little Endian */
814 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
815 uint64_t reserved_1_63 : 63;
816 #endif /* Word 0 - End */
817 } s;
818 /* struct bdk_dtx_ccux_msw_bcst_rsp_s cn; */
819 };
820 typedef union bdk_dtx_ccux_msw_bcst_rsp bdk_dtx_ccux_msw_bcst_rsp_t;
821
822 static inline uint64_t BDK_DTX_CCUX_MSW_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
823 static inline uint64_t BDK_DTX_CCUX_MSW_BCST_RSP(unsigned long a)
824 {
825 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=3))
826 return 0x87e0fec80080ll + 0x8000ll * ((a) & 0x3);
827 __bdk_csr_fatal("DTX_CCUX_MSW_BCST_RSP", 1, a, 0, 0, 0);
828 }
829
830 #define typedef_BDK_DTX_CCUX_MSW_BCST_RSP(a) bdk_dtx_ccux_msw_bcst_rsp_t
831 #define bustype_BDK_DTX_CCUX_MSW_BCST_RSP(a) BDK_CSR_TYPE_RSL
832 #define basename_BDK_DTX_CCUX_MSW_BCST_RSP(a) "DTX_CCUX_MSW_BCST_RSP"
833 #define busnum_BDK_DTX_CCUX_MSW_BCST_RSP(a) (a)
834 #define arguments_BDK_DTX_CCUX_MSW_BCST_RSP(a) (a),-1,-1,-1
835
836 /**
837 * Register (RSL) dtx_ccu#_msw_ctl
838 *
839 * DTX CCU_MSW Control Register
840 */
841 union bdk_dtx_ccux_msw_ctl
842 {
843 uint64_t u;
844 struct bdk_dtx_ccux_msw_ctl_s
845 {
846 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
847 uint64_t reserved_5_63 : 59;
848 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
849 uint64_t reserved_2_3 : 2;
850 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
851 debug data. Not applicable when software directly reads the DAT(0..1) registers.
852 For diagnostic use only. */
853 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
854 #else /* Word 0 - Little Endian */
855 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
856 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
857 debug data. Not applicable when software directly reads the DAT(0..1) registers.
858 For diagnostic use only. */
859 uint64_t reserved_2_3 : 2;
860 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
861 uint64_t reserved_5_63 : 59;
862 #endif /* Word 0 - End */
863 } s;
864 /* struct bdk_dtx_ccux_msw_ctl_s cn; */
865 };
866 typedef union bdk_dtx_ccux_msw_ctl bdk_dtx_ccux_msw_ctl_t;
867
868 static inline uint64_t BDK_DTX_CCUX_MSW_CTL(unsigned long a) __attribute__ ((pure, always_inline));
869 static inline uint64_t BDK_DTX_CCUX_MSW_CTL(unsigned long a)
870 {
871 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=3))
872 return 0x87e0fec80060ll + 0x8000ll * ((a) & 0x3);
873 __bdk_csr_fatal("DTX_CCUX_MSW_CTL", 1, a, 0, 0, 0);
874 }
875
876 #define typedef_BDK_DTX_CCUX_MSW_CTL(a) bdk_dtx_ccux_msw_ctl_t
877 #define bustype_BDK_DTX_CCUX_MSW_CTL(a) BDK_CSR_TYPE_RSL
878 #define basename_BDK_DTX_CCUX_MSW_CTL(a) "DTX_CCUX_MSW_CTL"
879 #define busnum_BDK_DTX_CCUX_MSW_CTL(a) (a)
880 #define arguments_BDK_DTX_CCUX_MSW_CTL(a) (a),-1,-1,-1
881
882 /**
883 * Register (RSL) dtx_ccu#_msw_dat#
884 *
885 * DTX CCU_MSW Raw Data Register
886 */
887 union bdk_dtx_ccux_msw_datx
888 {
889 uint64_t u;
890 struct bdk_dtx_ccux_msw_datx_s
891 {
892 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
893 uint64_t reserved_36_63 : 28;
894 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
895 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
896 #else /* Word 0 - Little Endian */
897 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
898 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
899 uint64_t reserved_36_63 : 28;
900 #endif /* Word 0 - End */
901 } s;
902 /* struct bdk_dtx_ccux_msw_datx_s cn; */
903 };
904 typedef union bdk_dtx_ccux_msw_datx bdk_dtx_ccux_msw_datx_t;
905
906 static inline uint64_t BDK_DTX_CCUX_MSW_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
907 static inline uint64_t BDK_DTX_CCUX_MSW_DATX(unsigned long a, unsigned long b)
908 {
909 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=3) && (b<=1)))
910 return 0x87e0fec80040ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
911 __bdk_csr_fatal("DTX_CCUX_MSW_DATX", 2, a, b, 0, 0);
912 }
913
914 #define typedef_BDK_DTX_CCUX_MSW_DATX(a,b) bdk_dtx_ccux_msw_datx_t
915 #define bustype_BDK_DTX_CCUX_MSW_DATX(a,b) BDK_CSR_TYPE_RSL
916 #define basename_BDK_DTX_CCUX_MSW_DATX(a,b) "DTX_CCUX_MSW_DATX"
917 #define busnum_BDK_DTX_CCUX_MSW_DATX(a,b) (a)
918 #define arguments_BDK_DTX_CCUX_MSW_DATX(a,b) (a),(b),-1,-1
919
920 /**
921 * Register (RSL) dtx_ccu#_msw_ena#
922 *
923 * DTX CCU_MSW Data Enable Register
924 */
925 union bdk_dtx_ccux_msw_enax
926 {
927 uint64_t u;
928 struct bdk_dtx_ccux_msw_enax_s
929 {
930 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
931 uint64_t reserved_36_63 : 28;
932 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
933 buses. Normally only one block will drive each bit. */
934 #else /* Word 0 - Little Endian */
935 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
936 buses. Normally only one block will drive each bit. */
937 uint64_t reserved_36_63 : 28;
938 #endif /* Word 0 - End */
939 } s;
940 /* struct bdk_dtx_ccux_msw_enax_s cn; */
941 };
942 typedef union bdk_dtx_ccux_msw_enax bdk_dtx_ccux_msw_enax_t;
943
944 static inline uint64_t BDK_DTX_CCUX_MSW_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
945 static inline uint64_t BDK_DTX_CCUX_MSW_ENAX(unsigned long a, unsigned long b)
946 {
947 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=3) && (b<=1)))
948 return 0x87e0fec80020ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
949 __bdk_csr_fatal("DTX_CCUX_MSW_ENAX", 2, a, b, 0, 0);
950 }
951
952 #define typedef_BDK_DTX_CCUX_MSW_ENAX(a,b) bdk_dtx_ccux_msw_enax_t
953 #define bustype_BDK_DTX_CCUX_MSW_ENAX(a,b) BDK_CSR_TYPE_RSL
954 #define basename_BDK_DTX_CCUX_MSW_ENAX(a,b) "DTX_CCUX_MSW_ENAX"
955 #define busnum_BDK_DTX_CCUX_MSW_ENAX(a,b) (a)
956 #define arguments_BDK_DTX_CCUX_MSW_ENAX(a,b) (a),(b),-1,-1
957
958 /**
959 * Register (RSL) dtx_ccu#_msw_sel#
960 *
961 * DTX CCU_MSW Select Register
962 */
963 union bdk_dtx_ccux_msw_selx
964 {
965 uint64_t u;
966 struct bdk_dtx_ccux_msw_selx_s
967 {
968 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
969 uint64_t reserved_24_63 : 40;
970 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
971 #else /* Word 0 - Little Endian */
972 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
973 uint64_t reserved_24_63 : 40;
974 #endif /* Word 0 - End */
975 } s;
976 /* struct bdk_dtx_ccux_msw_selx_s cn; */
977 };
978 typedef union bdk_dtx_ccux_msw_selx bdk_dtx_ccux_msw_selx_t;
979
980 static inline uint64_t BDK_DTX_CCUX_MSW_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
981 static inline uint64_t BDK_DTX_CCUX_MSW_SELX(unsigned long a, unsigned long b)
982 {
983 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=3) && (b<=1)))
984 return 0x87e0fec80000ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
985 __bdk_csr_fatal("DTX_CCUX_MSW_SELX", 2, a, b, 0, 0);
986 }
987
988 #define typedef_BDK_DTX_CCUX_MSW_SELX(a,b) bdk_dtx_ccux_msw_selx_t
989 #define bustype_BDK_DTX_CCUX_MSW_SELX(a,b) BDK_CSR_TYPE_RSL
990 #define basename_BDK_DTX_CCUX_MSW_SELX(a,b) "DTX_CCUX_MSW_SELX"
991 #define busnum_BDK_DTX_CCUX_MSW_SELX(a,b) (a)
992 #define arguments_BDK_DTX_CCUX_MSW_SELX(a,b) (a),(b),-1,-1
993
994 /**
995 * Register (RSL) dtx_ccu#_pic_bcst_rsp
996 *
997 * DTX CCU_PIC Control Register
998 */
999 union bdk_dtx_ccux_pic_bcst_rsp
1000 {
1001 uint64_t u;
1002 struct bdk_dtx_ccux_pic_bcst_rsp_s
1003 {
1004 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1005 uint64_t reserved_1_63 : 63;
1006 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
1007 #else /* Word 0 - Little Endian */
1008 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
1009 uint64_t reserved_1_63 : 63;
1010 #endif /* Word 0 - End */
1011 } s;
1012 /* struct bdk_dtx_ccux_pic_bcst_rsp_s cn; */
1013 };
1014 typedef union bdk_dtx_ccux_pic_bcst_rsp bdk_dtx_ccux_pic_bcst_rsp_t;
1015
1016 static inline uint64_t BDK_DTX_CCUX_PIC_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
1017 static inline uint64_t BDK_DTX_CCUX_PIC_BCST_RSP(unsigned long a)
1018 {
1019 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=3))
1020 return 0x87e0fe280080ll + 0x8000ll * ((a) & 0x3);
1021 __bdk_csr_fatal("DTX_CCUX_PIC_BCST_RSP", 1, a, 0, 0, 0);
1022 }
1023
1024 #define typedef_BDK_DTX_CCUX_PIC_BCST_RSP(a) bdk_dtx_ccux_pic_bcst_rsp_t
1025 #define bustype_BDK_DTX_CCUX_PIC_BCST_RSP(a) BDK_CSR_TYPE_RSL
1026 #define basename_BDK_DTX_CCUX_PIC_BCST_RSP(a) "DTX_CCUX_PIC_BCST_RSP"
1027 #define busnum_BDK_DTX_CCUX_PIC_BCST_RSP(a) (a)
1028 #define arguments_BDK_DTX_CCUX_PIC_BCST_RSP(a) (a),-1,-1,-1
1029
1030 /**
1031 * Register (RSL) dtx_ccu#_pic_ctl
1032 *
1033 * DTX CCU_PIC Control Register
1034 */
1035 union bdk_dtx_ccux_pic_ctl
1036 {
1037 uint64_t u;
1038 struct bdk_dtx_ccux_pic_ctl_s
1039 {
1040 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1041 uint64_t reserved_5_63 : 59;
1042 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
1043 uint64_t reserved_2_3 : 2;
1044 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
1045 debug data. Not applicable when software directly reads the DAT(0..1) registers.
1046 For diagnostic use only. */
1047 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
1048 #else /* Word 0 - Little Endian */
1049 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
1050 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
1051 debug data. Not applicable when software directly reads the DAT(0..1) registers.
1052 For diagnostic use only. */
1053 uint64_t reserved_2_3 : 2;
1054 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
1055 uint64_t reserved_5_63 : 59;
1056 #endif /* Word 0 - End */
1057 } s;
1058 /* struct bdk_dtx_ccux_pic_ctl_s cn; */
1059 };
1060 typedef union bdk_dtx_ccux_pic_ctl bdk_dtx_ccux_pic_ctl_t;
1061
1062 static inline uint64_t BDK_DTX_CCUX_PIC_CTL(unsigned long a) __attribute__ ((pure, always_inline));
1063 static inline uint64_t BDK_DTX_CCUX_PIC_CTL(unsigned long a)
1064 {
1065 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=3))
1066 return 0x87e0fe280060ll + 0x8000ll * ((a) & 0x3);
1067 __bdk_csr_fatal("DTX_CCUX_PIC_CTL", 1, a, 0, 0, 0);
1068 }
1069
1070 #define typedef_BDK_DTX_CCUX_PIC_CTL(a) bdk_dtx_ccux_pic_ctl_t
1071 #define bustype_BDK_DTX_CCUX_PIC_CTL(a) BDK_CSR_TYPE_RSL
1072 #define basename_BDK_DTX_CCUX_PIC_CTL(a) "DTX_CCUX_PIC_CTL"
1073 #define busnum_BDK_DTX_CCUX_PIC_CTL(a) (a)
1074 #define arguments_BDK_DTX_CCUX_PIC_CTL(a) (a),-1,-1,-1
1075
1076 /**
1077 * Register (RSL) dtx_ccu#_pic_dat#
1078 *
1079 * DTX CCU_PIC Raw Data Register
1080 */
1081 union bdk_dtx_ccux_pic_datx
1082 {
1083 uint64_t u;
1084 struct bdk_dtx_ccux_pic_datx_s
1085 {
1086 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1087 uint64_t reserved_36_63 : 28;
1088 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
1089 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
1090 #else /* Word 0 - Little Endian */
1091 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
1092 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
1093 uint64_t reserved_36_63 : 28;
1094 #endif /* Word 0 - End */
1095 } s;
1096 /* struct bdk_dtx_ccux_pic_datx_s cn; */
1097 };
1098 typedef union bdk_dtx_ccux_pic_datx bdk_dtx_ccux_pic_datx_t;
1099
1100 static inline uint64_t BDK_DTX_CCUX_PIC_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
1101 static inline uint64_t BDK_DTX_CCUX_PIC_DATX(unsigned long a, unsigned long b)
1102 {
1103 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=3) && (b<=1)))
1104 return 0x87e0fe280040ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
1105 __bdk_csr_fatal("DTX_CCUX_PIC_DATX", 2, a, b, 0, 0);
1106 }
1107
1108 #define typedef_BDK_DTX_CCUX_PIC_DATX(a,b) bdk_dtx_ccux_pic_datx_t
1109 #define bustype_BDK_DTX_CCUX_PIC_DATX(a,b) BDK_CSR_TYPE_RSL
1110 #define basename_BDK_DTX_CCUX_PIC_DATX(a,b) "DTX_CCUX_PIC_DATX"
1111 #define busnum_BDK_DTX_CCUX_PIC_DATX(a,b) (a)
1112 #define arguments_BDK_DTX_CCUX_PIC_DATX(a,b) (a),(b),-1,-1
1113
1114 /**
1115 * Register (RSL) dtx_ccu#_pic_ena#
1116 *
1117 * DTX CCU_PIC Data Enable Register
1118 */
1119 union bdk_dtx_ccux_pic_enax
1120 {
1121 uint64_t u;
1122 struct bdk_dtx_ccux_pic_enax_s
1123 {
1124 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1125 uint64_t reserved_36_63 : 28;
1126 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
1127 buses. Normally only one block will drive each bit. */
1128 #else /* Word 0 - Little Endian */
1129 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
1130 buses. Normally only one block will drive each bit. */
1131 uint64_t reserved_36_63 : 28;
1132 #endif /* Word 0 - End */
1133 } s;
1134 /* struct bdk_dtx_ccux_pic_enax_s cn; */
1135 };
1136 typedef union bdk_dtx_ccux_pic_enax bdk_dtx_ccux_pic_enax_t;
1137
1138 static inline uint64_t BDK_DTX_CCUX_PIC_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
1139 static inline uint64_t BDK_DTX_CCUX_PIC_ENAX(unsigned long a, unsigned long b)
1140 {
1141 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=3) && (b<=1)))
1142 return 0x87e0fe280020ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
1143 __bdk_csr_fatal("DTX_CCUX_PIC_ENAX", 2, a, b, 0, 0);
1144 }
1145
1146 #define typedef_BDK_DTX_CCUX_PIC_ENAX(a,b) bdk_dtx_ccux_pic_enax_t
1147 #define bustype_BDK_DTX_CCUX_PIC_ENAX(a,b) BDK_CSR_TYPE_RSL
1148 #define basename_BDK_DTX_CCUX_PIC_ENAX(a,b) "DTX_CCUX_PIC_ENAX"
1149 #define busnum_BDK_DTX_CCUX_PIC_ENAX(a,b) (a)
1150 #define arguments_BDK_DTX_CCUX_PIC_ENAX(a,b) (a),(b),-1,-1
1151
1152 /**
1153 * Register (RSL) dtx_ccu#_pic_sel#
1154 *
1155 * DTX CCU_PIC Select Register
1156 */
1157 union bdk_dtx_ccux_pic_selx
1158 {
1159 uint64_t u;
1160 struct bdk_dtx_ccux_pic_selx_s
1161 {
1162 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1163 uint64_t reserved_24_63 : 40;
1164 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
1165 #else /* Word 0 - Little Endian */
1166 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
1167 uint64_t reserved_24_63 : 40;
1168 #endif /* Word 0 - End */
1169 } s;
1170 /* struct bdk_dtx_ccux_pic_selx_s cn; */
1171 };
1172 typedef union bdk_dtx_ccux_pic_selx bdk_dtx_ccux_pic_selx_t;
1173
1174 static inline uint64_t BDK_DTX_CCUX_PIC_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
1175 static inline uint64_t BDK_DTX_CCUX_PIC_SELX(unsigned long a, unsigned long b)
1176 {
1177 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=3) && (b<=1)))
1178 return 0x87e0fe280000ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
1179 __bdk_csr_fatal("DTX_CCUX_PIC_SELX", 2, a, b, 0, 0);
1180 }
1181
1182 #define typedef_BDK_DTX_CCUX_PIC_SELX(a,b) bdk_dtx_ccux_pic_selx_t
1183 #define bustype_BDK_DTX_CCUX_PIC_SELX(a,b) BDK_CSR_TYPE_RSL
1184 #define basename_BDK_DTX_CCUX_PIC_SELX(a,b) "DTX_CCUX_PIC_SELX"
1185 #define busnum_BDK_DTX_CCUX_PIC_SELX(a,b) (a)
1186 #define arguments_BDK_DTX_CCUX_PIC_SELX(a,b) (a),(b),-1,-1
1187
1188 /**
1189 * Register (RSL) dtx_ccu#_tad#_bcst_rsp
1190 *
1191 * DTX CCU_TAD Control Register
1192 */
1193 union bdk_dtx_ccux_tadx_bcst_rsp
1194 {
1195 uint64_t u;
1196 struct bdk_dtx_ccux_tadx_bcst_rsp_s
1197 {
1198 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1199 uint64_t reserved_1_63 : 63;
1200 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
1201 #else /* Word 0 - Little Endian */
1202 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
1203 uint64_t reserved_1_63 : 63;
1204 #endif /* Word 0 - End */
1205 } s;
1206 /* struct bdk_dtx_ccux_tadx_bcst_rsp_s cn; */
1207 };
1208 typedef union bdk_dtx_ccux_tadx_bcst_rsp bdk_dtx_ccux_tadx_bcst_rsp_t;
1209
1210 static inline uint64_t BDK_DTX_CCUX_TADX_BCST_RSP(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
1211 static inline uint64_t BDK_DTX_CCUX_TADX_BCST_RSP(unsigned long a, unsigned long b)
1212 {
1213 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=3) && (b<=1)))
1214 return 0x87e0fed00080ll + 0x10000ll * ((a) & 0x3) + 0x8000ll * ((b) & 0x1);
1215 __bdk_csr_fatal("DTX_CCUX_TADX_BCST_RSP", 2, a, b, 0, 0);
1216 }
1217
1218 #define typedef_BDK_DTX_CCUX_TADX_BCST_RSP(a,b) bdk_dtx_ccux_tadx_bcst_rsp_t
1219 #define bustype_BDK_DTX_CCUX_TADX_BCST_RSP(a,b) BDK_CSR_TYPE_RSL
1220 #define basename_BDK_DTX_CCUX_TADX_BCST_RSP(a,b) "DTX_CCUX_TADX_BCST_RSP"
1221 #define busnum_BDK_DTX_CCUX_TADX_BCST_RSP(a,b) (a)
1222 #define arguments_BDK_DTX_CCUX_TADX_BCST_RSP(a,b) (a),(b),-1,-1
1223
1224 /**
1225 * Register (RSL) dtx_ccu#_tad#_ctl
1226 *
1227 * DTX CCU_TAD Control Register
1228 */
1229 union bdk_dtx_ccux_tadx_ctl
1230 {
1231 uint64_t u;
1232 struct bdk_dtx_ccux_tadx_ctl_s
1233 {
1234 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1235 uint64_t reserved_5_63 : 59;
1236 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
1237 uint64_t reserved_2_3 : 2;
1238 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
1239 debug data. Not applicable when software directly reads the DAT(0..1) registers.
1240 For diagnostic use only. */
1241 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
1242 #else /* Word 0 - Little Endian */
1243 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
1244 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
1245 debug data. Not applicable when software directly reads the DAT(0..1) registers.
1246 For diagnostic use only. */
1247 uint64_t reserved_2_3 : 2;
1248 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
1249 uint64_t reserved_5_63 : 59;
1250 #endif /* Word 0 - End */
1251 } s;
1252 /* struct bdk_dtx_ccux_tadx_ctl_s cn; */
1253 };
1254 typedef union bdk_dtx_ccux_tadx_ctl bdk_dtx_ccux_tadx_ctl_t;
1255
1256 static inline uint64_t BDK_DTX_CCUX_TADX_CTL(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
1257 static inline uint64_t BDK_DTX_CCUX_TADX_CTL(unsigned long a, unsigned long b)
1258 {
1259 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=3) && (b<=1)))
1260 return 0x87e0fed00060ll + 0x10000ll * ((a) & 0x3) + 0x8000ll * ((b) & 0x1);
1261 __bdk_csr_fatal("DTX_CCUX_TADX_CTL", 2, a, b, 0, 0);
1262 }
1263
1264 #define typedef_BDK_DTX_CCUX_TADX_CTL(a,b) bdk_dtx_ccux_tadx_ctl_t
1265 #define bustype_BDK_DTX_CCUX_TADX_CTL(a,b) BDK_CSR_TYPE_RSL
1266 #define basename_BDK_DTX_CCUX_TADX_CTL(a,b) "DTX_CCUX_TADX_CTL"
1267 #define busnum_BDK_DTX_CCUX_TADX_CTL(a,b) (a)
1268 #define arguments_BDK_DTX_CCUX_TADX_CTL(a,b) (a),(b),-1,-1
1269
1270 /**
1271 * Register (RSL) dtx_ccu#_tad#_dat#
1272 *
1273 * DTX CCU_TAD Raw Data Register
1274 */
1275 union bdk_dtx_ccux_tadx_datx
1276 {
1277 uint64_t u;
1278 struct bdk_dtx_ccux_tadx_datx_s
1279 {
1280 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1281 uint64_t reserved_36_63 : 28;
1282 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
1283 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
1284 #else /* Word 0 - Little Endian */
1285 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
1286 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
1287 uint64_t reserved_36_63 : 28;
1288 #endif /* Word 0 - End */
1289 } s;
1290 /* struct bdk_dtx_ccux_tadx_datx_s cn; */
1291 };
1292 typedef union bdk_dtx_ccux_tadx_datx bdk_dtx_ccux_tadx_datx_t;
1293
1294 static inline uint64_t BDK_DTX_CCUX_TADX_DATX(unsigned long a, unsigned long b, unsigned long c) __attribute__ ((pure, always_inline));
1295 static inline uint64_t BDK_DTX_CCUX_TADX_DATX(unsigned long a, unsigned long b, unsigned long c)
1296 {
1297 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=3) && (b<=1) && (c<=1)))
1298 return 0x87e0fed00040ll + 0x10000ll * ((a) & 0x3) + 0x8000ll * ((b) & 0x1) + 8ll * ((c) & 0x1);
1299 __bdk_csr_fatal("DTX_CCUX_TADX_DATX", 3, a, b, c, 0);
1300 }
1301
1302 #define typedef_BDK_DTX_CCUX_TADX_DATX(a,b,c) bdk_dtx_ccux_tadx_datx_t
1303 #define bustype_BDK_DTX_CCUX_TADX_DATX(a,b,c) BDK_CSR_TYPE_RSL
1304 #define basename_BDK_DTX_CCUX_TADX_DATX(a,b,c) "DTX_CCUX_TADX_DATX"
1305 #define busnum_BDK_DTX_CCUX_TADX_DATX(a,b,c) (a)
1306 #define arguments_BDK_DTX_CCUX_TADX_DATX(a,b,c) (a),(b),(c),-1
1307
1308 /**
1309 * Register (RSL) dtx_ccu#_tad#_ena#
1310 *
1311 * DTX CCU_TAD Data Enable Register
1312 */
1313 union bdk_dtx_ccux_tadx_enax
1314 {
1315 uint64_t u;
1316 struct bdk_dtx_ccux_tadx_enax_s
1317 {
1318 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1319 uint64_t reserved_36_63 : 28;
1320 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
1321 buses. Normally only one block will drive each bit. */
1322 #else /* Word 0 - Little Endian */
1323 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
1324 buses. Normally only one block will drive each bit. */
1325 uint64_t reserved_36_63 : 28;
1326 #endif /* Word 0 - End */
1327 } s;
1328 /* struct bdk_dtx_ccux_tadx_enax_s cn; */
1329 };
1330 typedef union bdk_dtx_ccux_tadx_enax bdk_dtx_ccux_tadx_enax_t;
1331
1332 static inline uint64_t BDK_DTX_CCUX_TADX_ENAX(unsigned long a, unsigned long b, unsigned long c) __attribute__ ((pure, always_inline));
1333 static inline uint64_t BDK_DTX_CCUX_TADX_ENAX(unsigned long a, unsigned long b, unsigned long c)
1334 {
1335 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=3) && (b<=1) && (c<=1)))
1336 return 0x87e0fed00020ll + 0x10000ll * ((a) & 0x3) + 0x8000ll * ((b) & 0x1) + 8ll * ((c) & 0x1);
1337 __bdk_csr_fatal("DTX_CCUX_TADX_ENAX", 3, a, b, c, 0);
1338 }
1339
1340 #define typedef_BDK_DTX_CCUX_TADX_ENAX(a,b,c) bdk_dtx_ccux_tadx_enax_t
1341 #define bustype_BDK_DTX_CCUX_TADX_ENAX(a,b,c) BDK_CSR_TYPE_RSL
1342 #define basename_BDK_DTX_CCUX_TADX_ENAX(a,b,c) "DTX_CCUX_TADX_ENAX"
1343 #define busnum_BDK_DTX_CCUX_TADX_ENAX(a,b,c) (a)
1344 #define arguments_BDK_DTX_CCUX_TADX_ENAX(a,b,c) (a),(b),(c),-1
1345
1346 /**
1347 * Register (RSL) dtx_ccu#_tad#_sel#
1348 *
1349 * DTX CCU_TAD Select Register
1350 */
1351 union bdk_dtx_ccux_tadx_selx
1352 {
1353 uint64_t u;
1354 struct bdk_dtx_ccux_tadx_selx_s
1355 {
1356 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1357 uint64_t reserved_24_63 : 40;
1358 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
1359 #else /* Word 0 - Little Endian */
1360 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
1361 uint64_t reserved_24_63 : 40;
1362 #endif /* Word 0 - End */
1363 } s;
1364 /* struct bdk_dtx_ccux_tadx_selx_s cn; */
1365 };
1366 typedef union bdk_dtx_ccux_tadx_selx bdk_dtx_ccux_tadx_selx_t;
1367
1368 static inline uint64_t BDK_DTX_CCUX_TADX_SELX(unsigned long a, unsigned long b, unsigned long c) __attribute__ ((pure, always_inline));
1369 static inline uint64_t BDK_DTX_CCUX_TADX_SELX(unsigned long a, unsigned long b, unsigned long c)
1370 {
1371 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=3) && (b<=1) && (c<=1)))
1372 return 0x87e0fed00000ll + 0x10000ll * ((a) & 0x3) + 0x8000ll * ((b) & 0x1) + 8ll * ((c) & 0x1);
1373 __bdk_csr_fatal("DTX_CCUX_TADX_SELX", 3, a, b, c, 0);
1374 }
1375
1376 #define typedef_BDK_DTX_CCUX_TADX_SELX(a,b,c) bdk_dtx_ccux_tadx_selx_t
1377 #define bustype_BDK_DTX_CCUX_TADX_SELX(a,b,c) BDK_CSR_TYPE_RSL
1378 #define basename_BDK_DTX_CCUX_TADX_SELX(a,b,c) "DTX_CCUX_TADX_SELX"
1379 #define busnum_BDK_DTX_CCUX_TADX_SELX(a,b,c) (a)
1380 #define arguments_BDK_DTX_CCUX_TADX_SELX(a,b,c) (a),(b),(c),-1
1381
1382 /**
1383 * Register (RSL) dtx_cde_bcst_rsp
1384 *
1385 * INTERNAL: DTX CDE Control Register
1386 */
1387 union bdk_dtx_cde_bcst_rsp
1388 {
1389 uint64_t u;
1390 struct bdk_dtx_cde_bcst_rsp_s
1391 {
1392 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1393 uint64_t reserved_1_63 : 63;
1394 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
1395 #else /* Word 0 - Little Endian */
1396 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
1397 uint64_t reserved_1_63 : 63;
1398 #endif /* Word 0 - End */
1399 } s;
1400 /* struct bdk_dtx_cde_bcst_rsp_s cn; */
1401 };
1402 typedef union bdk_dtx_cde_bcst_rsp bdk_dtx_cde_bcst_rsp_t;
1403
1404 #define BDK_DTX_CDE_BCST_RSP BDK_DTX_CDE_BCST_RSP_FUNC()
1405 static inline uint64_t BDK_DTX_CDE_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
1406 static inline uint64_t BDK_DTX_CDE_BCST_RSP_FUNC(void)
1407 {
1408 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX))
1409 return 0x87e0fe7f8080ll;
1410 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
1411 return 0x87e0fe7f8080ll;
1412 __bdk_csr_fatal("DTX_CDE_BCST_RSP", 0, 0, 0, 0, 0);
1413 }
1414
1415 #define typedef_BDK_DTX_CDE_BCST_RSP bdk_dtx_cde_bcst_rsp_t
1416 #define bustype_BDK_DTX_CDE_BCST_RSP BDK_CSR_TYPE_RSL
1417 #define basename_BDK_DTX_CDE_BCST_RSP "DTX_CDE_BCST_RSP"
1418 #define busnum_BDK_DTX_CDE_BCST_RSP 0
1419 #define arguments_BDK_DTX_CDE_BCST_RSP -1,-1,-1,-1
1420
1421 /**
1422 * Register (RSL) dtx_cde_ctl
1423 *
1424 * INTERNAL: DTX CDE Control Register
1425 */
1426 union bdk_dtx_cde_ctl
1427 {
1428 uint64_t u;
1429 struct bdk_dtx_cde_ctl_s
1430 {
1431 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1432 uint64_t reserved_5_63 : 59;
1433 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
1434 uint64_t reserved_2_3 : 2;
1435 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
1436 debug data. Not applicable when software directly reads the DAT(0..1) registers.
1437 For diagnostic use only. */
1438 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
1439 #else /* Word 0 - Little Endian */
1440 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
1441 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
1442 debug data. Not applicable when software directly reads the DAT(0..1) registers.
1443 For diagnostic use only. */
1444 uint64_t reserved_2_3 : 2;
1445 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
1446 uint64_t reserved_5_63 : 59;
1447 #endif /* Word 0 - End */
1448 } s;
1449 /* struct bdk_dtx_cde_ctl_s cn; */
1450 };
1451 typedef union bdk_dtx_cde_ctl bdk_dtx_cde_ctl_t;
1452
1453 #define BDK_DTX_CDE_CTL BDK_DTX_CDE_CTL_FUNC()
1454 static inline uint64_t BDK_DTX_CDE_CTL_FUNC(void) __attribute__ ((pure, always_inline));
1455 static inline uint64_t BDK_DTX_CDE_CTL_FUNC(void)
1456 {
1457 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX))
1458 return 0x87e0fe7f8060ll;
1459 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
1460 return 0x87e0fe7f8060ll;
1461 __bdk_csr_fatal("DTX_CDE_CTL", 0, 0, 0, 0, 0);
1462 }
1463
1464 #define typedef_BDK_DTX_CDE_CTL bdk_dtx_cde_ctl_t
1465 #define bustype_BDK_DTX_CDE_CTL BDK_CSR_TYPE_RSL
1466 #define basename_BDK_DTX_CDE_CTL "DTX_CDE_CTL"
1467 #define busnum_BDK_DTX_CDE_CTL 0
1468 #define arguments_BDK_DTX_CDE_CTL -1,-1,-1,-1
1469
1470 /**
1471 * Register (RSL) dtx_cde_dat#
1472 *
1473 * INTERNAL: DTX CDE Raw Data Register
1474 */
1475 union bdk_dtx_cde_datx
1476 {
1477 uint64_t u;
1478 struct bdk_dtx_cde_datx_s
1479 {
1480 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1481 uint64_t reserved_36_63 : 28;
1482 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
1483 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
1484 #else /* Word 0 - Little Endian */
1485 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
1486 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
1487 uint64_t reserved_36_63 : 28;
1488 #endif /* Word 0 - End */
1489 } s;
1490 /* struct bdk_dtx_cde_datx_s cn; */
1491 };
1492 typedef union bdk_dtx_cde_datx bdk_dtx_cde_datx_t;
1493
1494 static inline uint64_t BDK_DTX_CDE_DATX(unsigned long a) __attribute__ ((pure, always_inline));
1495 static inline uint64_t BDK_DTX_CDE_DATX(unsigned long a)
1496 {
1497 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
1498 return 0x87e0fe7f8040ll + 8ll * ((a) & 0x1);
1499 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
1500 return 0x87e0fe7f8040ll + 8ll * ((a) & 0x1);
1501 __bdk_csr_fatal("DTX_CDE_DATX", 1, a, 0, 0, 0);
1502 }
1503
1504 #define typedef_BDK_DTX_CDE_DATX(a) bdk_dtx_cde_datx_t
1505 #define bustype_BDK_DTX_CDE_DATX(a) BDK_CSR_TYPE_RSL
1506 #define basename_BDK_DTX_CDE_DATX(a) "DTX_CDE_DATX"
1507 #define busnum_BDK_DTX_CDE_DATX(a) (a)
1508 #define arguments_BDK_DTX_CDE_DATX(a) (a),-1,-1,-1
1509
1510 /**
1511 * Register (RSL) dtx_cde_ena#
1512 *
1513 * INTERNAL: DTX CDE Data Enable Register
1514 */
1515 union bdk_dtx_cde_enax
1516 {
1517 uint64_t u;
1518 struct bdk_dtx_cde_enax_s
1519 {
1520 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1521 uint64_t reserved_36_63 : 28;
1522 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
1523 buses. Normally only one block will drive each bit. */
1524 #else /* Word 0 - Little Endian */
1525 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
1526 buses. Normally only one block will drive each bit. */
1527 uint64_t reserved_36_63 : 28;
1528 #endif /* Word 0 - End */
1529 } s;
1530 /* struct bdk_dtx_cde_enax_s cn; */
1531 };
1532 typedef union bdk_dtx_cde_enax bdk_dtx_cde_enax_t;
1533
1534 static inline uint64_t BDK_DTX_CDE_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
1535 static inline uint64_t BDK_DTX_CDE_ENAX(unsigned long a)
1536 {
1537 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
1538 return 0x87e0fe7f8020ll + 8ll * ((a) & 0x1);
1539 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
1540 return 0x87e0fe7f8020ll + 8ll * ((a) & 0x1);
1541 __bdk_csr_fatal("DTX_CDE_ENAX", 1, a, 0, 0, 0);
1542 }
1543
1544 #define typedef_BDK_DTX_CDE_ENAX(a) bdk_dtx_cde_enax_t
1545 #define bustype_BDK_DTX_CDE_ENAX(a) BDK_CSR_TYPE_RSL
1546 #define basename_BDK_DTX_CDE_ENAX(a) "DTX_CDE_ENAX"
1547 #define busnum_BDK_DTX_CDE_ENAX(a) (a)
1548 #define arguments_BDK_DTX_CDE_ENAX(a) (a),-1,-1,-1
1549
1550 /**
1551 * Register (RSL) dtx_cde_sel#
1552 *
1553 * INTERNAL: DTX CDE Select Register
1554 */
1555 union bdk_dtx_cde_selx
1556 {
1557 uint64_t u;
1558 struct bdk_dtx_cde_selx_s
1559 {
1560 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1561 uint64_t reserved_24_63 : 40;
1562 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
1563 #else /* Word 0 - Little Endian */
1564 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
1565 uint64_t reserved_24_63 : 40;
1566 #endif /* Word 0 - End */
1567 } s;
1568 /* struct bdk_dtx_cde_selx_s cn; */
1569 };
1570 typedef union bdk_dtx_cde_selx bdk_dtx_cde_selx_t;
1571
1572 static inline uint64_t BDK_DTX_CDE_SELX(unsigned long a) __attribute__ ((pure, always_inline));
1573 static inline uint64_t BDK_DTX_CDE_SELX(unsigned long a)
1574 {
1575 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
1576 return 0x87e0fe7f8000ll + 8ll * ((a) & 0x1);
1577 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
1578 return 0x87e0fe7f8000ll + 8ll * ((a) & 0x1);
1579 __bdk_csr_fatal("DTX_CDE_SELX", 1, a, 0, 0, 0);
1580 }
1581
1582 #define typedef_BDK_DTX_CDE_SELX(a) bdk_dtx_cde_selx_t
1583 #define bustype_BDK_DTX_CDE_SELX(a) BDK_CSR_TYPE_RSL
1584 #define basename_BDK_DTX_CDE_SELX(a) "DTX_CDE_SELX"
1585 #define busnum_BDK_DTX_CDE_SELX(a) (a)
1586 #define arguments_BDK_DTX_CDE_SELX(a) (a),-1,-1,-1
1587
1588 /**
1589 * Register (RSL) dtx_cgx#_bcst_rsp
1590 *
1591 * DTX CGX Control Register
1592 */
1593 union bdk_dtx_cgxx_bcst_rsp
1594 {
1595 uint64_t u;
1596 struct bdk_dtx_cgxx_bcst_rsp_s
1597 {
1598 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1599 uint64_t reserved_1_63 : 63;
1600 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
1601 #else /* Word 0 - Little Endian */
1602 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
1603 uint64_t reserved_1_63 : 63;
1604 #endif /* Word 0 - End */
1605 } s;
1606 /* struct bdk_dtx_cgxx_bcst_rsp_s cn; */
1607 };
1608 typedef union bdk_dtx_cgxx_bcst_rsp bdk_dtx_cgxx_bcst_rsp_t;
1609
1610 static inline uint64_t BDK_DTX_CGXX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
1611 static inline uint64_t BDK_DTX_CGXX_BCST_RSP(unsigned long a)
1612 {
1613 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=2))
1614 return 0x87e0fe700080ll + 0x8000ll * ((a) & 0x3);
1615 __bdk_csr_fatal("DTX_CGXX_BCST_RSP", 1, a, 0, 0, 0);
1616 }
1617
1618 #define typedef_BDK_DTX_CGXX_BCST_RSP(a) bdk_dtx_cgxx_bcst_rsp_t
1619 #define bustype_BDK_DTX_CGXX_BCST_RSP(a) BDK_CSR_TYPE_RSL
1620 #define basename_BDK_DTX_CGXX_BCST_RSP(a) "DTX_CGXX_BCST_RSP"
1621 #define busnum_BDK_DTX_CGXX_BCST_RSP(a) (a)
1622 #define arguments_BDK_DTX_CGXX_BCST_RSP(a) (a),-1,-1,-1
1623
1624 /**
1625 * Register (RSL) dtx_cgx#_ctl
1626 *
1627 * DTX CGX Control Register
1628 */
1629 union bdk_dtx_cgxx_ctl
1630 {
1631 uint64_t u;
1632 struct bdk_dtx_cgxx_ctl_s
1633 {
1634 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1635 uint64_t reserved_5_63 : 59;
1636 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
1637 uint64_t reserved_2_3 : 2;
1638 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
1639 debug data. Not applicable when software directly reads the DAT(0..1) registers.
1640 For diagnostic use only. */
1641 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
1642 #else /* Word 0 - Little Endian */
1643 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
1644 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
1645 debug data. Not applicable when software directly reads the DAT(0..1) registers.
1646 For diagnostic use only. */
1647 uint64_t reserved_2_3 : 2;
1648 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
1649 uint64_t reserved_5_63 : 59;
1650 #endif /* Word 0 - End */
1651 } s;
1652 /* struct bdk_dtx_cgxx_ctl_s cn; */
1653 };
1654 typedef union bdk_dtx_cgxx_ctl bdk_dtx_cgxx_ctl_t;
1655
1656 static inline uint64_t BDK_DTX_CGXX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
1657 static inline uint64_t BDK_DTX_CGXX_CTL(unsigned long a)
1658 {
1659 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=2))
1660 return 0x87e0fe700060ll + 0x8000ll * ((a) & 0x3);
1661 __bdk_csr_fatal("DTX_CGXX_CTL", 1, a, 0, 0, 0);
1662 }
1663
1664 #define typedef_BDK_DTX_CGXX_CTL(a) bdk_dtx_cgxx_ctl_t
1665 #define bustype_BDK_DTX_CGXX_CTL(a) BDK_CSR_TYPE_RSL
1666 #define basename_BDK_DTX_CGXX_CTL(a) "DTX_CGXX_CTL"
1667 #define busnum_BDK_DTX_CGXX_CTL(a) (a)
1668 #define arguments_BDK_DTX_CGXX_CTL(a) (a),-1,-1,-1
1669
1670 /**
1671 * Register (RSL) dtx_cgx#_dat#
1672 *
1673 * DTX CGX Raw Data Register
1674 */
1675 union bdk_dtx_cgxx_datx
1676 {
1677 uint64_t u;
1678 struct bdk_dtx_cgxx_datx_s
1679 {
1680 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1681 uint64_t reserved_36_63 : 28;
1682 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
1683 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
1684 #else /* Word 0 - Little Endian */
1685 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
1686 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
1687 uint64_t reserved_36_63 : 28;
1688 #endif /* Word 0 - End */
1689 } s;
1690 /* struct bdk_dtx_cgxx_datx_s cn; */
1691 };
1692 typedef union bdk_dtx_cgxx_datx bdk_dtx_cgxx_datx_t;
1693
1694 static inline uint64_t BDK_DTX_CGXX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
1695 static inline uint64_t BDK_DTX_CGXX_DATX(unsigned long a, unsigned long b)
1696 {
1697 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=2) && (b<=1)))
1698 return 0x87e0fe700040ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
1699 __bdk_csr_fatal("DTX_CGXX_DATX", 2, a, b, 0, 0);
1700 }
1701
1702 #define typedef_BDK_DTX_CGXX_DATX(a,b) bdk_dtx_cgxx_datx_t
1703 #define bustype_BDK_DTX_CGXX_DATX(a,b) BDK_CSR_TYPE_RSL
1704 #define basename_BDK_DTX_CGXX_DATX(a,b) "DTX_CGXX_DATX"
1705 #define busnum_BDK_DTX_CGXX_DATX(a,b) (a)
1706 #define arguments_BDK_DTX_CGXX_DATX(a,b) (a),(b),-1,-1
1707
1708 /**
1709 * Register (RSL) dtx_cgx#_ena#
1710 *
1711 * DTX CGX Data Enable Register
1712 */
1713 union bdk_dtx_cgxx_enax
1714 {
1715 uint64_t u;
1716 struct bdk_dtx_cgxx_enax_s
1717 {
1718 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1719 uint64_t reserved_36_63 : 28;
1720 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
1721 buses. Normally only one block will drive each bit. */
1722 #else /* Word 0 - Little Endian */
1723 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
1724 buses. Normally only one block will drive each bit. */
1725 uint64_t reserved_36_63 : 28;
1726 #endif /* Word 0 - End */
1727 } s;
1728 /* struct bdk_dtx_cgxx_enax_s cn; */
1729 };
1730 typedef union bdk_dtx_cgxx_enax bdk_dtx_cgxx_enax_t;
1731
1732 static inline uint64_t BDK_DTX_CGXX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
1733 static inline uint64_t BDK_DTX_CGXX_ENAX(unsigned long a, unsigned long b)
1734 {
1735 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=2) && (b<=1)))
1736 return 0x87e0fe700020ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
1737 __bdk_csr_fatal("DTX_CGXX_ENAX", 2, a, b, 0, 0);
1738 }
1739
1740 #define typedef_BDK_DTX_CGXX_ENAX(a,b) bdk_dtx_cgxx_enax_t
1741 #define bustype_BDK_DTX_CGXX_ENAX(a,b) BDK_CSR_TYPE_RSL
1742 #define basename_BDK_DTX_CGXX_ENAX(a,b) "DTX_CGXX_ENAX"
1743 #define busnum_BDK_DTX_CGXX_ENAX(a,b) (a)
1744 #define arguments_BDK_DTX_CGXX_ENAX(a,b) (a),(b),-1,-1
1745
1746 /**
1747 * Register (RSL) dtx_cgx#_sel#
1748 *
1749 * DTX CGX Select Register
1750 */
1751 union bdk_dtx_cgxx_selx
1752 {
1753 uint64_t u;
1754 struct bdk_dtx_cgxx_selx_s
1755 {
1756 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1757 uint64_t reserved_24_63 : 40;
1758 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
1759 #else /* Word 0 - Little Endian */
1760 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
1761 uint64_t reserved_24_63 : 40;
1762 #endif /* Word 0 - End */
1763 } s;
1764 /* struct bdk_dtx_cgxx_selx_s cn; */
1765 };
1766 typedef union bdk_dtx_cgxx_selx bdk_dtx_cgxx_selx_t;
1767
1768 static inline uint64_t BDK_DTX_CGXX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
1769 static inline uint64_t BDK_DTX_CGXX_SELX(unsigned long a, unsigned long b)
1770 {
1771 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=2) && (b<=1)))
1772 return 0x87e0fe700000ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
1773 __bdk_csr_fatal("DTX_CGXX_SELX", 2, a, b, 0, 0);
1774 }
1775
1776 #define typedef_BDK_DTX_CGXX_SELX(a,b) bdk_dtx_cgxx_selx_t
1777 #define bustype_BDK_DTX_CGXX_SELX(a,b) BDK_CSR_TYPE_RSL
1778 #define basename_BDK_DTX_CGXX_SELX(a,b) "DTX_CGXX_SELX"
1779 #define busnum_BDK_DTX_CGXX_SELX(a,b) (a)
1780 #define arguments_BDK_DTX_CGXX_SELX(a,b) (a),(b),-1,-1
1781
1782 /**
1783 * Register (RSL) dtx_cpc_bcst_rsp
1784 *
1785 * DTX CPC Control Register
1786 */
1787 union bdk_dtx_cpc_bcst_rsp
1788 {
1789 uint64_t u;
1790 struct bdk_dtx_cpc_bcst_rsp_s
1791 {
1792 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1793 uint64_t reserved_1_63 : 63;
1794 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
1795 #else /* Word 0 - Little Endian */
1796 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
1797 uint64_t reserved_1_63 : 63;
1798 #endif /* Word 0 - End */
1799 } s;
1800 /* struct bdk_dtx_cpc_bcst_rsp_s cn; */
1801 };
1802 typedef union bdk_dtx_cpc_bcst_rsp bdk_dtx_cpc_bcst_rsp_t;
1803
1804 #define BDK_DTX_CPC_BCST_RSP BDK_DTX_CPC_BCST_RSP_FUNC()
1805 static inline uint64_t BDK_DTX_CPC_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
1806 static inline uint64_t BDK_DTX_CPC_BCST_RSP_FUNC(void)
1807 {
1808 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
1809 return 0x87e0feb68080ll;
1810 __bdk_csr_fatal("DTX_CPC_BCST_RSP", 0, 0, 0, 0, 0);
1811 }
1812
1813 #define typedef_BDK_DTX_CPC_BCST_RSP bdk_dtx_cpc_bcst_rsp_t
1814 #define bustype_BDK_DTX_CPC_BCST_RSP BDK_CSR_TYPE_RSL
1815 #define basename_BDK_DTX_CPC_BCST_RSP "DTX_CPC_BCST_RSP"
1816 #define busnum_BDK_DTX_CPC_BCST_RSP 0
1817 #define arguments_BDK_DTX_CPC_BCST_RSP -1,-1,-1,-1
1818
1819 /**
1820 * Register (RSL) dtx_cpc_ctl
1821 *
1822 * DTX CPC Control Register
1823 */
1824 union bdk_dtx_cpc_ctl
1825 {
1826 uint64_t u;
1827 struct bdk_dtx_cpc_ctl_s
1828 {
1829 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1830 uint64_t reserved_5_63 : 59;
1831 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
1832 uint64_t reserved_2_3 : 2;
1833 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
1834 debug data. Not applicable when software directly reads the DAT(0..1) registers.
1835 For diagnostic use only. */
1836 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
1837 #else /* Word 0 - Little Endian */
1838 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
1839 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
1840 debug data. Not applicable when software directly reads the DAT(0..1) registers.
1841 For diagnostic use only. */
1842 uint64_t reserved_2_3 : 2;
1843 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
1844 uint64_t reserved_5_63 : 59;
1845 #endif /* Word 0 - End */
1846 } s;
1847 /* struct bdk_dtx_cpc_ctl_s cn; */
1848 };
1849 typedef union bdk_dtx_cpc_ctl bdk_dtx_cpc_ctl_t;
1850
1851 #define BDK_DTX_CPC_CTL BDK_DTX_CPC_CTL_FUNC()
1852 static inline uint64_t BDK_DTX_CPC_CTL_FUNC(void) __attribute__ ((pure, always_inline));
1853 static inline uint64_t BDK_DTX_CPC_CTL_FUNC(void)
1854 {
1855 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
1856 return 0x87e0feb68060ll;
1857 __bdk_csr_fatal("DTX_CPC_CTL", 0, 0, 0, 0, 0);
1858 }
1859
1860 #define typedef_BDK_DTX_CPC_CTL bdk_dtx_cpc_ctl_t
1861 #define bustype_BDK_DTX_CPC_CTL BDK_CSR_TYPE_RSL
1862 #define basename_BDK_DTX_CPC_CTL "DTX_CPC_CTL"
1863 #define busnum_BDK_DTX_CPC_CTL 0
1864 #define arguments_BDK_DTX_CPC_CTL -1,-1,-1,-1
1865
1866 /**
1867 * Register (RSL) dtx_cpc_dat#
1868 *
1869 * DTX CPC Raw Data Register
1870 */
1871 union bdk_dtx_cpc_datx
1872 {
1873 uint64_t u;
1874 struct bdk_dtx_cpc_datx_s
1875 {
1876 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1877 uint64_t reserved_36_63 : 28;
1878 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
1879 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
1880 #else /* Word 0 - Little Endian */
1881 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
1882 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
1883 uint64_t reserved_36_63 : 28;
1884 #endif /* Word 0 - End */
1885 } s;
1886 /* struct bdk_dtx_cpc_datx_s cn; */
1887 };
1888 typedef union bdk_dtx_cpc_datx bdk_dtx_cpc_datx_t;
1889
1890 static inline uint64_t BDK_DTX_CPC_DATX(unsigned long a) __attribute__ ((pure, always_inline));
1891 static inline uint64_t BDK_DTX_CPC_DATX(unsigned long a)
1892 {
1893 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
1894 return 0x87e0feb68040ll + 8ll * ((a) & 0x1);
1895 __bdk_csr_fatal("DTX_CPC_DATX", 1, a, 0, 0, 0);
1896 }
1897
1898 #define typedef_BDK_DTX_CPC_DATX(a) bdk_dtx_cpc_datx_t
1899 #define bustype_BDK_DTX_CPC_DATX(a) BDK_CSR_TYPE_RSL
1900 #define basename_BDK_DTX_CPC_DATX(a) "DTX_CPC_DATX"
1901 #define busnum_BDK_DTX_CPC_DATX(a) (a)
1902 #define arguments_BDK_DTX_CPC_DATX(a) (a),-1,-1,-1
1903
1904 /**
1905 * Register (RSL) dtx_cpc_ena#
1906 *
1907 * DTX CPC Data Enable Register
1908 */
1909 union bdk_dtx_cpc_enax
1910 {
1911 uint64_t u;
1912 struct bdk_dtx_cpc_enax_s
1913 {
1914 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1915 uint64_t reserved_36_63 : 28;
1916 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
1917 buses. Normally only one block will drive each bit. */
1918 #else /* Word 0 - Little Endian */
1919 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
1920 buses. Normally only one block will drive each bit. */
1921 uint64_t reserved_36_63 : 28;
1922 #endif /* Word 0 - End */
1923 } s;
1924 /* struct bdk_dtx_cpc_enax_s cn; */
1925 };
1926 typedef union bdk_dtx_cpc_enax bdk_dtx_cpc_enax_t;
1927
1928 static inline uint64_t BDK_DTX_CPC_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
1929 static inline uint64_t BDK_DTX_CPC_ENAX(unsigned long a)
1930 {
1931 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
1932 return 0x87e0feb68020ll + 8ll * ((a) & 0x1);
1933 __bdk_csr_fatal("DTX_CPC_ENAX", 1, a, 0, 0, 0);
1934 }
1935
1936 #define typedef_BDK_DTX_CPC_ENAX(a) bdk_dtx_cpc_enax_t
1937 #define bustype_BDK_DTX_CPC_ENAX(a) BDK_CSR_TYPE_RSL
1938 #define basename_BDK_DTX_CPC_ENAX(a) "DTX_CPC_ENAX"
1939 #define busnum_BDK_DTX_CPC_ENAX(a) (a)
1940 #define arguments_BDK_DTX_CPC_ENAX(a) (a),-1,-1,-1
1941
1942 /**
1943 * Register (RSL) dtx_cpc_sel#
1944 *
1945 * DTX CPC Select Register
1946 */
1947 union bdk_dtx_cpc_selx
1948 {
1949 uint64_t u;
1950 struct bdk_dtx_cpc_selx_s
1951 {
1952 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1953 uint64_t reserved_24_63 : 40;
1954 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
1955 #else /* Word 0 - Little Endian */
1956 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
1957 uint64_t reserved_24_63 : 40;
1958 #endif /* Word 0 - End */
1959 } s;
1960 /* struct bdk_dtx_cpc_selx_s cn; */
1961 };
1962 typedef union bdk_dtx_cpc_selx bdk_dtx_cpc_selx_t;
1963
1964 static inline uint64_t BDK_DTX_CPC_SELX(unsigned long a) __attribute__ ((pure, always_inline));
1965 static inline uint64_t BDK_DTX_CPC_SELX(unsigned long a)
1966 {
1967 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
1968 return 0x87e0feb68000ll + 8ll * ((a) & 0x1);
1969 __bdk_csr_fatal("DTX_CPC_SELX", 1, a, 0, 0, 0);
1970 }
1971
1972 #define typedef_BDK_DTX_CPC_SELX(a) bdk_dtx_cpc_selx_t
1973 #define bustype_BDK_DTX_CPC_SELX(a) BDK_CSR_TYPE_RSL
1974 #define basename_BDK_DTX_CPC_SELX(a) "DTX_CPC_SELX"
1975 #define busnum_BDK_DTX_CPC_SELX(a) (a)
1976 #define arguments_BDK_DTX_CPC_SELX(a) (a),-1,-1,-1
1977
1978 /**
1979 * Register (RSL) dtx_cpt#_bcst_rsp
1980 *
1981 * DTX CPT Control Register
1982 */
1983 union bdk_dtx_cptx_bcst_rsp
1984 {
1985 uint64_t u;
1986 struct bdk_dtx_cptx_bcst_rsp_s
1987 {
1988 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
1989 uint64_t reserved_1_63 : 63;
1990 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
1991 #else /* Word 0 - Little Endian */
1992 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
1993 uint64_t reserved_1_63 : 63;
1994 #endif /* Word 0 - End */
1995 } s;
1996 /* struct bdk_dtx_cptx_bcst_rsp_s cn; */
1997 };
1998 typedef union bdk_dtx_cptx_bcst_rsp bdk_dtx_cptx_bcst_rsp_t;
1999
2000 static inline uint64_t BDK_DTX_CPTX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
2001 static inline uint64_t BDK_DTX_CPTX_BCST_RSP(unsigned long a)
2002 {
2003 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
2004 return 0x87e0feb90080ll + 0x8000ll * ((a) & 0x1);
2005 __bdk_csr_fatal("DTX_CPTX_BCST_RSP", 1, a, 0, 0, 0);
2006 }
2007
2008 #define typedef_BDK_DTX_CPTX_BCST_RSP(a) bdk_dtx_cptx_bcst_rsp_t
2009 #define bustype_BDK_DTX_CPTX_BCST_RSP(a) BDK_CSR_TYPE_RSL
2010 #define basename_BDK_DTX_CPTX_BCST_RSP(a) "DTX_CPTX_BCST_RSP"
2011 #define busnum_BDK_DTX_CPTX_BCST_RSP(a) (a)
2012 #define arguments_BDK_DTX_CPTX_BCST_RSP(a) (a),-1,-1,-1
2013
2014 /**
2015 * Register (RSL) dtx_cpt#_ctl
2016 *
2017 * DTX CPT Control Register
2018 */
2019 union bdk_dtx_cptx_ctl
2020 {
2021 uint64_t u;
2022 struct bdk_dtx_cptx_ctl_s
2023 {
2024 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2025 uint64_t reserved_5_63 : 59;
2026 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
2027 uint64_t reserved_2_3 : 2;
2028 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
2029 debug data. Not applicable when software directly reads the DAT(0..1) registers.
2030 For diagnostic use only. */
2031 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
2032 #else /* Word 0 - Little Endian */
2033 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
2034 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
2035 debug data. Not applicable when software directly reads the DAT(0..1) registers.
2036 For diagnostic use only. */
2037 uint64_t reserved_2_3 : 2;
2038 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
2039 uint64_t reserved_5_63 : 59;
2040 #endif /* Word 0 - End */
2041 } s;
2042 /* struct bdk_dtx_cptx_ctl_s cn; */
2043 };
2044 typedef union bdk_dtx_cptx_ctl bdk_dtx_cptx_ctl_t;
2045
2046 static inline uint64_t BDK_DTX_CPTX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
2047 static inline uint64_t BDK_DTX_CPTX_CTL(unsigned long a)
2048 {
2049 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
2050 return 0x87e0feb90060ll + 0x8000ll * ((a) & 0x1);
2051 __bdk_csr_fatal("DTX_CPTX_CTL", 1, a, 0, 0, 0);
2052 }
2053
2054 #define typedef_BDK_DTX_CPTX_CTL(a) bdk_dtx_cptx_ctl_t
2055 #define bustype_BDK_DTX_CPTX_CTL(a) BDK_CSR_TYPE_RSL
2056 #define basename_BDK_DTX_CPTX_CTL(a) "DTX_CPTX_CTL"
2057 #define busnum_BDK_DTX_CPTX_CTL(a) (a)
2058 #define arguments_BDK_DTX_CPTX_CTL(a) (a),-1,-1,-1
2059
2060 /**
2061 * Register (RSL) dtx_cpt#_dat#
2062 *
2063 * DTX CPT Raw Data Register
2064 */
2065 union bdk_dtx_cptx_datx
2066 {
2067 uint64_t u;
2068 struct bdk_dtx_cptx_datx_s
2069 {
2070 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2071 uint64_t reserved_36_63 : 28;
2072 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
2073 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
2074 #else /* Word 0 - Little Endian */
2075 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
2076 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
2077 uint64_t reserved_36_63 : 28;
2078 #endif /* Word 0 - End */
2079 } s;
2080 /* struct bdk_dtx_cptx_datx_s cn; */
2081 };
2082 typedef union bdk_dtx_cptx_datx bdk_dtx_cptx_datx_t;
2083
2084 static inline uint64_t BDK_DTX_CPTX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
2085 static inline uint64_t BDK_DTX_CPTX_DATX(unsigned long a, unsigned long b)
2086 {
2087 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=1) && (b<=1)))
2088 return 0x87e0feb90040ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
2089 __bdk_csr_fatal("DTX_CPTX_DATX", 2, a, b, 0, 0);
2090 }
2091
2092 #define typedef_BDK_DTX_CPTX_DATX(a,b) bdk_dtx_cptx_datx_t
2093 #define bustype_BDK_DTX_CPTX_DATX(a,b) BDK_CSR_TYPE_RSL
2094 #define basename_BDK_DTX_CPTX_DATX(a,b) "DTX_CPTX_DATX"
2095 #define busnum_BDK_DTX_CPTX_DATX(a,b) (a)
2096 #define arguments_BDK_DTX_CPTX_DATX(a,b) (a),(b),-1,-1
2097
2098 /**
2099 * Register (RSL) dtx_cpt#_ena#
2100 *
2101 * DTX CPT Data Enable Register
2102 */
2103 union bdk_dtx_cptx_enax
2104 {
2105 uint64_t u;
2106 struct bdk_dtx_cptx_enax_s
2107 {
2108 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2109 uint64_t reserved_36_63 : 28;
2110 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
2111 buses. Normally only one block will drive each bit. */
2112 #else /* Word 0 - Little Endian */
2113 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
2114 buses. Normally only one block will drive each bit. */
2115 uint64_t reserved_36_63 : 28;
2116 #endif /* Word 0 - End */
2117 } s;
2118 /* struct bdk_dtx_cptx_enax_s cn; */
2119 };
2120 typedef union bdk_dtx_cptx_enax bdk_dtx_cptx_enax_t;
2121
2122 static inline uint64_t BDK_DTX_CPTX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
2123 static inline uint64_t BDK_DTX_CPTX_ENAX(unsigned long a, unsigned long b)
2124 {
2125 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=1) && (b<=1)))
2126 return 0x87e0feb90020ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
2127 __bdk_csr_fatal("DTX_CPTX_ENAX", 2, a, b, 0, 0);
2128 }
2129
2130 #define typedef_BDK_DTX_CPTX_ENAX(a,b) bdk_dtx_cptx_enax_t
2131 #define bustype_BDK_DTX_CPTX_ENAX(a,b) BDK_CSR_TYPE_RSL
2132 #define basename_BDK_DTX_CPTX_ENAX(a,b) "DTX_CPTX_ENAX"
2133 #define busnum_BDK_DTX_CPTX_ENAX(a,b) (a)
2134 #define arguments_BDK_DTX_CPTX_ENAX(a,b) (a),(b),-1,-1
2135
2136 /**
2137 * Register (RSL) dtx_cpt#_sel#
2138 *
2139 * DTX CPT Select Register
2140 */
2141 union bdk_dtx_cptx_selx
2142 {
2143 uint64_t u;
2144 struct bdk_dtx_cptx_selx_s
2145 {
2146 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2147 uint64_t reserved_24_63 : 40;
2148 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
2149 #else /* Word 0 - Little Endian */
2150 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
2151 uint64_t reserved_24_63 : 40;
2152 #endif /* Word 0 - End */
2153 } s;
2154 /* struct bdk_dtx_cptx_selx_s cn; */
2155 };
2156 typedef union bdk_dtx_cptx_selx bdk_dtx_cptx_selx_t;
2157
2158 static inline uint64_t BDK_DTX_CPTX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
2159 static inline uint64_t BDK_DTX_CPTX_SELX(unsigned long a, unsigned long b)
2160 {
2161 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=1) && (b<=1)))
2162 return 0x87e0feb90000ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
2163 __bdk_csr_fatal("DTX_CPTX_SELX", 2, a, b, 0, 0);
2164 }
2165
2166 #define typedef_BDK_DTX_CPTX_SELX(a,b) bdk_dtx_cptx_selx_t
2167 #define bustype_BDK_DTX_CPTX_SELX(a,b) BDK_CSR_TYPE_RSL
2168 #define basename_BDK_DTX_CPTX_SELX(a,b) "DTX_CPTX_SELX"
2169 #define busnum_BDK_DTX_CPTX_SELX(a,b) (a)
2170 #define arguments_BDK_DTX_CPTX_SELX(a,b) (a),(b),-1,-1
2171
2172 /**
2173 * Register (RSL) dtx_cpt0_bcst_rsp
2174 *
2175 * DTX CPT0 Control Register
2176 */
2177 union bdk_dtx_cpt0_bcst_rsp
2178 {
2179 uint64_t u;
2180 struct bdk_dtx_cpt0_bcst_rsp_s
2181 {
2182 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2183 uint64_t reserved_1_63 : 63;
2184 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
2185 #else /* Word 0 - Little Endian */
2186 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
2187 uint64_t reserved_1_63 : 63;
2188 #endif /* Word 0 - End */
2189 } s;
2190 /* struct bdk_dtx_cpt0_bcst_rsp_s cn; */
2191 };
2192 typedef union bdk_dtx_cpt0_bcst_rsp bdk_dtx_cpt0_bcst_rsp_t;
2193
2194 #define BDK_DTX_CPT0_BCST_RSP BDK_DTX_CPT0_BCST_RSP_FUNC()
2195 static inline uint64_t BDK_DTX_CPT0_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
2196 static inline uint64_t BDK_DTX_CPT0_BCST_RSP_FUNC(void)
2197 {
2198 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX))
2199 return 0x87e0feb90080ll;
2200 __bdk_csr_fatal("DTX_CPT0_BCST_RSP", 0, 0, 0, 0, 0);
2201 }
2202
2203 #define typedef_BDK_DTX_CPT0_BCST_RSP bdk_dtx_cpt0_bcst_rsp_t
2204 #define bustype_BDK_DTX_CPT0_BCST_RSP BDK_CSR_TYPE_RSL
2205 #define basename_BDK_DTX_CPT0_BCST_RSP "DTX_CPT0_BCST_RSP"
2206 #define busnum_BDK_DTX_CPT0_BCST_RSP 0
2207 #define arguments_BDK_DTX_CPT0_BCST_RSP -1,-1,-1,-1
2208
2209 /**
2210 * Register (RSL) dtx_cpt0_ctl
2211 *
2212 * DTX CPT0 Control Register
2213 */
2214 union bdk_dtx_cpt0_ctl
2215 {
2216 uint64_t u;
2217 struct bdk_dtx_cpt0_ctl_s
2218 {
2219 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2220 uint64_t reserved_5_63 : 59;
2221 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
2222 uint64_t reserved_2_3 : 2;
2223 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
2224 debug data. Not applicable when software directly reads the DAT(0..1) registers.
2225 For diagnostic use only. */
2226 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
2227 #else /* Word 0 - Little Endian */
2228 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
2229 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
2230 debug data. Not applicable when software directly reads the DAT(0..1) registers.
2231 For diagnostic use only. */
2232 uint64_t reserved_2_3 : 2;
2233 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
2234 uint64_t reserved_5_63 : 59;
2235 #endif /* Word 0 - End */
2236 } s;
2237 /* struct bdk_dtx_cpt0_ctl_s cn; */
2238 };
2239 typedef union bdk_dtx_cpt0_ctl bdk_dtx_cpt0_ctl_t;
2240
2241 #define BDK_DTX_CPT0_CTL BDK_DTX_CPT0_CTL_FUNC()
2242 static inline uint64_t BDK_DTX_CPT0_CTL_FUNC(void) __attribute__ ((pure, always_inline));
2243 static inline uint64_t BDK_DTX_CPT0_CTL_FUNC(void)
2244 {
2245 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX))
2246 return 0x87e0feb90060ll;
2247 __bdk_csr_fatal("DTX_CPT0_CTL", 0, 0, 0, 0, 0);
2248 }
2249
2250 #define typedef_BDK_DTX_CPT0_CTL bdk_dtx_cpt0_ctl_t
2251 #define bustype_BDK_DTX_CPT0_CTL BDK_CSR_TYPE_RSL
2252 #define basename_BDK_DTX_CPT0_CTL "DTX_CPT0_CTL"
2253 #define busnum_BDK_DTX_CPT0_CTL 0
2254 #define arguments_BDK_DTX_CPT0_CTL -1,-1,-1,-1
2255
2256 /**
2257 * Register (RSL) dtx_cpt0_dat#
2258 *
2259 * DTX CPT0 Raw Data Register
2260 */
2261 union bdk_dtx_cpt0_datx
2262 {
2263 uint64_t u;
2264 struct bdk_dtx_cpt0_datx_s
2265 {
2266 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2267 uint64_t reserved_36_63 : 28;
2268 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
2269 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
2270 #else /* Word 0 - Little Endian */
2271 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
2272 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
2273 uint64_t reserved_36_63 : 28;
2274 #endif /* Word 0 - End */
2275 } s;
2276 /* struct bdk_dtx_cpt0_datx_s cn; */
2277 };
2278 typedef union bdk_dtx_cpt0_datx bdk_dtx_cpt0_datx_t;
2279
2280 static inline uint64_t BDK_DTX_CPT0_DATX(unsigned long a) __attribute__ ((pure, always_inline));
2281 static inline uint64_t BDK_DTX_CPT0_DATX(unsigned long a)
2282 {
2283 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
2284 return 0x87e0feb90040ll + 8ll * ((a) & 0x1);
2285 __bdk_csr_fatal("DTX_CPT0_DATX", 1, a, 0, 0, 0);
2286 }
2287
2288 #define typedef_BDK_DTX_CPT0_DATX(a) bdk_dtx_cpt0_datx_t
2289 #define bustype_BDK_DTX_CPT0_DATX(a) BDK_CSR_TYPE_RSL
2290 #define basename_BDK_DTX_CPT0_DATX(a) "DTX_CPT0_DATX"
2291 #define busnum_BDK_DTX_CPT0_DATX(a) (a)
2292 #define arguments_BDK_DTX_CPT0_DATX(a) (a),-1,-1,-1
2293
2294 /**
2295 * Register (RSL) dtx_cpt0_ena#
2296 *
2297 * DTX CPT0 Data Enable Register
2298 */
2299 union bdk_dtx_cpt0_enax
2300 {
2301 uint64_t u;
2302 struct bdk_dtx_cpt0_enax_s
2303 {
2304 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2305 uint64_t reserved_36_63 : 28;
2306 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
2307 buses. Normally only one block will drive each bit. */
2308 #else /* Word 0 - Little Endian */
2309 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
2310 buses. Normally only one block will drive each bit. */
2311 uint64_t reserved_36_63 : 28;
2312 #endif /* Word 0 - End */
2313 } s;
2314 /* struct bdk_dtx_cpt0_enax_s cn; */
2315 };
2316 typedef union bdk_dtx_cpt0_enax bdk_dtx_cpt0_enax_t;
2317
2318 static inline uint64_t BDK_DTX_CPT0_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
2319 static inline uint64_t BDK_DTX_CPT0_ENAX(unsigned long a)
2320 {
2321 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
2322 return 0x87e0feb90020ll + 8ll * ((a) & 0x1);
2323 __bdk_csr_fatal("DTX_CPT0_ENAX", 1, a, 0, 0, 0);
2324 }
2325
2326 #define typedef_BDK_DTX_CPT0_ENAX(a) bdk_dtx_cpt0_enax_t
2327 #define bustype_BDK_DTX_CPT0_ENAX(a) BDK_CSR_TYPE_RSL
2328 #define basename_BDK_DTX_CPT0_ENAX(a) "DTX_CPT0_ENAX"
2329 #define busnum_BDK_DTX_CPT0_ENAX(a) (a)
2330 #define arguments_BDK_DTX_CPT0_ENAX(a) (a),-1,-1,-1
2331
2332 /**
2333 * Register (RSL) dtx_cpt0_sel#
2334 *
2335 * DTX CPT0 Select Register
2336 */
2337 union bdk_dtx_cpt0_selx
2338 {
2339 uint64_t u;
2340 struct bdk_dtx_cpt0_selx_s
2341 {
2342 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2343 uint64_t reserved_24_63 : 40;
2344 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
2345 #else /* Word 0 - Little Endian */
2346 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
2347 uint64_t reserved_24_63 : 40;
2348 #endif /* Word 0 - End */
2349 } s;
2350 /* struct bdk_dtx_cpt0_selx_s cn; */
2351 };
2352 typedef union bdk_dtx_cpt0_selx bdk_dtx_cpt0_selx_t;
2353
2354 static inline uint64_t BDK_DTX_CPT0_SELX(unsigned long a) __attribute__ ((pure, always_inline));
2355 static inline uint64_t BDK_DTX_CPT0_SELX(unsigned long a)
2356 {
2357 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
2358 return 0x87e0feb90000ll + 8ll * ((a) & 0x1);
2359 __bdk_csr_fatal("DTX_CPT0_SELX", 1, a, 0, 0, 0);
2360 }
2361
2362 #define typedef_BDK_DTX_CPT0_SELX(a) bdk_dtx_cpt0_selx_t
2363 #define bustype_BDK_DTX_CPT0_SELX(a) BDK_CSR_TYPE_RSL
2364 #define basename_BDK_DTX_CPT0_SELX(a) "DTX_CPT0_SELX"
2365 #define busnum_BDK_DTX_CPT0_SELX(a) (a)
2366 #define arguments_BDK_DTX_CPT0_SELX(a) (a),-1,-1,-1
2367
2368 /**
2369 * Register (RSL) dtx_cpt_bcst_rsp
2370 *
2371 * DTX CPT Control Register
2372 */
2373 union bdk_dtx_cpt_bcst_rsp
2374 {
2375 uint64_t u;
2376 struct bdk_dtx_cpt_bcst_rsp_s
2377 {
2378 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2379 uint64_t reserved_1_63 : 63;
2380 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
2381 #else /* Word 0 - Little Endian */
2382 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
2383 uint64_t reserved_1_63 : 63;
2384 #endif /* Word 0 - End */
2385 } s;
2386 /* struct bdk_dtx_cpt_bcst_rsp_s cn; */
2387 };
2388 typedef union bdk_dtx_cpt_bcst_rsp bdk_dtx_cpt_bcst_rsp_t;
2389
2390 #define BDK_DTX_CPT_BCST_RSP BDK_DTX_CPT_BCST_RSP_FUNC()
2391 static inline uint64_t BDK_DTX_CPT_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
2392 static inline uint64_t BDK_DTX_CPT_BCST_RSP_FUNC(void)
2393 {
2394 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
2395 return 0x87e0feb90080ll;
2396 __bdk_csr_fatal("DTX_CPT_BCST_RSP", 0, 0, 0, 0, 0);
2397 }
2398
2399 #define typedef_BDK_DTX_CPT_BCST_RSP bdk_dtx_cpt_bcst_rsp_t
2400 #define bustype_BDK_DTX_CPT_BCST_RSP BDK_CSR_TYPE_RSL
2401 #define basename_BDK_DTX_CPT_BCST_RSP "DTX_CPT_BCST_RSP"
2402 #define busnum_BDK_DTX_CPT_BCST_RSP 0
2403 #define arguments_BDK_DTX_CPT_BCST_RSP -1,-1,-1,-1
2404
2405 /**
2406 * Register (RSL) dtx_cpt_ctl
2407 *
2408 * DTX CPT Control Register
2409 */
2410 union bdk_dtx_cpt_ctl
2411 {
2412 uint64_t u;
2413 struct bdk_dtx_cpt_ctl_s
2414 {
2415 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2416 uint64_t reserved_5_63 : 59;
2417 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
2418 uint64_t reserved_2_3 : 2;
2419 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
2420 debug data. Not applicable when software directly reads the DAT(0..1) registers.
2421 For diagnostic use only. */
2422 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
2423 #else /* Word 0 - Little Endian */
2424 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
2425 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
2426 debug data. Not applicable when software directly reads the DAT(0..1) registers.
2427 For diagnostic use only. */
2428 uint64_t reserved_2_3 : 2;
2429 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
2430 uint64_t reserved_5_63 : 59;
2431 #endif /* Word 0 - End */
2432 } s;
2433 /* struct bdk_dtx_cpt_ctl_s cn; */
2434 };
2435 typedef union bdk_dtx_cpt_ctl bdk_dtx_cpt_ctl_t;
2436
2437 #define BDK_DTX_CPT_CTL BDK_DTX_CPT_CTL_FUNC()
2438 static inline uint64_t BDK_DTX_CPT_CTL_FUNC(void) __attribute__ ((pure, always_inline));
2439 static inline uint64_t BDK_DTX_CPT_CTL_FUNC(void)
2440 {
2441 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
2442 return 0x87e0feb90060ll;
2443 __bdk_csr_fatal("DTX_CPT_CTL", 0, 0, 0, 0, 0);
2444 }
2445
2446 #define typedef_BDK_DTX_CPT_CTL bdk_dtx_cpt_ctl_t
2447 #define bustype_BDK_DTX_CPT_CTL BDK_CSR_TYPE_RSL
2448 #define basename_BDK_DTX_CPT_CTL "DTX_CPT_CTL"
2449 #define busnum_BDK_DTX_CPT_CTL 0
2450 #define arguments_BDK_DTX_CPT_CTL -1,-1,-1,-1
2451
2452 /**
2453 * Register (RSL) dtx_cpt_dat#
2454 *
2455 * DTX CPT Raw Data Register
2456 */
2457 union bdk_dtx_cpt_datx
2458 {
2459 uint64_t u;
2460 struct bdk_dtx_cpt_datx_s
2461 {
2462 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2463 uint64_t reserved_36_63 : 28;
2464 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
2465 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
2466 #else /* Word 0 - Little Endian */
2467 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
2468 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
2469 uint64_t reserved_36_63 : 28;
2470 #endif /* Word 0 - End */
2471 } s;
2472 /* struct bdk_dtx_cpt_datx_s cn; */
2473 };
2474 typedef union bdk_dtx_cpt_datx bdk_dtx_cpt_datx_t;
2475
2476 static inline uint64_t BDK_DTX_CPT_DATX(unsigned long a) __attribute__ ((pure, always_inline));
2477 static inline uint64_t BDK_DTX_CPT_DATX(unsigned long a)
2478 {
2479 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
2480 return 0x87e0feb90040ll + 8ll * ((a) & 0x1);
2481 __bdk_csr_fatal("DTX_CPT_DATX", 1, a, 0, 0, 0);
2482 }
2483
2484 #define typedef_BDK_DTX_CPT_DATX(a) bdk_dtx_cpt_datx_t
2485 #define bustype_BDK_DTX_CPT_DATX(a) BDK_CSR_TYPE_RSL
2486 #define basename_BDK_DTX_CPT_DATX(a) "DTX_CPT_DATX"
2487 #define busnum_BDK_DTX_CPT_DATX(a) (a)
2488 #define arguments_BDK_DTX_CPT_DATX(a) (a),-1,-1,-1
2489
2490 /**
2491 * Register (RSL) dtx_cpt_ena#
2492 *
2493 * DTX CPT Data Enable Register
2494 */
2495 union bdk_dtx_cpt_enax
2496 {
2497 uint64_t u;
2498 struct bdk_dtx_cpt_enax_s
2499 {
2500 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2501 uint64_t reserved_36_63 : 28;
2502 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
2503 buses. Normally only one block will drive each bit. */
2504 #else /* Word 0 - Little Endian */
2505 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
2506 buses. Normally only one block will drive each bit. */
2507 uint64_t reserved_36_63 : 28;
2508 #endif /* Word 0 - End */
2509 } s;
2510 /* struct bdk_dtx_cpt_enax_s cn; */
2511 };
2512 typedef union bdk_dtx_cpt_enax bdk_dtx_cpt_enax_t;
2513
2514 static inline uint64_t BDK_DTX_CPT_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
2515 static inline uint64_t BDK_DTX_CPT_ENAX(unsigned long a)
2516 {
2517 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
2518 return 0x87e0feb90020ll + 8ll * ((a) & 0x1);
2519 __bdk_csr_fatal("DTX_CPT_ENAX", 1, a, 0, 0, 0);
2520 }
2521
2522 #define typedef_BDK_DTX_CPT_ENAX(a) bdk_dtx_cpt_enax_t
2523 #define bustype_BDK_DTX_CPT_ENAX(a) BDK_CSR_TYPE_RSL
2524 #define basename_BDK_DTX_CPT_ENAX(a) "DTX_CPT_ENAX"
2525 #define busnum_BDK_DTX_CPT_ENAX(a) (a)
2526 #define arguments_BDK_DTX_CPT_ENAX(a) (a),-1,-1,-1
2527
2528 /**
2529 * Register (RSL) dtx_cpt_sel#
2530 *
2531 * DTX CPT Select Register
2532 */
2533 union bdk_dtx_cpt_selx
2534 {
2535 uint64_t u;
2536 struct bdk_dtx_cpt_selx_s
2537 {
2538 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2539 uint64_t reserved_24_63 : 40;
2540 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
2541 #else /* Word 0 - Little Endian */
2542 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
2543 uint64_t reserved_24_63 : 40;
2544 #endif /* Word 0 - End */
2545 } s;
2546 /* struct bdk_dtx_cpt_selx_s cn; */
2547 };
2548 typedef union bdk_dtx_cpt_selx bdk_dtx_cpt_selx_t;
2549
2550 static inline uint64_t BDK_DTX_CPT_SELX(unsigned long a) __attribute__ ((pure, always_inline));
2551 static inline uint64_t BDK_DTX_CPT_SELX(unsigned long a)
2552 {
2553 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
2554 return 0x87e0feb90000ll + 8ll * ((a) & 0x1);
2555 __bdk_csr_fatal("DTX_CPT_SELX", 1, a, 0, 0, 0);
2556 }
2557
2558 #define typedef_BDK_DTX_CPT_SELX(a) bdk_dtx_cpt_selx_t
2559 #define bustype_BDK_DTX_CPT_SELX(a) BDK_CSR_TYPE_RSL
2560 #define basename_BDK_DTX_CPT_SELX(a) "DTX_CPT_SELX"
2561 #define busnum_BDK_DTX_CPT_SELX(a) (a)
2562 #define arguments_BDK_DTX_CPT_SELX(a) (a),-1,-1,-1
2563
2564 /**
2565 * Register (RSL) dtx_dap_bcst_rsp
2566 *
2567 * DTX DAP Control Register
2568 */
2569 union bdk_dtx_dap_bcst_rsp
2570 {
2571 uint64_t u;
2572 struct bdk_dtx_dap_bcst_rsp_s
2573 {
2574 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2575 uint64_t reserved_1_63 : 63;
2576 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
2577 #else /* Word 0 - Little Endian */
2578 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
2579 uint64_t reserved_1_63 : 63;
2580 #endif /* Word 0 - End */
2581 } s;
2582 /* struct bdk_dtx_dap_bcst_rsp_s cn; */
2583 };
2584 typedef union bdk_dtx_dap_bcst_rsp bdk_dtx_dap_bcst_rsp_t;
2585
2586 #define BDK_DTX_DAP_BCST_RSP BDK_DTX_DAP_BCST_RSP_FUNC()
2587 static inline uint64_t BDK_DTX_DAP_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
2588 static inline uint64_t BDK_DTX_DAP_BCST_RSP_FUNC(void)
2589 {
2590 return 0x87e0fe010080ll;
2591 }
2592
2593 #define typedef_BDK_DTX_DAP_BCST_RSP bdk_dtx_dap_bcst_rsp_t
2594 #define bustype_BDK_DTX_DAP_BCST_RSP BDK_CSR_TYPE_RSL
2595 #define basename_BDK_DTX_DAP_BCST_RSP "DTX_DAP_BCST_RSP"
2596 #define busnum_BDK_DTX_DAP_BCST_RSP 0
2597 #define arguments_BDK_DTX_DAP_BCST_RSP -1,-1,-1,-1
2598
2599 /**
2600 * Register (RSL) dtx_dap_ctl
2601 *
2602 * DTX DAP Control Register
2603 */
2604 union bdk_dtx_dap_ctl
2605 {
2606 uint64_t u;
2607 struct bdk_dtx_dap_ctl_s
2608 {
2609 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2610 uint64_t reserved_5_63 : 59;
2611 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
2612 uint64_t reserved_2_3 : 2;
2613 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
2614 debug data. Not applicable when software directly reads the DAT(0..1) registers.
2615 For diagnostic use only. */
2616 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
2617 #else /* Word 0 - Little Endian */
2618 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
2619 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
2620 debug data. Not applicable when software directly reads the DAT(0..1) registers.
2621 For diagnostic use only. */
2622 uint64_t reserved_2_3 : 2;
2623 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
2624 uint64_t reserved_5_63 : 59;
2625 #endif /* Word 0 - End */
2626 } s;
2627 /* struct bdk_dtx_dap_ctl_s cn; */
2628 };
2629 typedef union bdk_dtx_dap_ctl bdk_dtx_dap_ctl_t;
2630
2631 #define BDK_DTX_DAP_CTL BDK_DTX_DAP_CTL_FUNC()
2632 static inline uint64_t BDK_DTX_DAP_CTL_FUNC(void) __attribute__ ((pure, always_inline));
2633 static inline uint64_t BDK_DTX_DAP_CTL_FUNC(void)
2634 {
2635 return 0x87e0fe010060ll;
2636 }
2637
2638 #define typedef_BDK_DTX_DAP_CTL bdk_dtx_dap_ctl_t
2639 #define bustype_BDK_DTX_DAP_CTL BDK_CSR_TYPE_RSL
2640 #define basename_BDK_DTX_DAP_CTL "DTX_DAP_CTL"
2641 #define busnum_BDK_DTX_DAP_CTL 0
2642 #define arguments_BDK_DTX_DAP_CTL -1,-1,-1,-1
2643
2644 /**
2645 * Register (RSL) dtx_dap_dat#
2646 *
2647 * DTX DAP Raw Data Register
2648 */
2649 union bdk_dtx_dap_datx
2650 {
2651 uint64_t u;
2652 struct bdk_dtx_dap_datx_s
2653 {
2654 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2655 uint64_t reserved_36_63 : 28;
2656 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
2657 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
2658 #else /* Word 0 - Little Endian */
2659 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
2660 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
2661 uint64_t reserved_36_63 : 28;
2662 #endif /* Word 0 - End */
2663 } s;
2664 /* struct bdk_dtx_dap_datx_s cn; */
2665 };
2666 typedef union bdk_dtx_dap_datx bdk_dtx_dap_datx_t;
2667
2668 static inline uint64_t BDK_DTX_DAP_DATX(unsigned long a) __attribute__ ((pure, always_inline));
2669 static inline uint64_t BDK_DTX_DAP_DATX(unsigned long a)
2670 {
2671 if (a<=1)
2672 return 0x87e0fe010040ll + 8ll * ((a) & 0x1);
2673 __bdk_csr_fatal("DTX_DAP_DATX", 1, a, 0, 0, 0);
2674 }
2675
2676 #define typedef_BDK_DTX_DAP_DATX(a) bdk_dtx_dap_datx_t
2677 #define bustype_BDK_DTX_DAP_DATX(a) BDK_CSR_TYPE_RSL
2678 #define basename_BDK_DTX_DAP_DATX(a) "DTX_DAP_DATX"
2679 #define busnum_BDK_DTX_DAP_DATX(a) (a)
2680 #define arguments_BDK_DTX_DAP_DATX(a) (a),-1,-1,-1
2681
2682 /**
2683 * Register (RSL) dtx_dap_ena#
2684 *
2685 * DTX DAP Data Enable Register
2686 */
2687 union bdk_dtx_dap_enax
2688 {
2689 uint64_t u;
2690 struct bdk_dtx_dap_enax_s
2691 {
2692 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2693 uint64_t reserved_36_63 : 28;
2694 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
2695 buses. Normally only one block will drive each bit. */
2696 #else /* Word 0 - Little Endian */
2697 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
2698 buses. Normally only one block will drive each bit. */
2699 uint64_t reserved_36_63 : 28;
2700 #endif /* Word 0 - End */
2701 } s;
2702 /* struct bdk_dtx_dap_enax_s cn; */
2703 };
2704 typedef union bdk_dtx_dap_enax bdk_dtx_dap_enax_t;
2705
2706 static inline uint64_t BDK_DTX_DAP_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
2707 static inline uint64_t BDK_DTX_DAP_ENAX(unsigned long a)
2708 {
2709 if (a<=1)
2710 return 0x87e0fe010020ll + 8ll * ((a) & 0x1);
2711 __bdk_csr_fatal("DTX_DAP_ENAX", 1, a, 0, 0, 0);
2712 }
2713
2714 #define typedef_BDK_DTX_DAP_ENAX(a) bdk_dtx_dap_enax_t
2715 #define bustype_BDK_DTX_DAP_ENAX(a) BDK_CSR_TYPE_RSL
2716 #define basename_BDK_DTX_DAP_ENAX(a) "DTX_DAP_ENAX"
2717 #define busnum_BDK_DTX_DAP_ENAX(a) (a)
2718 #define arguments_BDK_DTX_DAP_ENAX(a) (a),-1,-1,-1
2719
2720 /**
2721 * Register (RSL) dtx_dap_sel#
2722 *
2723 * DTX DAP Select Register
2724 */
2725 union bdk_dtx_dap_selx
2726 {
2727 uint64_t u;
2728 struct bdk_dtx_dap_selx_s
2729 {
2730 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2731 uint64_t reserved_24_63 : 40;
2732 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
2733 #else /* Word 0 - Little Endian */
2734 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
2735 uint64_t reserved_24_63 : 40;
2736 #endif /* Word 0 - End */
2737 } s;
2738 /* struct bdk_dtx_dap_selx_s cn; */
2739 };
2740 typedef union bdk_dtx_dap_selx bdk_dtx_dap_selx_t;
2741
2742 static inline uint64_t BDK_DTX_DAP_SELX(unsigned long a) __attribute__ ((pure, always_inline));
2743 static inline uint64_t BDK_DTX_DAP_SELX(unsigned long a)
2744 {
2745 if (a<=1)
2746 return 0x87e0fe010000ll + 8ll * ((a) & 0x1);
2747 __bdk_csr_fatal("DTX_DAP_SELX", 1, a, 0, 0, 0);
2748 }
2749
2750 #define typedef_BDK_DTX_DAP_SELX(a) bdk_dtx_dap_selx_t
2751 #define bustype_BDK_DTX_DAP_SELX(a) BDK_CSR_TYPE_RSL
2752 #define basename_BDK_DTX_DAP_SELX(a) "DTX_DAP_SELX"
2753 #define busnum_BDK_DTX_DAP_SELX(a) (a)
2754 #define arguments_BDK_DTX_DAP_SELX(a) (a),-1,-1,-1
2755
2756 /**
2757 * Register (RSL) dtx_ddf_bcst_rsp
2758 *
2759 * DTX DDF Control Register
2760 */
2761 union bdk_dtx_ddf_bcst_rsp
2762 {
2763 uint64_t u;
2764 struct bdk_dtx_ddf_bcst_rsp_s
2765 {
2766 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2767 uint64_t reserved_1_63 : 63;
2768 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
2769 #else /* Word 0 - Little Endian */
2770 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
2771 uint64_t reserved_1_63 : 63;
2772 #endif /* Word 0 - End */
2773 } s;
2774 /* struct bdk_dtx_ddf_bcst_rsp_s cn; */
2775 };
2776 typedef union bdk_dtx_ddf_bcst_rsp bdk_dtx_ddf_bcst_rsp_t;
2777
2778 #define BDK_DTX_DDF_BCST_RSP BDK_DTX_DDF_BCST_RSP_FUNC()
2779 static inline uint64_t BDK_DTX_DDF_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
2780 static inline uint64_t BDK_DTX_DDF_BCST_RSP_FUNC(void)
2781 {
2782 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
2783 return 0x87e0fe848080ll;
2784 __bdk_csr_fatal("DTX_DDF_BCST_RSP", 0, 0, 0, 0, 0);
2785 }
2786
2787 #define typedef_BDK_DTX_DDF_BCST_RSP bdk_dtx_ddf_bcst_rsp_t
2788 #define bustype_BDK_DTX_DDF_BCST_RSP BDK_CSR_TYPE_RSL
2789 #define basename_BDK_DTX_DDF_BCST_RSP "DTX_DDF_BCST_RSP"
2790 #define busnum_BDK_DTX_DDF_BCST_RSP 0
2791 #define arguments_BDK_DTX_DDF_BCST_RSP -1,-1,-1,-1
2792
2793 /**
2794 * Register (RSL) dtx_ddf_ctl
2795 *
2796 * DTX DDF Control Register
2797 */
2798 union bdk_dtx_ddf_ctl
2799 {
2800 uint64_t u;
2801 struct bdk_dtx_ddf_ctl_s
2802 {
2803 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2804 uint64_t reserved_5_63 : 59;
2805 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
2806 uint64_t reserved_2_3 : 2;
2807 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
2808 debug data. Not applicable when software directly reads the DAT(0..1) registers.
2809 For diagnostic use only. */
2810 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
2811 #else /* Word 0 - Little Endian */
2812 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
2813 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
2814 debug data. Not applicable when software directly reads the DAT(0..1) registers.
2815 For diagnostic use only. */
2816 uint64_t reserved_2_3 : 2;
2817 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
2818 uint64_t reserved_5_63 : 59;
2819 #endif /* Word 0 - End */
2820 } s;
2821 /* struct bdk_dtx_ddf_ctl_s cn; */
2822 };
2823 typedef union bdk_dtx_ddf_ctl bdk_dtx_ddf_ctl_t;
2824
2825 #define BDK_DTX_DDF_CTL BDK_DTX_DDF_CTL_FUNC()
2826 static inline uint64_t BDK_DTX_DDF_CTL_FUNC(void) __attribute__ ((pure, always_inline));
2827 static inline uint64_t BDK_DTX_DDF_CTL_FUNC(void)
2828 {
2829 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
2830 return 0x87e0fe848060ll;
2831 __bdk_csr_fatal("DTX_DDF_CTL", 0, 0, 0, 0, 0);
2832 }
2833
2834 #define typedef_BDK_DTX_DDF_CTL bdk_dtx_ddf_ctl_t
2835 #define bustype_BDK_DTX_DDF_CTL BDK_CSR_TYPE_RSL
2836 #define basename_BDK_DTX_DDF_CTL "DTX_DDF_CTL"
2837 #define busnum_BDK_DTX_DDF_CTL 0
2838 #define arguments_BDK_DTX_DDF_CTL -1,-1,-1,-1
2839
2840 /**
2841 * Register (RSL) dtx_ddf_dat#
2842 *
2843 * DTX DDF Raw Data Register
2844 */
2845 union bdk_dtx_ddf_datx
2846 {
2847 uint64_t u;
2848 struct bdk_dtx_ddf_datx_s
2849 {
2850 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2851 uint64_t reserved_36_63 : 28;
2852 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
2853 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
2854 #else /* Word 0 - Little Endian */
2855 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
2856 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
2857 uint64_t reserved_36_63 : 28;
2858 #endif /* Word 0 - End */
2859 } s;
2860 /* struct bdk_dtx_ddf_datx_s cn; */
2861 };
2862 typedef union bdk_dtx_ddf_datx bdk_dtx_ddf_datx_t;
2863
2864 static inline uint64_t BDK_DTX_DDF_DATX(unsigned long a) __attribute__ ((pure, always_inline));
2865 static inline uint64_t BDK_DTX_DDF_DATX(unsigned long a)
2866 {
2867 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
2868 return 0x87e0fe848040ll + 8ll * ((a) & 0x1);
2869 __bdk_csr_fatal("DTX_DDF_DATX", 1, a, 0, 0, 0);
2870 }
2871
2872 #define typedef_BDK_DTX_DDF_DATX(a) bdk_dtx_ddf_datx_t
2873 #define bustype_BDK_DTX_DDF_DATX(a) BDK_CSR_TYPE_RSL
2874 #define basename_BDK_DTX_DDF_DATX(a) "DTX_DDF_DATX"
2875 #define busnum_BDK_DTX_DDF_DATX(a) (a)
2876 #define arguments_BDK_DTX_DDF_DATX(a) (a),-1,-1,-1
2877
2878 /**
2879 * Register (RSL) dtx_ddf_ena#
2880 *
2881 * DTX DDF Data Enable Register
2882 */
2883 union bdk_dtx_ddf_enax
2884 {
2885 uint64_t u;
2886 struct bdk_dtx_ddf_enax_s
2887 {
2888 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2889 uint64_t reserved_36_63 : 28;
2890 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
2891 buses. Normally only one block will drive each bit. */
2892 #else /* Word 0 - Little Endian */
2893 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
2894 buses. Normally only one block will drive each bit. */
2895 uint64_t reserved_36_63 : 28;
2896 #endif /* Word 0 - End */
2897 } s;
2898 /* struct bdk_dtx_ddf_enax_s cn; */
2899 };
2900 typedef union bdk_dtx_ddf_enax bdk_dtx_ddf_enax_t;
2901
2902 static inline uint64_t BDK_DTX_DDF_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
2903 static inline uint64_t BDK_DTX_DDF_ENAX(unsigned long a)
2904 {
2905 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
2906 return 0x87e0fe848020ll + 8ll * ((a) & 0x1);
2907 __bdk_csr_fatal("DTX_DDF_ENAX", 1, a, 0, 0, 0);
2908 }
2909
2910 #define typedef_BDK_DTX_DDF_ENAX(a) bdk_dtx_ddf_enax_t
2911 #define bustype_BDK_DTX_DDF_ENAX(a) BDK_CSR_TYPE_RSL
2912 #define basename_BDK_DTX_DDF_ENAX(a) "DTX_DDF_ENAX"
2913 #define busnum_BDK_DTX_DDF_ENAX(a) (a)
2914 #define arguments_BDK_DTX_DDF_ENAX(a) (a),-1,-1,-1
2915
2916 /**
2917 * Register (RSL) dtx_ddf_sel#
2918 *
2919 * DTX DDF Select Register
2920 */
2921 union bdk_dtx_ddf_selx
2922 {
2923 uint64_t u;
2924 struct bdk_dtx_ddf_selx_s
2925 {
2926 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2927 uint64_t reserved_24_63 : 40;
2928 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
2929 #else /* Word 0 - Little Endian */
2930 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
2931 uint64_t reserved_24_63 : 40;
2932 #endif /* Word 0 - End */
2933 } s;
2934 /* struct bdk_dtx_ddf_selx_s cn; */
2935 };
2936 typedef union bdk_dtx_ddf_selx bdk_dtx_ddf_selx_t;
2937
2938 static inline uint64_t BDK_DTX_DDF_SELX(unsigned long a) __attribute__ ((pure, always_inline));
2939 static inline uint64_t BDK_DTX_DDF_SELX(unsigned long a)
2940 {
2941 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
2942 return 0x87e0fe848000ll + 8ll * ((a) & 0x1);
2943 __bdk_csr_fatal("DTX_DDF_SELX", 1, a, 0, 0, 0);
2944 }
2945
2946 #define typedef_BDK_DTX_DDF_SELX(a) bdk_dtx_ddf_selx_t
2947 #define bustype_BDK_DTX_DDF_SELX(a) BDK_CSR_TYPE_RSL
2948 #define basename_BDK_DTX_DDF_SELX(a) "DTX_DDF_SELX"
2949 #define busnum_BDK_DTX_DDF_SELX(a) (a)
2950 #define arguments_BDK_DTX_DDF_SELX(a) (a),-1,-1,-1
2951
2952 /**
2953 * Register (RSL) dtx_dfa_bcst_rsp
2954 *
2955 * DTX DFA Control Register
2956 */
2957 union bdk_dtx_dfa_bcst_rsp
2958 {
2959 uint64_t u;
2960 struct bdk_dtx_dfa_bcst_rsp_s
2961 {
2962 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
2963 uint64_t reserved_1_63 : 63;
2964 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
2965 #else /* Word 0 - Little Endian */
2966 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
2967 uint64_t reserved_1_63 : 63;
2968 #endif /* Word 0 - End */
2969 } s;
2970 /* struct bdk_dtx_dfa_bcst_rsp_s cn; */
2971 };
2972 typedef union bdk_dtx_dfa_bcst_rsp bdk_dtx_dfa_bcst_rsp_t;
2973
2974 #define BDK_DTX_DFA_BCST_RSP BDK_DTX_DFA_BCST_RSP_FUNC()
2975 static inline uint64_t BDK_DTX_DFA_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
2976 static inline uint64_t BDK_DTX_DFA_BCST_RSP_FUNC(void)
2977 {
2978 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX))
2979 return 0x87e0fea30080ll;
2980 __bdk_csr_fatal("DTX_DFA_BCST_RSP", 0, 0, 0, 0, 0);
2981 }
2982
2983 #define typedef_BDK_DTX_DFA_BCST_RSP bdk_dtx_dfa_bcst_rsp_t
2984 #define bustype_BDK_DTX_DFA_BCST_RSP BDK_CSR_TYPE_RSL
2985 #define basename_BDK_DTX_DFA_BCST_RSP "DTX_DFA_BCST_RSP"
2986 #define busnum_BDK_DTX_DFA_BCST_RSP 0
2987 #define arguments_BDK_DTX_DFA_BCST_RSP -1,-1,-1,-1
2988
2989 /**
2990 * Register (RSL) dtx_dfa_ctl
2991 *
2992 * DTX DFA Control Register
2993 */
2994 union bdk_dtx_dfa_ctl
2995 {
2996 uint64_t u;
2997 struct bdk_dtx_dfa_ctl_s
2998 {
2999 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3000 uint64_t reserved_5_63 : 59;
3001 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
3002 uint64_t reserved_2_3 : 2;
3003 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
3004 debug data. Not applicable when software directly reads the DAT(0..1) registers.
3005 For diagnostic use only. */
3006 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
3007 #else /* Word 0 - Little Endian */
3008 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
3009 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
3010 debug data. Not applicable when software directly reads the DAT(0..1) registers.
3011 For diagnostic use only. */
3012 uint64_t reserved_2_3 : 2;
3013 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
3014 uint64_t reserved_5_63 : 59;
3015 #endif /* Word 0 - End */
3016 } s;
3017 /* struct bdk_dtx_dfa_ctl_s cn; */
3018 };
3019 typedef union bdk_dtx_dfa_ctl bdk_dtx_dfa_ctl_t;
3020
3021 #define BDK_DTX_DFA_CTL BDK_DTX_DFA_CTL_FUNC()
3022 static inline uint64_t BDK_DTX_DFA_CTL_FUNC(void) __attribute__ ((pure, always_inline));
3023 static inline uint64_t BDK_DTX_DFA_CTL_FUNC(void)
3024 {
3025 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX))
3026 return 0x87e0fea30060ll;
3027 __bdk_csr_fatal("DTX_DFA_CTL", 0, 0, 0, 0, 0);
3028 }
3029
3030 #define typedef_BDK_DTX_DFA_CTL bdk_dtx_dfa_ctl_t
3031 #define bustype_BDK_DTX_DFA_CTL BDK_CSR_TYPE_RSL
3032 #define basename_BDK_DTX_DFA_CTL "DTX_DFA_CTL"
3033 #define busnum_BDK_DTX_DFA_CTL 0
3034 #define arguments_BDK_DTX_DFA_CTL -1,-1,-1,-1
3035
3036 /**
3037 * Register (RSL) dtx_dfa_dat#
3038 *
3039 * DTX DFA Raw Data Register
3040 */
3041 union bdk_dtx_dfa_datx
3042 {
3043 uint64_t u;
3044 struct bdk_dtx_dfa_datx_s
3045 {
3046 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3047 uint64_t reserved_36_63 : 28;
3048 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
3049 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
3050 #else /* Word 0 - Little Endian */
3051 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
3052 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
3053 uint64_t reserved_36_63 : 28;
3054 #endif /* Word 0 - End */
3055 } s;
3056 /* struct bdk_dtx_dfa_datx_s cn; */
3057 };
3058 typedef union bdk_dtx_dfa_datx bdk_dtx_dfa_datx_t;
3059
3060 static inline uint64_t BDK_DTX_DFA_DATX(unsigned long a) __attribute__ ((pure, always_inline));
3061 static inline uint64_t BDK_DTX_DFA_DATX(unsigned long a)
3062 {
3063 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
3064 return 0x87e0fea30040ll + 8ll * ((a) & 0x1);
3065 __bdk_csr_fatal("DTX_DFA_DATX", 1, a, 0, 0, 0);
3066 }
3067
3068 #define typedef_BDK_DTX_DFA_DATX(a) bdk_dtx_dfa_datx_t
3069 #define bustype_BDK_DTX_DFA_DATX(a) BDK_CSR_TYPE_RSL
3070 #define basename_BDK_DTX_DFA_DATX(a) "DTX_DFA_DATX"
3071 #define busnum_BDK_DTX_DFA_DATX(a) (a)
3072 #define arguments_BDK_DTX_DFA_DATX(a) (a),-1,-1,-1
3073
3074 /**
3075 * Register (RSL) dtx_dfa_ena#
3076 *
3077 * DTX DFA Data Enable Register
3078 */
3079 union bdk_dtx_dfa_enax
3080 {
3081 uint64_t u;
3082 struct bdk_dtx_dfa_enax_s
3083 {
3084 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3085 uint64_t reserved_36_63 : 28;
3086 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
3087 buses. Normally only one block will drive each bit. */
3088 #else /* Word 0 - Little Endian */
3089 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
3090 buses. Normally only one block will drive each bit. */
3091 uint64_t reserved_36_63 : 28;
3092 #endif /* Word 0 - End */
3093 } s;
3094 /* struct bdk_dtx_dfa_enax_s cn; */
3095 };
3096 typedef union bdk_dtx_dfa_enax bdk_dtx_dfa_enax_t;
3097
3098 static inline uint64_t BDK_DTX_DFA_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
3099 static inline uint64_t BDK_DTX_DFA_ENAX(unsigned long a)
3100 {
3101 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
3102 return 0x87e0fea30020ll + 8ll * ((a) & 0x1);
3103 __bdk_csr_fatal("DTX_DFA_ENAX", 1, a, 0, 0, 0);
3104 }
3105
3106 #define typedef_BDK_DTX_DFA_ENAX(a) bdk_dtx_dfa_enax_t
3107 #define bustype_BDK_DTX_DFA_ENAX(a) BDK_CSR_TYPE_RSL
3108 #define basename_BDK_DTX_DFA_ENAX(a) "DTX_DFA_ENAX"
3109 #define busnum_BDK_DTX_DFA_ENAX(a) (a)
3110 #define arguments_BDK_DTX_DFA_ENAX(a) (a),-1,-1,-1
3111
3112 /**
3113 * Register (RSL) dtx_dfa_sel#
3114 *
3115 * DTX DFA Select Register
3116 */
3117 union bdk_dtx_dfa_selx
3118 {
3119 uint64_t u;
3120 struct bdk_dtx_dfa_selx_s
3121 {
3122 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3123 uint64_t reserved_24_63 : 40;
3124 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
3125 #else /* Word 0 - Little Endian */
3126 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
3127 uint64_t reserved_24_63 : 40;
3128 #endif /* Word 0 - End */
3129 } s;
3130 /* struct bdk_dtx_dfa_selx_s cn; */
3131 };
3132 typedef union bdk_dtx_dfa_selx bdk_dtx_dfa_selx_t;
3133
3134 static inline uint64_t BDK_DTX_DFA_SELX(unsigned long a) __attribute__ ((pure, always_inline));
3135 static inline uint64_t BDK_DTX_DFA_SELX(unsigned long a)
3136 {
3137 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
3138 return 0x87e0fea30000ll + 8ll * ((a) & 0x1);
3139 __bdk_csr_fatal("DTX_DFA_SELX", 1, a, 0, 0, 0);
3140 }
3141
3142 #define typedef_BDK_DTX_DFA_SELX(a) bdk_dtx_dfa_selx_t
3143 #define bustype_BDK_DTX_DFA_SELX(a) BDK_CSR_TYPE_RSL
3144 #define basename_BDK_DTX_DFA_SELX(a) "DTX_DFA_SELX"
3145 #define busnum_BDK_DTX_DFA_SELX(a) (a)
3146 #define arguments_BDK_DTX_DFA_SELX(a) (a),-1,-1,-1
3147
3148 /**
3149 * Register (RSL) dtx_dpi_bcst_rsp
3150 *
3151 * DTX DPI Control Register
3152 */
3153 union bdk_dtx_dpi_bcst_rsp
3154 {
3155 uint64_t u;
3156 struct bdk_dtx_dpi_bcst_rsp_s
3157 {
3158 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3159 uint64_t reserved_1_63 : 63;
3160 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
3161 #else /* Word 0 - Little Endian */
3162 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
3163 uint64_t reserved_1_63 : 63;
3164 #endif /* Word 0 - End */
3165 } s;
3166 /* struct bdk_dtx_dpi_bcst_rsp_s cn; */
3167 };
3168 typedef union bdk_dtx_dpi_bcst_rsp bdk_dtx_dpi_bcst_rsp_t;
3169
3170 #define BDK_DTX_DPI_BCST_RSP BDK_DTX_DPI_BCST_RSP_FUNC()
3171 static inline uint64_t BDK_DTX_DPI_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
3172 static inline uint64_t BDK_DTX_DPI_BCST_RSP_FUNC(void)
3173 {
3174 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
3175 return 0x87e0feb70080ll;
3176 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
3177 return 0x87e0feb70080ll;
3178 __bdk_csr_fatal("DTX_DPI_BCST_RSP", 0, 0, 0, 0, 0);
3179 }
3180
3181 #define typedef_BDK_DTX_DPI_BCST_RSP bdk_dtx_dpi_bcst_rsp_t
3182 #define bustype_BDK_DTX_DPI_BCST_RSP BDK_CSR_TYPE_RSL
3183 #define basename_BDK_DTX_DPI_BCST_RSP "DTX_DPI_BCST_RSP"
3184 #define busnum_BDK_DTX_DPI_BCST_RSP 0
3185 #define arguments_BDK_DTX_DPI_BCST_RSP -1,-1,-1,-1
3186
3187 /**
3188 * Register (RSL) dtx_dpi_ctl
3189 *
3190 * DTX DPI Control Register
3191 */
3192 union bdk_dtx_dpi_ctl
3193 {
3194 uint64_t u;
3195 struct bdk_dtx_dpi_ctl_s
3196 {
3197 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3198 uint64_t reserved_5_63 : 59;
3199 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
3200 uint64_t reserved_2_3 : 2;
3201 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
3202 debug data. Not applicable when software directly reads the DAT(0..1) registers.
3203 For diagnostic use only. */
3204 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
3205 #else /* Word 0 - Little Endian */
3206 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
3207 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
3208 debug data. Not applicable when software directly reads the DAT(0..1) registers.
3209 For diagnostic use only. */
3210 uint64_t reserved_2_3 : 2;
3211 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
3212 uint64_t reserved_5_63 : 59;
3213 #endif /* Word 0 - End */
3214 } s;
3215 /* struct bdk_dtx_dpi_ctl_s cn; */
3216 };
3217 typedef union bdk_dtx_dpi_ctl bdk_dtx_dpi_ctl_t;
3218
3219 #define BDK_DTX_DPI_CTL BDK_DTX_DPI_CTL_FUNC()
3220 static inline uint64_t BDK_DTX_DPI_CTL_FUNC(void) __attribute__ ((pure, always_inline));
3221 static inline uint64_t BDK_DTX_DPI_CTL_FUNC(void)
3222 {
3223 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
3224 return 0x87e0feb70060ll;
3225 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
3226 return 0x87e0feb70060ll;
3227 __bdk_csr_fatal("DTX_DPI_CTL", 0, 0, 0, 0, 0);
3228 }
3229
3230 #define typedef_BDK_DTX_DPI_CTL bdk_dtx_dpi_ctl_t
3231 #define bustype_BDK_DTX_DPI_CTL BDK_CSR_TYPE_RSL
3232 #define basename_BDK_DTX_DPI_CTL "DTX_DPI_CTL"
3233 #define busnum_BDK_DTX_DPI_CTL 0
3234 #define arguments_BDK_DTX_DPI_CTL -1,-1,-1,-1
3235
3236 /**
3237 * Register (RSL) dtx_dpi_dat#
3238 *
3239 * DTX DPI Raw Data Register
3240 */
3241 union bdk_dtx_dpi_datx
3242 {
3243 uint64_t u;
3244 struct bdk_dtx_dpi_datx_s
3245 {
3246 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3247 uint64_t reserved_36_63 : 28;
3248 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
3249 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
3250 #else /* Word 0 - Little Endian */
3251 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
3252 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
3253 uint64_t reserved_36_63 : 28;
3254 #endif /* Word 0 - End */
3255 } s;
3256 /* struct bdk_dtx_dpi_datx_s cn; */
3257 };
3258 typedef union bdk_dtx_dpi_datx bdk_dtx_dpi_datx_t;
3259
3260 static inline uint64_t BDK_DTX_DPI_DATX(unsigned long a) __attribute__ ((pure, always_inline));
3261 static inline uint64_t BDK_DTX_DPI_DATX(unsigned long a)
3262 {
3263 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
3264 return 0x87e0feb70040ll + 8ll * ((a) & 0x1);
3265 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
3266 return 0x87e0feb70040ll + 8ll * ((a) & 0x1);
3267 __bdk_csr_fatal("DTX_DPI_DATX", 1, a, 0, 0, 0);
3268 }
3269
3270 #define typedef_BDK_DTX_DPI_DATX(a) bdk_dtx_dpi_datx_t
3271 #define bustype_BDK_DTX_DPI_DATX(a) BDK_CSR_TYPE_RSL
3272 #define basename_BDK_DTX_DPI_DATX(a) "DTX_DPI_DATX"
3273 #define busnum_BDK_DTX_DPI_DATX(a) (a)
3274 #define arguments_BDK_DTX_DPI_DATX(a) (a),-1,-1,-1
3275
3276 /**
3277 * Register (RSL) dtx_dpi_ena#
3278 *
3279 * DTX DPI Data Enable Register
3280 */
3281 union bdk_dtx_dpi_enax
3282 {
3283 uint64_t u;
3284 struct bdk_dtx_dpi_enax_s
3285 {
3286 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3287 uint64_t reserved_36_63 : 28;
3288 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
3289 buses. Normally only one block will drive each bit. */
3290 #else /* Word 0 - Little Endian */
3291 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
3292 buses. Normally only one block will drive each bit. */
3293 uint64_t reserved_36_63 : 28;
3294 #endif /* Word 0 - End */
3295 } s;
3296 /* struct bdk_dtx_dpi_enax_s cn; */
3297 };
3298 typedef union bdk_dtx_dpi_enax bdk_dtx_dpi_enax_t;
3299
3300 static inline uint64_t BDK_DTX_DPI_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
3301 static inline uint64_t BDK_DTX_DPI_ENAX(unsigned long a)
3302 {
3303 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
3304 return 0x87e0feb70020ll + 8ll * ((a) & 0x1);
3305 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
3306 return 0x87e0feb70020ll + 8ll * ((a) & 0x1);
3307 __bdk_csr_fatal("DTX_DPI_ENAX", 1, a, 0, 0, 0);
3308 }
3309
3310 #define typedef_BDK_DTX_DPI_ENAX(a) bdk_dtx_dpi_enax_t
3311 #define bustype_BDK_DTX_DPI_ENAX(a) BDK_CSR_TYPE_RSL
3312 #define basename_BDK_DTX_DPI_ENAX(a) "DTX_DPI_ENAX"
3313 #define busnum_BDK_DTX_DPI_ENAX(a) (a)
3314 #define arguments_BDK_DTX_DPI_ENAX(a) (a),-1,-1,-1
3315
3316 /**
3317 * Register (RSL) dtx_dpi_sel#
3318 *
3319 * DTX DPI Select Register
3320 */
3321 union bdk_dtx_dpi_selx
3322 {
3323 uint64_t u;
3324 struct bdk_dtx_dpi_selx_s
3325 {
3326 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3327 uint64_t reserved_24_63 : 40;
3328 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
3329 #else /* Word 0 - Little Endian */
3330 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
3331 uint64_t reserved_24_63 : 40;
3332 #endif /* Word 0 - End */
3333 } s;
3334 /* struct bdk_dtx_dpi_selx_s cn; */
3335 };
3336 typedef union bdk_dtx_dpi_selx bdk_dtx_dpi_selx_t;
3337
3338 static inline uint64_t BDK_DTX_DPI_SELX(unsigned long a) __attribute__ ((pure, always_inline));
3339 static inline uint64_t BDK_DTX_DPI_SELX(unsigned long a)
3340 {
3341 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
3342 return 0x87e0feb70000ll + 8ll * ((a) & 0x1);
3343 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
3344 return 0x87e0feb70000ll + 8ll * ((a) & 0x1);
3345 __bdk_csr_fatal("DTX_DPI_SELX", 1, a, 0, 0, 0);
3346 }
3347
3348 #define typedef_BDK_DTX_DPI_SELX(a) bdk_dtx_dpi_selx_t
3349 #define bustype_BDK_DTX_DPI_SELX(a) BDK_CSR_TYPE_RSL
3350 #define basename_BDK_DTX_DPI_SELX(a) "DTX_DPI_SELX"
3351 #define busnum_BDK_DTX_DPI_SELX(a) (a)
3352 #define arguments_BDK_DTX_DPI_SELX(a) (a),-1,-1,-1
3353
3354 /**
3355 * Register (RSL) dtx_fpa_bcst_rsp
3356 *
3357 * DTX FPA Control Register
3358 */
3359 union bdk_dtx_fpa_bcst_rsp
3360 {
3361 uint64_t u;
3362 struct bdk_dtx_fpa_bcst_rsp_s
3363 {
3364 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3365 uint64_t reserved_1_63 : 63;
3366 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
3367 #else /* Word 0 - Little Endian */
3368 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
3369 uint64_t reserved_1_63 : 63;
3370 #endif /* Word 0 - End */
3371 } s;
3372 /* struct bdk_dtx_fpa_bcst_rsp_s cn; */
3373 };
3374 typedef union bdk_dtx_fpa_bcst_rsp bdk_dtx_fpa_bcst_rsp_t;
3375
3376 #define BDK_DTX_FPA_BCST_RSP BDK_DTX_FPA_BCST_RSP_FUNC()
3377 static inline uint64_t BDK_DTX_FPA_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
3378 static inline uint64_t BDK_DTX_FPA_BCST_RSP_FUNC(void)
3379 {
3380 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
3381 return 0x87e0fe940080ll;
3382 __bdk_csr_fatal("DTX_FPA_BCST_RSP", 0, 0, 0, 0, 0);
3383 }
3384
3385 #define typedef_BDK_DTX_FPA_BCST_RSP bdk_dtx_fpa_bcst_rsp_t
3386 #define bustype_BDK_DTX_FPA_BCST_RSP BDK_CSR_TYPE_RSL
3387 #define basename_BDK_DTX_FPA_BCST_RSP "DTX_FPA_BCST_RSP"
3388 #define busnum_BDK_DTX_FPA_BCST_RSP 0
3389 #define arguments_BDK_DTX_FPA_BCST_RSP -1,-1,-1,-1
3390
3391 /**
3392 * Register (RSL) dtx_fpa_ctl
3393 *
3394 * DTX FPA Control Register
3395 */
3396 union bdk_dtx_fpa_ctl
3397 {
3398 uint64_t u;
3399 struct bdk_dtx_fpa_ctl_s
3400 {
3401 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3402 uint64_t reserved_5_63 : 59;
3403 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
3404 uint64_t reserved_2_3 : 2;
3405 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
3406 debug data. Not applicable when software directly reads the DAT(0..1) registers.
3407 For diagnostic use only. */
3408 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
3409 #else /* Word 0 - Little Endian */
3410 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
3411 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
3412 debug data. Not applicable when software directly reads the DAT(0..1) registers.
3413 For diagnostic use only. */
3414 uint64_t reserved_2_3 : 2;
3415 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
3416 uint64_t reserved_5_63 : 59;
3417 #endif /* Word 0 - End */
3418 } s;
3419 /* struct bdk_dtx_fpa_ctl_s cn; */
3420 };
3421 typedef union bdk_dtx_fpa_ctl bdk_dtx_fpa_ctl_t;
3422
3423 #define BDK_DTX_FPA_CTL BDK_DTX_FPA_CTL_FUNC()
3424 static inline uint64_t BDK_DTX_FPA_CTL_FUNC(void) __attribute__ ((pure, always_inline));
3425 static inline uint64_t BDK_DTX_FPA_CTL_FUNC(void)
3426 {
3427 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
3428 return 0x87e0fe940060ll;
3429 __bdk_csr_fatal("DTX_FPA_CTL", 0, 0, 0, 0, 0);
3430 }
3431
3432 #define typedef_BDK_DTX_FPA_CTL bdk_dtx_fpa_ctl_t
3433 #define bustype_BDK_DTX_FPA_CTL BDK_CSR_TYPE_RSL
3434 #define basename_BDK_DTX_FPA_CTL "DTX_FPA_CTL"
3435 #define busnum_BDK_DTX_FPA_CTL 0
3436 #define arguments_BDK_DTX_FPA_CTL -1,-1,-1,-1
3437
3438 /**
3439 * Register (RSL) dtx_fpa_dat#
3440 *
3441 * DTX FPA Raw Data Register
3442 */
3443 union bdk_dtx_fpa_datx
3444 {
3445 uint64_t u;
3446 struct bdk_dtx_fpa_datx_s
3447 {
3448 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3449 uint64_t reserved_36_63 : 28;
3450 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
3451 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
3452 #else /* Word 0 - Little Endian */
3453 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
3454 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
3455 uint64_t reserved_36_63 : 28;
3456 #endif /* Word 0 - End */
3457 } s;
3458 /* struct bdk_dtx_fpa_datx_s cn; */
3459 };
3460 typedef union bdk_dtx_fpa_datx bdk_dtx_fpa_datx_t;
3461
3462 static inline uint64_t BDK_DTX_FPA_DATX(unsigned long a) __attribute__ ((pure, always_inline));
3463 static inline uint64_t BDK_DTX_FPA_DATX(unsigned long a)
3464 {
3465 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
3466 return 0x87e0fe940040ll + 8ll * ((a) & 0x1);
3467 __bdk_csr_fatal("DTX_FPA_DATX", 1, a, 0, 0, 0);
3468 }
3469
3470 #define typedef_BDK_DTX_FPA_DATX(a) bdk_dtx_fpa_datx_t
3471 #define bustype_BDK_DTX_FPA_DATX(a) BDK_CSR_TYPE_RSL
3472 #define basename_BDK_DTX_FPA_DATX(a) "DTX_FPA_DATX"
3473 #define busnum_BDK_DTX_FPA_DATX(a) (a)
3474 #define arguments_BDK_DTX_FPA_DATX(a) (a),-1,-1,-1
3475
3476 /**
3477 * Register (RSL) dtx_fpa_ena#
3478 *
3479 * DTX FPA Data Enable Register
3480 */
3481 union bdk_dtx_fpa_enax
3482 {
3483 uint64_t u;
3484 struct bdk_dtx_fpa_enax_s
3485 {
3486 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3487 uint64_t reserved_36_63 : 28;
3488 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
3489 buses. Normally only one block will drive each bit. */
3490 #else /* Word 0 - Little Endian */
3491 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
3492 buses. Normally only one block will drive each bit. */
3493 uint64_t reserved_36_63 : 28;
3494 #endif /* Word 0 - End */
3495 } s;
3496 /* struct bdk_dtx_fpa_enax_s cn; */
3497 };
3498 typedef union bdk_dtx_fpa_enax bdk_dtx_fpa_enax_t;
3499
3500 static inline uint64_t BDK_DTX_FPA_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
3501 static inline uint64_t BDK_DTX_FPA_ENAX(unsigned long a)
3502 {
3503 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
3504 return 0x87e0fe940020ll + 8ll * ((a) & 0x1);
3505 __bdk_csr_fatal("DTX_FPA_ENAX", 1, a, 0, 0, 0);
3506 }
3507
3508 #define typedef_BDK_DTX_FPA_ENAX(a) bdk_dtx_fpa_enax_t
3509 #define bustype_BDK_DTX_FPA_ENAX(a) BDK_CSR_TYPE_RSL
3510 #define basename_BDK_DTX_FPA_ENAX(a) "DTX_FPA_ENAX"
3511 #define busnum_BDK_DTX_FPA_ENAX(a) (a)
3512 #define arguments_BDK_DTX_FPA_ENAX(a) (a),-1,-1,-1
3513
3514 /**
3515 * Register (RSL) dtx_fpa_sel#
3516 *
3517 * DTX FPA Select Register
3518 */
3519 union bdk_dtx_fpa_selx
3520 {
3521 uint64_t u;
3522 struct bdk_dtx_fpa_selx_s
3523 {
3524 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3525 uint64_t reserved_24_63 : 40;
3526 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
3527 #else /* Word 0 - Little Endian */
3528 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
3529 uint64_t reserved_24_63 : 40;
3530 #endif /* Word 0 - End */
3531 } s;
3532 /* struct bdk_dtx_fpa_selx_s cn; */
3533 };
3534 typedef union bdk_dtx_fpa_selx bdk_dtx_fpa_selx_t;
3535
3536 static inline uint64_t BDK_DTX_FPA_SELX(unsigned long a) __attribute__ ((pure, always_inline));
3537 static inline uint64_t BDK_DTX_FPA_SELX(unsigned long a)
3538 {
3539 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
3540 return 0x87e0fe940000ll + 8ll * ((a) & 0x1);
3541 __bdk_csr_fatal("DTX_FPA_SELX", 1, a, 0, 0, 0);
3542 }
3543
3544 #define typedef_BDK_DTX_FPA_SELX(a) bdk_dtx_fpa_selx_t
3545 #define bustype_BDK_DTX_FPA_SELX(a) BDK_CSR_TYPE_RSL
3546 #define basename_BDK_DTX_FPA_SELX(a) "DTX_FPA_SELX"
3547 #define busnum_BDK_DTX_FPA_SELX(a) (a)
3548 #define arguments_BDK_DTX_FPA_SELX(a) (a),-1,-1,-1
3549
3550 /**
3551 * Register (RSL) dtx_gic_bcst_rsp
3552 *
3553 * DTX GIC Control Register
3554 */
3555 union bdk_dtx_gic_bcst_rsp
3556 {
3557 uint64_t u;
3558 struct bdk_dtx_gic_bcst_rsp_s
3559 {
3560 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3561 uint64_t reserved_1_63 : 63;
3562 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
3563 #else /* Word 0 - Little Endian */
3564 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
3565 uint64_t reserved_1_63 : 63;
3566 #endif /* Word 0 - End */
3567 } s;
3568 /* struct bdk_dtx_gic_bcst_rsp_s cn; */
3569 };
3570 typedef union bdk_dtx_gic_bcst_rsp bdk_dtx_gic_bcst_rsp_t;
3571
3572 #define BDK_DTX_GIC_BCST_RSP BDK_DTX_GIC_BCST_RSP_FUNC()
3573 static inline uint64_t BDK_DTX_GIC_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
3574 static inline uint64_t BDK_DTX_GIC_BCST_RSP_FUNC(void)
3575 {
3576 return 0x87e0fe808080ll;
3577 }
3578
3579 #define typedef_BDK_DTX_GIC_BCST_RSP bdk_dtx_gic_bcst_rsp_t
3580 #define bustype_BDK_DTX_GIC_BCST_RSP BDK_CSR_TYPE_RSL
3581 #define basename_BDK_DTX_GIC_BCST_RSP "DTX_GIC_BCST_RSP"
3582 #define busnum_BDK_DTX_GIC_BCST_RSP 0
3583 #define arguments_BDK_DTX_GIC_BCST_RSP -1,-1,-1,-1
3584
3585 /**
3586 * Register (RSL) dtx_gic_ctl
3587 *
3588 * DTX GIC Control Register
3589 */
3590 union bdk_dtx_gic_ctl
3591 {
3592 uint64_t u;
3593 struct bdk_dtx_gic_ctl_s
3594 {
3595 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3596 uint64_t reserved_5_63 : 59;
3597 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
3598 uint64_t reserved_2_3 : 2;
3599 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
3600 debug data. Not applicable when software directly reads the DAT(0..1) registers.
3601 For diagnostic use only. */
3602 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
3603 #else /* Word 0 - Little Endian */
3604 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
3605 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
3606 debug data. Not applicable when software directly reads the DAT(0..1) registers.
3607 For diagnostic use only. */
3608 uint64_t reserved_2_3 : 2;
3609 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
3610 uint64_t reserved_5_63 : 59;
3611 #endif /* Word 0 - End */
3612 } s;
3613 /* struct bdk_dtx_gic_ctl_s cn; */
3614 };
3615 typedef union bdk_dtx_gic_ctl bdk_dtx_gic_ctl_t;
3616
3617 #define BDK_DTX_GIC_CTL BDK_DTX_GIC_CTL_FUNC()
3618 static inline uint64_t BDK_DTX_GIC_CTL_FUNC(void) __attribute__ ((pure, always_inline));
3619 static inline uint64_t BDK_DTX_GIC_CTL_FUNC(void)
3620 {
3621 return 0x87e0fe808060ll;
3622 }
3623
3624 #define typedef_BDK_DTX_GIC_CTL bdk_dtx_gic_ctl_t
3625 #define bustype_BDK_DTX_GIC_CTL BDK_CSR_TYPE_RSL
3626 #define basename_BDK_DTX_GIC_CTL "DTX_GIC_CTL"
3627 #define busnum_BDK_DTX_GIC_CTL 0
3628 #define arguments_BDK_DTX_GIC_CTL -1,-1,-1,-1
3629
3630 /**
3631 * Register (RSL) dtx_gic_dat#
3632 *
3633 * DTX GIC Raw Data Register
3634 */
3635 union bdk_dtx_gic_datx
3636 {
3637 uint64_t u;
3638 struct bdk_dtx_gic_datx_s
3639 {
3640 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3641 uint64_t reserved_36_63 : 28;
3642 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
3643 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
3644 #else /* Word 0 - Little Endian */
3645 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
3646 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
3647 uint64_t reserved_36_63 : 28;
3648 #endif /* Word 0 - End */
3649 } s;
3650 /* struct bdk_dtx_gic_datx_s cn; */
3651 };
3652 typedef union bdk_dtx_gic_datx bdk_dtx_gic_datx_t;
3653
3654 static inline uint64_t BDK_DTX_GIC_DATX(unsigned long a) __attribute__ ((pure, always_inline));
3655 static inline uint64_t BDK_DTX_GIC_DATX(unsigned long a)
3656 {
3657 if (a<=1)
3658 return 0x87e0fe808040ll + 8ll * ((a) & 0x1);
3659 __bdk_csr_fatal("DTX_GIC_DATX", 1, a, 0, 0, 0);
3660 }
3661
3662 #define typedef_BDK_DTX_GIC_DATX(a) bdk_dtx_gic_datx_t
3663 #define bustype_BDK_DTX_GIC_DATX(a) BDK_CSR_TYPE_RSL
3664 #define basename_BDK_DTX_GIC_DATX(a) "DTX_GIC_DATX"
3665 #define busnum_BDK_DTX_GIC_DATX(a) (a)
3666 #define arguments_BDK_DTX_GIC_DATX(a) (a),-1,-1,-1
3667
3668 /**
3669 * Register (RSL) dtx_gic_ena#
3670 *
3671 * DTX GIC Data Enable Register
3672 */
3673 union bdk_dtx_gic_enax
3674 {
3675 uint64_t u;
3676 struct bdk_dtx_gic_enax_s
3677 {
3678 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3679 uint64_t reserved_36_63 : 28;
3680 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
3681 buses. Normally only one block will drive each bit. */
3682 #else /* Word 0 - Little Endian */
3683 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
3684 buses. Normally only one block will drive each bit. */
3685 uint64_t reserved_36_63 : 28;
3686 #endif /* Word 0 - End */
3687 } s;
3688 /* struct bdk_dtx_gic_enax_s cn; */
3689 };
3690 typedef union bdk_dtx_gic_enax bdk_dtx_gic_enax_t;
3691
3692 static inline uint64_t BDK_DTX_GIC_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
3693 static inline uint64_t BDK_DTX_GIC_ENAX(unsigned long a)
3694 {
3695 if (a<=1)
3696 return 0x87e0fe808020ll + 8ll * ((a) & 0x1);
3697 __bdk_csr_fatal("DTX_GIC_ENAX", 1, a, 0, 0, 0);
3698 }
3699
3700 #define typedef_BDK_DTX_GIC_ENAX(a) bdk_dtx_gic_enax_t
3701 #define bustype_BDK_DTX_GIC_ENAX(a) BDK_CSR_TYPE_RSL
3702 #define basename_BDK_DTX_GIC_ENAX(a) "DTX_GIC_ENAX"
3703 #define busnum_BDK_DTX_GIC_ENAX(a) (a)
3704 #define arguments_BDK_DTX_GIC_ENAX(a) (a),-1,-1,-1
3705
3706 /**
3707 * Register (RSL) dtx_gic_sel#
3708 *
3709 * DTX GIC Select Register
3710 */
3711 union bdk_dtx_gic_selx
3712 {
3713 uint64_t u;
3714 struct bdk_dtx_gic_selx_s
3715 {
3716 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3717 uint64_t reserved_24_63 : 40;
3718 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
3719 #else /* Word 0 - Little Endian */
3720 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
3721 uint64_t reserved_24_63 : 40;
3722 #endif /* Word 0 - End */
3723 } s;
3724 /* struct bdk_dtx_gic_selx_s cn; */
3725 };
3726 typedef union bdk_dtx_gic_selx bdk_dtx_gic_selx_t;
3727
3728 static inline uint64_t BDK_DTX_GIC_SELX(unsigned long a) __attribute__ ((pure, always_inline));
3729 static inline uint64_t BDK_DTX_GIC_SELX(unsigned long a)
3730 {
3731 if (a<=1)
3732 return 0x87e0fe808000ll + 8ll * ((a) & 0x1);
3733 __bdk_csr_fatal("DTX_GIC_SELX", 1, a, 0, 0, 0);
3734 }
3735
3736 #define typedef_BDK_DTX_GIC_SELX(a) bdk_dtx_gic_selx_t
3737 #define bustype_BDK_DTX_GIC_SELX(a) BDK_CSR_TYPE_RSL
3738 #define basename_BDK_DTX_GIC_SELX(a) "DTX_GIC_SELX"
3739 #define busnum_BDK_DTX_GIC_SELX(a) (a)
3740 #define arguments_BDK_DTX_GIC_SELX(a) (a),-1,-1,-1
3741
3742 /**
3743 * Register (RSL) dtx_gser#_bcst_rsp
3744 *
3745 * DTX GSER Control Register
3746 */
3747 union bdk_dtx_gserx_bcst_rsp
3748 {
3749 uint64_t u;
3750 struct bdk_dtx_gserx_bcst_rsp_s
3751 {
3752 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3753 uint64_t reserved_1_63 : 63;
3754 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
3755 #else /* Word 0 - Little Endian */
3756 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
3757 uint64_t reserved_1_63 : 63;
3758 #endif /* Word 0 - End */
3759 } s;
3760 /* struct bdk_dtx_gserx_bcst_rsp_s cn; */
3761 };
3762 typedef union bdk_dtx_gserx_bcst_rsp bdk_dtx_gserx_bcst_rsp_t;
3763
3764 static inline uint64_t BDK_DTX_GSERX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
3765 static inline uint64_t BDK_DTX_GSERX_BCST_RSP(unsigned long a)
3766 {
3767 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=3))
3768 return 0x87e0fe480080ll + 0x8000ll * ((a) & 0x3);
3769 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=6))
3770 return 0x87e0fe480080ll + 0x8000ll * ((a) & 0x7);
3771 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=13))
3772 return 0x87e0fe480080ll + 0x8000ll * ((a) & 0xf);
3773 __bdk_csr_fatal("DTX_GSERX_BCST_RSP", 1, a, 0, 0, 0);
3774 }
3775
3776 #define typedef_BDK_DTX_GSERX_BCST_RSP(a) bdk_dtx_gserx_bcst_rsp_t
3777 #define bustype_BDK_DTX_GSERX_BCST_RSP(a) BDK_CSR_TYPE_RSL
3778 #define basename_BDK_DTX_GSERX_BCST_RSP(a) "DTX_GSERX_BCST_RSP"
3779 #define busnum_BDK_DTX_GSERX_BCST_RSP(a) (a)
3780 #define arguments_BDK_DTX_GSERX_BCST_RSP(a) (a),-1,-1,-1
3781
3782 /**
3783 * Register (RSL) dtx_gser#_ctl
3784 *
3785 * DTX GSER Control Register
3786 */
3787 union bdk_dtx_gserx_ctl
3788 {
3789 uint64_t u;
3790 struct bdk_dtx_gserx_ctl_s
3791 {
3792 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3793 uint64_t reserved_5_63 : 59;
3794 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
3795 uint64_t reserved_2_3 : 2;
3796 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
3797 debug data. Not applicable when software directly reads the DAT(0..1) registers.
3798 For diagnostic use only. */
3799 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
3800 #else /* Word 0 - Little Endian */
3801 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
3802 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
3803 debug data. Not applicable when software directly reads the DAT(0..1) registers.
3804 For diagnostic use only. */
3805 uint64_t reserved_2_3 : 2;
3806 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
3807 uint64_t reserved_5_63 : 59;
3808 #endif /* Word 0 - End */
3809 } s;
3810 /* struct bdk_dtx_gserx_ctl_s cn; */
3811 };
3812 typedef union bdk_dtx_gserx_ctl bdk_dtx_gserx_ctl_t;
3813
3814 static inline uint64_t BDK_DTX_GSERX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
3815 static inline uint64_t BDK_DTX_GSERX_CTL(unsigned long a)
3816 {
3817 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=3))
3818 return 0x87e0fe480060ll + 0x8000ll * ((a) & 0x3);
3819 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=6))
3820 return 0x87e0fe480060ll + 0x8000ll * ((a) & 0x7);
3821 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=13))
3822 return 0x87e0fe480060ll + 0x8000ll * ((a) & 0xf);
3823 __bdk_csr_fatal("DTX_GSERX_CTL", 1, a, 0, 0, 0);
3824 }
3825
3826 #define typedef_BDK_DTX_GSERX_CTL(a) bdk_dtx_gserx_ctl_t
3827 #define bustype_BDK_DTX_GSERX_CTL(a) BDK_CSR_TYPE_RSL
3828 #define basename_BDK_DTX_GSERX_CTL(a) "DTX_GSERX_CTL"
3829 #define busnum_BDK_DTX_GSERX_CTL(a) (a)
3830 #define arguments_BDK_DTX_GSERX_CTL(a) (a),-1,-1,-1
3831
3832 /**
3833 * Register (RSL) dtx_gser#_dat#
3834 *
3835 * DTX GSER Raw Data Register
3836 */
3837 union bdk_dtx_gserx_datx
3838 {
3839 uint64_t u;
3840 struct bdk_dtx_gserx_datx_s
3841 {
3842 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3843 uint64_t reserved_36_63 : 28;
3844 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
3845 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
3846 #else /* Word 0 - Little Endian */
3847 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
3848 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
3849 uint64_t reserved_36_63 : 28;
3850 #endif /* Word 0 - End */
3851 } s;
3852 /* struct bdk_dtx_gserx_datx_s cn; */
3853 };
3854 typedef union bdk_dtx_gserx_datx bdk_dtx_gserx_datx_t;
3855
3856 static inline uint64_t BDK_DTX_GSERX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
3857 static inline uint64_t BDK_DTX_GSERX_DATX(unsigned long a, unsigned long b)
3858 {
3859 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a<=3) && (b<=1)))
3860 return 0x87e0fe480040ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
3861 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=6) && (b<=1)))
3862 return 0x87e0fe480040ll + 0x8000ll * ((a) & 0x7) + 8ll * ((b) & 0x1);
3863 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=13) && (b<=1)))
3864 return 0x87e0fe480040ll + 0x8000ll * ((a) & 0xf) + 8ll * ((b) & 0x1);
3865 __bdk_csr_fatal("DTX_GSERX_DATX", 2, a, b, 0, 0);
3866 }
3867
3868 #define typedef_BDK_DTX_GSERX_DATX(a,b) bdk_dtx_gserx_datx_t
3869 #define bustype_BDK_DTX_GSERX_DATX(a,b) BDK_CSR_TYPE_RSL
3870 #define basename_BDK_DTX_GSERX_DATX(a,b) "DTX_GSERX_DATX"
3871 #define busnum_BDK_DTX_GSERX_DATX(a,b) (a)
3872 #define arguments_BDK_DTX_GSERX_DATX(a,b) (a),(b),-1,-1
3873
3874 /**
3875 * Register (RSL) dtx_gser#_ena#
3876 *
3877 * DTX GSER Data Enable Register
3878 */
3879 union bdk_dtx_gserx_enax
3880 {
3881 uint64_t u;
3882 struct bdk_dtx_gserx_enax_s
3883 {
3884 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3885 uint64_t reserved_36_63 : 28;
3886 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
3887 buses. Normally only one block will drive each bit. */
3888 #else /* Word 0 - Little Endian */
3889 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
3890 buses. Normally only one block will drive each bit. */
3891 uint64_t reserved_36_63 : 28;
3892 #endif /* Word 0 - End */
3893 } s;
3894 /* struct bdk_dtx_gserx_enax_s cn; */
3895 };
3896 typedef union bdk_dtx_gserx_enax bdk_dtx_gserx_enax_t;
3897
3898 static inline uint64_t BDK_DTX_GSERX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
3899 static inline uint64_t BDK_DTX_GSERX_ENAX(unsigned long a, unsigned long b)
3900 {
3901 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a<=3) && (b<=1)))
3902 return 0x87e0fe480020ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
3903 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=6) && (b<=1)))
3904 return 0x87e0fe480020ll + 0x8000ll * ((a) & 0x7) + 8ll * ((b) & 0x1);
3905 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=13) && (b<=1)))
3906 return 0x87e0fe480020ll + 0x8000ll * ((a) & 0xf) + 8ll * ((b) & 0x1);
3907 __bdk_csr_fatal("DTX_GSERX_ENAX", 2, a, b, 0, 0);
3908 }
3909
3910 #define typedef_BDK_DTX_GSERX_ENAX(a,b) bdk_dtx_gserx_enax_t
3911 #define bustype_BDK_DTX_GSERX_ENAX(a,b) BDK_CSR_TYPE_RSL
3912 #define basename_BDK_DTX_GSERX_ENAX(a,b) "DTX_GSERX_ENAX"
3913 #define busnum_BDK_DTX_GSERX_ENAX(a,b) (a)
3914 #define arguments_BDK_DTX_GSERX_ENAX(a,b) (a),(b),-1,-1
3915
3916 /**
3917 * Register (RSL) dtx_gser#_sel#
3918 *
3919 * DTX GSER Select Register
3920 */
3921 union bdk_dtx_gserx_selx
3922 {
3923 uint64_t u;
3924 struct bdk_dtx_gserx_selx_s
3925 {
3926 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3927 uint64_t reserved_24_63 : 40;
3928 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
3929 #else /* Word 0 - Little Endian */
3930 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
3931 uint64_t reserved_24_63 : 40;
3932 #endif /* Word 0 - End */
3933 } s;
3934 /* struct bdk_dtx_gserx_selx_s cn; */
3935 };
3936 typedef union bdk_dtx_gserx_selx bdk_dtx_gserx_selx_t;
3937
3938 static inline uint64_t BDK_DTX_GSERX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
3939 static inline uint64_t BDK_DTX_GSERX_SELX(unsigned long a, unsigned long b)
3940 {
3941 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a<=3) && (b<=1)))
3942 return 0x87e0fe480000ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
3943 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=6) && (b<=1)))
3944 return 0x87e0fe480000ll + 0x8000ll * ((a) & 0x7) + 8ll * ((b) & 0x1);
3945 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=13) && (b<=1)))
3946 return 0x87e0fe480000ll + 0x8000ll * ((a) & 0xf) + 8ll * ((b) & 0x1);
3947 __bdk_csr_fatal("DTX_GSERX_SELX", 2, a, b, 0, 0);
3948 }
3949
3950 #define typedef_BDK_DTX_GSERX_SELX(a,b) bdk_dtx_gserx_selx_t
3951 #define bustype_BDK_DTX_GSERX_SELX(a,b) BDK_CSR_TYPE_RSL
3952 #define basename_BDK_DTX_GSERX_SELX(a,b) "DTX_GSERX_SELX"
3953 #define busnum_BDK_DTX_GSERX_SELX(a,b) (a)
3954 #define arguments_BDK_DTX_GSERX_SELX(a,b) (a),(b),-1,-1
3955
3956 /**
3957 * Register (RSL) dtx_gti_bcst_rsp
3958 *
3959 * DTX GTI Control Register
3960 */
3961 union bdk_dtx_gti_bcst_rsp
3962 {
3963 uint64_t u;
3964 struct bdk_dtx_gti_bcst_rsp_s
3965 {
3966 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
3967 uint64_t reserved_1_63 : 63;
3968 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
3969 #else /* Word 0 - Little Endian */
3970 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
3971 uint64_t reserved_1_63 : 63;
3972 #endif /* Word 0 - End */
3973 } s;
3974 /* struct bdk_dtx_gti_bcst_rsp_s cn; */
3975 };
3976 typedef union bdk_dtx_gti_bcst_rsp bdk_dtx_gti_bcst_rsp_t;
3977
3978 #define BDK_DTX_GTI_BCST_RSP BDK_DTX_GTI_BCST_RSP_FUNC()
3979 static inline uint64_t BDK_DTX_GTI_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
3980 static inline uint64_t BDK_DTX_GTI_BCST_RSP_FUNC(void)
3981 {
3982 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
3983 return 0x87e0fea20080ll;
3984 __bdk_csr_fatal("DTX_GTI_BCST_RSP", 0, 0, 0, 0, 0);
3985 }
3986
3987 #define typedef_BDK_DTX_GTI_BCST_RSP bdk_dtx_gti_bcst_rsp_t
3988 #define bustype_BDK_DTX_GTI_BCST_RSP BDK_CSR_TYPE_RSL
3989 #define basename_BDK_DTX_GTI_BCST_RSP "DTX_GTI_BCST_RSP"
3990 #define busnum_BDK_DTX_GTI_BCST_RSP 0
3991 #define arguments_BDK_DTX_GTI_BCST_RSP -1,-1,-1,-1
3992
3993 /**
3994 * Register (RSL) dtx_gti_ctl
3995 *
3996 * DTX GTI Control Register
3997 */
3998 union bdk_dtx_gti_ctl
3999 {
4000 uint64_t u;
4001 struct bdk_dtx_gti_ctl_s
4002 {
4003 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4004 uint64_t reserved_5_63 : 59;
4005 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
4006 uint64_t reserved_2_3 : 2;
4007 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
4008 debug data. Not applicable when software directly reads the DAT(0..1) registers.
4009 For diagnostic use only. */
4010 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
4011 #else /* Word 0 - Little Endian */
4012 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
4013 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
4014 debug data. Not applicable when software directly reads the DAT(0..1) registers.
4015 For diagnostic use only. */
4016 uint64_t reserved_2_3 : 2;
4017 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
4018 uint64_t reserved_5_63 : 59;
4019 #endif /* Word 0 - End */
4020 } s;
4021 /* struct bdk_dtx_gti_ctl_s cn; */
4022 };
4023 typedef union bdk_dtx_gti_ctl bdk_dtx_gti_ctl_t;
4024
4025 #define BDK_DTX_GTI_CTL BDK_DTX_GTI_CTL_FUNC()
4026 static inline uint64_t BDK_DTX_GTI_CTL_FUNC(void) __attribute__ ((pure, always_inline));
4027 static inline uint64_t BDK_DTX_GTI_CTL_FUNC(void)
4028 {
4029 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
4030 return 0x87e0fea20060ll;
4031 __bdk_csr_fatal("DTX_GTI_CTL", 0, 0, 0, 0, 0);
4032 }
4033
4034 #define typedef_BDK_DTX_GTI_CTL bdk_dtx_gti_ctl_t
4035 #define bustype_BDK_DTX_GTI_CTL BDK_CSR_TYPE_RSL
4036 #define basename_BDK_DTX_GTI_CTL "DTX_GTI_CTL"
4037 #define busnum_BDK_DTX_GTI_CTL 0
4038 #define arguments_BDK_DTX_GTI_CTL -1,-1,-1,-1
4039
4040 /**
4041 * Register (RSL) dtx_gti_dat#
4042 *
4043 * DTX GTI Raw Data Register
4044 */
4045 union bdk_dtx_gti_datx
4046 {
4047 uint64_t u;
4048 struct bdk_dtx_gti_datx_s
4049 {
4050 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4051 uint64_t reserved_36_63 : 28;
4052 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
4053 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
4054 #else /* Word 0 - Little Endian */
4055 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
4056 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
4057 uint64_t reserved_36_63 : 28;
4058 #endif /* Word 0 - End */
4059 } s;
4060 /* struct bdk_dtx_gti_datx_s cn; */
4061 };
4062 typedef union bdk_dtx_gti_datx bdk_dtx_gti_datx_t;
4063
4064 static inline uint64_t BDK_DTX_GTI_DATX(unsigned long a) __attribute__ ((pure, always_inline));
4065 static inline uint64_t BDK_DTX_GTI_DATX(unsigned long a)
4066 {
4067 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
4068 return 0x87e0fea20040ll + 8ll * ((a) & 0x1);
4069 __bdk_csr_fatal("DTX_GTI_DATX", 1, a, 0, 0, 0);
4070 }
4071
4072 #define typedef_BDK_DTX_GTI_DATX(a) bdk_dtx_gti_datx_t
4073 #define bustype_BDK_DTX_GTI_DATX(a) BDK_CSR_TYPE_RSL
4074 #define basename_BDK_DTX_GTI_DATX(a) "DTX_GTI_DATX"
4075 #define busnum_BDK_DTX_GTI_DATX(a) (a)
4076 #define arguments_BDK_DTX_GTI_DATX(a) (a),-1,-1,-1
4077
4078 /**
4079 * Register (RSL) dtx_gti_ena#
4080 *
4081 * DTX GTI Data Enable Register
4082 */
4083 union bdk_dtx_gti_enax
4084 {
4085 uint64_t u;
4086 struct bdk_dtx_gti_enax_s
4087 {
4088 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4089 uint64_t reserved_36_63 : 28;
4090 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
4091 buses. Normally only one block will drive each bit. */
4092 #else /* Word 0 - Little Endian */
4093 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
4094 buses. Normally only one block will drive each bit. */
4095 uint64_t reserved_36_63 : 28;
4096 #endif /* Word 0 - End */
4097 } s;
4098 /* struct bdk_dtx_gti_enax_s cn; */
4099 };
4100 typedef union bdk_dtx_gti_enax bdk_dtx_gti_enax_t;
4101
4102 static inline uint64_t BDK_DTX_GTI_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
4103 static inline uint64_t BDK_DTX_GTI_ENAX(unsigned long a)
4104 {
4105 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
4106 return 0x87e0fea20020ll + 8ll * ((a) & 0x1);
4107 __bdk_csr_fatal("DTX_GTI_ENAX", 1, a, 0, 0, 0);
4108 }
4109
4110 #define typedef_BDK_DTX_GTI_ENAX(a) bdk_dtx_gti_enax_t
4111 #define bustype_BDK_DTX_GTI_ENAX(a) BDK_CSR_TYPE_RSL
4112 #define basename_BDK_DTX_GTI_ENAX(a) "DTX_GTI_ENAX"
4113 #define busnum_BDK_DTX_GTI_ENAX(a) (a)
4114 #define arguments_BDK_DTX_GTI_ENAX(a) (a),-1,-1,-1
4115
4116 /**
4117 * Register (RSL) dtx_gti_sel#
4118 *
4119 * DTX GTI Select Register
4120 */
4121 union bdk_dtx_gti_selx
4122 {
4123 uint64_t u;
4124 struct bdk_dtx_gti_selx_s
4125 {
4126 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4127 uint64_t reserved_24_63 : 40;
4128 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
4129 #else /* Word 0 - Little Endian */
4130 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
4131 uint64_t reserved_24_63 : 40;
4132 #endif /* Word 0 - End */
4133 } s;
4134 /* struct bdk_dtx_gti_selx_s cn; */
4135 };
4136 typedef union bdk_dtx_gti_selx bdk_dtx_gti_selx_t;
4137
4138 static inline uint64_t BDK_DTX_GTI_SELX(unsigned long a) __attribute__ ((pure, always_inline));
4139 static inline uint64_t BDK_DTX_GTI_SELX(unsigned long a)
4140 {
4141 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
4142 return 0x87e0fea20000ll + 8ll * ((a) & 0x1);
4143 __bdk_csr_fatal("DTX_GTI_SELX", 1, a, 0, 0, 0);
4144 }
4145
4146 #define typedef_BDK_DTX_GTI_SELX(a) bdk_dtx_gti_selx_t
4147 #define bustype_BDK_DTX_GTI_SELX(a) BDK_CSR_TYPE_RSL
4148 #define basename_BDK_DTX_GTI_SELX(a) "DTX_GTI_SELX"
4149 #define busnum_BDK_DTX_GTI_SELX(a) (a)
4150 #define arguments_BDK_DTX_GTI_SELX(a) (a),-1,-1,-1
4151
4152 /**
4153 * Register (RSL) dtx_iobn#_bcst_rsp
4154 *
4155 * DTX IOBN Control Register
4156 */
4157 union bdk_dtx_iobnx_bcst_rsp
4158 {
4159 uint64_t u;
4160 struct bdk_dtx_iobnx_bcst_rsp_s
4161 {
4162 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4163 uint64_t reserved_1_63 : 63;
4164 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
4165 #else /* Word 0 - Little Endian */
4166 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
4167 uint64_t reserved_1_63 : 63;
4168 #endif /* Word 0 - End */
4169 } s;
4170 /* struct bdk_dtx_iobnx_bcst_rsp_s cn; */
4171 };
4172 typedef union bdk_dtx_iobnx_bcst_rsp bdk_dtx_iobnx_bcst_rsp_t;
4173
4174 static inline uint64_t BDK_DTX_IOBNX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
4175 static inline uint64_t BDK_DTX_IOBNX_BCST_RSP(unsigned long a)
4176 {
4177 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a==0))
4178 return 0x87e0fe780080ll + 0x8000ll * ((a) & 0x0);
4179 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
4180 return 0x87e0fe780080ll + 0x8000ll * ((a) & 0x1);
4181 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
4182 return 0x87e0fe780080ll + 0x8000ll * ((a) & 0x1);
4183 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
4184 return 0x87e0fe780080ll + 0x8000ll * ((a) & 0x1);
4185 __bdk_csr_fatal("DTX_IOBNX_BCST_RSP", 1, a, 0, 0, 0);
4186 }
4187
4188 #define typedef_BDK_DTX_IOBNX_BCST_RSP(a) bdk_dtx_iobnx_bcst_rsp_t
4189 #define bustype_BDK_DTX_IOBNX_BCST_RSP(a) BDK_CSR_TYPE_RSL
4190 #define basename_BDK_DTX_IOBNX_BCST_RSP(a) "DTX_IOBNX_BCST_RSP"
4191 #define busnum_BDK_DTX_IOBNX_BCST_RSP(a) (a)
4192 #define arguments_BDK_DTX_IOBNX_BCST_RSP(a) (a),-1,-1,-1
4193
4194 /**
4195 * Register (RSL) dtx_iobn#_ctl
4196 *
4197 * DTX IOBN Control Register
4198 */
4199 union bdk_dtx_iobnx_ctl
4200 {
4201 uint64_t u;
4202 struct bdk_dtx_iobnx_ctl_s
4203 {
4204 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4205 uint64_t reserved_5_63 : 59;
4206 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
4207 uint64_t reserved_2_3 : 2;
4208 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
4209 debug data. Not applicable when software directly reads the DAT(0..1) registers.
4210 For diagnostic use only. */
4211 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
4212 #else /* Word 0 - Little Endian */
4213 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
4214 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
4215 debug data. Not applicable when software directly reads the DAT(0..1) registers.
4216 For diagnostic use only. */
4217 uint64_t reserved_2_3 : 2;
4218 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
4219 uint64_t reserved_5_63 : 59;
4220 #endif /* Word 0 - End */
4221 } s;
4222 /* struct bdk_dtx_iobnx_ctl_s cn; */
4223 };
4224 typedef union bdk_dtx_iobnx_ctl bdk_dtx_iobnx_ctl_t;
4225
4226 static inline uint64_t BDK_DTX_IOBNX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
4227 static inline uint64_t BDK_DTX_IOBNX_CTL(unsigned long a)
4228 {
4229 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a==0))
4230 return 0x87e0fe780060ll + 0x8000ll * ((a) & 0x0);
4231 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
4232 return 0x87e0fe780060ll + 0x8000ll * ((a) & 0x1);
4233 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
4234 return 0x87e0fe780060ll + 0x8000ll * ((a) & 0x1);
4235 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
4236 return 0x87e0fe780060ll + 0x8000ll * ((a) & 0x1);
4237 __bdk_csr_fatal("DTX_IOBNX_CTL", 1, a, 0, 0, 0);
4238 }
4239
4240 #define typedef_BDK_DTX_IOBNX_CTL(a) bdk_dtx_iobnx_ctl_t
4241 #define bustype_BDK_DTX_IOBNX_CTL(a) BDK_CSR_TYPE_RSL
4242 #define basename_BDK_DTX_IOBNX_CTL(a) "DTX_IOBNX_CTL"
4243 #define busnum_BDK_DTX_IOBNX_CTL(a) (a)
4244 #define arguments_BDK_DTX_IOBNX_CTL(a) (a),-1,-1,-1
4245
4246 /**
4247 * Register (RSL) dtx_iobn#_dat#
4248 *
4249 * DTX IOBN Raw Data Register
4250 */
4251 union bdk_dtx_iobnx_datx
4252 {
4253 uint64_t u;
4254 struct bdk_dtx_iobnx_datx_s
4255 {
4256 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4257 uint64_t reserved_36_63 : 28;
4258 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
4259 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
4260 #else /* Word 0 - Little Endian */
4261 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
4262 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
4263 uint64_t reserved_36_63 : 28;
4264 #endif /* Word 0 - End */
4265 } s;
4266 /* struct bdk_dtx_iobnx_datx_s cn; */
4267 };
4268 typedef union bdk_dtx_iobnx_datx bdk_dtx_iobnx_datx_t;
4269
4270 static inline uint64_t BDK_DTX_IOBNX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
4271 static inline uint64_t BDK_DTX_IOBNX_DATX(unsigned long a, unsigned long b)
4272 {
4273 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
4274 return 0x87e0fe780040ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
4275 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=1) && (b<=1)))
4276 return 0x87e0fe780040ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
4277 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=1) && (b<=1)))
4278 return 0x87e0fe780040ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
4279 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
4280 return 0x87e0fe780040ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
4281 __bdk_csr_fatal("DTX_IOBNX_DATX", 2, a, b, 0, 0);
4282 }
4283
4284 #define typedef_BDK_DTX_IOBNX_DATX(a,b) bdk_dtx_iobnx_datx_t
4285 #define bustype_BDK_DTX_IOBNX_DATX(a,b) BDK_CSR_TYPE_RSL
4286 #define basename_BDK_DTX_IOBNX_DATX(a,b) "DTX_IOBNX_DATX"
4287 #define busnum_BDK_DTX_IOBNX_DATX(a,b) (a)
4288 #define arguments_BDK_DTX_IOBNX_DATX(a,b) (a),(b),-1,-1
4289
4290 /**
4291 * Register (RSL) dtx_iobn#_ena#
4292 *
4293 * DTX IOBN Data Enable Register
4294 */
4295 union bdk_dtx_iobnx_enax
4296 {
4297 uint64_t u;
4298 struct bdk_dtx_iobnx_enax_s
4299 {
4300 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4301 uint64_t reserved_36_63 : 28;
4302 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
4303 buses. Normally only one block will drive each bit. */
4304 #else /* Word 0 - Little Endian */
4305 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
4306 buses. Normally only one block will drive each bit. */
4307 uint64_t reserved_36_63 : 28;
4308 #endif /* Word 0 - End */
4309 } s;
4310 /* struct bdk_dtx_iobnx_enax_s cn; */
4311 };
4312 typedef union bdk_dtx_iobnx_enax bdk_dtx_iobnx_enax_t;
4313
4314 static inline uint64_t BDK_DTX_IOBNX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
4315 static inline uint64_t BDK_DTX_IOBNX_ENAX(unsigned long a, unsigned long b)
4316 {
4317 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
4318 return 0x87e0fe780020ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
4319 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=1) && (b<=1)))
4320 return 0x87e0fe780020ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
4321 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=1) && (b<=1)))
4322 return 0x87e0fe780020ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
4323 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
4324 return 0x87e0fe780020ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
4325 __bdk_csr_fatal("DTX_IOBNX_ENAX", 2, a, b, 0, 0);
4326 }
4327
4328 #define typedef_BDK_DTX_IOBNX_ENAX(a,b) bdk_dtx_iobnx_enax_t
4329 #define bustype_BDK_DTX_IOBNX_ENAX(a,b) BDK_CSR_TYPE_RSL
4330 #define basename_BDK_DTX_IOBNX_ENAX(a,b) "DTX_IOBNX_ENAX"
4331 #define busnum_BDK_DTX_IOBNX_ENAX(a,b) (a)
4332 #define arguments_BDK_DTX_IOBNX_ENAX(a,b) (a),(b),-1,-1
4333
4334 /**
4335 * Register (RSL) dtx_iobn#_inrx_bcst_rsp
4336 *
4337 * DTX IOBN_INRX Control Register
4338 */
4339 union bdk_dtx_iobnx_inrx_bcst_rsp
4340 {
4341 uint64_t u;
4342 struct bdk_dtx_iobnx_inrx_bcst_rsp_s
4343 {
4344 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4345 uint64_t reserved_1_63 : 63;
4346 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
4347 #else /* Word 0 - Little Endian */
4348 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
4349 uint64_t reserved_1_63 : 63;
4350 #endif /* Word 0 - End */
4351 } s;
4352 /* struct bdk_dtx_iobnx_inrx_bcst_rsp_s cn; */
4353 };
4354 typedef union bdk_dtx_iobnx_inrx_bcst_rsp bdk_dtx_iobnx_inrx_bcst_rsp_t;
4355
4356 static inline uint64_t BDK_DTX_IOBNX_INRX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
4357 static inline uint64_t BDK_DTX_IOBNX_INRX_BCST_RSP(unsigned long a)
4358 {
4359 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
4360 return 0x87e0fe7a0080ll + 0x8000ll * ((a) & 0x1);
4361 __bdk_csr_fatal("DTX_IOBNX_INRX_BCST_RSP", 1, a, 0, 0, 0);
4362 }
4363
4364 #define typedef_BDK_DTX_IOBNX_INRX_BCST_RSP(a) bdk_dtx_iobnx_inrx_bcst_rsp_t
4365 #define bustype_BDK_DTX_IOBNX_INRX_BCST_RSP(a) BDK_CSR_TYPE_RSL
4366 #define basename_BDK_DTX_IOBNX_INRX_BCST_RSP(a) "DTX_IOBNX_INRX_BCST_RSP"
4367 #define busnum_BDK_DTX_IOBNX_INRX_BCST_RSP(a) (a)
4368 #define arguments_BDK_DTX_IOBNX_INRX_BCST_RSP(a) (a),-1,-1,-1
4369
4370 /**
4371 * Register (RSL) dtx_iobn#_inrx_ctl
4372 *
4373 * DTX IOBN_INRX Control Register
4374 */
4375 union bdk_dtx_iobnx_inrx_ctl
4376 {
4377 uint64_t u;
4378 struct bdk_dtx_iobnx_inrx_ctl_s
4379 {
4380 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4381 uint64_t reserved_5_63 : 59;
4382 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
4383 uint64_t reserved_2_3 : 2;
4384 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
4385 debug data. Not applicable when software directly reads the DAT(0..1) registers.
4386 For diagnostic use only. */
4387 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
4388 #else /* Word 0 - Little Endian */
4389 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
4390 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
4391 debug data. Not applicable when software directly reads the DAT(0..1) registers.
4392 For diagnostic use only. */
4393 uint64_t reserved_2_3 : 2;
4394 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
4395 uint64_t reserved_5_63 : 59;
4396 #endif /* Word 0 - End */
4397 } s;
4398 /* struct bdk_dtx_iobnx_inrx_ctl_s cn; */
4399 };
4400 typedef union bdk_dtx_iobnx_inrx_ctl bdk_dtx_iobnx_inrx_ctl_t;
4401
4402 static inline uint64_t BDK_DTX_IOBNX_INRX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
4403 static inline uint64_t BDK_DTX_IOBNX_INRX_CTL(unsigned long a)
4404 {
4405 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
4406 return 0x87e0fe7a0060ll + 0x8000ll * ((a) & 0x1);
4407 __bdk_csr_fatal("DTX_IOBNX_INRX_CTL", 1, a, 0, 0, 0);
4408 }
4409
4410 #define typedef_BDK_DTX_IOBNX_INRX_CTL(a) bdk_dtx_iobnx_inrx_ctl_t
4411 #define bustype_BDK_DTX_IOBNX_INRX_CTL(a) BDK_CSR_TYPE_RSL
4412 #define basename_BDK_DTX_IOBNX_INRX_CTL(a) "DTX_IOBNX_INRX_CTL"
4413 #define busnum_BDK_DTX_IOBNX_INRX_CTL(a) (a)
4414 #define arguments_BDK_DTX_IOBNX_INRX_CTL(a) (a),-1,-1,-1
4415
4416 /**
4417 * Register (RSL) dtx_iobn#_inrx_dat#
4418 *
4419 * DTX IOBN_INRX Raw Data Register
4420 */
4421 union bdk_dtx_iobnx_inrx_datx
4422 {
4423 uint64_t u;
4424 struct bdk_dtx_iobnx_inrx_datx_s
4425 {
4426 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4427 uint64_t reserved_36_63 : 28;
4428 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
4429 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
4430 #else /* Word 0 - Little Endian */
4431 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
4432 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
4433 uint64_t reserved_36_63 : 28;
4434 #endif /* Word 0 - End */
4435 } s;
4436 /* struct bdk_dtx_iobnx_inrx_datx_s cn; */
4437 };
4438 typedef union bdk_dtx_iobnx_inrx_datx bdk_dtx_iobnx_inrx_datx_t;
4439
4440 static inline uint64_t BDK_DTX_IOBNX_INRX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
4441 static inline uint64_t BDK_DTX_IOBNX_INRX_DATX(unsigned long a, unsigned long b)
4442 {
4443 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
4444 return 0x87e0fe7a0040ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
4445 __bdk_csr_fatal("DTX_IOBNX_INRX_DATX", 2, a, b, 0, 0);
4446 }
4447
4448 #define typedef_BDK_DTX_IOBNX_INRX_DATX(a,b) bdk_dtx_iobnx_inrx_datx_t
4449 #define bustype_BDK_DTX_IOBNX_INRX_DATX(a,b) BDK_CSR_TYPE_RSL
4450 #define basename_BDK_DTX_IOBNX_INRX_DATX(a,b) "DTX_IOBNX_INRX_DATX"
4451 #define busnum_BDK_DTX_IOBNX_INRX_DATX(a,b) (a)
4452 #define arguments_BDK_DTX_IOBNX_INRX_DATX(a,b) (a),(b),-1,-1
4453
4454 /**
4455 * Register (RSL) dtx_iobn#_inrx_ena#
4456 *
4457 * DTX IOBN_INRX Data Enable Register
4458 */
4459 union bdk_dtx_iobnx_inrx_enax
4460 {
4461 uint64_t u;
4462 struct bdk_dtx_iobnx_inrx_enax_s
4463 {
4464 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4465 uint64_t reserved_36_63 : 28;
4466 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
4467 buses. Normally only one block will drive each bit. */
4468 #else /* Word 0 - Little Endian */
4469 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
4470 buses. Normally only one block will drive each bit. */
4471 uint64_t reserved_36_63 : 28;
4472 #endif /* Word 0 - End */
4473 } s;
4474 /* struct bdk_dtx_iobnx_inrx_enax_s cn; */
4475 };
4476 typedef union bdk_dtx_iobnx_inrx_enax bdk_dtx_iobnx_inrx_enax_t;
4477
4478 static inline uint64_t BDK_DTX_IOBNX_INRX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
4479 static inline uint64_t BDK_DTX_IOBNX_INRX_ENAX(unsigned long a, unsigned long b)
4480 {
4481 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
4482 return 0x87e0fe7a0020ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
4483 __bdk_csr_fatal("DTX_IOBNX_INRX_ENAX", 2, a, b, 0, 0);
4484 }
4485
4486 #define typedef_BDK_DTX_IOBNX_INRX_ENAX(a,b) bdk_dtx_iobnx_inrx_enax_t
4487 #define bustype_BDK_DTX_IOBNX_INRX_ENAX(a,b) BDK_CSR_TYPE_RSL
4488 #define basename_BDK_DTX_IOBNX_INRX_ENAX(a,b) "DTX_IOBNX_INRX_ENAX"
4489 #define busnum_BDK_DTX_IOBNX_INRX_ENAX(a,b) (a)
4490 #define arguments_BDK_DTX_IOBNX_INRX_ENAX(a,b) (a),(b),-1,-1
4491
4492 /**
4493 * Register (RSL) dtx_iobn#_inrx_sel#
4494 *
4495 * DTX IOBN_INRX Select Register
4496 */
4497 union bdk_dtx_iobnx_inrx_selx
4498 {
4499 uint64_t u;
4500 struct bdk_dtx_iobnx_inrx_selx_s
4501 {
4502 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4503 uint64_t reserved_24_63 : 40;
4504 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
4505 #else /* Word 0 - Little Endian */
4506 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
4507 uint64_t reserved_24_63 : 40;
4508 #endif /* Word 0 - End */
4509 } s;
4510 /* struct bdk_dtx_iobnx_inrx_selx_s cn; */
4511 };
4512 typedef union bdk_dtx_iobnx_inrx_selx bdk_dtx_iobnx_inrx_selx_t;
4513
4514 static inline uint64_t BDK_DTX_IOBNX_INRX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
4515 static inline uint64_t BDK_DTX_IOBNX_INRX_SELX(unsigned long a, unsigned long b)
4516 {
4517 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
4518 return 0x87e0fe7a0000ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
4519 __bdk_csr_fatal("DTX_IOBNX_INRX_SELX", 2, a, b, 0, 0);
4520 }
4521
4522 #define typedef_BDK_DTX_IOBNX_INRX_SELX(a,b) bdk_dtx_iobnx_inrx_selx_t
4523 #define bustype_BDK_DTX_IOBNX_INRX_SELX(a,b) BDK_CSR_TYPE_RSL
4524 #define basename_BDK_DTX_IOBNX_INRX_SELX(a,b) "DTX_IOBNX_INRX_SELX"
4525 #define busnum_BDK_DTX_IOBNX_INRX_SELX(a,b) (a)
4526 #define arguments_BDK_DTX_IOBNX_INRX_SELX(a,b) (a),(b),-1,-1
4527
4528 /**
4529 * Register (RSL) dtx_iobn#_sel#
4530 *
4531 * DTX IOBN Select Register
4532 */
4533 union bdk_dtx_iobnx_selx
4534 {
4535 uint64_t u;
4536 struct bdk_dtx_iobnx_selx_s
4537 {
4538 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4539 uint64_t reserved_24_63 : 40;
4540 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
4541 #else /* Word 0 - Little Endian */
4542 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
4543 uint64_t reserved_24_63 : 40;
4544 #endif /* Word 0 - End */
4545 } s;
4546 /* struct bdk_dtx_iobnx_selx_s cn; */
4547 };
4548 typedef union bdk_dtx_iobnx_selx bdk_dtx_iobnx_selx_t;
4549
4550 static inline uint64_t BDK_DTX_IOBNX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
4551 static inline uint64_t BDK_DTX_IOBNX_SELX(unsigned long a, unsigned long b)
4552 {
4553 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
4554 return 0x87e0fe780000ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
4555 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=1) && (b<=1)))
4556 return 0x87e0fe780000ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
4557 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=1) && (b<=1)))
4558 return 0x87e0fe780000ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
4559 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
4560 return 0x87e0fe780000ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
4561 __bdk_csr_fatal("DTX_IOBNX_SELX", 2, a, b, 0, 0);
4562 }
4563
4564 #define typedef_BDK_DTX_IOBNX_SELX(a,b) bdk_dtx_iobnx_selx_t
4565 #define bustype_BDK_DTX_IOBNX_SELX(a,b) BDK_CSR_TYPE_RSL
4566 #define basename_BDK_DTX_IOBNX_SELX(a,b) "DTX_IOBNX_SELX"
4567 #define busnum_BDK_DTX_IOBNX_SELX(a,b) (a)
4568 #define arguments_BDK_DTX_IOBNX_SELX(a,b) (a),(b),-1,-1
4569
4570 /**
4571 * Register (RSL) dtx_key_bcst_rsp
4572 *
4573 * DTX KEY Control Register
4574 */
4575 union bdk_dtx_key_bcst_rsp
4576 {
4577 uint64_t u;
4578 struct bdk_dtx_key_bcst_rsp_s
4579 {
4580 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4581 uint64_t reserved_1_63 : 63;
4582 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
4583 #else /* Word 0 - Little Endian */
4584 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
4585 uint64_t reserved_1_63 : 63;
4586 #endif /* Word 0 - End */
4587 } s;
4588 /* struct bdk_dtx_key_bcst_rsp_s cn; */
4589 };
4590 typedef union bdk_dtx_key_bcst_rsp bdk_dtx_key_bcst_rsp_t;
4591
4592 #define BDK_DTX_KEY_BCST_RSP BDK_DTX_KEY_BCST_RSP_FUNC()
4593 static inline uint64_t BDK_DTX_KEY_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
4594 static inline uint64_t BDK_DTX_KEY_BCST_RSP_FUNC(void)
4595 {
4596 if (CAVIUM_IS_MODEL(CAVIUM_CN8XXX))
4597 return 0x87e0fe208080ll;
4598 __bdk_csr_fatal("DTX_KEY_BCST_RSP", 0, 0, 0, 0, 0);
4599 }
4600
4601 #define typedef_BDK_DTX_KEY_BCST_RSP bdk_dtx_key_bcst_rsp_t
4602 #define bustype_BDK_DTX_KEY_BCST_RSP BDK_CSR_TYPE_RSL
4603 #define basename_BDK_DTX_KEY_BCST_RSP "DTX_KEY_BCST_RSP"
4604 #define busnum_BDK_DTX_KEY_BCST_RSP 0
4605 #define arguments_BDK_DTX_KEY_BCST_RSP -1,-1,-1,-1
4606
4607 /**
4608 * Register (RSL) dtx_key_ctl
4609 *
4610 * DTX KEY Control Register
4611 */
4612 union bdk_dtx_key_ctl
4613 {
4614 uint64_t u;
4615 struct bdk_dtx_key_ctl_s
4616 {
4617 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4618 uint64_t reserved_5_63 : 59;
4619 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
4620 uint64_t reserved_2_3 : 2;
4621 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
4622 debug data. Not applicable when software directly reads the DAT(0..1) registers.
4623 For diagnostic use only. */
4624 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
4625 #else /* Word 0 - Little Endian */
4626 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
4627 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
4628 debug data. Not applicable when software directly reads the DAT(0..1) registers.
4629 For diagnostic use only. */
4630 uint64_t reserved_2_3 : 2;
4631 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
4632 uint64_t reserved_5_63 : 59;
4633 #endif /* Word 0 - End */
4634 } s;
4635 /* struct bdk_dtx_key_ctl_s cn; */
4636 };
4637 typedef union bdk_dtx_key_ctl bdk_dtx_key_ctl_t;
4638
4639 #define BDK_DTX_KEY_CTL BDK_DTX_KEY_CTL_FUNC()
4640 static inline uint64_t BDK_DTX_KEY_CTL_FUNC(void) __attribute__ ((pure, always_inline));
4641 static inline uint64_t BDK_DTX_KEY_CTL_FUNC(void)
4642 {
4643 if (CAVIUM_IS_MODEL(CAVIUM_CN8XXX))
4644 return 0x87e0fe208060ll;
4645 __bdk_csr_fatal("DTX_KEY_CTL", 0, 0, 0, 0, 0);
4646 }
4647
4648 #define typedef_BDK_DTX_KEY_CTL bdk_dtx_key_ctl_t
4649 #define bustype_BDK_DTX_KEY_CTL BDK_CSR_TYPE_RSL
4650 #define basename_BDK_DTX_KEY_CTL "DTX_KEY_CTL"
4651 #define busnum_BDK_DTX_KEY_CTL 0
4652 #define arguments_BDK_DTX_KEY_CTL -1,-1,-1,-1
4653
4654 /**
4655 * Register (RSL) dtx_key_dat#
4656 *
4657 * DTX KEY Raw Data Register
4658 */
4659 union bdk_dtx_key_datx
4660 {
4661 uint64_t u;
4662 struct bdk_dtx_key_datx_s
4663 {
4664 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4665 uint64_t reserved_36_63 : 28;
4666 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
4667 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
4668 #else /* Word 0 - Little Endian */
4669 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
4670 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
4671 uint64_t reserved_36_63 : 28;
4672 #endif /* Word 0 - End */
4673 } s;
4674 /* struct bdk_dtx_key_datx_s cn; */
4675 };
4676 typedef union bdk_dtx_key_datx bdk_dtx_key_datx_t;
4677
4678 static inline uint64_t BDK_DTX_KEY_DATX(unsigned long a) __attribute__ ((pure, always_inline));
4679 static inline uint64_t BDK_DTX_KEY_DATX(unsigned long a)
4680 {
4681 if (CAVIUM_IS_MODEL(CAVIUM_CN8XXX) && (a<=1))
4682 return 0x87e0fe208040ll + 8ll * ((a) & 0x1);
4683 __bdk_csr_fatal("DTX_KEY_DATX", 1, a, 0, 0, 0);
4684 }
4685
4686 #define typedef_BDK_DTX_KEY_DATX(a) bdk_dtx_key_datx_t
4687 #define bustype_BDK_DTX_KEY_DATX(a) BDK_CSR_TYPE_RSL
4688 #define basename_BDK_DTX_KEY_DATX(a) "DTX_KEY_DATX"
4689 #define busnum_BDK_DTX_KEY_DATX(a) (a)
4690 #define arguments_BDK_DTX_KEY_DATX(a) (a),-1,-1,-1
4691
4692 /**
4693 * Register (RSL) dtx_key_ena#
4694 *
4695 * DTX KEY Data Enable Register
4696 */
4697 union bdk_dtx_key_enax
4698 {
4699 uint64_t u;
4700 struct bdk_dtx_key_enax_s
4701 {
4702 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4703 uint64_t reserved_36_63 : 28;
4704 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
4705 buses. Normally only one block will drive each bit. */
4706 #else /* Word 0 - Little Endian */
4707 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
4708 buses. Normally only one block will drive each bit. */
4709 uint64_t reserved_36_63 : 28;
4710 #endif /* Word 0 - End */
4711 } s;
4712 /* struct bdk_dtx_key_enax_s cn; */
4713 };
4714 typedef union bdk_dtx_key_enax bdk_dtx_key_enax_t;
4715
4716 static inline uint64_t BDK_DTX_KEY_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
4717 static inline uint64_t BDK_DTX_KEY_ENAX(unsigned long a)
4718 {
4719 if (CAVIUM_IS_MODEL(CAVIUM_CN8XXX) && (a<=1))
4720 return 0x87e0fe208020ll + 8ll * ((a) & 0x1);
4721 __bdk_csr_fatal("DTX_KEY_ENAX", 1, a, 0, 0, 0);
4722 }
4723
4724 #define typedef_BDK_DTX_KEY_ENAX(a) bdk_dtx_key_enax_t
4725 #define bustype_BDK_DTX_KEY_ENAX(a) BDK_CSR_TYPE_RSL
4726 #define basename_BDK_DTX_KEY_ENAX(a) "DTX_KEY_ENAX"
4727 #define busnum_BDK_DTX_KEY_ENAX(a) (a)
4728 #define arguments_BDK_DTX_KEY_ENAX(a) (a),-1,-1,-1
4729
4730 /**
4731 * Register (RSL) dtx_key_sel#
4732 *
4733 * DTX KEY Select Register
4734 */
4735 union bdk_dtx_key_selx
4736 {
4737 uint64_t u;
4738 struct bdk_dtx_key_selx_s
4739 {
4740 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4741 uint64_t reserved_24_63 : 40;
4742 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
4743 #else /* Word 0 - Little Endian */
4744 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
4745 uint64_t reserved_24_63 : 40;
4746 #endif /* Word 0 - End */
4747 } s;
4748 /* struct bdk_dtx_key_selx_s cn; */
4749 };
4750 typedef union bdk_dtx_key_selx bdk_dtx_key_selx_t;
4751
4752 static inline uint64_t BDK_DTX_KEY_SELX(unsigned long a) __attribute__ ((pure, always_inline));
4753 static inline uint64_t BDK_DTX_KEY_SELX(unsigned long a)
4754 {
4755 if (CAVIUM_IS_MODEL(CAVIUM_CN8XXX) && (a<=1))
4756 return 0x87e0fe208000ll + 8ll * ((a) & 0x1);
4757 __bdk_csr_fatal("DTX_KEY_SELX", 1, a, 0, 0, 0);
4758 }
4759
4760 #define typedef_BDK_DTX_KEY_SELX(a) bdk_dtx_key_selx_t
4761 #define bustype_BDK_DTX_KEY_SELX(a) BDK_CSR_TYPE_RSL
4762 #define basename_BDK_DTX_KEY_SELX(a) "DTX_KEY_SELX"
4763 #define busnum_BDK_DTX_KEY_SELX(a) (a)
4764 #define arguments_BDK_DTX_KEY_SELX(a) (a),-1,-1,-1
4765
4766 /**
4767 * Register (RSL) dtx_l2c_cbc#_bcst_rsp
4768 *
4769 * DTX L2C_CBC Control Register
4770 */
4771 union bdk_dtx_l2c_cbcx_bcst_rsp
4772 {
4773 uint64_t u;
4774 struct bdk_dtx_l2c_cbcx_bcst_rsp_s
4775 {
4776 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4777 uint64_t reserved_1_63 : 63;
4778 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
4779 #else /* Word 0 - Little Endian */
4780 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
4781 uint64_t reserved_1_63 : 63;
4782 #endif /* Word 0 - End */
4783 } s;
4784 /* struct bdk_dtx_l2c_cbcx_bcst_rsp_s cn; */
4785 };
4786 typedef union bdk_dtx_l2c_cbcx_bcst_rsp bdk_dtx_l2c_cbcx_bcst_rsp_t;
4787
4788 static inline uint64_t BDK_DTX_L2C_CBCX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
4789 static inline uint64_t BDK_DTX_L2C_CBCX_BCST_RSP(unsigned long a)
4790 {
4791 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a==0))
4792 return 0x87e0fe2c0080ll + 0x8000ll * ((a) & 0x0);
4793 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
4794 return 0x87e0fe2c0080ll + 0x8000ll * ((a) & 0x1);
4795 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=3))
4796 return 0x87e0fe2c0080ll + 0x8000ll * ((a) & 0x3);
4797 __bdk_csr_fatal("DTX_L2C_CBCX_BCST_RSP", 1, a, 0, 0, 0);
4798 }
4799
4800 #define typedef_BDK_DTX_L2C_CBCX_BCST_RSP(a) bdk_dtx_l2c_cbcx_bcst_rsp_t
4801 #define bustype_BDK_DTX_L2C_CBCX_BCST_RSP(a) BDK_CSR_TYPE_RSL
4802 #define basename_BDK_DTX_L2C_CBCX_BCST_RSP(a) "DTX_L2C_CBCX_BCST_RSP"
4803 #define busnum_BDK_DTX_L2C_CBCX_BCST_RSP(a) (a)
4804 #define arguments_BDK_DTX_L2C_CBCX_BCST_RSP(a) (a),-1,-1,-1
4805
4806 /**
4807 * Register (RSL) dtx_l2c_cbc#_ctl
4808 *
4809 * DTX L2C_CBC Control Register
4810 */
4811 union bdk_dtx_l2c_cbcx_ctl
4812 {
4813 uint64_t u;
4814 struct bdk_dtx_l2c_cbcx_ctl_s
4815 {
4816 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4817 uint64_t reserved_5_63 : 59;
4818 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
4819 uint64_t reserved_2_3 : 2;
4820 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
4821 debug data. Not applicable when software directly reads the DAT(0..1) registers.
4822 For diagnostic use only. */
4823 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
4824 #else /* Word 0 - Little Endian */
4825 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
4826 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
4827 debug data. Not applicable when software directly reads the DAT(0..1) registers.
4828 For diagnostic use only. */
4829 uint64_t reserved_2_3 : 2;
4830 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
4831 uint64_t reserved_5_63 : 59;
4832 #endif /* Word 0 - End */
4833 } s;
4834 /* struct bdk_dtx_l2c_cbcx_ctl_s cn; */
4835 };
4836 typedef union bdk_dtx_l2c_cbcx_ctl bdk_dtx_l2c_cbcx_ctl_t;
4837
4838 static inline uint64_t BDK_DTX_L2C_CBCX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
4839 static inline uint64_t BDK_DTX_L2C_CBCX_CTL(unsigned long a)
4840 {
4841 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a==0))
4842 return 0x87e0fe2c0060ll + 0x8000ll * ((a) & 0x0);
4843 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
4844 return 0x87e0fe2c0060ll + 0x8000ll * ((a) & 0x1);
4845 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=3))
4846 return 0x87e0fe2c0060ll + 0x8000ll * ((a) & 0x3);
4847 __bdk_csr_fatal("DTX_L2C_CBCX_CTL", 1, a, 0, 0, 0);
4848 }
4849
4850 #define typedef_BDK_DTX_L2C_CBCX_CTL(a) bdk_dtx_l2c_cbcx_ctl_t
4851 #define bustype_BDK_DTX_L2C_CBCX_CTL(a) BDK_CSR_TYPE_RSL
4852 #define basename_BDK_DTX_L2C_CBCX_CTL(a) "DTX_L2C_CBCX_CTL"
4853 #define busnum_BDK_DTX_L2C_CBCX_CTL(a) (a)
4854 #define arguments_BDK_DTX_L2C_CBCX_CTL(a) (a),-1,-1,-1
4855
4856 /**
4857 * Register (RSL) dtx_l2c_cbc#_dat#
4858 *
4859 * DTX L2C_CBC Raw Data Register
4860 */
4861 union bdk_dtx_l2c_cbcx_datx
4862 {
4863 uint64_t u;
4864 struct bdk_dtx_l2c_cbcx_datx_s
4865 {
4866 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4867 uint64_t reserved_36_63 : 28;
4868 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
4869 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
4870 #else /* Word 0 - Little Endian */
4871 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
4872 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
4873 uint64_t reserved_36_63 : 28;
4874 #endif /* Word 0 - End */
4875 } s;
4876 /* struct bdk_dtx_l2c_cbcx_datx_s cn; */
4877 };
4878 typedef union bdk_dtx_l2c_cbcx_datx bdk_dtx_l2c_cbcx_datx_t;
4879
4880 static inline uint64_t BDK_DTX_L2C_CBCX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
4881 static inline uint64_t BDK_DTX_L2C_CBCX_DATX(unsigned long a, unsigned long b)
4882 {
4883 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
4884 return 0x87e0fe2c0040ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
4885 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=1) && (b<=1)))
4886 return 0x87e0fe2c0040ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
4887 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=3) && (b<=1)))
4888 return 0x87e0fe2c0040ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
4889 __bdk_csr_fatal("DTX_L2C_CBCX_DATX", 2, a, b, 0, 0);
4890 }
4891
4892 #define typedef_BDK_DTX_L2C_CBCX_DATX(a,b) bdk_dtx_l2c_cbcx_datx_t
4893 #define bustype_BDK_DTX_L2C_CBCX_DATX(a,b) BDK_CSR_TYPE_RSL
4894 #define basename_BDK_DTX_L2C_CBCX_DATX(a,b) "DTX_L2C_CBCX_DATX"
4895 #define busnum_BDK_DTX_L2C_CBCX_DATX(a,b) (a)
4896 #define arguments_BDK_DTX_L2C_CBCX_DATX(a,b) (a),(b),-1,-1
4897
4898 /**
4899 * Register (RSL) dtx_l2c_cbc#_ena#
4900 *
4901 * DTX L2C_CBC Data Enable Register
4902 */
4903 union bdk_dtx_l2c_cbcx_enax
4904 {
4905 uint64_t u;
4906 struct bdk_dtx_l2c_cbcx_enax_s
4907 {
4908 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4909 uint64_t reserved_36_63 : 28;
4910 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
4911 buses. Normally only one block will drive each bit. */
4912 #else /* Word 0 - Little Endian */
4913 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
4914 buses. Normally only one block will drive each bit. */
4915 uint64_t reserved_36_63 : 28;
4916 #endif /* Word 0 - End */
4917 } s;
4918 /* struct bdk_dtx_l2c_cbcx_enax_s cn; */
4919 };
4920 typedef union bdk_dtx_l2c_cbcx_enax bdk_dtx_l2c_cbcx_enax_t;
4921
4922 static inline uint64_t BDK_DTX_L2C_CBCX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
4923 static inline uint64_t BDK_DTX_L2C_CBCX_ENAX(unsigned long a, unsigned long b)
4924 {
4925 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
4926 return 0x87e0fe2c0020ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
4927 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=1) && (b<=1)))
4928 return 0x87e0fe2c0020ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
4929 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=3) && (b<=1)))
4930 return 0x87e0fe2c0020ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
4931 __bdk_csr_fatal("DTX_L2C_CBCX_ENAX", 2, a, b, 0, 0);
4932 }
4933
4934 #define typedef_BDK_DTX_L2C_CBCX_ENAX(a,b) bdk_dtx_l2c_cbcx_enax_t
4935 #define bustype_BDK_DTX_L2C_CBCX_ENAX(a,b) BDK_CSR_TYPE_RSL
4936 #define basename_BDK_DTX_L2C_CBCX_ENAX(a,b) "DTX_L2C_CBCX_ENAX"
4937 #define busnum_BDK_DTX_L2C_CBCX_ENAX(a,b) (a)
4938 #define arguments_BDK_DTX_L2C_CBCX_ENAX(a,b) (a),(b),-1,-1
4939
4940 /**
4941 * Register (RSL) dtx_l2c_cbc#_sel#
4942 *
4943 * DTX L2C_CBC Select Register
4944 */
4945 union bdk_dtx_l2c_cbcx_selx
4946 {
4947 uint64_t u;
4948 struct bdk_dtx_l2c_cbcx_selx_s
4949 {
4950 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4951 uint64_t reserved_24_63 : 40;
4952 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
4953 #else /* Word 0 - Little Endian */
4954 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
4955 uint64_t reserved_24_63 : 40;
4956 #endif /* Word 0 - End */
4957 } s;
4958 /* struct bdk_dtx_l2c_cbcx_selx_s cn; */
4959 };
4960 typedef union bdk_dtx_l2c_cbcx_selx bdk_dtx_l2c_cbcx_selx_t;
4961
4962 static inline uint64_t BDK_DTX_L2C_CBCX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
4963 static inline uint64_t BDK_DTX_L2C_CBCX_SELX(unsigned long a, unsigned long b)
4964 {
4965 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
4966 return 0x87e0fe2c0000ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
4967 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=1) && (b<=1)))
4968 return 0x87e0fe2c0000ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
4969 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=3) && (b<=1)))
4970 return 0x87e0fe2c0000ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
4971 __bdk_csr_fatal("DTX_L2C_CBCX_SELX", 2, a, b, 0, 0);
4972 }
4973
4974 #define typedef_BDK_DTX_L2C_CBCX_SELX(a,b) bdk_dtx_l2c_cbcx_selx_t
4975 #define bustype_BDK_DTX_L2C_CBCX_SELX(a,b) BDK_CSR_TYPE_RSL
4976 #define basename_BDK_DTX_L2C_CBCX_SELX(a,b) "DTX_L2C_CBCX_SELX"
4977 #define busnum_BDK_DTX_L2C_CBCX_SELX(a,b) (a)
4978 #define arguments_BDK_DTX_L2C_CBCX_SELX(a,b) (a),(b),-1,-1
4979
4980 /**
4981 * Register (RSL) dtx_l2c_mci#_bcst_rsp
4982 *
4983 * DTX L2C_MCI Control Register
4984 */
4985 union bdk_dtx_l2c_mcix_bcst_rsp
4986 {
4987 uint64_t u;
4988 struct bdk_dtx_l2c_mcix_bcst_rsp_s
4989 {
4990 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
4991 uint64_t reserved_1_63 : 63;
4992 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
4993 #else /* Word 0 - Little Endian */
4994 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
4995 uint64_t reserved_1_63 : 63;
4996 #endif /* Word 0 - End */
4997 } s;
4998 /* struct bdk_dtx_l2c_mcix_bcst_rsp_s cn; */
4999 };
5000 typedef union bdk_dtx_l2c_mcix_bcst_rsp bdk_dtx_l2c_mcix_bcst_rsp_t;
5001
5002 static inline uint64_t BDK_DTX_L2C_MCIX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
5003 static inline uint64_t BDK_DTX_L2C_MCIX_BCST_RSP(unsigned long a)
5004 {
5005 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a==0))
5006 return 0x87e0fe2e0080ll + 0x8000ll * ((a) & 0x0);
5007 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=2))
5008 return 0x87e0fe2e0080ll + 0x8000ll * ((a) & 0x3);
5009 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=3))
5010 return 0x87e0fe2e0080ll + 0x8000ll * ((a) & 0x3);
5011 __bdk_csr_fatal("DTX_L2C_MCIX_BCST_RSP", 1, a, 0, 0, 0);
5012 }
5013
5014 #define typedef_BDK_DTX_L2C_MCIX_BCST_RSP(a) bdk_dtx_l2c_mcix_bcst_rsp_t
5015 #define bustype_BDK_DTX_L2C_MCIX_BCST_RSP(a) BDK_CSR_TYPE_RSL
5016 #define basename_BDK_DTX_L2C_MCIX_BCST_RSP(a) "DTX_L2C_MCIX_BCST_RSP"
5017 #define busnum_BDK_DTX_L2C_MCIX_BCST_RSP(a) (a)
5018 #define arguments_BDK_DTX_L2C_MCIX_BCST_RSP(a) (a),-1,-1,-1
5019
5020 /**
5021 * Register (RSL) dtx_l2c_mci#_ctl
5022 *
5023 * DTX L2C_MCI Control Register
5024 */
5025 union bdk_dtx_l2c_mcix_ctl
5026 {
5027 uint64_t u;
5028 struct bdk_dtx_l2c_mcix_ctl_s
5029 {
5030 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5031 uint64_t reserved_5_63 : 59;
5032 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
5033 uint64_t reserved_2_3 : 2;
5034 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
5035 debug data. Not applicable when software directly reads the DAT(0..1) registers.
5036 For diagnostic use only. */
5037 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
5038 #else /* Word 0 - Little Endian */
5039 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
5040 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
5041 debug data. Not applicable when software directly reads the DAT(0..1) registers.
5042 For diagnostic use only. */
5043 uint64_t reserved_2_3 : 2;
5044 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
5045 uint64_t reserved_5_63 : 59;
5046 #endif /* Word 0 - End */
5047 } s;
5048 /* struct bdk_dtx_l2c_mcix_ctl_s cn; */
5049 };
5050 typedef union bdk_dtx_l2c_mcix_ctl bdk_dtx_l2c_mcix_ctl_t;
5051
5052 static inline uint64_t BDK_DTX_L2C_MCIX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
5053 static inline uint64_t BDK_DTX_L2C_MCIX_CTL(unsigned long a)
5054 {
5055 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a==0))
5056 return 0x87e0fe2e0060ll + 0x8000ll * ((a) & 0x0);
5057 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=2))
5058 return 0x87e0fe2e0060ll + 0x8000ll * ((a) & 0x3);
5059 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=3))
5060 return 0x87e0fe2e0060ll + 0x8000ll * ((a) & 0x3);
5061 __bdk_csr_fatal("DTX_L2C_MCIX_CTL", 1, a, 0, 0, 0);
5062 }
5063
5064 #define typedef_BDK_DTX_L2C_MCIX_CTL(a) bdk_dtx_l2c_mcix_ctl_t
5065 #define bustype_BDK_DTX_L2C_MCIX_CTL(a) BDK_CSR_TYPE_RSL
5066 #define basename_BDK_DTX_L2C_MCIX_CTL(a) "DTX_L2C_MCIX_CTL"
5067 #define busnum_BDK_DTX_L2C_MCIX_CTL(a) (a)
5068 #define arguments_BDK_DTX_L2C_MCIX_CTL(a) (a),-1,-1,-1
5069
5070 /**
5071 * Register (RSL) dtx_l2c_mci#_dat#
5072 *
5073 * DTX L2C_MCI Raw Data Register
5074 */
5075 union bdk_dtx_l2c_mcix_datx
5076 {
5077 uint64_t u;
5078 struct bdk_dtx_l2c_mcix_datx_s
5079 {
5080 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5081 uint64_t reserved_36_63 : 28;
5082 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
5083 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
5084 #else /* Word 0 - Little Endian */
5085 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
5086 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
5087 uint64_t reserved_36_63 : 28;
5088 #endif /* Word 0 - End */
5089 } s;
5090 /* struct bdk_dtx_l2c_mcix_datx_s cn; */
5091 };
5092 typedef union bdk_dtx_l2c_mcix_datx bdk_dtx_l2c_mcix_datx_t;
5093
5094 static inline uint64_t BDK_DTX_L2C_MCIX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
5095 static inline uint64_t BDK_DTX_L2C_MCIX_DATX(unsigned long a, unsigned long b)
5096 {
5097 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
5098 return 0x87e0fe2e0040ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
5099 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=2) && (b<=1)))
5100 return 0x87e0fe2e0040ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
5101 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=3) && (b<=1)))
5102 return 0x87e0fe2e0040ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
5103 __bdk_csr_fatal("DTX_L2C_MCIX_DATX", 2, a, b, 0, 0);
5104 }
5105
5106 #define typedef_BDK_DTX_L2C_MCIX_DATX(a,b) bdk_dtx_l2c_mcix_datx_t
5107 #define bustype_BDK_DTX_L2C_MCIX_DATX(a,b) BDK_CSR_TYPE_RSL
5108 #define basename_BDK_DTX_L2C_MCIX_DATX(a,b) "DTX_L2C_MCIX_DATX"
5109 #define busnum_BDK_DTX_L2C_MCIX_DATX(a,b) (a)
5110 #define arguments_BDK_DTX_L2C_MCIX_DATX(a,b) (a),(b),-1,-1
5111
5112 /**
5113 * Register (RSL) dtx_l2c_mci#_ena#
5114 *
5115 * DTX L2C_MCI Data Enable Register
5116 */
5117 union bdk_dtx_l2c_mcix_enax
5118 {
5119 uint64_t u;
5120 struct bdk_dtx_l2c_mcix_enax_s
5121 {
5122 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5123 uint64_t reserved_36_63 : 28;
5124 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
5125 buses. Normally only one block will drive each bit. */
5126 #else /* Word 0 - Little Endian */
5127 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
5128 buses. Normally only one block will drive each bit. */
5129 uint64_t reserved_36_63 : 28;
5130 #endif /* Word 0 - End */
5131 } s;
5132 /* struct bdk_dtx_l2c_mcix_enax_s cn; */
5133 };
5134 typedef union bdk_dtx_l2c_mcix_enax bdk_dtx_l2c_mcix_enax_t;
5135
5136 static inline uint64_t BDK_DTX_L2C_MCIX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
5137 static inline uint64_t BDK_DTX_L2C_MCIX_ENAX(unsigned long a, unsigned long b)
5138 {
5139 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
5140 return 0x87e0fe2e0020ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
5141 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=2) && (b<=1)))
5142 return 0x87e0fe2e0020ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
5143 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=3) && (b<=1)))
5144 return 0x87e0fe2e0020ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
5145 __bdk_csr_fatal("DTX_L2C_MCIX_ENAX", 2, a, b, 0, 0);
5146 }
5147
5148 #define typedef_BDK_DTX_L2C_MCIX_ENAX(a,b) bdk_dtx_l2c_mcix_enax_t
5149 #define bustype_BDK_DTX_L2C_MCIX_ENAX(a,b) BDK_CSR_TYPE_RSL
5150 #define basename_BDK_DTX_L2C_MCIX_ENAX(a,b) "DTX_L2C_MCIX_ENAX"
5151 #define busnum_BDK_DTX_L2C_MCIX_ENAX(a,b) (a)
5152 #define arguments_BDK_DTX_L2C_MCIX_ENAX(a,b) (a),(b),-1,-1
5153
5154 /**
5155 * Register (RSL) dtx_l2c_mci#_sel#
5156 *
5157 * DTX L2C_MCI Select Register
5158 */
5159 union bdk_dtx_l2c_mcix_selx
5160 {
5161 uint64_t u;
5162 struct bdk_dtx_l2c_mcix_selx_s
5163 {
5164 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5165 uint64_t reserved_24_63 : 40;
5166 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
5167 #else /* Word 0 - Little Endian */
5168 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
5169 uint64_t reserved_24_63 : 40;
5170 #endif /* Word 0 - End */
5171 } s;
5172 /* struct bdk_dtx_l2c_mcix_selx_s cn; */
5173 };
5174 typedef union bdk_dtx_l2c_mcix_selx bdk_dtx_l2c_mcix_selx_t;
5175
5176 static inline uint64_t BDK_DTX_L2C_MCIX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
5177 static inline uint64_t BDK_DTX_L2C_MCIX_SELX(unsigned long a, unsigned long b)
5178 {
5179 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
5180 return 0x87e0fe2e0000ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
5181 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=2) && (b<=1)))
5182 return 0x87e0fe2e0000ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
5183 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=3) && (b<=1)))
5184 return 0x87e0fe2e0000ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
5185 __bdk_csr_fatal("DTX_L2C_MCIX_SELX", 2, a, b, 0, 0);
5186 }
5187
5188 #define typedef_BDK_DTX_L2C_MCIX_SELX(a,b) bdk_dtx_l2c_mcix_selx_t
5189 #define bustype_BDK_DTX_L2C_MCIX_SELX(a,b) BDK_CSR_TYPE_RSL
5190 #define basename_BDK_DTX_L2C_MCIX_SELX(a,b) "DTX_L2C_MCIX_SELX"
5191 #define busnum_BDK_DTX_L2C_MCIX_SELX(a,b) (a)
5192 #define arguments_BDK_DTX_L2C_MCIX_SELX(a,b) (a),(b),-1,-1
5193
5194 /**
5195 * Register (RSL) dtx_l2c_tad#_bcst_rsp
5196 *
5197 * DTX L2C_TAD Control Register
5198 */
5199 union bdk_dtx_l2c_tadx_bcst_rsp
5200 {
5201 uint64_t u;
5202 struct bdk_dtx_l2c_tadx_bcst_rsp_s
5203 {
5204 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5205 uint64_t reserved_1_63 : 63;
5206 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
5207 #else /* Word 0 - Little Endian */
5208 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
5209 uint64_t reserved_1_63 : 63;
5210 #endif /* Word 0 - End */
5211 } s;
5212 /* struct bdk_dtx_l2c_tadx_bcst_rsp_s cn; */
5213 };
5214 typedef union bdk_dtx_l2c_tadx_bcst_rsp bdk_dtx_l2c_tadx_bcst_rsp_t;
5215
5216 static inline uint64_t BDK_DTX_L2C_TADX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
5217 static inline uint64_t BDK_DTX_L2C_TADX_BCST_RSP(unsigned long a)
5218 {
5219 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a==0))
5220 return 0x87e0fe280080ll + 0x8000ll * ((a) & 0x0);
5221 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=3))
5222 return 0x87e0fe280080ll + 0x8000ll * ((a) & 0x3);
5223 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=7))
5224 return 0x87e0fe280080ll + 0x8000ll * ((a) & 0x7);
5225 __bdk_csr_fatal("DTX_L2C_TADX_BCST_RSP", 1, a, 0, 0, 0);
5226 }
5227
5228 #define typedef_BDK_DTX_L2C_TADX_BCST_RSP(a) bdk_dtx_l2c_tadx_bcst_rsp_t
5229 #define bustype_BDK_DTX_L2C_TADX_BCST_RSP(a) BDK_CSR_TYPE_RSL
5230 #define basename_BDK_DTX_L2C_TADX_BCST_RSP(a) "DTX_L2C_TADX_BCST_RSP"
5231 #define busnum_BDK_DTX_L2C_TADX_BCST_RSP(a) (a)
5232 #define arguments_BDK_DTX_L2C_TADX_BCST_RSP(a) (a),-1,-1,-1
5233
5234 /**
5235 * Register (RSL) dtx_l2c_tad#_ctl
5236 *
5237 * DTX L2C_TAD Control Register
5238 */
5239 union bdk_dtx_l2c_tadx_ctl
5240 {
5241 uint64_t u;
5242 struct bdk_dtx_l2c_tadx_ctl_s
5243 {
5244 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5245 uint64_t reserved_5_63 : 59;
5246 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
5247 uint64_t reserved_2_3 : 2;
5248 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
5249 debug data. Not applicable when software directly reads the DAT(0..1) registers.
5250 For diagnostic use only. */
5251 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
5252 #else /* Word 0 - Little Endian */
5253 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
5254 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
5255 debug data. Not applicable when software directly reads the DAT(0..1) registers.
5256 For diagnostic use only. */
5257 uint64_t reserved_2_3 : 2;
5258 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
5259 uint64_t reserved_5_63 : 59;
5260 #endif /* Word 0 - End */
5261 } s;
5262 /* struct bdk_dtx_l2c_tadx_ctl_s cn; */
5263 };
5264 typedef union bdk_dtx_l2c_tadx_ctl bdk_dtx_l2c_tadx_ctl_t;
5265
5266 static inline uint64_t BDK_DTX_L2C_TADX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
5267 static inline uint64_t BDK_DTX_L2C_TADX_CTL(unsigned long a)
5268 {
5269 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a==0))
5270 return 0x87e0fe280060ll + 0x8000ll * ((a) & 0x0);
5271 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=3))
5272 return 0x87e0fe280060ll + 0x8000ll * ((a) & 0x3);
5273 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=7))
5274 return 0x87e0fe280060ll + 0x8000ll * ((a) & 0x7);
5275 __bdk_csr_fatal("DTX_L2C_TADX_CTL", 1, a, 0, 0, 0);
5276 }
5277
5278 #define typedef_BDK_DTX_L2C_TADX_CTL(a) bdk_dtx_l2c_tadx_ctl_t
5279 #define bustype_BDK_DTX_L2C_TADX_CTL(a) BDK_CSR_TYPE_RSL
5280 #define basename_BDK_DTX_L2C_TADX_CTL(a) "DTX_L2C_TADX_CTL"
5281 #define busnum_BDK_DTX_L2C_TADX_CTL(a) (a)
5282 #define arguments_BDK_DTX_L2C_TADX_CTL(a) (a),-1,-1,-1
5283
5284 /**
5285 * Register (RSL) dtx_l2c_tad#_dat#
5286 *
5287 * DTX L2C_TAD Raw Data Register
5288 */
5289 union bdk_dtx_l2c_tadx_datx
5290 {
5291 uint64_t u;
5292 struct bdk_dtx_l2c_tadx_datx_s
5293 {
5294 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5295 uint64_t reserved_36_63 : 28;
5296 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
5297 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
5298 #else /* Word 0 - Little Endian */
5299 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
5300 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
5301 uint64_t reserved_36_63 : 28;
5302 #endif /* Word 0 - End */
5303 } s;
5304 /* struct bdk_dtx_l2c_tadx_datx_s cn; */
5305 };
5306 typedef union bdk_dtx_l2c_tadx_datx bdk_dtx_l2c_tadx_datx_t;
5307
5308 static inline uint64_t BDK_DTX_L2C_TADX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
5309 static inline uint64_t BDK_DTX_L2C_TADX_DATX(unsigned long a, unsigned long b)
5310 {
5311 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
5312 return 0x87e0fe280040ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
5313 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=3) && (b<=1)))
5314 return 0x87e0fe280040ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
5315 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=7) && (b<=1)))
5316 return 0x87e0fe280040ll + 0x8000ll * ((a) & 0x7) + 8ll * ((b) & 0x1);
5317 __bdk_csr_fatal("DTX_L2C_TADX_DATX", 2, a, b, 0, 0);
5318 }
5319
5320 #define typedef_BDK_DTX_L2C_TADX_DATX(a,b) bdk_dtx_l2c_tadx_datx_t
5321 #define bustype_BDK_DTX_L2C_TADX_DATX(a,b) BDK_CSR_TYPE_RSL
5322 #define basename_BDK_DTX_L2C_TADX_DATX(a,b) "DTX_L2C_TADX_DATX"
5323 #define busnum_BDK_DTX_L2C_TADX_DATX(a,b) (a)
5324 #define arguments_BDK_DTX_L2C_TADX_DATX(a,b) (a),(b),-1,-1
5325
5326 /**
5327 * Register (RSL) dtx_l2c_tad#_ena#
5328 *
5329 * DTX L2C_TAD Data Enable Register
5330 */
5331 union bdk_dtx_l2c_tadx_enax
5332 {
5333 uint64_t u;
5334 struct bdk_dtx_l2c_tadx_enax_s
5335 {
5336 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5337 uint64_t reserved_36_63 : 28;
5338 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
5339 buses. Normally only one block will drive each bit. */
5340 #else /* Word 0 - Little Endian */
5341 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
5342 buses. Normally only one block will drive each bit. */
5343 uint64_t reserved_36_63 : 28;
5344 #endif /* Word 0 - End */
5345 } s;
5346 /* struct bdk_dtx_l2c_tadx_enax_s cn; */
5347 };
5348 typedef union bdk_dtx_l2c_tadx_enax bdk_dtx_l2c_tadx_enax_t;
5349
5350 static inline uint64_t BDK_DTX_L2C_TADX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
5351 static inline uint64_t BDK_DTX_L2C_TADX_ENAX(unsigned long a, unsigned long b)
5352 {
5353 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
5354 return 0x87e0fe280020ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
5355 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=3) && (b<=1)))
5356 return 0x87e0fe280020ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
5357 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=7) && (b<=1)))
5358 return 0x87e0fe280020ll + 0x8000ll * ((a) & 0x7) + 8ll * ((b) & 0x1);
5359 __bdk_csr_fatal("DTX_L2C_TADX_ENAX", 2, a, b, 0, 0);
5360 }
5361
5362 #define typedef_BDK_DTX_L2C_TADX_ENAX(a,b) bdk_dtx_l2c_tadx_enax_t
5363 #define bustype_BDK_DTX_L2C_TADX_ENAX(a,b) BDK_CSR_TYPE_RSL
5364 #define basename_BDK_DTX_L2C_TADX_ENAX(a,b) "DTX_L2C_TADX_ENAX"
5365 #define busnum_BDK_DTX_L2C_TADX_ENAX(a,b) (a)
5366 #define arguments_BDK_DTX_L2C_TADX_ENAX(a,b) (a),(b),-1,-1
5367
5368 /**
5369 * Register (RSL) dtx_l2c_tad#_sel#
5370 *
5371 * DTX L2C_TAD Select Register
5372 */
5373 union bdk_dtx_l2c_tadx_selx
5374 {
5375 uint64_t u;
5376 struct bdk_dtx_l2c_tadx_selx_s
5377 {
5378 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5379 uint64_t reserved_24_63 : 40;
5380 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
5381 #else /* Word 0 - Little Endian */
5382 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
5383 uint64_t reserved_24_63 : 40;
5384 #endif /* Word 0 - End */
5385 } s;
5386 /* struct bdk_dtx_l2c_tadx_selx_s cn; */
5387 };
5388 typedef union bdk_dtx_l2c_tadx_selx bdk_dtx_l2c_tadx_selx_t;
5389
5390 static inline uint64_t BDK_DTX_L2C_TADX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
5391 static inline uint64_t BDK_DTX_L2C_TADX_SELX(unsigned long a, unsigned long b)
5392 {
5393 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
5394 return 0x87e0fe280000ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
5395 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=3) && (b<=1)))
5396 return 0x87e0fe280000ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
5397 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=7) && (b<=1)))
5398 return 0x87e0fe280000ll + 0x8000ll * ((a) & 0x7) + 8ll * ((b) & 0x1);
5399 __bdk_csr_fatal("DTX_L2C_TADX_SELX", 2, a, b, 0, 0);
5400 }
5401
5402 #define typedef_BDK_DTX_L2C_TADX_SELX(a,b) bdk_dtx_l2c_tadx_selx_t
5403 #define bustype_BDK_DTX_L2C_TADX_SELX(a,b) BDK_CSR_TYPE_RSL
5404 #define basename_BDK_DTX_L2C_TADX_SELX(a,b) "DTX_L2C_TADX_SELX"
5405 #define busnum_BDK_DTX_L2C_TADX_SELX(a,b) (a)
5406 #define arguments_BDK_DTX_L2C_TADX_SELX(a,b) (a),(b),-1,-1
5407
5408 /**
5409 * Register (RSL) dtx_lbk_bcst_rsp
5410 *
5411 * DTX LBK Control Register
5412 */
5413 union bdk_dtx_lbk_bcst_rsp
5414 {
5415 uint64_t u;
5416 struct bdk_dtx_lbk_bcst_rsp_s
5417 {
5418 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5419 uint64_t reserved_1_63 : 63;
5420 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
5421 #else /* Word 0 - Little Endian */
5422 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
5423 uint64_t reserved_1_63 : 63;
5424 #endif /* Word 0 - End */
5425 } s;
5426 /* struct bdk_dtx_lbk_bcst_rsp_s cn; */
5427 };
5428 typedef union bdk_dtx_lbk_bcst_rsp bdk_dtx_lbk_bcst_rsp_t;
5429
5430 #define BDK_DTX_LBK_BCST_RSP BDK_DTX_LBK_BCST_RSP_FUNC()
5431 static inline uint64_t BDK_DTX_LBK_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
5432 static inline uint64_t BDK_DTX_LBK_BCST_RSP_FUNC(void)
5433 {
5434 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX))
5435 return 0x87e0fe0c0080ll;
5436 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
5437 return 0x87e0fe0c0080ll;
5438 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
5439 return 0x87e0fe0c0080ll;
5440 __bdk_csr_fatal("DTX_LBK_BCST_RSP", 0, 0, 0, 0, 0);
5441 }
5442
5443 #define typedef_BDK_DTX_LBK_BCST_RSP bdk_dtx_lbk_bcst_rsp_t
5444 #define bustype_BDK_DTX_LBK_BCST_RSP BDK_CSR_TYPE_RSL
5445 #define basename_BDK_DTX_LBK_BCST_RSP "DTX_LBK_BCST_RSP"
5446 #define busnum_BDK_DTX_LBK_BCST_RSP 0
5447 #define arguments_BDK_DTX_LBK_BCST_RSP -1,-1,-1,-1
5448
5449 /**
5450 * Register (RSL) dtx_lbk_ctl
5451 *
5452 * DTX LBK Control Register
5453 */
5454 union bdk_dtx_lbk_ctl
5455 {
5456 uint64_t u;
5457 struct bdk_dtx_lbk_ctl_s
5458 {
5459 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5460 uint64_t reserved_5_63 : 59;
5461 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
5462 uint64_t reserved_2_3 : 2;
5463 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
5464 debug data. Not applicable when software directly reads the DAT(0..1) registers.
5465 For diagnostic use only. */
5466 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
5467 #else /* Word 0 - Little Endian */
5468 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
5469 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
5470 debug data. Not applicable when software directly reads the DAT(0..1) registers.
5471 For diagnostic use only. */
5472 uint64_t reserved_2_3 : 2;
5473 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
5474 uint64_t reserved_5_63 : 59;
5475 #endif /* Word 0 - End */
5476 } s;
5477 /* struct bdk_dtx_lbk_ctl_s cn; */
5478 };
5479 typedef union bdk_dtx_lbk_ctl bdk_dtx_lbk_ctl_t;
5480
5481 #define BDK_DTX_LBK_CTL BDK_DTX_LBK_CTL_FUNC()
5482 static inline uint64_t BDK_DTX_LBK_CTL_FUNC(void) __attribute__ ((pure, always_inline));
5483 static inline uint64_t BDK_DTX_LBK_CTL_FUNC(void)
5484 {
5485 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX))
5486 return 0x87e0fe0c0060ll;
5487 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
5488 return 0x87e0fe0c0060ll;
5489 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
5490 return 0x87e0fe0c0060ll;
5491 __bdk_csr_fatal("DTX_LBK_CTL", 0, 0, 0, 0, 0);
5492 }
5493
5494 #define typedef_BDK_DTX_LBK_CTL bdk_dtx_lbk_ctl_t
5495 #define bustype_BDK_DTX_LBK_CTL BDK_CSR_TYPE_RSL
5496 #define basename_BDK_DTX_LBK_CTL "DTX_LBK_CTL"
5497 #define busnum_BDK_DTX_LBK_CTL 0
5498 #define arguments_BDK_DTX_LBK_CTL -1,-1,-1,-1
5499
5500 /**
5501 * Register (RSL) dtx_lbk_dat#
5502 *
5503 * DTX LBK Raw Data Register
5504 */
5505 union bdk_dtx_lbk_datx
5506 {
5507 uint64_t u;
5508 struct bdk_dtx_lbk_datx_s
5509 {
5510 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5511 uint64_t reserved_36_63 : 28;
5512 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
5513 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
5514 #else /* Word 0 - Little Endian */
5515 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
5516 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
5517 uint64_t reserved_36_63 : 28;
5518 #endif /* Word 0 - End */
5519 } s;
5520 /* struct bdk_dtx_lbk_datx_s cn; */
5521 };
5522 typedef union bdk_dtx_lbk_datx bdk_dtx_lbk_datx_t;
5523
5524 static inline uint64_t BDK_DTX_LBK_DATX(unsigned long a) __attribute__ ((pure, always_inline));
5525 static inline uint64_t BDK_DTX_LBK_DATX(unsigned long a)
5526 {
5527 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
5528 return 0x87e0fe0c0040ll + 8ll * ((a) & 0x1);
5529 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
5530 return 0x87e0fe0c0040ll + 8ll * ((a) & 0x1);
5531 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
5532 return 0x87e0fe0c0040ll + 8ll * ((a) & 0x1);
5533 __bdk_csr_fatal("DTX_LBK_DATX", 1, a, 0, 0, 0);
5534 }
5535
5536 #define typedef_BDK_DTX_LBK_DATX(a) bdk_dtx_lbk_datx_t
5537 #define bustype_BDK_DTX_LBK_DATX(a) BDK_CSR_TYPE_RSL
5538 #define basename_BDK_DTX_LBK_DATX(a) "DTX_LBK_DATX"
5539 #define busnum_BDK_DTX_LBK_DATX(a) (a)
5540 #define arguments_BDK_DTX_LBK_DATX(a) (a),-1,-1,-1
5541
5542 /**
5543 * Register (RSL) dtx_lbk_ena#
5544 *
5545 * DTX LBK Data Enable Register
5546 */
5547 union bdk_dtx_lbk_enax
5548 {
5549 uint64_t u;
5550 struct bdk_dtx_lbk_enax_s
5551 {
5552 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5553 uint64_t reserved_36_63 : 28;
5554 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
5555 buses. Normally only one block will drive each bit. */
5556 #else /* Word 0 - Little Endian */
5557 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
5558 buses. Normally only one block will drive each bit. */
5559 uint64_t reserved_36_63 : 28;
5560 #endif /* Word 0 - End */
5561 } s;
5562 /* struct bdk_dtx_lbk_enax_s cn; */
5563 };
5564 typedef union bdk_dtx_lbk_enax bdk_dtx_lbk_enax_t;
5565
5566 static inline uint64_t BDK_DTX_LBK_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
5567 static inline uint64_t BDK_DTX_LBK_ENAX(unsigned long a)
5568 {
5569 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
5570 return 0x87e0fe0c0020ll + 8ll * ((a) & 0x1);
5571 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
5572 return 0x87e0fe0c0020ll + 8ll * ((a) & 0x1);
5573 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
5574 return 0x87e0fe0c0020ll + 8ll * ((a) & 0x1);
5575 __bdk_csr_fatal("DTX_LBK_ENAX", 1, a, 0, 0, 0);
5576 }
5577
5578 #define typedef_BDK_DTX_LBK_ENAX(a) bdk_dtx_lbk_enax_t
5579 #define bustype_BDK_DTX_LBK_ENAX(a) BDK_CSR_TYPE_RSL
5580 #define basename_BDK_DTX_LBK_ENAX(a) "DTX_LBK_ENAX"
5581 #define busnum_BDK_DTX_LBK_ENAX(a) (a)
5582 #define arguments_BDK_DTX_LBK_ENAX(a) (a),-1,-1,-1
5583
5584 /**
5585 * Register (RSL) dtx_lbk_sel#
5586 *
5587 * DTX LBK Select Register
5588 */
5589 union bdk_dtx_lbk_selx
5590 {
5591 uint64_t u;
5592 struct bdk_dtx_lbk_selx_s
5593 {
5594 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5595 uint64_t reserved_24_63 : 40;
5596 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
5597 #else /* Word 0 - Little Endian */
5598 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
5599 uint64_t reserved_24_63 : 40;
5600 #endif /* Word 0 - End */
5601 } s;
5602 /* struct bdk_dtx_lbk_selx_s cn; */
5603 };
5604 typedef union bdk_dtx_lbk_selx bdk_dtx_lbk_selx_t;
5605
5606 static inline uint64_t BDK_DTX_LBK_SELX(unsigned long a) __attribute__ ((pure, always_inline));
5607 static inline uint64_t BDK_DTX_LBK_SELX(unsigned long a)
5608 {
5609 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
5610 return 0x87e0fe0c0000ll + 8ll * ((a) & 0x1);
5611 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
5612 return 0x87e0fe0c0000ll + 8ll * ((a) & 0x1);
5613 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
5614 return 0x87e0fe0c0000ll + 8ll * ((a) & 0x1);
5615 __bdk_csr_fatal("DTX_LBK_SELX", 1, a, 0, 0, 0);
5616 }
5617
5618 #define typedef_BDK_DTX_LBK_SELX(a) bdk_dtx_lbk_selx_t
5619 #define bustype_BDK_DTX_LBK_SELX(a) BDK_CSR_TYPE_RSL
5620 #define basename_BDK_DTX_LBK_SELX(a) "DTX_LBK_SELX"
5621 #define busnum_BDK_DTX_LBK_SELX(a) (a)
5622 #define arguments_BDK_DTX_LBK_SELX(a) (a),-1,-1,-1
5623
5624 /**
5625 * Register (RSL) dtx_lmc#_bcst_rsp
5626 *
5627 * DTX LMC Control Register
5628 */
5629 union bdk_dtx_lmcx_bcst_rsp
5630 {
5631 uint64_t u;
5632 struct bdk_dtx_lmcx_bcst_rsp_s
5633 {
5634 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5635 uint64_t reserved_1_63 : 63;
5636 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
5637 #else /* Word 0 - Little Endian */
5638 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
5639 uint64_t reserved_1_63 : 63;
5640 #endif /* Word 0 - End */
5641 } s;
5642 /* struct bdk_dtx_lmcx_bcst_rsp_s cn; */
5643 };
5644 typedef union bdk_dtx_lmcx_bcst_rsp bdk_dtx_lmcx_bcst_rsp_t;
5645
5646 static inline uint64_t BDK_DTX_LMCX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
5647 static inline uint64_t BDK_DTX_LMCX_BCST_RSP(unsigned long a)
5648 {
5649 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a==0))
5650 return 0x87e0fe440080ll + 0x8000ll * ((a) & 0x0);
5651 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
5652 return 0x87e0fe440080ll + 0x8000ll * ((a) & 0x1);
5653 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=3))
5654 return 0x87e0fe440080ll + 0x8000ll * ((a) & 0x3);
5655 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
5656 return 0x87e0fe440080ll + 0x8000ll * ((a) & 0x1);
5657 __bdk_csr_fatal("DTX_LMCX_BCST_RSP", 1, a, 0, 0, 0);
5658 }
5659
5660 #define typedef_BDK_DTX_LMCX_BCST_RSP(a) bdk_dtx_lmcx_bcst_rsp_t
5661 #define bustype_BDK_DTX_LMCX_BCST_RSP(a) BDK_CSR_TYPE_RSL
5662 #define basename_BDK_DTX_LMCX_BCST_RSP(a) "DTX_LMCX_BCST_RSP"
5663 #define busnum_BDK_DTX_LMCX_BCST_RSP(a) (a)
5664 #define arguments_BDK_DTX_LMCX_BCST_RSP(a) (a),-1,-1,-1
5665
5666 /**
5667 * Register (RSL) dtx_lmc#_ctl
5668 *
5669 * DTX LMC Control Register
5670 */
5671 union bdk_dtx_lmcx_ctl
5672 {
5673 uint64_t u;
5674 struct bdk_dtx_lmcx_ctl_s
5675 {
5676 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5677 uint64_t reserved_5_63 : 59;
5678 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
5679 uint64_t reserved_2_3 : 2;
5680 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
5681 debug data. Not applicable when software directly reads the DAT(0..1) registers.
5682 For diagnostic use only. */
5683 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
5684 #else /* Word 0 - Little Endian */
5685 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
5686 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
5687 debug data. Not applicable when software directly reads the DAT(0..1) registers.
5688 For diagnostic use only. */
5689 uint64_t reserved_2_3 : 2;
5690 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
5691 uint64_t reserved_5_63 : 59;
5692 #endif /* Word 0 - End */
5693 } s;
5694 /* struct bdk_dtx_lmcx_ctl_s cn; */
5695 };
5696 typedef union bdk_dtx_lmcx_ctl bdk_dtx_lmcx_ctl_t;
5697
5698 static inline uint64_t BDK_DTX_LMCX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
5699 static inline uint64_t BDK_DTX_LMCX_CTL(unsigned long a)
5700 {
5701 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a==0))
5702 return 0x87e0fe440060ll + 0x8000ll * ((a) & 0x0);
5703 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
5704 return 0x87e0fe440060ll + 0x8000ll * ((a) & 0x1);
5705 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=3))
5706 return 0x87e0fe440060ll + 0x8000ll * ((a) & 0x3);
5707 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
5708 return 0x87e0fe440060ll + 0x8000ll * ((a) & 0x1);
5709 __bdk_csr_fatal("DTX_LMCX_CTL", 1, a, 0, 0, 0);
5710 }
5711
5712 #define typedef_BDK_DTX_LMCX_CTL(a) bdk_dtx_lmcx_ctl_t
5713 #define bustype_BDK_DTX_LMCX_CTL(a) BDK_CSR_TYPE_RSL
5714 #define basename_BDK_DTX_LMCX_CTL(a) "DTX_LMCX_CTL"
5715 #define busnum_BDK_DTX_LMCX_CTL(a) (a)
5716 #define arguments_BDK_DTX_LMCX_CTL(a) (a),-1,-1,-1
5717
5718 /**
5719 * Register (RSL) dtx_lmc#_dat#
5720 *
5721 * DTX LMC Raw Data Register
5722 */
5723 union bdk_dtx_lmcx_datx
5724 {
5725 uint64_t u;
5726 struct bdk_dtx_lmcx_datx_s
5727 {
5728 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5729 uint64_t reserved_36_63 : 28;
5730 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
5731 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
5732 #else /* Word 0 - Little Endian */
5733 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
5734 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
5735 uint64_t reserved_36_63 : 28;
5736 #endif /* Word 0 - End */
5737 } s;
5738 /* struct bdk_dtx_lmcx_datx_s cn; */
5739 };
5740 typedef union bdk_dtx_lmcx_datx bdk_dtx_lmcx_datx_t;
5741
5742 static inline uint64_t BDK_DTX_LMCX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
5743 static inline uint64_t BDK_DTX_LMCX_DATX(unsigned long a, unsigned long b)
5744 {
5745 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
5746 return 0x87e0fe440040ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
5747 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=1) && (b<=1)))
5748 return 0x87e0fe440040ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
5749 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=3) && (b<=1)))
5750 return 0x87e0fe440040ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
5751 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
5752 return 0x87e0fe440040ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
5753 __bdk_csr_fatal("DTX_LMCX_DATX", 2, a, b, 0, 0);
5754 }
5755
5756 #define typedef_BDK_DTX_LMCX_DATX(a,b) bdk_dtx_lmcx_datx_t
5757 #define bustype_BDK_DTX_LMCX_DATX(a,b) BDK_CSR_TYPE_RSL
5758 #define basename_BDK_DTX_LMCX_DATX(a,b) "DTX_LMCX_DATX"
5759 #define busnum_BDK_DTX_LMCX_DATX(a,b) (a)
5760 #define arguments_BDK_DTX_LMCX_DATX(a,b) (a),(b),-1,-1
5761
5762 /**
5763 * Register (RSL) dtx_lmc#_ena#
5764 *
5765 * DTX LMC Data Enable Register
5766 */
5767 union bdk_dtx_lmcx_enax
5768 {
5769 uint64_t u;
5770 struct bdk_dtx_lmcx_enax_s
5771 {
5772 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5773 uint64_t reserved_36_63 : 28;
5774 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
5775 buses. Normally only one block will drive each bit. */
5776 #else /* Word 0 - Little Endian */
5777 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
5778 buses. Normally only one block will drive each bit. */
5779 uint64_t reserved_36_63 : 28;
5780 #endif /* Word 0 - End */
5781 } s;
5782 /* struct bdk_dtx_lmcx_enax_s cn; */
5783 };
5784 typedef union bdk_dtx_lmcx_enax bdk_dtx_lmcx_enax_t;
5785
5786 static inline uint64_t BDK_DTX_LMCX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
5787 static inline uint64_t BDK_DTX_LMCX_ENAX(unsigned long a, unsigned long b)
5788 {
5789 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
5790 return 0x87e0fe440020ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
5791 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=1) && (b<=1)))
5792 return 0x87e0fe440020ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
5793 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=3) && (b<=1)))
5794 return 0x87e0fe440020ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
5795 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
5796 return 0x87e0fe440020ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
5797 __bdk_csr_fatal("DTX_LMCX_ENAX", 2, a, b, 0, 0);
5798 }
5799
5800 #define typedef_BDK_DTX_LMCX_ENAX(a,b) bdk_dtx_lmcx_enax_t
5801 #define bustype_BDK_DTX_LMCX_ENAX(a,b) BDK_CSR_TYPE_RSL
5802 #define basename_BDK_DTX_LMCX_ENAX(a,b) "DTX_LMCX_ENAX"
5803 #define busnum_BDK_DTX_LMCX_ENAX(a,b) (a)
5804 #define arguments_BDK_DTX_LMCX_ENAX(a,b) (a),(b),-1,-1
5805
5806 /**
5807 * Register (RSL) dtx_lmc#_sel#
5808 *
5809 * DTX LMC Select Register
5810 */
5811 union bdk_dtx_lmcx_selx
5812 {
5813 uint64_t u;
5814 struct bdk_dtx_lmcx_selx_s
5815 {
5816 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5817 uint64_t reserved_24_63 : 40;
5818 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
5819 #else /* Word 0 - Little Endian */
5820 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
5821 uint64_t reserved_24_63 : 40;
5822 #endif /* Word 0 - End */
5823 } s;
5824 /* struct bdk_dtx_lmcx_selx_s cn; */
5825 };
5826 typedef union bdk_dtx_lmcx_selx bdk_dtx_lmcx_selx_t;
5827
5828 static inline uint64_t BDK_DTX_LMCX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
5829 static inline uint64_t BDK_DTX_LMCX_SELX(unsigned long a, unsigned long b)
5830 {
5831 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
5832 return 0x87e0fe440000ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
5833 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=1) && (b<=1)))
5834 return 0x87e0fe440000ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
5835 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=3) && (b<=1)))
5836 return 0x87e0fe440000ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
5837 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
5838 return 0x87e0fe440000ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
5839 __bdk_csr_fatal("DTX_LMCX_SELX", 2, a, b, 0, 0);
5840 }
5841
5842 #define typedef_BDK_DTX_LMCX_SELX(a,b) bdk_dtx_lmcx_selx_t
5843 #define bustype_BDK_DTX_LMCX_SELX(a,b) BDK_CSR_TYPE_RSL
5844 #define basename_BDK_DTX_LMCX_SELX(a,b) "DTX_LMCX_SELX"
5845 #define busnum_BDK_DTX_LMCX_SELX(a,b) (a)
5846 #define arguments_BDK_DTX_LMCX_SELX(a,b) (a),(b),-1,-1
5847
5848 /**
5849 * Register (RSL) dtx_mcc#_bcst_rsp
5850 *
5851 * DTX MCC Control Register
5852 */
5853 union bdk_dtx_mccx_bcst_rsp
5854 {
5855 uint64_t u;
5856 struct bdk_dtx_mccx_bcst_rsp_s
5857 {
5858 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5859 uint64_t reserved_1_63 : 63;
5860 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
5861 #else /* Word 0 - Little Endian */
5862 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
5863 uint64_t reserved_1_63 : 63;
5864 #endif /* Word 0 - End */
5865 } s;
5866 /* struct bdk_dtx_mccx_bcst_rsp_s cn; */
5867 };
5868 typedef union bdk_dtx_mccx_bcst_rsp bdk_dtx_mccx_bcst_rsp_t;
5869
5870 static inline uint64_t BDK_DTX_MCCX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
5871 static inline uint64_t BDK_DTX_MCCX_BCST_RSP(unsigned long a)
5872 {
5873 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
5874 return 0x87e0fe1e0080ll + 0x8000ll * ((a) & 0x1);
5875 __bdk_csr_fatal("DTX_MCCX_BCST_RSP", 1, a, 0, 0, 0);
5876 }
5877
5878 #define typedef_BDK_DTX_MCCX_BCST_RSP(a) bdk_dtx_mccx_bcst_rsp_t
5879 #define bustype_BDK_DTX_MCCX_BCST_RSP(a) BDK_CSR_TYPE_RSL
5880 #define basename_BDK_DTX_MCCX_BCST_RSP(a) "DTX_MCCX_BCST_RSP"
5881 #define busnum_BDK_DTX_MCCX_BCST_RSP(a) (a)
5882 #define arguments_BDK_DTX_MCCX_BCST_RSP(a) (a),-1,-1,-1
5883
5884 /**
5885 * Register (RSL) dtx_mcc#_ctl
5886 *
5887 * DTX MCC Control Register
5888 */
5889 union bdk_dtx_mccx_ctl
5890 {
5891 uint64_t u;
5892 struct bdk_dtx_mccx_ctl_s
5893 {
5894 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5895 uint64_t reserved_5_63 : 59;
5896 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
5897 uint64_t reserved_2_3 : 2;
5898 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
5899 debug data. Not applicable when software directly reads the DAT(0..1) registers.
5900 For diagnostic use only. */
5901 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
5902 #else /* Word 0 - Little Endian */
5903 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
5904 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
5905 debug data. Not applicable when software directly reads the DAT(0..1) registers.
5906 For diagnostic use only. */
5907 uint64_t reserved_2_3 : 2;
5908 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
5909 uint64_t reserved_5_63 : 59;
5910 #endif /* Word 0 - End */
5911 } s;
5912 /* struct bdk_dtx_mccx_ctl_s cn; */
5913 };
5914 typedef union bdk_dtx_mccx_ctl bdk_dtx_mccx_ctl_t;
5915
5916 static inline uint64_t BDK_DTX_MCCX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
5917 static inline uint64_t BDK_DTX_MCCX_CTL(unsigned long a)
5918 {
5919 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
5920 return 0x87e0fe1e0060ll + 0x8000ll * ((a) & 0x1);
5921 __bdk_csr_fatal("DTX_MCCX_CTL", 1, a, 0, 0, 0);
5922 }
5923
5924 #define typedef_BDK_DTX_MCCX_CTL(a) bdk_dtx_mccx_ctl_t
5925 #define bustype_BDK_DTX_MCCX_CTL(a) BDK_CSR_TYPE_RSL
5926 #define basename_BDK_DTX_MCCX_CTL(a) "DTX_MCCX_CTL"
5927 #define busnum_BDK_DTX_MCCX_CTL(a) (a)
5928 #define arguments_BDK_DTX_MCCX_CTL(a) (a),-1,-1,-1
5929
5930 /**
5931 * Register (RSL) dtx_mcc#_dat#
5932 *
5933 * DTX MCC Raw Data Register
5934 */
5935 union bdk_dtx_mccx_datx
5936 {
5937 uint64_t u;
5938 struct bdk_dtx_mccx_datx_s
5939 {
5940 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5941 uint64_t reserved_36_63 : 28;
5942 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
5943 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
5944 #else /* Word 0 - Little Endian */
5945 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
5946 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
5947 uint64_t reserved_36_63 : 28;
5948 #endif /* Word 0 - End */
5949 } s;
5950 /* struct bdk_dtx_mccx_datx_s cn; */
5951 };
5952 typedef union bdk_dtx_mccx_datx bdk_dtx_mccx_datx_t;
5953
5954 static inline uint64_t BDK_DTX_MCCX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
5955 static inline uint64_t BDK_DTX_MCCX_DATX(unsigned long a, unsigned long b)
5956 {
5957 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
5958 return 0x87e0fe1e0040ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
5959 __bdk_csr_fatal("DTX_MCCX_DATX", 2, a, b, 0, 0);
5960 }
5961
5962 #define typedef_BDK_DTX_MCCX_DATX(a,b) bdk_dtx_mccx_datx_t
5963 #define bustype_BDK_DTX_MCCX_DATX(a,b) BDK_CSR_TYPE_RSL
5964 #define basename_BDK_DTX_MCCX_DATX(a,b) "DTX_MCCX_DATX"
5965 #define busnum_BDK_DTX_MCCX_DATX(a,b) (a)
5966 #define arguments_BDK_DTX_MCCX_DATX(a,b) (a),(b),-1,-1
5967
5968 /**
5969 * Register (RSL) dtx_mcc#_ena#
5970 *
5971 * DTX MCC Data Enable Register
5972 */
5973 union bdk_dtx_mccx_enax
5974 {
5975 uint64_t u;
5976 struct bdk_dtx_mccx_enax_s
5977 {
5978 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
5979 uint64_t reserved_36_63 : 28;
5980 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
5981 buses. Normally only one block will drive each bit. */
5982 #else /* Word 0 - Little Endian */
5983 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
5984 buses. Normally only one block will drive each bit. */
5985 uint64_t reserved_36_63 : 28;
5986 #endif /* Word 0 - End */
5987 } s;
5988 /* struct bdk_dtx_mccx_enax_s cn; */
5989 };
5990 typedef union bdk_dtx_mccx_enax bdk_dtx_mccx_enax_t;
5991
5992 static inline uint64_t BDK_DTX_MCCX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
5993 static inline uint64_t BDK_DTX_MCCX_ENAX(unsigned long a, unsigned long b)
5994 {
5995 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
5996 return 0x87e0fe1e0020ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
5997 __bdk_csr_fatal("DTX_MCCX_ENAX", 2, a, b, 0, 0);
5998 }
5999
6000 #define typedef_BDK_DTX_MCCX_ENAX(a,b) bdk_dtx_mccx_enax_t
6001 #define bustype_BDK_DTX_MCCX_ENAX(a,b) BDK_CSR_TYPE_RSL
6002 #define basename_BDK_DTX_MCCX_ENAX(a,b) "DTX_MCCX_ENAX"
6003 #define busnum_BDK_DTX_MCCX_ENAX(a,b) (a)
6004 #define arguments_BDK_DTX_MCCX_ENAX(a,b) (a),(b),-1,-1
6005
6006 /**
6007 * Register (RSL) dtx_mcc#_mci#_bcst_rsp
6008 *
6009 * DTX MCC_MCI Control Register
6010 */
6011 union bdk_dtx_mccx_mcix_bcst_rsp
6012 {
6013 uint64_t u;
6014 struct bdk_dtx_mccx_mcix_bcst_rsp_s
6015 {
6016 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6017 uint64_t reserved_1_63 : 63;
6018 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
6019 #else /* Word 0 - Little Endian */
6020 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
6021 uint64_t reserved_1_63 : 63;
6022 #endif /* Word 0 - End */
6023 } s;
6024 /* struct bdk_dtx_mccx_mcix_bcst_rsp_s cn; */
6025 };
6026 typedef union bdk_dtx_mccx_mcix_bcst_rsp bdk_dtx_mccx_mcix_bcst_rsp_t;
6027
6028 static inline uint64_t BDK_DTX_MCCX_MCIX_BCST_RSP(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
6029 static inline uint64_t BDK_DTX_MCCX_MCIX_BCST_RSP(unsigned long a, unsigned long b)
6030 {
6031 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
6032 return 0x87e0fec00080ll + 0x18000ll * ((a) & 0x1) + 0x8000ll * ((b) & 0x1);
6033 __bdk_csr_fatal("DTX_MCCX_MCIX_BCST_RSP", 2, a, b, 0, 0);
6034 }
6035
6036 #define typedef_BDK_DTX_MCCX_MCIX_BCST_RSP(a,b) bdk_dtx_mccx_mcix_bcst_rsp_t
6037 #define bustype_BDK_DTX_MCCX_MCIX_BCST_RSP(a,b) BDK_CSR_TYPE_RSL
6038 #define basename_BDK_DTX_MCCX_MCIX_BCST_RSP(a,b) "DTX_MCCX_MCIX_BCST_RSP"
6039 #define busnum_BDK_DTX_MCCX_MCIX_BCST_RSP(a,b) (a)
6040 #define arguments_BDK_DTX_MCCX_MCIX_BCST_RSP(a,b) (a),(b),-1,-1
6041
6042 /**
6043 * Register (RSL) dtx_mcc#_mci#_ctl
6044 *
6045 * DTX MCC_MCI Control Register
6046 */
6047 union bdk_dtx_mccx_mcix_ctl
6048 {
6049 uint64_t u;
6050 struct bdk_dtx_mccx_mcix_ctl_s
6051 {
6052 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6053 uint64_t reserved_5_63 : 59;
6054 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
6055 uint64_t reserved_2_3 : 2;
6056 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
6057 debug data. Not applicable when software directly reads the DAT(0..1) registers.
6058 For diagnostic use only. */
6059 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
6060 #else /* Word 0 - Little Endian */
6061 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
6062 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
6063 debug data. Not applicable when software directly reads the DAT(0..1) registers.
6064 For diagnostic use only. */
6065 uint64_t reserved_2_3 : 2;
6066 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
6067 uint64_t reserved_5_63 : 59;
6068 #endif /* Word 0 - End */
6069 } s;
6070 /* struct bdk_dtx_mccx_mcix_ctl_s cn; */
6071 };
6072 typedef union bdk_dtx_mccx_mcix_ctl bdk_dtx_mccx_mcix_ctl_t;
6073
6074 static inline uint64_t BDK_DTX_MCCX_MCIX_CTL(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
6075 static inline uint64_t BDK_DTX_MCCX_MCIX_CTL(unsigned long a, unsigned long b)
6076 {
6077 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
6078 return 0x87e0fec00060ll + 0x18000ll * ((a) & 0x1) + 0x8000ll * ((b) & 0x1);
6079 __bdk_csr_fatal("DTX_MCCX_MCIX_CTL", 2, a, b, 0, 0);
6080 }
6081
6082 #define typedef_BDK_DTX_MCCX_MCIX_CTL(a,b) bdk_dtx_mccx_mcix_ctl_t
6083 #define bustype_BDK_DTX_MCCX_MCIX_CTL(a,b) BDK_CSR_TYPE_RSL
6084 #define basename_BDK_DTX_MCCX_MCIX_CTL(a,b) "DTX_MCCX_MCIX_CTL"
6085 #define busnum_BDK_DTX_MCCX_MCIX_CTL(a,b) (a)
6086 #define arguments_BDK_DTX_MCCX_MCIX_CTL(a,b) (a),(b),-1,-1
6087
6088 /**
6089 * Register (RSL) dtx_mcc#_mci#_dat#
6090 *
6091 * DTX MCC_MCI Raw Data Register
6092 */
6093 union bdk_dtx_mccx_mcix_datx
6094 {
6095 uint64_t u;
6096 struct bdk_dtx_mccx_mcix_datx_s
6097 {
6098 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6099 uint64_t reserved_36_63 : 28;
6100 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
6101 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
6102 #else /* Word 0 - Little Endian */
6103 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
6104 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
6105 uint64_t reserved_36_63 : 28;
6106 #endif /* Word 0 - End */
6107 } s;
6108 /* struct bdk_dtx_mccx_mcix_datx_s cn; */
6109 };
6110 typedef union bdk_dtx_mccx_mcix_datx bdk_dtx_mccx_mcix_datx_t;
6111
6112 static inline uint64_t BDK_DTX_MCCX_MCIX_DATX(unsigned long a, unsigned long b, unsigned long c) __attribute__ ((pure, always_inline));
6113 static inline uint64_t BDK_DTX_MCCX_MCIX_DATX(unsigned long a, unsigned long b, unsigned long c)
6114 {
6115 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1) && (c<=1)))
6116 return 0x87e0fec00040ll + 0x18000ll * ((a) & 0x1) + 0x8000ll * ((b) & 0x1) + 8ll * ((c) & 0x1);
6117 __bdk_csr_fatal("DTX_MCCX_MCIX_DATX", 3, a, b, c, 0);
6118 }
6119
6120 #define typedef_BDK_DTX_MCCX_MCIX_DATX(a,b,c) bdk_dtx_mccx_mcix_datx_t
6121 #define bustype_BDK_DTX_MCCX_MCIX_DATX(a,b,c) BDK_CSR_TYPE_RSL
6122 #define basename_BDK_DTX_MCCX_MCIX_DATX(a,b,c) "DTX_MCCX_MCIX_DATX"
6123 #define busnum_BDK_DTX_MCCX_MCIX_DATX(a,b,c) (a)
6124 #define arguments_BDK_DTX_MCCX_MCIX_DATX(a,b,c) (a),(b),(c),-1
6125
6126 /**
6127 * Register (RSL) dtx_mcc#_mci#_ena#
6128 *
6129 * DTX MCC_MCI Data Enable Register
6130 */
6131 union bdk_dtx_mccx_mcix_enax
6132 {
6133 uint64_t u;
6134 struct bdk_dtx_mccx_mcix_enax_s
6135 {
6136 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6137 uint64_t reserved_36_63 : 28;
6138 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
6139 buses. Normally only one block will drive each bit. */
6140 #else /* Word 0 - Little Endian */
6141 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
6142 buses. Normally only one block will drive each bit. */
6143 uint64_t reserved_36_63 : 28;
6144 #endif /* Word 0 - End */
6145 } s;
6146 /* struct bdk_dtx_mccx_mcix_enax_s cn; */
6147 };
6148 typedef union bdk_dtx_mccx_mcix_enax bdk_dtx_mccx_mcix_enax_t;
6149
6150 static inline uint64_t BDK_DTX_MCCX_MCIX_ENAX(unsigned long a, unsigned long b, unsigned long c) __attribute__ ((pure, always_inline));
6151 static inline uint64_t BDK_DTX_MCCX_MCIX_ENAX(unsigned long a, unsigned long b, unsigned long c)
6152 {
6153 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1) && (c<=1)))
6154 return 0x87e0fec00020ll + 0x18000ll * ((a) & 0x1) + 0x8000ll * ((b) & 0x1) + 8ll * ((c) & 0x1);
6155 __bdk_csr_fatal("DTX_MCCX_MCIX_ENAX", 3, a, b, c, 0);
6156 }
6157
6158 #define typedef_BDK_DTX_MCCX_MCIX_ENAX(a,b,c) bdk_dtx_mccx_mcix_enax_t
6159 #define bustype_BDK_DTX_MCCX_MCIX_ENAX(a,b,c) BDK_CSR_TYPE_RSL
6160 #define basename_BDK_DTX_MCCX_MCIX_ENAX(a,b,c) "DTX_MCCX_MCIX_ENAX"
6161 #define busnum_BDK_DTX_MCCX_MCIX_ENAX(a,b,c) (a)
6162 #define arguments_BDK_DTX_MCCX_MCIX_ENAX(a,b,c) (a),(b),(c),-1
6163
6164 /**
6165 * Register (RSL) dtx_mcc#_mci#_sel#
6166 *
6167 * DTX MCC_MCI Select Register
6168 */
6169 union bdk_dtx_mccx_mcix_selx
6170 {
6171 uint64_t u;
6172 struct bdk_dtx_mccx_mcix_selx_s
6173 {
6174 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6175 uint64_t reserved_24_63 : 40;
6176 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
6177 #else /* Word 0 - Little Endian */
6178 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
6179 uint64_t reserved_24_63 : 40;
6180 #endif /* Word 0 - End */
6181 } s;
6182 /* struct bdk_dtx_mccx_mcix_selx_s cn; */
6183 };
6184 typedef union bdk_dtx_mccx_mcix_selx bdk_dtx_mccx_mcix_selx_t;
6185
6186 static inline uint64_t BDK_DTX_MCCX_MCIX_SELX(unsigned long a, unsigned long b, unsigned long c) __attribute__ ((pure, always_inline));
6187 static inline uint64_t BDK_DTX_MCCX_MCIX_SELX(unsigned long a, unsigned long b, unsigned long c)
6188 {
6189 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1) && (c<=1)))
6190 return 0x87e0fec00000ll + 0x18000ll * ((a) & 0x1) + 0x8000ll * ((b) & 0x1) + 8ll * ((c) & 0x1);
6191 __bdk_csr_fatal("DTX_MCCX_MCIX_SELX", 3, a, b, c, 0);
6192 }
6193
6194 #define typedef_BDK_DTX_MCCX_MCIX_SELX(a,b,c) bdk_dtx_mccx_mcix_selx_t
6195 #define bustype_BDK_DTX_MCCX_MCIX_SELX(a,b,c) BDK_CSR_TYPE_RSL
6196 #define basename_BDK_DTX_MCCX_MCIX_SELX(a,b,c) "DTX_MCCX_MCIX_SELX"
6197 #define busnum_BDK_DTX_MCCX_MCIX_SELX(a,b,c) (a)
6198 #define arguments_BDK_DTX_MCCX_MCIX_SELX(a,b,c) (a),(b),(c),-1
6199
6200 /**
6201 * Register (RSL) dtx_mcc#_sel#
6202 *
6203 * DTX MCC Select Register
6204 */
6205 union bdk_dtx_mccx_selx
6206 {
6207 uint64_t u;
6208 struct bdk_dtx_mccx_selx_s
6209 {
6210 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6211 uint64_t reserved_24_63 : 40;
6212 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
6213 #else /* Word 0 - Little Endian */
6214 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
6215 uint64_t reserved_24_63 : 40;
6216 #endif /* Word 0 - End */
6217 } s;
6218 /* struct bdk_dtx_mccx_selx_s cn; */
6219 };
6220 typedef union bdk_dtx_mccx_selx bdk_dtx_mccx_selx_t;
6221
6222 static inline uint64_t BDK_DTX_MCCX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
6223 static inline uint64_t BDK_DTX_MCCX_SELX(unsigned long a, unsigned long b)
6224 {
6225 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
6226 return 0x87e0fe1e0000ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
6227 __bdk_csr_fatal("DTX_MCCX_SELX", 2, a, b, 0, 0);
6228 }
6229
6230 #define typedef_BDK_DTX_MCCX_SELX(a,b) bdk_dtx_mccx_selx_t
6231 #define bustype_BDK_DTX_MCCX_SELX(a,b) BDK_CSR_TYPE_RSL
6232 #define basename_BDK_DTX_MCCX_SELX(a,b) "DTX_MCCX_SELX"
6233 #define busnum_BDK_DTX_MCCX_SELX(a,b) (a)
6234 #define arguments_BDK_DTX_MCCX_SELX(a,b) (a),(b),-1,-1
6235
6236 /**
6237 * Register (RSL) dtx_mio_bcst_rsp
6238 *
6239 * DTX MIO Control Register
6240 */
6241 union bdk_dtx_mio_bcst_rsp
6242 {
6243 uint64_t u;
6244 struct bdk_dtx_mio_bcst_rsp_s
6245 {
6246 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6247 uint64_t reserved_1_63 : 63;
6248 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
6249 #else /* Word 0 - Little Endian */
6250 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
6251 uint64_t reserved_1_63 : 63;
6252 #endif /* Word 0 - End */
6253 } s;
6254 /* struct bdk_dtx_mio_bcst_rsp_s cn; */
6255 };
6256 typedef union bdk_dtx_mio_bcst_rsp bdk_dtx_mio_bcst_rsp_t;
6257
6258 #define BDK_DTX_MIO_BCST_RSP BDK_DTX_MIO_BCST_RSP_FUNC()
6259 static inline uint64_t BDK_DTX_MIO_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
6260 static inline uint64_t BDK_DTX_MIO_BCST_RSP_FUNC(void)
6261 {
6262 return 0x87e0fe000080ll;
6263 }
6264
6265 #define typedef_BDK_DTX_MIO_BCST_RSP bdk_dtx_mio_bcst_rsp_t
6266 #define bustype_BDK_DTX_MIO_BCST_RSP BDK_CSR_TYPE_RSL
6267 #define basename_BDK_DTX_MIO_BCST_RSP "DTX_MIO_BCST_RSP"
6268 #define busnum_BDK_DTX_MIO_BCST_RSP 0
6269 #define arguments_BDK_DTX_MIO_BCST_RSP -1,-1,-1,-1
6270
6271 /**
6272 * Register (RSL) dtx_mio_ctl
6273 *
6274 * DTX MIO Control Register
6275 */
6276 union bdk_dtx_mio_ctl
6277 {
6278 uint64_t u;
6279 struct bdk_dtx_mio_ctl_s
6280 {
6281 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6282 uint64_t reserved_5_63 : 59;
6283 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
6284 uint64_t reserved_2_3 : 2;
6285 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
6286 debug data. Not applicable when software directly reads the DAT(0..1) registers.
6287 For diagnostic use only. */
6288 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
6289 #else /* Word 0 - Little Endian */
6290 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
6291 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
6292 debug data. Not applicable when software directly reads the DAT(0..1) registers.
6293 For diagnostic use only. */
6294 uint64_t reserved_2_3 : 2;
6295 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
6296 uint64_t reserved_5_63 : 59;
6297 #endif /* Word 0 - End */
6298 } s;
6299 /* struct bdk_dtx_mio_ctl_s cn; */
6300 };
6301 typedef union bdk_dtx_mio_ctl bdk_dtx_mio_ctl_t;
6302
6303 #define BDK_DTX_MIO_CTL BDK_DTX_MIO_CTL_FUNC()
6304 static inline uint64_t BDK_DTX_MIO_CTL_FUNC(void) __attribute__ ((pure, always_inline));
6305 static inline uint64_t BDK_DTX_MIO_CTL_FUNC(void)
6306 {
6307 return 0x87e0fe000060ll;
6308 }
6309
6310 #define typedef_BDK_DTX_MIO_CTL bdk_dtx_mio_ctl_t
6311 #define bustype_BDK_DTX_MIO_CTL BDK_CSR_TYPE_RSL
6312 #define basename_BDK_DTX_MIO_CTL "DTX_MIO_CTL"
6313 #define busnum_BDK_DTX_MIO_CTL 0
6314 #define arguments_BDK_DTX_MIO_CTL -1,-1,-1,-1
6315
6316 /**
6317 * Register (RSL) dtx_mio_dat#
6318 *
6319 * DTX MIO Raw Data Register
6320 */
6321 union bdk_dtx_mio_datx
6322 {
6323 uint64_t u;
6324 struct bdk_dtx_mio_datx_s
6325 {
6326 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6327 uint64_t reserved_36_63 : 28;
6328 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
6329 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
6330 #else /* Word 0 - Little Endian */
6331 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
6332 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
6333 uint64_t reserved_36_63 : 28;
6334 #endif /* Word 0 - End */
6335 } s;
6336 /* struct bdk_dtx_mio_datx_s cn; */
6337 };
6338 typedef union bdk_dtx_mio_datx bdk_dtx_mio_datx_t;
6339
6340 static inline uint64_t BDK_DTX_MIO_DATX(unsigned long a) __attribute__ ((pure, always_inline));
6341 static inline uint64_t BDK_DTX_MIO_DATX(unsigned long a)
6342 {
6343 if (a<=1)
6344 return 0x87e0fe000040ll + 8ll * ((a) & 0x1);
6345 __bdk_csr_fatal("DTX_MIO_DATX", 1, a, 0, 0, 0);
6346 }
6347
6348 #define typedef_BDK_DTX_MIO_DATX(a) bdk_dtx_mio_datx_t
6349 #define bustype_BDK_DTX_MIO_DATX(a) BDK_CSR_TYPE_RSL
6350 #define basename_BDK_DTX_MIO_DATX(a) "DTX_MIO_DATX"
6351 #define busnum_BDK_DTX_MIO_DATX(a) (a)
6352 #define arguments_BDK_DTX_MIO_DATX(a) (a),-1,-1,-1
6353
6354 /**
6355 * Register (RSL) dtx_mio_ena#
6356 *
6357 * DTX MIO Data Enable Register
6358 */
6359 union bdk_dtx_mio_enax
6360 {
6361 uint64_t u;
6362 struct bdk_dtx_mio_enax_s
6363 {
6364 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6365 uint64_t reserved_36_63 : 28;
6366 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
6367 buses. Normally only one block will drive each bit. */
6368 #else /* Word 0 - Little Endian */
6369 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
6370 buses. Normally only one block will drive each bit. */
6371 uint64_t reserved_36_63 : 28;
6372 #endif /* Word 0 - End */
6373 } s;
6374 /* struct bdk_dtx_mio_enax_s cn; */
6375 };
6376 typedef union bdk_dtx_mio_enax bdk_dtx_mio_enax_t;
6377
6378 static inline uint64_t BDK_DTX_MIO_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
6379 static inline uint64_t BDK_DTX_MIO_ENAX(unsigned long a)
6380 {
6381 if (a<=1)
6382 return 0x87e0fe000020ll + 8ll * ((a) & 0x1);
6383 __bdk_csr_fatal("DTX_MIO_ENAX", 1, a, 0, 0, 0);
6384 }
6385
6386 #define typedef_BDK_DTX_MIO_ENAX(a) bdk_dtx_mio_enax_t
6387 #define bustype_BDK_DTX_MIO_ENAX(a) BDK_CSR_TYPE_RSL
6388 #define basename_BDK_DTX_MIO_ENAX(a) "DTX_MIO_ENAX"
6389 #define busnum_BDK_DTX_MIO_ENAX(a) (a)
6390 #define arguments_BDK_DTX_MIO_ENAX(a) (a),-1,-1,-1
6391
6392 /**
6393 * Register (RSL) dtx_mio_sel#
6394 *
6395 * DTX MIO Select Register
6396 */
6397 union bdk_dtx_mio_selx
6398 {
6399 uint64_t u;
6400 struct bdk_dtx_mio_selx_s
6401 {
6402 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6403 uint64_t reserved_24_63 : 40;
6404 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
6405 #else /* Word 0 - Little Endian */
6406 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
6407 uint64_t reserved_24_63 : 40;
6408 #endif /* Word 0 - End */
6409 } s;
6410 /* struct bdk_dtx_mio_selx_s cn; */
6411 };
6412 typedef union bdk_dtx_mio_selx bdk_dtx_mio_selx_t;
6413
6414 static inline uint64_t BDK_DTX_MIO_SELX(unsigned long a) __attribute__ ((pure, always_inline));
6415 static inline uint64_t BDK_DTX_MIO_SELX(unsigned long a)
6416 {
6417 if (a<=1)
6418 return 0x87e0fe000000ll + 8ll * ((a) & 0x1);
6419 __bdk_csr_fatal("DTX_MIO_SELX", 1, a, 0, 0, 0);
6420 }
6421
6422 #define typedef_BDK_DTX_MIO_SELX(a) bdk_dtx_mio_selx_t
6423 #define bustype_BDK_DTX_MIO_SELX(a) BDK_CSR_TYPE_RSL
6424 #define basename_BDK_DTX_MIO_SELX(a) "DTX_MIO_SELX"
6425 #define busnum_BDK_DTX_MIO_SELX(a) (a)
6426 #define arguments_BDK_DTX_MIO_SELX(a) (a),-1,-1,-1
6427
6428 /**
6429 * Register (RSL) dtx_mpi#_bcst_rsp
6430 *
6431 * DTX MPI Control Register
6432 */
6433 union bdk_dtx_mpix_bcst_rsp
6434 {
6435 uint64_t u;
6436 struct bdk_dtx_mpix_bcst_rsp_s
6437 {
6438 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6439 uint64_t reserved_1_63 : 63;
6440 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
6441 #else /* Word 0 - Little Endian */
6442 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
6443 uint64_t reserved_1_63 : 63;
6444 #endif /* Word 0 - End */
6445 } s;
6446 /* struct bdk_dtx_mpix_bcst_rsp_s cn; */
6447 };
6448 typedef union bdk_dtx_mpix_bcst_rsp bdk_dtx_mpix_bcst_rsp_t;
6449
6450 static inline uint64_t BDK_DTX_MPIX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
6451 static inline uint64_t BDK_DTX_MPIX_BCST_RSP(unsigned long a)
6452 {
6453 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
6454 return 0x87e0fe820080ll + 0x8000ll * ((a) & 0x1);
6455 __bdk_csr_fatal("DTX_MPIX_BCST_RSP", 1, a, 0, 0, 0);
6456 }
6457
6458 #define typedef_BDK_DTX_MPIX_BCST_RSP(a) bdk_dtx_mpix_bcst_rsp_t
6459 #define bustype_BDK_DTX_MPIX_BCST_RSP(a) BDK_CSR_TYPE_RSL
6460 #define basename_BDK_DTX_MPIX_BCST_RSP(a) "DTX_MPIX_BCST_RSP"
6461 #define busnum_BDK_DTX_MPIX_BCST_RSP(a) (a)
6462 #define arguments_BDK_DTX_MPIX_BCST_RSP(a) (a),-1,-1,-1
6463
6464 /**
6465 * Register (RSL) dtx_mpi#_ctl
6466 *
6467 * DTX MPI Control Register
6468 */
6469 union bdk_dtx_mpix_ctl
6470 {
6471 uint64_t u;
6472 struct bdk_dtx_mpix_ctl_s
6473 {
6474 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6475 uint64_t reserved_5_63 : 59;
6476 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
6477 uint64_t reserved_2_3 : 2;
6478 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
6479 debug data. Not applicable when software directly reads the DAT(0..1) registers.
6480 For diagnostic use only. */
6481 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
6482 #else /* Word 0 - Little Endian */
6483 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
6484 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
6485 debug data. Not applicable when software directly reads the DAT(0..1) registers.
6486 For diagnostic use only. */
6487 uint64_t reserved_2_3 : 2;
6488 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
6489 uint64_t reserved_5_63 : 59;
6490 #endif /* Word 0 - End */
6491 } s;
6492 /* struct bdk_dtx_mpix_ctl_s cn; */
6493 };
6494 typedef union bdk_dtx_mpix_ctl bdk_dtx_mpix_ctl_t;
6495
6496 static inline uint64_t BDK_DTX_MPIX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
6497 static inline uint64_t BDK_DTX_MPIX_CTL(unsigned long a)
6498 {
6499 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
6500 return 0x87e0fe820060ll + 0x8000ll * ((a) & 0x1);
6501 __bdk_csr_fatal("DTX_MPIX_CTL", 1, a, 0, 0, 0);
6502 }
6503
6504 #define typedef_BDK_DTX_MPIX_CTL(a) bdk_dtx_mpix_ctl_t
6505 #define bustype_BDK_DTX_MPIX_CTL(a) BDK_CSR_TYPE_RSL
6506 #define basename_BDK_DTX_MPIX_CTL(a) "DTX_MPIX_CTL"
6507 #define busnum_BDK_DTX_MPIX_CTL(a) (a)
6508 #define arguments_BDK_DTX_MPIX_CTL(a) (a),-1,-1,-1
6509
6510 /**
6511 * Register (RSL) dtx_mpi#_dat#
6512 *
6513 * DTX MPI Raw Data Register
6514 */
6515 union bdk_dtx_mpix_datx
6516 {
6517 uint64_t u;
6518 struct bdk_dtx_mpix_datx_s
6519 {
6520 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6521 uint64_t reserved_36_63 : 28;
6522 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
6523 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
6524 #else /* Word 0 - Little Endian */
6525 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
6526 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
6527 uint64_t reserved_36_63 : 28;
6528 #endif /* Word 0 - End */
6529 } s;
6530 /* struct bdk_dtx_mpix_datx_s cn; */
6531 };
6532 typedef union bdk_dtx_mpix_datx bdk_dtx_mpix_datx_t;
6533
6534 static inline uint64_t BDK_DTX_MPIX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
6535 static inline uint64_t BDK_DTX_MPIX_DATX(unsigned long a, unsigned long b)
6536 {
6537 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
6538 return 0x87e0fe820040ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
6539 __bdk_csr_fatal("DTX_MPIX_DATX", 2, a, b, 0, 0);
6540 }
6541
6542 #define typedef_BDK_DTX_MPIX_DATX(a,b) bdk_dtx_mpix_datx_t
6543 #define bustype_BDK_DTX_MPIX_DATX(a,b) BDK_CSR_TYPE_RSL
6544 #define basename_BDK_DTX_MPIX_DATX(a,b) "DTX_MPIX_DATX"
6545 #define busnum_BDK_DTX_MPIX_DATX(a,b) (a)
6546 #define arguments_BDK_DTX_MPIX_DATX(a,b) (a),(b),-1,-1
6547
6548 /**
6549 * Register (RSL) dtx_mpi#_ena#
6550 *
6551 * DTX MPI Data Enable Register
6552 */
6553 union bdk_dtx_mpix_enax
6554 {
6555 uint64_t u;
6556 struct bdk_dtx_mpix_enax_s
6557 {
6558 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6559 uint64_t reserved_36_63 : 28;
6560 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
6561 buses. Normally only one block will drive each bit. */
6562 #else /* Word 0 - Little Endian */
6563 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
6564 buses. Normally only one block will drive each bit. */
6565 uint64_t reserved_36_63 : 28;
6566 #endif /* Word 0 - End */
6567 } s;
6568 /* struct bdk_dtx_mpix_enax_s cn; */
6569 };
6570 typedef union bdk_dtx_mpix_enax bdk_dtx_mpix_enax_t;
6571
6572 static inline uint64_t BDK_DTX_MPIX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
6573 static inline uint64_t BDK_DTX_MPIX_ENAX(unsigned long a, unsigned long b)
6574 {
6575 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
6576 return 0x87e0fe820020ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
6577 __bdk_csr_fatal("DTX_MPIX_ENAX", 2, a, b, 0, 0);
6578 }
6579
6580 #define typedef_BDK_DTX_MPIX_ENAX(a,b) bdk_dtx_mpix_enax_t
6581 #define bustype_BDK_DTX_MPIX_ENAX(a,b) BDK_CSR_TYPE_RSL
6582 #define basename_BDK_DTX_MPIX_ENAX(a,b) "DTX_MPIX_ENAX"
6583 #define busnum_BDK_DTX_MPIX_ENAX(a,b) (a)
6584 #define arguments_BDK_DTX_MPIX_ENAX(a,b) (a),(b),-1,-1
6585
6586 /**
6587 * Register (RSL) dtx_mpi#_sel#
6588 *
6589 * DTX MPI Select Register
6590 */
6591 union bdk_dtx_mpix_selx
6592 {
6593 uint64_t u;
6594 struct bdk_dtx_mpix_selx_s
6595 {
6596 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6597 uint64_t reserved_24_63 : 40;
6598 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
6599 #else /* Word 0 - Little Endian */
6600 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
6601 uint64_t reserved_24_63 : 40;
6602 #endif /* Word 0 - End */
6603 } s;
6604 /* struct bdk_dtx_mpix_selx_s cn; */
6605 };
6606 typedef union bdk_dtx_mpix_selx bdk_dtx_mpix_selx_t;
6607
6608 static inline uint64_t BDK_DTX_MPIX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
6609 static inline uint64_t BDK_DTX_MPIX_SELX(unsigned long a, unsigned long b)
6610 {
6611 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
6612 return 0x87e0fe820000ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
6613 __bdk_csr_fatal("DTX_MPIX_SELX", 2, a, b, 0, 0);
6614 }
6615
6616 #define typedef_BDK_DTX_MPIX_SELX(a,b) bdk_dtx_mpix_selx_t
6617 #define bustype_BDK_DTX_MPIX_SELX(a,b) BDK_CSR_TYPE_RSL
6618 #define basename_BDK_DTX_MPIX_SELX(a,b) "DTX_MPIX_SELX"
6619 #define busnum_BDK_DTX_MPIX_SELX(a,b) (a)
6620 #define arguments_BDK_DTX_MPIX_SELX(a,b) (a),(b),-1,-1
6621
6622 /**
6623 * Register (RSL) dtx_mrml_bcst_rsp
6624 *
6625 * DTX MRML Control Register
6626 */
6627 union bdk_dtx_mrml_bcst_rsp
6628 {
6629 uint64_t u;
6630 struct bdk_dtx_mrml_bcst_rsp_s
6631 {
6632 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6633 uint64_t reserved_1_63 : 63;
6634 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
6635 #else /* Word 0 - Little Endian */
6636 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
6637 uint64_t reserved_1_63 : 63;
6638 #endif /* Word 0 - End */
6639 } s;
6640 /* struct bdk_dtx_mrml_bcst_rsp_s cn; */
6641 };
6642 typedef union bdk_dtx_mrml_bcst_rsp bdk_dtx_mrml_bcst_rsp_t;
6643
6644 #define BDK_DTX_MRML_BCST_RSP BDK_DTX_MRML_BCST_RSP_FUNC()
6645 static inline uint64_t BDK_DTX_MRML_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
6646 static inline uint64_t BDK_DTX_MRML_BCST_RSP_FUNC(void)
6647 {
6648 return 0x87e0fe7e0080ll;
6649 }
6650
6651 #define typedef_BDK_DTX_MRML_BCST_RSP bdk_dtx_mrml_bcst_rsp_t
6652 #define bustype_BDK_DTX_MRML_BCST_RSP BDK_CSR_TYPE_RSL
6653 #define basename_BDK_DTX_MRML_BCST_RSP "DTX_MRML_BCST_RSP"
6654 #define busnum_BDK_DTX_MRML_BCST_RSP 0
6655 #define arguments_BDK_DTX_MRML_BCST_RSP -1,-1,-1,-1
6656
6657 /**
6658 * Register (RSL) dtx_mrml_ctl
6659 *
6660 * DTX MRML Control Register
6661 */
6662 union bdk_dtx_mrml_ctl
6663 {
6664 uint64_t u;
6665 struct bdk_dtx_mrml_ctl_s
6666 {
6667 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6668 uint64_t reserved_5_63 : 59;
6669 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
6670 uint64_t reserved_2_3 : 2;
6671 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
6672 debug data. Not applicable when software directly reads the DAT(0..1) registers.
6673 For diagnostic use only. */
6674 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
6675 #else /* Word 0 - Little Endian */
6676 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
6677 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
6678 debug data. Not applicable when software directly reads the DAT(0..1) registers.
6679 For diagnostic use only. */
6680 uint64_t reserved_2_3 : 2;
6681 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
6682 uint64_t reserved_5_63 : 59;
6683 #endif /* Word 0 - End */
6684 } s;
6685 /* struct bdk_dtx_mrml_ctl_s cn; */
6686 };
6687 typedef union bdk_dtx_mrml_ctl bdk_dtx_mrml_ctl_t;
6688
6689 #define BDK_DTX_MRML_CTL BDK_DTX_MRML_CTL_FUNC()
6690 static inline uint64_t BDK_DTX_MRML_CTL_FUNC(void) __attribute__ ((pure, always_inline));
6691 static inline uint64_t BDK_DTX_MRML_CTL_FUNC(void)
6692 {
6693 return 0x87e0fe7e0060ll;
6694 }
6695
6696 #define typedef_BDK_DTX_MRML_CTL bdk_dtx_mrml_ctl_t
6697 #define bustype_BDK_DTX_MRML_CTL BDK_CSR_TYPE_RSL
6698 #define basename_BDK_DTX_MRML_CTL "DTX_MRML_CTL"
6699 #define busnum_BDK_DTX_MRML_CTL 0
6700 #define arguments_BDK_DTX_MRML_CTL -1,-1,-1,-1
6701
6702 /**
6703 * Register (RSL) dtx_mrml_dat#
6704 *
6705 * DTX MRML Raw Data Register
6706 */
6707 union bdk_dtx_mrml_datx
6708 {
6709 uint64_t u;
6710 struct bdk_dtx_mrml_datx_s
6711 {
6712 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6713 uint64_t reserved_36_63 : 28;
6714 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
6715 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
6716 #else /* Word 0 - Little Endian */
6717 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
6718 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
6719 uint64_t reserved_36_63 : 28;
6720 #endif /* Word 0 - End */
6721 } s;
6722 /* struct bdk_dtx_mrml_datx_s cn; */
6723 };
6724 typedef union bdk_dtx_mrml_datx bdk_dtx_mrml_datx_t;
6725
6726 static inline uint64_t BDK_DTX_MRML_DATX(unsigned long a) __attribute__ ((pure, always_inline));
6727 static inline uint64_t BDK_DTX_MRML_DATX(unsigned long a)
6728 {
6729 if (a<=1)
6730 return 0x87e0fe7e0040ll + 8ll * ((a) & 0x1);
6731 __bdk_csr_fatal("DTX_MRML_DATX", 1, a, 0, 0, 0);
6732 }
6733
6734 #define typedef_BDK_DTX_MRML_DATX(a) bdk_dtx_mrml_datx_t
6735 #define bustype_BDK_DTX_MRML_DATX(a) BDK_CSR_TYPE_RSL
6736 #define basename_BDK_DTX_MRML_DATX(a) "DTX_MRML_DATX"
6737 #define busnum_BDK_DTX_MRML_DATX(a) (a)
6738 #define arguments_BDK_DTX_MRML_DATX(a) (a),-1,-1,-1
6739
6740 /**
6741 * Register (RSL) dtx_mrml_ena#
6742 *
6743 * DTX MRML Data Enable Register
6744 */
6745 union bdk_dtx_mrml_enax
6746 {
6747 uint64_t u;
6748 struct bdk_dtx_mrml_enax_s
6749 {
6750 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6751 uint64_t reserved_36_63 : 28;
6752 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
6753 buses. Normally only one block will drive each bit. */
6754 #else /* Word 0 - Little Endian */
6755 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
6756 buses. Normally only one block will drive each bit. */
6757 uint64_t reserved_36_63 : 28;
6758 #endif /* Word 0 - End */
6759 } s;
6760 /* struct bdk_dtx_mrml_enax_s cn; */
6761 };
6762 typedef union bdk_dtx_mrml_enax bdk_dtx_mrml_enax_t;
6763
6764 static inline uint64_t BDK_DTX_MRML_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
6765 static inline uint64_t BDK_DTX_MRML_ENAX(unsigned long a)
6766 {
6767 if (a<=1)
6768 return 0x87e0fe7e0020ll + 8ll * ((a) & 0x1);
6769 __bdk_csr_fatal("DTX_MRML_ENAX", 1, a, 0, 0, 0);
6770 }
6771
6772 #define typedef_BDK_DTX_MRML_ENAX(a) bdk_dtx_mrml_enax_t
6773 #define bustype_BDK_DTX_MRML_ENAX(a) BDK_CSR_TYPE_RSL
6774 #define basename_BDK_DTX_MRML_ENAX(a) "DTX_MRML_ENAX"
6775 #define busnum_BDK_DTX_MRML_ENAX(a) (a)
6776 #define arguments_BDK_DTX_MRML_ENAX(a) (a),-1,-1,-1
6777
6778 /**
6779 * Register (RSL) dtx_mrml_sel#
6780 *
6781 * DTX MRML Select Register
6782 */
6783 union bdk_dtx_mrml_selx
6784 {
6785 uint64_t u;
6786 struct bdk_dtx_mrml_selx_s
6787 {
6788 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6789 uint64_t reserved_24_63 : 40;
6790 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
6791 #else /* Word 0 - Little Endian */
6792 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
6793 uint64_t reserved_24_63 : 40;
6794 #endif /* Word 0 - End */
6795 } s;
6796 /* struct bdk_dtx_mrml_selx_s cn; */
6797 };
6798 typedef union bdk_dtx_mrml_selx bdk_dtx_mrml_selx_t;
6799
6800 static inline uint64_t BDK_DTX_MRML_SELX(unsigned long a) __attribute__ ((pure, always_inline));
6801 static inline uint64_t BDK_DTX_MRML_SELX(unsigned long a)
6802 {
6803 if (a<=1)
6804 return 0x87e0fe7e0000ll + 8ll * ((a) & 0x1);
6805 __bdk_csr_fatal("DTX_MRML_SELX", 1, a, 0, 0, 0);
6806 }
6807
6808 #define typedef_BDK_DTX_MRML_SELX(a) bdk_dtx_mrml_selx_t
6809 #define bustype_BDK_DTX_MRML_SELX(a) BDK_CSR_TYPE_RSL
6810 #define basename_BDK_DTX_MRML_SELX(a) "DTX_MRML_SELX"
6811 #define busnum_BDK_DTX_MRML_SELX(a) (a)
6812 #define arguments_BDK_DTX_MRML_SELX(a) (a),-1,-1,-1
6813
6814 /**
6815 * Register (RSL) dtx_ncsi_bcst_rsp
6816 *
6817 * DTX NCSI Control Register
6818 */
6819 union bdk_dtx_ncsi_bcst_rsp
6820 {
6821 uint64_t u;
6822 struct bdk_dtx_ncsi_bcst_rsp_s
6823 {
6824 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6825 uint64_t reserved_1_63 : 63;
6826 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
6827 #else /* Word 0 - Little Endian */
6828 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
6829 uint64_t reserved_1_63 : 63;
6830 #endif /* Word 0 - End */
6831 } s;
6832 /* struct bdk_dtx_ncsi_bcst_rsp_s cn; */
6833 };
6834 typedef union bdk_dtx_ncsi_bcst_rsp bdk_dtx_ncsi_bcst_rsp_t;
6835
6836 #define BDK_DTX_NCSI_BCST_RSP BDK_DTX_NCSI_BCST_RSP_FUNC()
6837 static inline uint64_t BDK_DTX_NCSI_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
6838 static inline uint64_t BDK_DTX_NCSI_BCST_RSP_FUNC(void)
6839 {
6840 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
6841 return 0x87e0fe058080ll;
6842 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX))
6843 return 0x87e0fe058080ll;
6844 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
6845 return 0x87e0fe058080ll;
6846 __bdk_csr_fatal("DTX_NCSI_BCST_RSP", 0, 0, 0, 0, 0);
6847 }
6848
6849 #define typedef_BDK_DTX_NCSI_BCST_RSP bdk_dtx_ncsi_bcst_rsp_t
6850 #define bustype_BDK_DTX_NCSI_BCST_RSP BDK_CSR_TYPE_RSL
6851 #define basename_BDK_DTX_NCSI_BCST_RSP "DTX_NCSI_BCST_RSP"
6852 #define busnum_BDK_DTX_NCSI_BCST_RSP 0
6853 #define arguments_BDK_DTX_NCSI_BCST_RSP -1,-1,-1,-1
6854
6855 /**
6856 * Register (RSL) dtx_ncsi_ctl
6857 *
6858 * DTX NCSI Control Register
6859 */
6860 union bdk_dtx_ncsi_ctl
6861 {
6862 uint64_t u;
6863 struct bdk_dtx_ncsi_ctl_s
6864 {
6865 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6866 uint64_t reserved_5_63 : 59;
6867 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
6868 uint64_t reserved_2_3 : 2;
6869 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
6870 debug data. Not applicable when software directly reads the DAT(0..1) registers.
6871 For diagnostic use only. */
6872 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
6873 #else /* Word 0 - Little Endian */
6874 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
6875 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
6876 debug data. Not applicable when software directly reads the DAT(0..1) registers.
6877 For diagnostic use only. */
6878 uint64_t reserved_2_3 : 2;
6879 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
6880 uint64_t reserved_5_63 : 59;
6881 #endif /* Word 0 - End */
6882 } s;
6883 /* struct bdk_dtx_ncsi_ctl_s cn; */
6884 };
6885 typedef union bdk_dtx_ncsi_ctl bdk_dtx_ncsi_ctl_t;
6886
6887 #define BDK_DTX_NCSI_CTL BDK_DTX_NCSI_CTL_FUNC()
6888 static inline uint64_t BDK_DTX_NCSI_CTL_FUNC(void) __attribute__ ((pure, always_inline));
6889 static inline uint64_t BDK_DTX_NCSI_CTL_FUNC(void)
6890 {
6891 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
6892 return 0x87e0fe058060ll;
6893 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX))
6894 return 0x87e0fe058060ll;
6895 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
6896 return 0x87e0fe058060ll;
6897 __bdk_csr_fatal("DTX_NCSI_CTL", 0, 0, 0, 0, 0);
6898 }
6899
6900 #define typedef_BDK_DTX_NCSI_CTL bdk_dtx_ncsi_ctl_t
6901 #define bustype_BDK_DTX_NCSI_CTL BDK_CSR_TYPE_RSL
6902 #define basename_BDK_DTX_NCSI_CTL "DTX_NCSI_CTL"
6903 #define busnum_BDK_DTX_NCSI_CTL 0
6904 #define arguments_BDK_DTX_NCSI_CTL -1,-1,-1,-1
6905
6906 /**
6907 * Register (RSL) dtx_ncsi_dat#
6908 *
6909 * DTX NCSI Raw Data Register
6910 */
6911 union bdk_dtx_ncsi_datx
6912 {
6913 uint64_t u;
6914 struct bdk_dtx_ncsi_datx_s
6915 {
6916 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6917 uint64_t reserved_36_63 : 28;
6918 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
6919 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
6920 #else /* Word 0 - Little Endian */
6921 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
6922 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
6923 uint64_t reserved_36_63 : 28;
6924 #endif /* Word 0 - End */
6925 } s;
6926 /* struct bdk_dtx_ncsi_datx_s cn; */
6927 };
6928 typedef union bdk_dtx_ncsi_datx bdk_dtx_ncsi_datx_t;
6929
6930 static inline uint64_t BDK_DTX_NCSI_DATX(unsigned long a) __attribute__ ((pure, always_inline));
6931 static inline uint64_t BDK_DTX_NCSI_DATX(unsigned long a)
6932 {
6933 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
6934 return 0x87e0fe058040ll + 8ll * ((a) & 0x1);
6935 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
6936 return 0x87e0fe058040ll + 8ll * ((a) & 0x1);
6937 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
6938 return 0x87e0fe058040ll + 8ll * ((a) & 0x1);
6939 __bdk_csr_fatal("DTX_NCSI_DATX", 1, a, 0, 0, 0);
6940 }
6941
6942 #define typedef_BDK_DTX_NCSI_DATX(a) bdk_dtx_ncsi_datx_t
6943 #define bustype_BDK_DTX_NCSI_DATX(a) BDK_CSR_TYPE_RSL
6944 #define basename_BDK_DTX_NCSI_DATX(a) "DTX_NCSI_DATX"
6945 #define busnum_BDK_DTX_NCSI_DATX(a) (a)
6946 #define arguments_BDK_DTX_NCSI_DATX(a) (a),-1,-1,-1
6947
6948 /**
6949 * Register (RSL) dtx_ncsi_ena#
6950 *
6951 * DTX NCSI Data Enable Register
6952 */
6953 union bdk_dtx_ncsi_enax
6954 {
6955 uint64_t u;
6956 struct bdk_dtx_ncsi_enax_s
6957 {
6958 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
6959 uint64_t reserved_36_63 : 28;
6960 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
6961 buses. Normally only one block will drive each bit. */
6962 #else /* Word 0 - Little Endian */
6963 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
6964 buses. Normally only one block will drive each bit. */
6965 uint64_t reserved_36_63 : 28;
6966 #endif /* Word 0 - End */
6967 } s;
6968 /* struct bdk_dtx_ncsi_enax_s cn; */
6969 };
6970 typedef union bdk_dtx_ncsi_enax bdk_dtx_ncsi_enax_t;
6971
6972 static inline uint64_t BDK_DTX_NCSI_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
6973 static inline uint64_t BDK_DTX_NCSI_ENAX(unsigned long a)
6974 {
6975 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
6976 return 0x87e0fe058020ll + 8ll * ((a) & 0x1);
6977 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
6978 return 0x87e0fe058020ll + 8ll * ((a) & 0x1);
6979 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
6980 return 0x87e0fe058020ll + 8ll * ((a) & 0x1);
6981 __bdk_csr_fatal("DTX_NCSI_ENAX", 1, a, 0, 0, 0);
6982 }
6983
6984 #define typedef_BDK_DTX_NCSI_ENAX(a) bdk_dtx_ncsi_enax_t
6985 #define bustype_BDK_DTX_NCSI_ENAX(a) BDK_CSR_TYPE_RSL
6986 #define basename_BDK_DTX_NCSI_ENAX(a) "DTX_NCSI_ENAX"
6987 #define busnum_BDK_DTX_NCSI_ENAX(a) (a)
6988 #define arguments_BDK_DTX_NCSI_ENAX(a) (a),-1,-1,-1
6989
6990 /**
6991 * Register (RSL) dtx_ncsi_sel#
6992 *
6993 * DTX NCSI Select Register
6994 */
6995 union bdk_dtx_ncsi_selx
6996 {
6997 uint64_t u;
6998 struct bdk_dtx_ncsi_selx_s
6999 {
7000 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7001 uint64_t reserved_24_63 : 40;
7002 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
7003 #else /* Word 0 - Little Endian */
7004 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
7005 uint64_t reserved_24_63 : 40;
7006 #endif /* Word 0 - End */
7007 } s;
7008 /* struct bdk_dtx_ncsi_selx_s cn; */
7009 };
7010 typedef union bdk_dtx_ncsi_selx bdk_dtx_ncsi_selx_t;
7011
7012 static inline uint64_t BDK_DTX_NCSI_SELX(unsigned long a) __attribute__ ((pure, always_inline));
7013 static inline uint64_t BDK_DTX_NCSI_SELX(unsigned long a)
7014 {
7015 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
7016 return 0x87e0fe058000ll + 8ll * ((a) & 0x1);
7017 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
7018 return 0x87e0fe058000ll + 8ll * ((a) & 0x1);
7019 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
7020 return 0x87e0fe058000ll + 8ll * ((a) & 0x1);
7021 __bdk_csr_fatal("DTX_NCSI_SELX", 1, a, 0, 0, 0);
7022 }
7023
7024 #define typedef_BDK_DTX_NCSI_SELX(a) bdk_dtx_ncsi_selx_t
7025 #define bustype_BDK_DTX_NCSI_SELX(a) BDK_CSR_TYPE_RSL
7026 #define basename_BDK_DTX_NCSI_SELX(a) "DTX_NCSI_SELX"
7027 #define busnum_BDK_DTX_NCSI_SELX(a) (a)
7028 #define arguments_BDK_DTX_NCSI_SELX(a) (a),-1,-1,-1
7029
7030 /**
7031 * Register (RSL) dtx_nic_bcst_rsp
7032 *
7033 * DTX NIC Control Register
7034 */
7035 union bdk_dtx_nic_bcst_rsp
7036 {
7037 uint64_t u;
7038 struct bdk_dtx_nic_bcst_rsp_s
7039 {
7040 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7041 uint64_t reserved_1_63 : 63;
7042 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
7043 #else /* Word 0 - Little Endian */
7044 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
7045 uint64_t reserved_1_63 : 63;
7046 #endif /* Word 0 - End */
7047 } s;
7048 /* struct bdk_dtx_nic_bcst_rsp_s cn; */
7049 };
7050 typedef union bdk_dtx_nic_bcst_rsp bdk_dtx_nic_bcst_rsp_t;
7051
7052 #define BDK_DTX_NIC_BCST_RSP BDK_DTX_NIC_BCST_RSP_FUNC()
7053 static inline uint64_t BDK_DTX_NIC_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
7054 static inline uint64_t BDK_DTX_NIC_BCST_RSP_FUNC(void)
7055 {
7056 if (CAVIUM_IS_MODEL(CAVIUM_CN8XXX))
7057 return 0x87e0fea18080ll;
7058 __bdk_csr_fatal("DTX_NIC_BCST_RSP", 0, 0, 0, 0, 0);
7059 }
7060
7061 #define typedef_BDK_DTX_NIC_BCST_RSP bdk_dtx_nic_bcst_rsp_t
7062 #define bustype_BDK_DTX_NIC_BCST_RSP BDK_CSR_TYPE_RSL
7063 #define basename_BDK_DTX_NIC_BCST_RSP "DTX_NIC_BCST_RSP"
7064 #define busnum_BDK_DTX_NIC_BCST_RSP 0
7065 #define arguments_BDK_DTX_NIC_BCST_RSP -1,-1,-1,-1
7066
7067 /**
7068 * Register (RSL) dtx_nic_ctl
7069 *
7070 * DTX NIC Control Register
7071 */
7072 union bdk_dtx_nic_ctl
7073 {
7074 uint64_t u;
7075 struct bdk_dtx_nic_ctl_s
7076 {
7077 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7078 uint64_t reserved_5_63 : 59;
7079 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
7080 uint64_t reserved_2_3 : 2;
7081 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
7082 debug data. Not applicable when software directly reads the DAT(0..1) registers.
7083 For diagnostic use only. */
7084 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
7085 #else /* Word 0 - Little Endian */
7086 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
7087 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
7088 debug data. Not applicable when software directly reads the DAT(0..1) registers.
7089 For diagnostic use only. */
7090 uint64_t reserved_2_3 : 2;
7091 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
7092 uint64_t reserved_5_63 : 59;
7093 #endif /* Word 0 - End */
7094 } s;
7095 /* struct bdk_dtx_nic_ctl_s cn; */
7096 };
7097 typedef union bdk_dtx_nic_ctl bdk_dtx_nic_ctl_t;
7098
7099 #define BDK_DTX_NIC_CTL BDK_DTX_NIC_CTL_FUNC()
7100 static inline uint64_t BDK_DTX_NIC_CTL_FUNC(void) __attribute__ ((pure, always_inline));
7101 static inline uint64_t BDK_DTX_NIC_CTL_FUNC(void)
7102 {
7103 if (CAVIUM_IS_MODEL(CAVIUM_CN8XXX))
7104 return 0x87e0fea18060ll;
7105 __bdk_csr_fatal("DTX_NIC_CTL", 0, 0, 0, 0, 0);
7106 }
7107
7108 #define typedef_BDK_DTX_NIC_CTL bdk_dtx_nic_ctl_t
7109 #define bustype_BDK_DTX_NIC_CTL BDK_CSR_TYPE_RSL
7110 #define basename_BDK_DTX_NIC_CTL "DTX_NIC_CTL"
7111 #define busnum_BDK_DTX_NIC_CTL 0
7112 #define arguments_BDK_DTX_NIC_CTL -1,-1,-1,-1
7113
7114 /**
7115 * Register (RSL) dtx_nic_dat#
7116 *
7117 * DTX NIC Raw Data Register
7118 */
7119 union bdk_dtx_nic_datx
7120 {
7121 uint64_t u;
7122 struct bdk_dtx_nic_datx_s
7123 {
7124 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7125 uint64_t reserved_36_63 : 28;
7126 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
7127 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
7128 #else /* Word 0 - Little Endian */
7129 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
7130 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
7131 uint64_t reserved_36_63 : 28;
7132 #endif /* Word 0 - End */
7133 } s;
7134 /* struct bdk_dtx_nic_datx_s cn; */
7135 };
7136 typedef union bdk_dtx_nic_datx bdk_dtx_nic_datx_t;
7137
7138 static inline uint64_t BDK_DTX_NIC_DATX(unsigned long a) __attribute__ ((pure, always_inline));
7139 static inline uint64_t BDK_DTX_NIC_DATX(unsigned long a)
7140 {
7141 if (CAVIUM_IS_MODEL(CAVIUM_CN8XXX) && (a<=1))
7142 return 0x87e0fea18040ll + 8ll * ((a) & 0x1);
7143 __bdk_csr_fatal("DTX_NIC_DATX", 1, a, 0, 0, 0);
7144 }
7145
7146 #define typedef_BDK_DTX_NIC_DATX(a) bdk_dtx_nic_datx_t
7147 #define bustype_BDK_DTX_NIC_DATX(a) BDK_CSR_TYPE_RSL
7148 #define basename_BDK_DTX_NIC_DATX(a) "DTX_NIC_DATX"
7149 #define busnum_BDK_DTX_NIC_DATX(a) (a)
7150 #define arguments_BDK_DTX_NIC_DATX(a) (a),-1,-1,-1
7151
7152 /**
7153 * Register (RSL) dtx_nic_ena#
7154 *
7155 * DTX NIC Data Enable Register
7156 */
7157 union bdk_dtx_nic_enax
7158 {
7159 uint64_t u;
7160 struct bdk_dtx_nic_enax_s
7161 {
7162 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7163 uint64_t reserved_36_63 : 28;
7164 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
7165 buses. Normally only one block will drive each bit. */
7166 #else /* Word 0 - Little Endian */
7167 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
7168 buses. Normally only one block will drive each bit. */
7169 uint64_t reserved_36_63 : 28;
7170 #endif /* Word 0 - End */
7171 } s;
7172 /* struct bdk_dtx_nic_enax_s cn; */
7173 };
7174 typedef union bdk_dtx_nic_enax bdk_dtx_nic_enax_t;
7175
7176 static inline uint64_t BDK_DTX_NIC_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
7177 static inline uint64_t BDK_DTX_NIC_ENAX(unsigned long a)
7178 {
7179 if (CAVIUM_IS_MODEL(CAVIUM_CN8XXX) && (a<=1))
7180 return 0x87e0fea18020ll + 8ll * ((a) & 0x1);
7181 __bdk_csr_fatal("DTX_NIC_ENAX", 1, a, 0, 0, 0);
7182 }
7183
7184 #define typedef_BDK_DTX_NIC_ENAX(a) bdk_dtx_nic_enax_t
7185 #define bustype_BDK_DTX_NIC_ENAX(a) BDK_CSR_TYPE_RSL
7186 #define basename_BDK_DTX_NIC_ENAX(a) "DTX_NIC_ENAX"
7187 #define busnum_BDK_DTX_NIC_ENAX(a) (a)
7188 #define arguments_BDK_DTX_NIC_ENAX(a) (a),-1,-1,-1
7189
7190 /**
7191 * Register (RSL) dtx_nic_sel#
7192 *
7193 * DTX NIC Select Register
7194 */
7195 union bdk_dtx_nic_selx
7196 {
7197 uint64_t u;
7198 struct bdk_dtx_nic_selx_s
7199 {
7200 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7201 uint64_t reserved_24_63 : 40;
7202 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
7203 #else /* Word 0 - Little Endian */
7204 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
7205 uint64_t reserved_24_63 : 40;
7206 #endif /* Word 0 - End */
7207 } s;
7208 /* struct bdk_dtx_nic_selx_s cn; */
7209 };
7210 typedef union bdk_dtx_nic_selx bdk_dtx_nic_selx_t;
7211
7212 static inline uint64_t BDK_DTX_NIC_SELX(unsigned long a) __attribute__ ((pure, always_inline));
7213 static inline uint64_t BDK_DTX_NIC_SELX(unsigned long a)
7214 {
7215 if (CAVIUM_IS_MODEL(CAVIUM_CN8XXX) && (a<=1))
7216 return 0x87e0fea18000ll + 8ll * ((a) & 0x1);
7217 __bdk_csr_fatal("DTX_NIC_SELX", 1, a, 0, 0, 0);
7218 }
7219
7220 #define typedef_BDK_DTX_NIC_SELX(a) bdk_dtx_nic_selx_t
7221 #define bustype_BDK_DTX_NIC_SELX(a) BDK_CSR_TYPE_RSL
7222 #define basename_BDK_DTX_NIC_SELX(a) "DTX_NIC_SELX"
7223 #define busnum_BDK_DTX_NIC_SELX(a) (a)
7224 #define arguments_BDK_DTX_NIC_SELX(a) (a),-1,-1,-1
7225
7226 /**
7227 * Register (RSL) dtx_npc_bcst_rsp
7228 *
7229 * DTX NPC Control Register
7230 */
7231 union bdk_dtx_npc_bcst_rsp
7232 {
7233 uint64_t u;
7234 struct bdk_dtx_npc_bcst_rsp_s
7235 {
7236 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7237 uint64_t reserved_1_63 : 63;
7238 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
7239 #else /* Word 0 - Little Endian */
7240 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
7241 uint64_t reserved_1_63 : 63;
7242 #endif /* Word 0 - End */
7243 } s;
7244 /* struct bdk_dtx_npc_bcst_rsp_s cn; */
7245 };
7246 typedef union bdk_dtx_npc_bcst_rsp bdk_dtx_npc_bcst_rsp_t;
7247
7248 #define BDK_DTX_NPC_BCST_RSP BDK_DTX_NPC_BCST_RSP_FUNC()
7249 static inline uint64_t BDK_DTX_NPC_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
7250 static inline uint64_t BDK_DTX_NPC_BCST_RSP_FUNC(void)
7251 {
7252 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
7253 return 0x87e0fe2d0080ll;
7254 __bdk_csr_fatal("DTX_NPC_BCST_RSP", 0, 0, 0, 0, 0);
7255 }
7256
7257 #define typedef_BDK_DTX_NPC_BCST_RSP bdk_dtx_npc_bcst_rsp_t
7258 #define bustype_BDK_DTX_NPC_BCST_RSP BDK_CSR_TYPE_RSL
7259 #define basename_BDK_DTX_NPC_BCST_RSP "DTX_NPC_BCST_RSP"
7260 #define busnum_BDK_DTX_NPC_BCST_RSP 0
7261 #define arguments_BDK_DTX_NPC_BCST_RSP -1,-1,-1,-1
7262
7263 /**
7264 * Register (RSL) dtx_npc_ctl
7265 *
7266 * DTX NPC Control Register
7267 */
7268 union bdk_dtx_npc_ctl
7269 {
7270 uint64_t u;
7271 struct bdk_dtx_npc_ctl_s
7272 {
7273 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7274 uint64_t reserved_5_63 : 59;
7275 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
7276 uint64_t reserved_2_3 : 2;
7277 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
7278 debug data. Not applicable when software directly reads the DAT(0..1) registers.
7279 For diagnostic use only. */
7280 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
7281 #else /* Word 0 - Little Endian */
7282 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
7283 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
7284 debug data. Not applicable when software directly reads the DAT(0..1) registers.
7285 For diagnostic use only. */
7286 uint64_t reserved_2_3 : 2;
7287 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
7288 uint64_t reserved_5_63 : 59;
7289 #endif /* Word 0 - End */
7290 } s;
7291 /* struct bdk_dtx_npc_ctl_s cn; */
7292 };
7293 typedef union bdk_dtx_npc_ctl bdk_dtx_npc_ctl_t;
7294
7295 #define BDK_DTX_NPC_CTL BDK_DTX_NPC_CTL_FUNC()
7296 static inline uint64_t BDK_DTX_NPC_CTL_FUNC(void) __attribute__ ((pure, always_inline));
7297 static inline uint64_t BDK_DTX_NPC_CTL_FUNC(void)
7298 {
7299 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
7300 return 0x87e0fe2d0060ll;
7301 __bdk_csr_fatal("DTX_NPC_CTL", 0, 0, 0, 0, 0);
7302 }
7303
7304 #define typedef_BDK_DTX_NPC_CTL bdk_dtx_npc_ctl_t
7305 #define bustype_BDK_DTX_NPC_CTL BDK_CSR_TYPE_RSL
7306 #define basename_BDK_DTX_NPC_CTL "DTX_NPC_CTL"
7307 #define busnum_BDK_DTX_NPC_CTL 0
7308 #define arguments_BDK_DTX_NPC_CTL -1,-1,-1,-1
7309
7310 /**
7311 * Register (RSL) dtx_npc_dat#
7312 *
7313 * DTX NPC Raw Data Register
7314 */
7315 union bdk_dtx_npc_datx
7316 {
7317 uint64_t u;
7318 struct bdk_dtx_npc_datx_s
7319 {
7320 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7321 uint64_t reserved_36_63 : 28;
7322 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
7323 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
7324 #else /* Word 0 - Little Endian */
7325 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
7326 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
7327 uint64_t reserved_36_63 : 28;
7328 #endif /* Word 0 - End */
7329 } s;
7330 /* struct bdk_dtx_npc_datx_s cn; */
7331 };
7332 typedef union bdk_dtx_npc_datx bdk_dtx_npc_datx_t;
7333
7334 static inline uint64_t BDK_DTX_NPC_DATX(unsigned long a) __attribute__ ((pure, always_inline));
7335 static inline uint64_t BDK_DTX_NPC_DATX(unsigned long a)
7336 {
7337 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
7338 return 0x87e0fe2d0040ll + 8ll * ((a) & 0x1);
7339 __bdk_csr_fatal("DTX_NPC_DATX", 1, a, 0, 0, 0);
7340 }
7341
7342 #define typedef_BDK_DTX_NPC_DATX(a) bdk_dtx_npc_datx_t
7343 #define bustype_BDK_DTX_NPC_DATX(a) BDK_CSR_TYPE_RSL
7344 #define basename_BDK_DTX_NPC_DATX(a) "DTX_NPC_DATX"
7345 #define busnum_BDK_DTX_NPC_DATX(a) (a)
7346 #define arguments_BDK_DTX_NPC_DATX(a) (a),-1,-1,-1
7347
7348 /**
7349 * Register (RSL) dtx_npc_ena#
7350 *
7351 * DTX NPC Data Enable Register
7352 */
7353 union bdk_dtx_npc_enax
7354 {
7355 uint64_t u;
7356 struct bdk_dtx_npc_enax_s
7357 {
7358 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7359 uint64_t reserved_36_63 : 28;
7360 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
7361 buses. Normally only one block will drive each bit. */
7362 #else /* Word 0 - Little Endian */
7363 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
7364 buses. Normally only one block will drive each bit. */
7365 uint64_t reserved_36_63 : 28;
7366 #endif /* Word 0 - End */
7367 } s;
7368 /* struct bdk_dtx_npc_enax_s cn; */
7369 };
7370 typedef union bdk_dtx_npc_enax bdk_dtx_npc_enax_t;
7371
7372 static inline uint64_t BDK_DTX_NPC_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
7373 static inline uint64_t BDK_DTX_NPC_ENAX(unsigned long a)
7374 {
7375 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
7376 return 0x87e0fe2d0020ll + 8ll * ((a) & 0x1);
7377 __bdk_csr_fatal("DTX_NPC_ENAX", 1, a, 0, 0, 0);
7378 }
7379
7380 #define typedef_BDK_DTX_NPC_ENAX(a) bdk_dtx_npc_enax_t
7381 #define bustype_BDK_DTX_NPC_ENAX(a) BDK_CSR_TYPE_RSL
7382 #define basename_BDK_DTX_NPC_ENAX(a) "DTX_NPC_ENAX"
7383 #define busnum_BDK_DTX_NPC_ENAX(a) (a)
7384 #define arguments_BDK_DTX_NPC_ENAX(a) (a),-1,-1,-1
7385
7386 /**
7387 * Register (RSL) dtx_npc_sel#
7388 *
7389 * DTX NPC Select Register
7390 */
7391 union bdk_dtx_npc_selx
7392 {
7393 uint64_t u;
7394 struct bdk_dtx_npc_selx_s
7395 {
7396 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7397 uint64_t reserved_24_63 : 40;
7398 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
7399 #else /* Word 0 - Little Endian */
7400 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
7401 uint64_t reserved_24_63 : 40;
7402 #endif /* Word 0 - End */
7403 } s;
7404 /* struct bdk_dtx_npc_selx_s cn; */
7405 };
7406 typedef union bdk_dtx_npc_selx bdk_dtx_npc_selx_t;
7407
7408 static inline uint64_t BDK_DTX_NPC_SELX(unsigned long a) __attribute__ ((pure, always_inline));
7409 static inline uint64_t BDK_DTX_NPC_SELX(unsigned long a)
7410 {
7411 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
7412 return 0x87e0fe2d0000ll + 8ll * ((a) & 0x1);
7413 __bdk_csr_fatal("DTX_NPC_SELX", 1, a, 0, 0, 0);
7414 }
7415
7416 #define typedef_BDK_DTX_NPC_SELX(a) bdk_dtx_npc_selx_t
7417 #define bustype_BDK_DTX_NPC_SELX(a) BDK_CSR_TYPE_RSL
7418 #define basename_BDK_DTX_NPC_SELX(a) "DTX_NPC_SELX"
7419 #define busnum_BDK_DTX_NPC_SELX(a) (a)
7420 #define arguments_BDK_DTX_NPC_SELX(a) (a),-1,-1,-1
7421
7422 /**
7423 * Register (RSL) dtx_ocx_bot_bcst_rsp
7424 *
7425 * INTERNAL: DTX OCX_BOT Control Register
7426 */
7427 union bdk_dtx_ocx_bot_bcst_rsp
7428 {
7429 uint64_t u;
7430 struct bdk_dtx_ocx_bot_bcst_rsp_s
7431 {
7432 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7433 uint64_t reserved_1_63 : 63;
7434 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
7435 #else /* Word 0 - Little Endian */
7436 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
7437 uint64_t reserved_1_63 : 63;
7438 #endif /* Word 0 - End */
7439 } s;
7440 /* struct bdk_dtx_ocx_bot_bcst_rsp_s cn; */
7441 };
7442 typedef union bdk_dtx_ocx_bot_bcst_rsp bdk_dtx_ocx_bot_bcst_rsp_t;
7443
7444 #define BDK_DTX_OCX_BOT_BCST_RSP BDK_DTX_OCX_BOT_BCST_RSP_FUNC()
7445 static inline uint64_t BDK_DTX_OCX_BOT_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
7446 static inline uint64_t BDK_DTX_OCX_BOT_BCST_RSP_FUNC(void)
7447 {
7448 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX))
7449 return 0x87e0fe198080ll;
7450 __bdk_csr_fatal("DTX_OCX_BOT_BCST_RSP", 0, 0, 0, 0, 0);
7451 }
7452
7453 #define typedef_BDK_DTX_OCX_BOT_BCST_RSP bdk_dtx_ocx_bot_bcst_rsp_t
7454 #define bustype_BDK_DTX_OCX_BOT_BCST_RSP BDK_CSR_TYPE_RSL
7455 #define basename_BDK_DTX_OCX_BOT_BCST_RSP "DTX_OCX_BOT_BCST_RSP"
7456 #define busnum_BDK_DTX_OCX_BOT_BCST_RSP 0
7457 #define arguments_BDK_DTX_OCX_BOT_BCST_RSP -1,-1,-1,-1
7458
7459 /**
7460 * Register (RSL) dtx_ocx_bot_ctl
7461 *
7462 * INTERNAL: DTX OCX_BOT Control Register
7463 */
7464 union bdk_dtx_ocx_bot_ctl
7465 {
7466 uint64_t u;
7467 struct bdk_dtx_ocx_bot_ctl_s
7468 {
7469 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7470 uint64_t reserved_5_63 : 59;
7471 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
7472 uint64_t reserved_2_3 : 2;
7473 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
7474 debug data. Not applicable when software directly reads the DAT(0..1) registers.
7475 For diagnostic use only. */
7476 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
7477 #else /* Word 0 - Little Endian */
7478 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
7479 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
7480 debug data. Not applicable when software directly reads the DAT(0..1) registers.
7481 For diagnostic use only. */
7482 uint64_t reserved_2_3 : 2;
7483 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
7484 uint64_t reserved_5_63 : 59;
7485 #endif /* Word 0 - End */
7486 } s;
7487 /* struct bdk_dtx_ocx_bot_ctl_s cn; */
7488 };
7489 typedef union bdk_dtx_ocx_bot_ctl bdk_dtx_ocx_bot_ctl_t;
7490
7491 #define BDK_DTX_OCX_BOT_CTL BDK_DTX_OCX_BOT_CTL_FUNC()
7492 static inline uint64_t BDK_DTX_OCX_BOT_CTL_FUNC(void) __attribute__ ((pure, always_inline));
7493 static inline uint64_t BDK_DTX_OCX_BOT_CTL_FUNC(void)
7494 {
7495 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX))
7496 return 0x87e0fe198060ll;
7497 __bdk_csr_fatal("DTX_OCX_BOT_CTL", 0, 0, 0, 0, 0);
7498 }
7499
7500 #define typedef_BDK_DTX_OCX_BOT_CTL bdk_dtx_ocx_bot_ctl_t
7501 #define bustype_BDK_DTX_OCX_BOT_CTL BDK_CSR_TYPE_RSL
7502 #define basename_BDK_DTX_OCX_BOT_CTL "DTX_OCX_BOT_CTL"
7503 #define busnum_BDK_DTX_OCX_BOT_CTL 0
7504 #define arguments_BDK_DTX_OCX_BOT_CTL -1,-1,-1,-1
7505
7506 /**
7507 * Register (RSL) dtx_ocx_bot_dat#
7508 *
7509 * INTERNAL: DTX OCX_BOT Raw Data Register
7510 */
7511 union bdk_dtx_ocx_bot_datx
7512 {
7513 uint64_t u;
7514 struct bdk_dtx_ocx_bot_datx_s
7515 {
7516 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7517 uint64_t reserved_36_63 : 28;
7518 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
7519 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
7520 #else /* Word 0 - Little Endian */
7521 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
7522 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
7523 uint64_t reserved_36_63 : 28;
7524 #endif /* Word 0 - End */
7525 } s;
7526 /* struct bdk_dtx_ocx_bot_datx_s cn; */
7527 };
7528 typedef union bdk_dtx_ocx_bot_datx bdk_dtx_ocx_bot_datx_t;
7529
7530 static inline uint64_t BDK_DTX_OCX_BOT_DATX(unsigned long a) __attribute__ ((pure, always_inline));
7531 static inline uint64_t BDK_DTX_OCX_BOT_DATX(unsigned long a)
7532 {
7533 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
7534 return 0x87e0fe198040ll + 8ll * ((a) & 0x1);
7535 __bdk_csr_fatal("DTX_OCX_BOT_DATX", 1, a, 0, 0, 0);
7536 }
7537
7538 #define typedef_BDK_DTX_OCX_BOT_DATX(a) bdk_dtx_ocx_bot_datx_t
7539 #define bustype_BDK_DTX_OCX_BOT_DATX(a) BDK_CSR_TYPE_RSL
7540 #define basename_BDK_DTX_OCX_BOT_DATX(a) "DTX_OCX_BOT_DATX"
7541 #define busnum_BDK_DTX_OCX_BOT_DATX(a) (a)
7542 #define arguments_BDK_DTX_OCX_BOT_DATX(a) (a),-1,-1,-1
7543
7544 /**
7545 * Register (RSL) dtx_ocx_bot_ena#
7546 *
7547 * INTERNAL: DTX OCX_BOT Data Enable Register
7548 */
7549 union bdk_dtx_ocx_bot_enax
7550 {
7551 uint64_t u;
7552 struct bdk_dtx_ocx_bot_enax_s
7553 {
7554 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7555 uint64_t reserved_36_63 : 28;
7556 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
7557 buses. Normally only one block will drive each bit. */
7558 #else /* Word 0 - Little Endian */
7559 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
7560 buses. Normally only one block will drive each bit. */
7561 uint64_t reserved_36_63 : 28;
7562 #endif /* Word 0 - End */
7563 } s;
7564 /* struct bdk_dtx_ocx_bot_enax_s cn; */
7565 };
7566 typedef union bdk_dtx_ocx_bot_enax bdk_dtx_ocx_bot_enax_t;
7567
7568 static inline uint64_t BDK_DTX_OCX_BOT_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
7569 static inline uint64_t BDK_DTX_OCX_BOT_ENAX(unsigned long a)
7570 {
7571 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
7572 return 0x87e0fe198020ll + 8ll * ((a) & 0x1);
7573 __bdk_csr_fatal("DTX_OCX_BOT_ENAX", 1, a, 0, 0, 0);
7574 }
7575
7576 #define typedef_BDK_DTX_OCX_BOT_ENAX(a) bdk_dtx_ocx_bot_enax_t
7577 #define bustype_BDK_DTX_OCX_BOT_ENAX(a) BDK_CSR_TYPE_RSL
7578 #define basename_BDK_DTX_OCX_BOT_ENAX(a) "DTX_OCX_BOT_ENAX"
7579 #define busnum_BDK_DTX_OCX_BOT_ENAX(a) (a)
7580 #define arguments_BDK_DTX_OCX_BOT_ENAX(a) (a),-1,-1,-1
7581
7582 /**
7583 * Register (RSL) dtx_ocx_bot_sel#
7584 *
7585 * INTERNAL: DTX OCX_BOT Select Register
7586 */
7587 union bdk_dtx_ocx_bot_selx
7588 {
7589 uint64_t u;
7590 struct bdk_dtx_ocx_bot_selx_s
7591 {
7592 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7593 uint64_t reserved_24_63 : 40;
7594 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
7595 #else /* Word 0 - Little Endian */
7596 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
7597 uint64_t reserved_24_63 : 40;
7598 #endif /* Word 0 - End */
7599 } s;
7600 /* struct bdk_dtx_ocx_bot_selx_s cn; */
7601 };
7602 typedef union bdk_dtx_ocx_bot_selx bdk_dtx_ocx_bot_selx_t;
7603
7604 static inline uint64_t BDK_DTX_OCX_BOT_SELX(unsigned long a) __attribute__ ((pure, always_inline));
7605 static inline uint64_t BDK_DTX_OCX_BOT_SELX(unsigned long a)
7606 {
7607 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
7608 return 0x87e0fe198000ll + 8ll * ((a) & 0x1);
7609 __bdk_csr_fatal("DTX_OCX_BOT_SELX", 1, a, 0, 0, 0);
7610 }
7611
7612 #define typedef_BDK_DTX_OCX_BOT_SELX(a) bdk_dtx_ocx_bot_selx_t
7613 #define bustype_BDK_DTX_OCX_BOT_SELX(a) BDK_CSR_TYPE_RSL
7614 #define basename_BDK_DTX_OCX_BOT_SELX(a) "DTX_OCX_BOT_SELX"
7615 #define busnum_BDK_DTX_OCX_BOT_SELX(a) (a)
7616 #define arguments_BDK_DTX_OCX_BOT_SELX(a) (a),-1,-1,-1
7617
7618 /**
7619 * Register (RSL) dtx_ocx_lnk#_bcst_rsp
7620 *
7621 * DTX OCX_LNK Control Register
7622 */
7623 union bdk_dtx_ocx_lnkx_bcst_rsp
7624 {
7625 uint64_t u;
7626 struct bdk_dtx_ocx_lnkx_bcst_rsp_s
7627 {
7628 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7629 uint64_t reserved_1_63 : 63;
7630 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
7631 #else /* Word 0 - Little Endian */
7632 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
7633 uint64_t reserved_1_63 : 63;
7634 #endif /* Word 0 - End */
7635 } s;
7636 /* struct bdk_dtx_ocx_lnkx_bcst_rsp_s cn; */
7637 };
7638 typedef union bdk_dtx_ocx_lnkx_bcst_rsp bdk_dtx_ocx_lnkx_bcst_rsp_t;
7639
7640 static inline uint64_t BDK_DTX_OCX_LNKX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
7641 static inline uint64_t BDK_DTX_OCX_LNKX_BCST_RSP(unsigned long a)
7642 {
7643 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2))
7644 return 0x87e0fe180080ll + 0x8000ll * ((a) & 0x3);
7645 __bdk_csr_fatal("DTX_OCX_LNKX_BCST_RSP", 1, a, 0, 0, 0);
7646 }
7647
7648 #define typedef_BDK_DTX_OCX_LNKX_BCST_RSP(a) bdk_dtx_ocx_lnkx_bcst_rsp_t
7649 #define bustype_BDK_DTX_OCX_LNKX_BCST_RSP(a) BDK_CSR_TYPE_RSL
7650 #define basename_BDK_DTX_OCX_LNKX_BCST_RSP(a) "DTX_OCX_LNKX_BCST_RSP"
7651 #define busnum_BDK_DTX_OCX_LNKX_BCST_RSP(a) (a)
7652 #define arguments_BDK_DTX_OCX_LNKX_BCST_RSP(a) (a),-1,-1,-1
7653
7654 /**
7655 * Register (RSL) dtx_ocx_lnk#_ctl
7656 *
7657 * DTX OCX_LNK Control Register
7658 */
7659 union bdk_dtx_ocx_lnkx_ctl
7660 {
7661 uint64_t u;
7662 struct bdk_dtx_ocx_lnkx_ctl_s
7663 {
7664 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7665 uint64_t reserved_5_63 : 59;
7666 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
7667 uint64_t reserved_2_3 : 2;
7668 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
7669 debug data. Not applicable when software directly reads the DAT(0..1) registers.
7670 For diagnostic use only. */
7671 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
7672 #else /* Word 0 - Little Endian */
7673 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
7674 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
7675 debug data. Not applicable when software directly reads the DAT(0..1) registers.
7676 For diagnostic use only. */
7677 uint64_t reserved_2_3 : 2;
7678 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
7679 uint64_t reserved_5_63 : 59;
7680 #endif /* Word 0 - End */
7681 } s;
7682 /* struct bdk_dtx_ocx_lnkx_ctl_s cn; */
7683 };
7684 typedef union bdk_dtx_ocx_lnkx_ctl bdk_dtx_ocx_lnkx_ctl_t;
7685
7686 static inline uint64_t BDK_DTX_OCX_LNKX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
7687 static inline uint64_t BDK_DTX_OCX_LNKX_CTL(unsigned long a)
7688 {
7689 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2))
7690 return 0x87e0fe180060ll + 0x8000ll * ((a) & 0x3);
7691 __bdk_csr_fatal("DTX_OCX_LNKX_CTL", 1, a, 0, 0, 0);
7692 }
7693
7694 #define typedef_BDK_DTX_OCX_LNKX_CTL(a) bdk_dtx_ocx_lnkx_ctl_t
7695 #define bustype_BDK_DTX_OCX_LNKX_CTL(a) BDK_CSR_TYPE_RSL
7696 #define basename_BDK_DTX_OCX_LNKX_CTL(a) "DTX_OCX_LNKX_CTL"
7697 #define busnum_BDK_DTX_OCX_LNKX_CTL(a) (a)
7698 #define arguments_BDK_DTX_OCX_LNKX_CTL(a) (a),-1,-1,-1
7699
7700 /**
7701 * Register (RSL) dtx_ocx_lnk#_dat#
7702 *
7703 * DTX OCX_LNK Raw Data Register
7704 */
7705 union bdk_dtx_ocx_lnkx_datx
7706 {
7707 uint64_t u;
7708 struct bdk_dtx_ocx_lnkx_datx_s
7709 {
7710 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7711 uint64_t reserved_36_63 : 28;
7712 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
7713 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
7714 #else /* Word 0 - Little Endian */
7715 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
7716 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
7717 uint64_t reserved_36_63 : 28;
7718 #endif /* Word 0 - End */
7719 } s;
7720 /* struct bdk_dtx_ocx_lnkx_datx_s cn; */
7721 };
7722 typedef union bdk_dtx_ocx_lnkx_datx bdk_dtx_ocx_lnkx_datx_t;
7723
7724 static inline uint64_t BDK_DTX_OCX_LNKX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
7725 static inline uint64_t BDK_DTX_OCX_LNKX_DATX(unsigned long a, unsigned long b)
7726 {
7727 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=2) && (b<=1)))
7728 return 0x87e0fe180040ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
7729 __bdk_csr_fatal("DTX_OCX_LNKX_DATX", 2, a, b, 0, 0);
7730 }
7731
7732 #define typedef_BDK_DTX_OCX_LNKX_DATX(a,b) bdk_dtx_ocx_lnkx_datx_t
7733 #define bustype_BDK_DTX_OCX_LNKX_DATX(a,b) BDK_CSR_TYPE_RSL
7734 #define basename_BDK_DTX_OCX_LNKX_DATX(a,b) "DTX_OCX_LNKX_DATX"
7735 #define busnum_BDK_DTX_OCX_LNKX_DATX(a,b) (a)
7736 #define arguments_BDK_DTX_OCX_LNKX_DATX(a,b) (a),(b),-1,-1
7737
7738 /**
7739 * Register (RSL) dtx_ocx_lnk#_ena#
7740 *
7741 * DTX OCX_LNK Data Enable Register
7742 */
7743 union bdk_dtx_ocx_lnkx_enax
7744 {
7745 uint64_t u;
7746 struct bdk_dtx_ocx_lnkx_enax_s
7747 {
7748 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7749 uint64_t reserved_36_63 : 28;
7750 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
7751 buses. Normally only one block will drive each bit. */
7752 #else /* Word 0 - Little Endian */
7753 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
7754 buses. Normally only one block will drive each bit. */
7755 uint64_t reserved_36_63 : 28;
7756 #endif /* Word 0 - End */
7757 } s;
7758 /* struct bdk_dtx_ocx_lnkx_enax_s cn; */
7759 };
7760 typedef union bdk_dtx_ocx_lnkx_enax bdk_dtx_ocx_lnkx_enax_t;
7761
7762 static inline uint64_t BDK_DTX_OCX_LNKX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
7763 static inline uint64_t BDK_DTX_OCX_LNKX_ENAX(unsigned long a, unsigned long b)
7764 {
7765 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=2) && (b<=1)))
7766 return 0x87e0fe180020ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
7767 __bdk_csr_fatal("DTX_OCX_LNKX_ENAX", 2, a, b, 0, 0);
7768 }
7769
7770 #define typedef_BDK_DTX_OCX_LNKX_ENAX(a,b) bdk_dtx_ocx_lnkx_enax_t
7771 #define bustype_BDK_DTX_OCX_LNKX_ENAX(a,b) BDK_CSR_TYPE_RSL
7772 #define basename_BDK_DTX_OCX_LNKX_ENAX(a,b) "DTX_OCX_LNKX_ENAX"
7773 #define busnum_BDK_DTX_OCX_LNKX_ENAX(a,b) (a)
7774 #define arguments_BDK_DTX_OCX_LNKX_ENAX(a,b) (a),(b),-1,-1
7775
7776 /**
7777 * Register (RSL) dtx_ocx_lnk#_sel#
7778 *
7779 * DTX OCX_LNK Select Register
7780 */
7781 union bdk_dtx_ocx_lnkx_selx
7782 {
7783 uint64_t u;
7784 struct bdk_dtx_ocx_lnkx_selx_s
7785 {
7786 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7787 uint64_t reserved_24_63 : 40;
7788 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
7789 #else /* Word 0 - Little Endian */
7790 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
7791 uint64_t reserved_24_63 : 40;
7792 #endif /* Word 0 - End */
7793 } s;
7794 /* struct bdk_dtx_ocx_lnkx_selx_s cn; */
7795 };
7796 typedef union bdk_dtx_ocx_lnkx_selx bdk_dtx_ocx_lnkx_selx_t;
7797
7798 static inline uint64_t BDK_DTX_OCX_LNKX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
7799 static inline uint64_t BDK_DTX_OCX_LNKX_SELX(unsigned long a, unsigned long b)
7800 {
7801 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=2) && (b<=1)))
7802 return 0x87e0fe180000ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
7803 __bdk_csr_fatal("DTX_OCX_LNKX_SELX", 2, a, b, 0, 0);
7804 }
7805
7806 #define typedef_BDK_DTX_OCX_LNKX_SELX(a,b) bdk_dtx_ocx_lnkx_selx_t
7807 #define bustype_BDK_DTX_OCX_LNKX_SELX(a,b) BDK_CSR_TYPE_RSL
7808 #define basename_BDK_DTX_OCX_LNKX_SELX(a,b) "DTX_OCX_LNKX_SELX"
7809 #define busnum_BDK_DTX_OCX_LNKX_SELX(a,b) (a)
7810 #define arguments_BDK_DTX_OCX_LNKX_SELX(a,b) (a),(b),-1,-1
7811
7812 /**
7813 * Register (RSL) dtx_ocx_ole#_bcst_rsp
7814 *
7815 * DTX OCX_OLE Control Register
7816 */
7817 union bdk_dtx_ocx_olex_bcst_rsp
7818 {
7819 uint64_t u;
7820 struct bdk_dtx_ocx_olex_bcst_rsp_s
7821 {
7822 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7823 uint64_t reserved_1_63 : 63;
7824 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
7825 #else /* Word 0 - Little Endian */
7826 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
7827 uint64_t reserved_1_63 : 63;
7828 #endif /* Word 0 - End */
7829 } s;
7830 /* struct bdk_dtx_ocx_olex_bcst_rsp_s cn; */
7831 };
7832 typedef union bdk_dtx_ocx_olex_bcst_rsp bdk_dtx_ocx_olex_bcst_rsp_t;
7833
7834 static inline uint64_t BDK_DTX_OCX_OLEX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
7835 static inline uint64_t BDK_DTX_OCX_OLEX_BCST_RSP(unsigned long a)
7836 {
7837 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2))
7838 return 0x87e0fe1a0080ll + 0x8000ll * ((a) & 0x3);
7839 __bdk_csr_fatal("DTX_OCX_OLEX_BCST_RSP", 1, a, 0, 0, 0);
7840 }
7841
7842 #define typedef_BDK_DTX_OCX_OLEX_BCST_RSP(a) bdk_dtx_ocx_olex_bcst_rsp_t
7843 #define bustype_BDK_DTX_OCX_OLEX_BCST_RSP(a) BDK_CSR_TYPE_RSL
7844 #define basename_BDK_DTX_OCX_OLEX_BCST_RSP(a) "DTX_OCX_OLEX_BCST_RSP"
7845 #define busnum_BDK_DTX_OCX_OLEX_BCST_RSP(a) (a)
7846 #define arguments_BDK_DTX_OCX_OLEX_BCST_RSP(a) (a),-1,-1,-1
7847
7848 /**
7849 * Register (RSL) dtx_ocx_ole#_ctl
7850 *
7851 * DTX OCX_OLE Control Register
7852 */
7853 union bdk_dtx_ocx_olex_ctl
7854 {
7855 uint64_t u;
7856 struct bdk_dtx_ocx_olex_ctl_s
7857 {
7858 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7859 uint64_t reserved_5_63 : 59;
7860 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
7861 uint64_t reserved_2_3 : 2;
7862 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
7863 debug data. Not applicable when software directly reads the DAT(0..1) registers.
7864 For diagnostic use only. */
7865 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
7866 #else /* Word 0 - Little Endian */
7867 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
7868 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
7869 debug data. Not applicable when software directly reads the DAT(0..1) registers.
7870 For diagnostic use only. */
7871 uint64_t reserved_2_3 : 2;
7872 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
7873 uint64_t reserved_5_63 : 59;
7874 #endif /* Word 0 - End */
7875 } s;
7876 /* struct bdk_dtx_ocx_olex_ctl_s cn; */
7877 };
7878 typedef union bdk_dtx_ocx_olex_ctl bdk_dtx_ocx_olex_ctl_t;
7879
7880 static inline uint64_t BDK_DTX_OCX_OLEX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
7881 static inline uint64_t BDK_DTX_OCX_OLEX_CTL(unsigned long a)
7882 {
7883 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2))
7884 return 0x87e0fe1a0060ll + 0x8000ll * ((a) & 0x3);
7885 __bdk_csr_fatal("DTX_OCX_OLEX_CTL", 1, a, 0, 0, 0);
7886 }
7887
7888 #define typedef_BDK_DTX_OCX_OLEX_CTL(a) bdk_dtx_ocx_olex_ctl_t
7889 #define bustype_BDK_DTX_OCX_OLEX_CTL(a) BDK_CSR_TYPE_RSL
7890 #define basename_BDK_DTX_OCX_OLEX_CTL(a) "DTX_OCX_OLEX_CTL"
7891 #define busnum_BDK_DTX_OCX_OLEX_CTL(a) (a)
7892 #define arguments_BDK_DTX_OCX_OLEX_CTL(a) (a),-1,-1,-1
7893
7894 /**
7895 * Register (RSL) dtx_ocx_ole#_dat#
7896 *
7897 * DTX OCX_OLE Raw Data Register
7898 */
7899 union bdk_dtx_ocx_olex_datx
7900 {
7901 uint64_t u;
7902 struct bdk_dtx_ocx_olex_datx_s
7903 {
7904 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7905 uint64_t reserved_36_63 : 28;
7906 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
7907 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
7908 #else /* Word 0 - Little Endian */
7909 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
7910 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
7911 uint64_t reserved_36_63 : 28;
7912 #endif /* Word 0 - End */
7913 } s;
7914 /* struct bdk_dtx_ocx_olex_datx_s cn; */
7915 };
7916 typedef union bdk_dtx_ocx_olex_datx bdk_dtx_ocx_olex_datx_t;
7917
7918 static inline uint64_t BDK_DTX_OCX_OLEX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
7919 static inline uint64_t BDK_DTX_OCX_OLEX_DATX(unsigned long a, unsigned long b)
7920 {
7921 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=2) && (b<=1)))
7922 return 0x87e0fe1a0040ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
7923 __bdk_csr_fatal("DTX_OCX_OLEX_DATX", 2, a, b, 0, 0);
7924 }
7925
7926 #define typedef_BDK_DTX_OCX_OLEX_DATX(a,b) bdk_dtx_ocx_olex_datx_t
7927 #define bustype_BDK_DTX_OCX_OLEX_DATX(a,b) BDK_CSR_TYPE_RSL
7928 #define basename_BDK_DTX_OCX_OLEX_DATX(a,b) "DTX_OCX_OLEX_DATX"
7929 #define busnum_BDK_DTX_OCX_OLEX_DATX(a,b) (a)
7930 #define arguments_BDK_DTX_OCX_OLEX_DATX(a,b) (a),(b),-1,-1
7931
7932 /**
7933 * Register (RSL) dtx_ocx_ole#_ena#
7934 *
7935 * DTX OCX_OLE Data Enable Register
7936 */
7937 union bdk_dtx_ocx_olex_enax
7938 {
7939 uint64_t u;
7940 struct bdk_dtx_ocx_olex_enax_s
7941 {
7942 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7943 uint64_t reserved_36_63 : 28;
7944 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
7945 buses. Normally only one block will drive each bit. */
7946 #else /* Word 0 - Little Endian */
7947 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
7948 buses. Normally only one block will drive each bit. */
7949 uint64_t reserved_36_63 : 28;
7950 #endif /* Word 0 - End */
7951 } s;
7952 /* struct bdk_dtx_ocx_olex_enax_s cn; */
7953 };
7954 typedef union bdk_dtx_ocx_olex_enax bdk_dtx_ocx_olex_enax_t;
7955
7956 static inline uint64_t BDK_DTX_OCX_OLEX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
7957 static inline uint64_t BDK_DTX_OCX_OLEX_ENAX(unsigned long a, unsigned long b)
7958 {
7959 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=2) && (b<=1)))
7960 return 0x87e0fe1a0020ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
7961 __bdk_csr_fatal("DTX_OCX_OLEX_ENAX", 2, a, b, 0, 0);
7962 }
7963
7964 #define typedef_BDK_DTX_OCX_OLEX_ENAX(a,b) bdk_dtx_ocx_olex_enax_t
7965 #define bustype_BDK_DTX_OCX_OLEX_ENAX(a,b) BDK_CSR_TYPE_RSL
7966 #define basename_BDK_DTX_OCX_OLEX_ENAX(a,b) "DTX_OCX_OLEX_ENAX"
7967 #define busnum_BDK_DTX_OCX_OLEX_ENAX(a,b) (a)
7968 #define arguments_BDK_DTX_OCX_OLEX_ENAX(a,b) (a),(b),-1,-1
7969
7970 /**
7971 * Register (RSL) dtx_ocx_ole#_sel#
7972 *
7973 * DTX OCX_OLE Select Register
7974 */
7975 union bdk_dtx_ocx_olex_selx
7976 {
7977 uint64_t u;
7978 struct bdk_dtx_ocx_olex_selx_s
7979 {
7980 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
7981 uint64_t reserved_24_63 : 40;
7982 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
7983 #else /* Word 0 - Little Endian */
7984 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
7985 uint64_t reserved_24_63 : 40;
7986 #endif /* Word 0 - End */
7987 } s;
7988 /* struct bdk_dtx_ocx_olex_selx_s cn; */
7989 };
7990 typedef union bdk_dtx_ocx_olex_selx bdk_dtx_ocx_olex_selx_t;
7991
7992 static inline uint64_t BDK_DTX_OCX_OLEX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
7993 static inline uint64_t BDK_DTX_OCX_OLEX_SELX(unsigned long a, unsigned long b)
7994 {
7995 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=2) && (b<=1)))
7996 return 0x87e0fe1a0000ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
7997 __bdk_csr_fatal("DTX_OCX_OLEX_SELX", 2, a, b, 0, 0);
7998 }
7999
8000 #define typedef_BDK_DTX_OCX_OLEX_SELX(a,b) bdk_dtx_ocx_olex_selx_t
8001 #define bustype_BDK_DTX_OCX_OLEX_SELX(a,b) BDK_CSR_TYPE_RSL
8002 #define basename_BDK_DTX_OCX_OLEX_SELX(a,b) "DTX_OCX_OLEX_SELX"
8003 #define busnum_BDK_DTX_OCX_OLEX_SELX(a,b) (a)
8004 #define arguments_BDK_DTX_OCX_OLEX_SELX(a,b) (a),(b),-1,-1
8005
8006 /**
8007 * Register (RSL) dtx_ocx_top_bcst_rsp
8008 *
8009 * DTX OCX_TOP Control Register
8010 */
8011 union bdk_dtx_ocx_top_bcst_rsp
8012 {
8013 uint64_t u;
8014 struct bdk_dtx_ocx_top_bcst_rsp_s
8015 {
8016 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8017 uint64_t reserved_1_63 : 63;
8018 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
8019 #else /* Word 0 - Little Endian */
8020 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
8021 uint64_t reserved_1_63 : 63;
8022 #endif /* Word 0 - End */
8023 } s;
8024 /* struct bdk_dtx_ocx_top_bcst_rsp_s cn; */
8025 };
8026 typedef union bdk_dtx_ocx_top_bcst_rsp bdk_dtx_ocx_top_bcst_rsp_t;
8027
8028 #define BDK_DTX_OCX_TOP_BCST_RSP BDK_DTX_OCX_TOP_BCST_RSP_FUNC()
8029 static inline uint64_t BDK_DTX_OCX_TOP_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
8030 static inline uint64_t BDK_DTX_OCX_TOP_BCST_RSP_FUNC(void)
8031 {
8032 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX))
8033 return 0x87e0fe088080ll;
8034 __bdk_csr_fatal("DTX_OCX_TOP_BCST_RSP", 0, 0, 0, 0, 0);
8035 }
8036
8037 #define typedef_BDK_DTX_OCX_TOP_BCST_RSP bdk_dtx_ocx_top_bcst_rsp_t
8038 #define bustype_BDK_DTX_OCX_TOP_BCST_RSP BDK_CSR_TYPE_RSL
8039 #define basename_BDK_DTX_OCX_TOP_BCST_RSP "DTX_OCX_TOP_BCST_RSP"
8040 #define busnum_BDK_DTX_OCX_TOP_BCST_RSP 0
8041 #define arguments_BDK_DTX_OCX_TOP_BCST_RSP -1,-1,-1,-1
8042
8043 /**
8044 * Register (RSL) dtx_ocx_top_ctl
8045 *
8046 * DTX OCX_TOP Control Register
8047 */
8048 union bdk_dtx_ocx_top_ctl
8049 {
8050 uint64_t u;
8051 struct bdk_dtx_ocx_top_ctl_s
8052 {
8053 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8054 uint64_t reserved_5_63 : 59;
8055 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
8056 uint64_t reserved_2_3 : 2;
8057 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
8058 debug data. Not applicable when software directly reads the DAT(0..1) registers.
8059 For diagnostic use only. */
8060 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
8061 #else /* Word 0 - Little Endian */
8062 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
8063 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
8064 debug data. Not applicable when software directly reads the DAT(0..1) registers.
8065 For diagnostic use only. */
8066 uint64_t reserved_2_3 : 2;
8067 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
8068 uint64_t reserved_5_63 : 59;
8069 #endif /* Word 0 - End */
8070 } s;
8071 /* struct bdk_dtx_ocx_top_ctl_s cn; */
8072 };
8073 typedef union bdk_dtx_ocx_top_ctl bdk_dtx_ocx_top_ctl_t;
8074
8075 #define BDK_DTX_OCX_TOP_CTL BDK_DTX_OCX_TOP_CTL_FUNC()
8076 static inline uint64_t BDK_DTX_OCX_TOP_CTL_FUNC(void) __attribute__ ((pure, always_inline));
8077 static inline uint64_t BDK_DTX_OCX_TOP_CTL_FUNC(void)
8078 {
8079 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX))
8080 return 0x87e0fe088060ll;
8081 __bdk_csr_fatal("DTX_OCX_TOP_CTL", 0, 0, 0, 0, 0);
8082 }
8083
8084 #define typedef_BDK_DTX_OCX_TOP_CTL bdk_dtx_ocx_top_ctl_t
8085 #define bustype_BDK_DTX_OCX_TOP_CTL BDK_CSR_TYPE_RSL
8086 #define basename_BDK_DTX_OCX_TOP_CTL "DTX_OCX_TOP_CTL"
8087 #define busnum_BDK_DTX_OCX_TOP_CTL 0
8088 #define arguments_BDK_DTX_OCX_TOP_CTL -1,-1,-1,-1
8089
8090 /**
8091 * Register (RSL) dtx_ocx_top_dat#
8092 *
8093 * DTX OCX_TOP Raw Data Register
8094 */
8095 union bdk_dtx_ocx_top_datx
8096 {
8097 uint64_t u;
8098 struct bdk_dtx_ocx_top_datx_s
8099 {
8100 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8101 uint64_t reserved_36_63 : 28;
8102 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
8103 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
8104 #else /* Word 0 - Little Endian */
8105 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
8106 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
8107 uint64_t reserved_36_63 : 28;
8108 #endif /* Word 0 - End */
8109 } s;
8110 /* struct bdk_dtx_ocx_top_datx_s cn; */
8111 };
8112 typedef union bdk_dtx_ocx_top_datx bdk_dtx_ocx_top_datx_t;
8113
8114 static inline uint64_t BDK_DTX_OCX_TOP_DATX(unsigned long a) __attribute__ ((pure, always_inline));
8115 static inline uint64_t BDK_DTX_OCX_TOP_DATX(unsigned long a)
8116 {
8117 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
8118 return 0x87e0fe088040ll + 8ll * ((a) & 0x1);
8119 __bdk_csr_fatal("DTX_OCX_TOP_DATX", 1, a, 0, 0, 0);
8120 }
8121
8122 #define typedef_BDK_DTX_OCX_TOP_DATX(a) bdk_dtx_ocx_top_datx_t
8123 #define bustype_BDK_DTX_OCX_TOP_DATX(a) BDK_CSR_TYPE_RSL
8124 #define basename_BDK_DTX_OCX_TOP_DATX(a) "DTX_OCX_TOP_DATX"
8125 #define busnum_BDK_DTX_OCX_TOP_DATX(a) (a)
8126 #define arguments_BDK_DTX_OCX_TOP_DATX(a) (a),-1,-1,-1
8127
8128 /**
8129 * Register (RSL) dtx_ocx_top_ena#
8130 *
8131 * DTX OCX_TOP Data Enable Register
8132 */
8133 union bdk_dtx_ocx_top_enax
8134 {
8135 uint64_t u;
8136 struct bdk_dtx_ocx_top_enax_s
8137 {
8138 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8139 uint64_t reserved_36_63 : 28;
8140 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
8141 buses. Normally only one block will drive each bit. */
8142 #else /* Word 0 - Little Endian */
8143 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
8144 buses. Normally only one block will drive each bit. */
8145 uint64_t reserved_36_63 : 28;
8146 #endif /* Word 0 - End */
8147 } s;
8148 /* struct bdk_dtx_ocx_top_enax_s cn; */
8149 };
8150 typedef union bdk_dtx_ocx_top_enax bdk_dtx_ocx_top_enax_t;
8151
8152 static inline uint64_t BDK_DTX_OCX_TOP_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
8153 static inline uint64_t BDK_DTX_OCX_TOP_ENAX(unsigned long a)
8154 {
8155 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
8156 return 0x87e0fe088020ll + 8ll * ((a) & 0x1);
8157 __bdk_csr_fatal("DTX_OCX_TOP_ENAX", 1, a, 0, 0, 0);
8158 }
8159
8160 #define typedef_BDK_DTX_OCX_TOP_ENAX(a) bdk_dtx_ocx_top_enax_t
8161 #define bustype_BDK_DTX_OCX_TOP_ENAX(a) BDK_CSR_TYPE_RSL
8162 #define basename_BDK_DTX_OCX_TOP_ENAX(a) "DTX_OCX_TOP_ENAX"
8163 #define busnum_BDK_DTX_OCX_TOP_ENAX(a) (a)
8164 #define arguments_BDK_DTX_OCX_TOP_ENAX(a) (a),-1,-1,-1
8165
8166 /**
8167 * Register (RSL) dtx_ocx_top_sel#
8168 *
8169 * DTX OCX_TOP Select Register
8170 */
8171 union bdk_dtx_ocx_top_selx
8172 {
8173 uint64_t u;
8174 struct bdk_dtx_ocx_top_selx_s
8175 {
8176 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8177 uint64_t reserved_24_63 : 40;
8178 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
8179 #else /* Word 0 - Little Endian */
8180 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
8181 uint64_t reserved_24_63 : 40;
8182 #endif /* Word 0 - End */
8183 } s;
8184 /* struct bdk_dtx_ocx_top_selx_s cn; */
8185 };
8186 typedef union bdk_dtx_ocx_top_selx bdk_dtx_ocx_top_selx_t;
8187
8188 static inline uint64_t BDK_DTX_OCX_TOP_SELX(unsigned long a) __attribute__ ((pure, always_inline));
8189 static inline uint64_t BDK_DTX_OCX_TOP_SELX(unsigned long a)
8190 {
8191 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
8192 return 0x87e0fe088000ll + 8ll * ((a) & 0x1);
8193 __bdk_csr_fatal("DTX_OCX_TOP_SELX", 1, a, 0, 0, 0);
8194 }
8195
8196 #define typedef_BDK_DTX_OCX_TOP_SELX(a) bdk_dtx_ocx_top_selx_t
8197 #define bustype_BDK_DTX_OCX_TOP_SELX(a) BDK_CSR_TYPE_RSL
8198 #define basename_BDK_DTX_OCX_TOP_SELX(a) "DTX_OCX_TOP_SELX"
8199 #define busnum_BDK_DTX_OCX_TOP_SELX(a) (a)
8200 #define arguments_BDK_DTX_OCX_TOP_SELX(a) (a),-1,-1,-1
8201
8202 /**
8203 * Register (RSL) dtx_pem#_bcst_rsp
8204 *
8205 * DTX PEM Control Register
8206 */
8207 union bdk_dtx_pemx_bcst_rsp
8208 {
8209 uint64_t u;
8210 struct bdk_dtx_pemx_bcst_rsp_s
8211 {
8212 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8213 uint64_t reserved_1_63 : 63;
8214 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
8215 #else /* Word 0 - Little Endian */
8216 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
8217 uint64_t reserved_1_63 : 63;
8218 #endif /* Word 0 - End */
8219 } s;
8220 /* struct bdk_dtx_pemx_bcst_rsp_s cn; */
8221 };
8222 typedef union bdk_dtx_pemx_bcst_rsp bdk_dtx_pemx_bcst_rsp_t;
8223
8224 static inline uint64_t BDK_DTX_PEMX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
8225 static inline uint64_t BDK_DTX_PEMX_BCST_RSP(unsigned long a)
8226 {
8227 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=2))
8228 return 0x87e0fe600080ll + 0x8000ll * ((a) & 0x3);
8229 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=3))
8230 return 0x87e0fe600080ll + 0x8000ll * ((a) & 0x3);
8231 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=5))
8232 return 0x87e0fe600080ll + 0x8000ll * ((a) & 0x7);
8233 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=7))
8234 return 0x87e0fef00080ll + 0x8000ll * ((a) & 0x7);
8235 __bdk_csr_fatal("DTX_PEMX_BCST_RSP", 1, a, 0, 0, 0);
8236 }
8237
8238 #define typedef_BDK_DTX_PEMX_BCST_RSP(a) bdk_dtx_pemx_bcst_rsp_t
8239 #define bustype_BDK_DTX_PEMX_BCST_RSP(a) BDK_CSR_TYPE_RSL
8240 #define basename_BDK_DTX_PEMX_BCST_RSP(a) "DTX_PEMX_BCST_RSP"
8241 #define busnum_BDK_DTX_PEMX_BCST_RSP(a) (a)
8242 #define arguments_BDK_DTX_PEMX_BCST_RSP(a) (a),-1,-1,-1
8243
8244 /**
8245 * Register (RSL) dtx_pem#_ctl
8246 *
8247 * DTX PEM Control Register
8248 */
8249 union bdk_dtx_pemx_ctl
8250 {
8251 uint64_t u;
8252 struct bdk_dtx_pemx_ctl_s
8253 {
8254 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8255 uint64_t reserved_5_63 : 59;
8256 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
8257 uint64_t reserved_2_3 : 2;
8258 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
8259 debug data. Not applicable when software directly reads the DAT(0..1) registers.
8260 For diagnostic use only. */
8261 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
8262 #else /* Word 0 - Little Endian */
8263 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
8264 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
8265 debug data. Not applicable when software directly reads the DAT(0..1) registers.
8266 For diagnostic use only. */
8267 uint64_t reserved_2_3 : 2;
8268 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
8269 uint64_t reserved_5_63 : 59;
8270 #endif /* Word 0 - End */
8271 } s;
8272 /* struct bdk_dtx_pemx_ctl_s cn; */
8273 };
8274 typedef union bdk_dtx_pemx_ctl bdk_dtx_pemx_ctl_t;
8275
8276 static inline uint64_t BDK_DTX_PEMX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
8277 static inline uint64_t BDK_DTX_PEMX_CTL(unsigned long a)
8278 {
8279 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=2))
8280 return 0x87e0fe600060ll + 0x8000ll * ((a) & 0x3);
8281 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=3))
8282 return 0x87e0fe600060ll + 0x8000ll * ((a) & 0x3);
8283 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=5))
8284 return 0x87e0fe600060ll + 0x8000ll * ((a) & 0x7);
8285 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=7))
8286 return 0x87e0fef00060ll + 0x8000ll * ((a) & 0x7);
8287 __bdk_csr_fatal("DTX_PEMX_CTL", 1, a, 0, 0, 0);
8288 }
8289
8290 #define typedef_BDK_DTX_PEMX_CTL(a) bdk_dtx_pemx_ctl_t
8291 #define bustype_BDK_DTX_PEMX_CTL(a) BDK_CSR_TYPE_RSL
8292 #define basename_BDK_DTX_PEMX_CTL(a) "DTX_PEMX_CTL"
8293 #define busnum_BDK_DTX_PEMX_CTL(a) (a)
8294 #define arguments_BDK_DTX_PEMX_CTL(a) (a),-1,-1,-1
8295
8296 /**
8297 * Register (RSL) dtx_pem#_dat#
8298 *
8299 * DTX PEM Raw Data Register
8300 */
8301 union bdk_dtx_pemx_datx
8302 {
8303 uint64_t u;
8304 struct bdk_dtx_pemx_datx_s
8305 {
8306 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8307 uint64_t reserved_36_63 : 28;
8308 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
8309 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
8310 #else /* Word 0 - Little Endian */
8311 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
8312 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
8313 uint64_t reserved_36_63 : 28;
8314 #endif /* Word 0 - End */
8315 } s;
8316 /* struct bdk_dtx_pemx_datx_s cn; */
8317 };
8318 typedef union bdk_dtx_pemx_datx bdk_dtx_pemx_datx_t;
8319
8320 static inline uint64_t BDK_DTX_PEMX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
8321 static inline uint64_t BDK_DTX_PEMX_DATX(unsigned long a, unsigned long b)
8322 {
8323 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a<=2) && (b<=1)))
8324 return 0x87e0fe600040ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
8325 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=3) && (b<=1)))
8326 return 0x87e0fe600040ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
8327 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=5) && (b<=1)))
8328 return 0x87e0fe600040ll + 0x8000ll * ((a) & 0x7) + 8ll * ((b) & 0x1);
8329 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=7) && (b<=1)))
8330 return 0x87e0fef00040ll + 0x8000ll * ((a) & 0x7) + 8ll * ((b) & 0x1);
8331 __bdk_csr_fatal("DTX_PEMX_DATX", 2, a, b, 0, 0);
8332 }
8333
8334 #define typedef_BDK_DTX_PEMX_DATX(a,b) bdk_dtx_pemx_datx_t
8335 #define bustype_BDK_DTX_PEMX_DATX(a,b) BDK_CSR_TYPE_RSL
8336 #define basename_BDK_DTX_PEMX_DATX(a,b) "DTX_PEMX_DATX"
8337 #define busnum_BDK_DTX_PEMX_DATX(a,b) (a)
8338 #define arguments_BDK_DTX_PEMX_DATX(a,b) (a),(b),-1,-1
8339
8340 /**
8341 * Register (RSL) dtx_pem#_ena#
8342 *
8343 * DTX PEM Data Enable Register
8344 */
8345 union bdk_dtx_pemx_enax
8346 {
8347 uint64_t u;
8348 struct bdk_dtx_pemx_enax_s
8349 {
8350 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8351 uint64_t reserved_36_63 : 28;
8352 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
8353 buses. Normally only one block will drive each bit. */
8354 #else /* Word 0 - Little Endian */
8355 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
8356 buses. Normally only one block will drive each bit. */
8357 uint64_t reserved_36_63 : 28;
8358 #endif /* Word 0 - End */
8359 } s;
8360 /* struct bdk_dtx_pemx_enax_s cn; */
8361 };
8362 typedef union bdk_dtx_pemx_enax bdk_dtx_pemx_enax_t;
8363
8364 static inline uint64_t BDK_DTX_PEMX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
8365 static inline uint64_t BDK_DTX_PEMX_ENAX(unsigned long a, unsigned long b)
8366 {
8367 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a<=2) && (b<=1)))
8368 return 0x87e0fe600020ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
8369 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=3) && (b<=1)))
8370 return 0x87e0fe600020ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
8371 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=5) && (b<=1)))
8372 return 0x87e0fe600020ll + 0x8000ll * ((a) & 0x7) + 8ll * ((b) & 0x1);
8373 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=7) && (b<=1)))
8374 return 0x87e0fef00020ll + 0x8000ll * ((a) & 0x7) + 8ll * ((b) & 0x1);
8375 __bdk_csr_fatal("DTX_PEMX_ENAX", 2, a, b, 0, 0);
8376 }
8377
8378 #define typedef_BDK_DTX_PEMX_ENAX(a,b) bdk_dtx_pemx_enax_t
8379 #define bustype_BDK_DTX_PEMX_ENAX(a,b) BDK_CSR_TYPE_RSL
8380 #define basename_BDK_DTX_PEMX_ENAX(a,b) "DTX_PEMX_ENAX"
8381 #define busnum_BDK_DTX_PEMX_ENAX(a,b) (a)
8382 #define arguments_BDK_DTX_PEMX_ENAX(a,b) (a),(b),-1,-1
8383
8384 /**
8385 * Register (RSL) dtx_pem#_sel#
8386 *
8387 * DTX PEM Select Register
8388 */
8389 union bdk_dtx_pemx_selx
8390 {
8391 uint64_t u;
8392 struct bdk_dtx_pemx_selx_s
8393 {
8394 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8395 uint64_t reserved_24_63 : 40;
8396 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
8397 #else /* Word 0 - Little Endian */
8398 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
8399 uint64_t reserved_24_63 : 40;
8400 #endif /* Word 0 - End */
8401 } s;
8402 /* struct bdk_dtx_pemx_selx_s cn; */
8403 };
8404 typedef union bdk_dtx_pemx_selx bdk_dtx_pemx_selx_t;
8405
8406 static inline uint64_t BDK_DTX_PEMX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
8407 static inline uint64_t BDK_DTX_PEMX_SELX(unsigned long a, unsigned long b)
8408 {
8409 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a<=2) && (b<=1)))
8410 return 0x87e0fe600000ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
8411 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=3) && (b<=1)))
8412 return 0x87e0fe600000ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
8413 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=5) && (b<=1)))
8414 return 0x87e0fe600000ll + 0x8000ll * ((a) & 0x7) + 8ll * ((b) & 0x1);
8415 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=7) && (b<=1)))
8416 return 0x87e0fef00000ll + 0x8000ll * ((a) & 0x7) + 8ll * ((b) & 0x1);
8417 __bdk_csr_fatal("DTX_PEMX_SELX", 2, a, b, 0, 0);
8418 }
8419
8420 #define typedef_BDK_DTX_PEMX_SELX(a,b) bdk_dtx_pemx_selx_t
8421 #define bustype_BDK_DTX_PEMX_SELX(a,b) BDK_CSR_TYPE_RSL
8422 #define basename_BDK_DTX_PEMX_SELX(a,b) "DTX_PEMX_SELX"
8423 #define busnum_BDK_DTX_PEMX_SELX(a,b) (a)
8424 #define arguments_BDK_DTX_PEMX_SELX(a,b) (a),(b),-1,-1
8425
8426 /**
8427 * Register (RSL) dtx_pki_bcst_rsp
8428 *
8429 * DTX PKI Control Register
8430 */
8431 union bdk_dtx_pki_bcst_rsp
8432 {
8433 uint64_t u;
8434 struct bdk_dtx_pki_bcst_rsp_s
8435 {
8436 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8437 uint64_t reserved_1_63 : 63;
8438 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
8439 #else /* Word 0 - Little Endian */
8440 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
8441 uint64_t reserved_1_63 : 63;
8442 #endif /* Word 0 - End */
8443 } s;
8444 /* struct bdk_dtx_pki_bcst_rsp_s cn; */
8445 };
8446 typedef union bdk_dtx_pki_bcst_rsp bdk_dtx_pki_bcst_rsp_t;
8447
8448 #define BDK_DTX_PKI_BCST_RSP BDK_DTX_PKI_BCST_RSP_FUNC()
8449 static inline uint64_t BDK_DTX_PKI_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
8450 static inline uint64_t BDK_DTX_PKI_BCST_RSP_FUNC(void)
8451 {
8452 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
8453 return 0x87e0feb60080ll;
8454 __bdk_csr_fatal("DTX_PKI_BCST_RSP", 0, 0, 0, 0, 0);
8455 }
8456
8457 #define typedef_BDK_DTX_PKI_BCST_RSP bdk_dtx_pki_bcst_rsp_t
8458 #define bustype_BDK_DTX_PKI_BCST_RSP BDK_CSR_TYPE_RSL
8459 #define basename_BDK_DTX_PKI_BCST_RSP "DTX_PKI_BCST_RSP"
8460 #define busnum_BDK_DTX_PKI_BCST_RSP 0
8461 #define arguments_BDK_DTX_PKI_BCST_RSP -1,-1,-1,-1
8462
8463 /**
8464 * Register (RSL) dtx_pki_ctl
8465 *
8466 * DTX PKI Control Register
8467 */
8468 union bdk_dtx_pki_ctl
8469 {
8470 uint64_t u;
8471 struct bdk_dtx_pki_ctl_s
8472 {
8473 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8474 uint64_t reserved_5_63 : 59;
8475 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
8476 uint64_t reserved_2_3 : 2;
8477 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
8478 debug data. Not applicable when software directly reads the DAT(0..1) registers.
8479 For diagnostic use only. */
8480 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
8481 #else /* Word 0 - Little Endian */
8482 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
8483 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
8484 debug data. Not applicable when software directly reads the DAT(0..1) registers.
8485 For diagnostic use only. */
8486 uint64_t reserved_2_3 : 2;
8487 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
8488 uint64_t reserved_5_63 : 59;
8489 #endif /* Word 0 - End */
8490 } s;
8491 /* struct bdk_dtx_pki_ctl_s cn; */
8492 };
8493 typedef union bdk_dtx_pki_ctl bdk_dtx_pki_ctl_t;
8494
8495 #define BDK_DTX_PKI_CTL BDK_DTX_PKI_CTL_FUNC()
8496 static inline uint64_t BDK_DTX_PKI_CTL_FUNC(void) __attribute__ ((pure, always_inline));
8497 static inline uint64_t BDK_DTX_PKI_CTL_FUNC(void)
8498 {
8499 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
8500 return 0x87e0feb60060ll;
8501 __bdk_csr_fatal("DTX_PKI_CTL", 0, 0, 0, 0, 0);
8502 }
8503
8504 #define typedef_BDK_DTX_PKI_CTL bdk_dtx_pki_ctl_t
8505 #define bustype_BDK_DTX_PKI_CTL BDK_CSR_TYPE_RSL
8506 #define basename_BDK_DTX_PKI_CTL "DTX_PKI_CTL"
8507 #define busnum_BDK_DTX_PKI_CTL 0
8508 #define arguments_BDK_DTX_PKI_CTL -1,-1,-1,-1
8509
8510 /**
8511 * Register (RSL) dtx_pki_dat#
8512 *
8513 * DTX PKI Raw Data Register
8514 */
8515 union bdk_dtx_pki_datx
8516 {
8517 uint64_t u;
8518 struct bdk_dtx_pki_datx_s
8519 {
8520 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8521 uint64_t reserved_36_63 : 28;
8522 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
8523 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
8524 #else /* Word 0 - Little Endian */
8525 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
8526 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
8527 uint64_t reserved_36_63 : 28;
8528 #endif /* Word 0 - End */
8529 } s;
8530 /* struct bdk_dtx_pki_datx_s cn; */
8531 };
8532 typedef union bdk_dtx_pki_datx bdk_dtx_pki_datx_t;
8533
8534 static inline uint64_t BDK_DTX_PKI_DATX(unsigned long a) __attribute__ ((pure, always_inline));
8535 static inline uint64_t BDK_DTX_PKI_DATX(unsigned long a)
8536 {
8537 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
8538 return 0x87e0feb60040ll + 8ll * ((a) & 0x1);
8539 __bdk_csr_fatal("DTX_PKI_DATX", 1, a, 0, 0, 0);
8540 }
8541
8542 #define typedef_BDK_DTX_PKI_DATX(a) bdk_dtx_pki_datx_t
8543 #define bustype_BDK_DTX_PKI_DATX(a) BDK_CSR_TYPE_RSL
8544 #define basename_BDK_DTX_PKI_DATX(a) "DTX_PKI_DATX"
8545 #define busnum_BDK_DTX_PKI_DATX(a) (a)
8546 #define arguments_BDK_DTX_PKI_DATX(a) (a),-1,-1,-1
8547
8548 /**
8549 * Register (RSL) dtx_pki_ena#
8550 *
8551 * DTX PKI Data Enable Register
8552 */
8553 union bdk_dtx_pki_enax
8554 {
8555 uint64_t u;
8556 struct bdk_dtx_pki_enax_s
8557 {
8558 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8559 uint64_t reserved_36_63 : 28;
8560 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
8561 buses. Normally only one block will drive each bit. */
8562 #else /* Word 0 - Little Endian */
8563 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
8564 buses. Normally only one block will drive each bit. */
8565 uint64_t reserved_36_63 : 28;
8566 #endif /* Word 0 - End */
8567 } s;
8568 /* struct bdk_dtx_pki_enax_s cn; */
8569 };
8570 typedef union bdk_dtx_pki_enax bdk_dtx_pki_enax_t;
8571
8572 static inline uint64_t BDK_DTX_PKI_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
8573 static inline uint64_t BDK_DTX_PKI_ENAX(unsigned long a)
8574 {
8575 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
8576 return 0x87e0feb60020ll + 8ll * ((a) & 0x1);
8577 __bdk_csr_fatal("DTX_PKI_ENAX", 1, a, 0, 0, 0);
8578 }
8579
8580 #define typedef_BDK_DTX_PKI_ENAX(a) bdk_dtx_pki_enax_t
8581 #define bustype_BDK_DTX_PKI_ENAX(a) BDK_CSR_TYPE_RSL
8582 #define basename_BDK_DTX_PKI_ENAX(a) "DTX_PKI_ENAX"
8583 #define busnum_BDK_DTX_PKI_ENAX(a) (a)
8584 #define arguments_BDK_DTX_PKI_ENAX(a) (a),-1,-1,-1
8585
8586 /**
8587 * Register (RSL) dtx_pki_sel#
8588 *
8589 * DTX PKI Select Register
8590 */
8591 union bdk_dtx_pki_selx
8592 {
8593 uint64_t u;
8594 struct bdk_dtx_pki_selx_s
8595 {
8596 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8597 uint64_t reserved_24_63 : 40;
8598 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
8599 #else /* Word 0 - Little Endian */
8600 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
8601 uint64_t reserved_24_63 : 40;
8602 #endif /* Word 0 - End */
8603 } s;
8604 /* struct bdk_dtx_pki_selx_s cn; */
8605 };
8606 typedef union bdk_dtx_pki_selx bdk_dtx_pki_selx_t;
8607
8608 static inline uint64_t BDK_DTX_PKI_SELX(unsigned long a) __attribute__ ((pure, always_inline));
8609 static inline uint64_t BDK_DTX_PKI_SELX(unsigned long a)
8610 {
8611 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
8612 return 0x87e0feb60000ll + 8ll * ((a) & 0x1);
8613 __bdk_csr_fatal("DTX_PKI_SELX", 1, a, 0, 0, 0);
8614 }
8615
8616 #define typedef_BDK_DTX_PKI_SELX(a) bdk_dtx_pki_selx_t
8617 #define bustype_BDK_DTX_PKI_SELX(a) BDK_CSR_TYPE_RSL
8618 #define basename_BDK_DTX_PKI_SELX(a) "DTX_PKI_SELX"
8619 #define busnum_BDK_DTX_PKI_SELX(a) (a)
8620 #define arguments_BDK_DTX_PKI_SELX(a) (a),-1,-1,-1
8621
8622 /**
8623 * Register (RSL) dtx_pko_bcst_rsp
8624 *
8625 * DTX PKO Control Register
8626 */
8627 union bdk_dtx_pko_bcst_rsp
8628 {
8629 uint64_t u;
8630 struct bdk_dtx_pko_bcst_rsp_s
8631 {
8632 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8633 uint64_t reserved_1_63 : 63;
8634 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
8635 #else /* Word 0 - Little Endian */
8636 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
8637 uint64_t reserved_1_63 : 63;
8638 #endif /* Word 0 - End */
8639 } s;
8640 /* struct bdk_dtx_pko_bcst_rsp_s cn; */
8641 };
8642 typedef union bdk_dtx_pko_bcst_rsp bdk_dtx_pko_bcst_rsp_t;
8643
8644 #define BDK_DTX_PKO_BCST_RSP BDK_DTX_PKO_BCST_RSP_FUNC()
8645 static inline uint64_t BDK_DTX_PKO_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
8646 static inline uint64_t BDK_DTX_PKO_BCST_RSP_FUNC(void)
8647 {
8648 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
8649 return 0x87e0feaa0080ll;
8650 __bdk_csr_fatal("DTX_PKO_BCST_RSP", 0, 0, 0, 0, 0);
8651 }
8652
8653 #define typedef_BDK_DTX_PKO_BCST_RSP bdk_dtx_pko_bcst_rsp_t
8654 #define bustype_BDK_DTX_PKO_BCST_RSP BDK_CSR_TYPE_RSL
8655 #define basename_BDK_DTX_PKO_BCST_RSP "DTX_PKO_BCST_RSP"
8656 #define busnum_BDK_DTX_PKO_BCST_RSP 0
8657 #define arguments_BDK_DTX_PKO_BCST_RSP -1,-1,-1,-1
8658
8659 /**
8660 * Register (RSL) dtx_pko_ctl
8661 *
8662 * DTX PKO Control Register
8663 */
8664 union bdk_dtx_pko_ctl
8665 {
8666 uint64_t u;
8667 struct bdk_dtx_pko_ctl_s
8668 {
8669 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8670 uint64_t reserved_5_63 : 59;
8671 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
8672 uint64_t reserved_2_3 : 2;
8673 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
8674 debug data. Not applicable when software directly reads the DAT(0..1) registers.
8675 For diagnostic use only. */
8676 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
8677 #else /* Word 0 - Little Endian */
8678 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
8679 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
8680 debug data. Not applicable when software directly reads the DAT(0..1) registers.
8681 For diagnostic use only. */
8682 uint64_t reserved_2_3 : 2;
8683 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
8684 uint64_t reserved_5_63 : 59;
8685 #endif /* Word 0 - End */
8686 } s;
8687 /* struct bdk_dtx_pko_ctl_s cn; */
8688 };
8689 typedef union bdk_dtx_pko_ctl bdk_dtx_pko_ctl_t;
8690
8691 #define BDK_DTX_PKO_CTL BDK_DTX_PKO_CTL_FUNC()
8692 static inline uint64_t BDK_DTX_PKO_CTL_FUNC(void) __attribute__ ((pure, always_inline));
8693 static inline uint64_t BDK_DTX_PKO_CTL_FUNC(void)
8694 {
8695 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
8696 return 0x87e0feaa0060ll;
8697 __bdk_csr_fatal("DTX_PKO_CTL", 0, 0, 0, 0, 0);
8698 }
8699
8700 #define typedef_BDK_DTX_PKO_CTL bdk_dtx_pko_ctl_t
8701 #define bustype_BDK_DTX_PKO_CTL BDK_CSR_TYPE_RSL
8702 #define basename_BDK_DTX_PKO_CTL "DTX_PKO_CTL"
8703 #define busnum_BDK_DTX_PKO_CTL 0
8704 #define arguments_BDK_DTX_PKO_CTL -1,-1,-1,-1
8705
8706 /**
8707 * Register (RSL) dtx_pko_dat#
8708 *
8709 * DTX PKO Raw Data Register
8710 */
8711 union bdk_dtx_pko_datx
8712 {
8713 uint64_t u;
8714 struct bdk_dtx_pko_datx_s
8715 {
8716 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8717 uint64_t reserved_36_63 : 28;
8718 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
8719 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
8720 #else /* Word 0 - Little Endian */
8721 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
8722 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
8723 uint64_t reserved_36_63 : 28;
8724 #endif /* Word 0 - End */
8725 } s;
8726 /* struct bdk_dtx_pko_datx_s cn; */
8727 };
8728 typedef union bdk_dtx_pko_datx bdk_dtx_pko_datx_t;
8729
8730 static inline uint64_t BDK_DTX_PKO_DATX(unsigned long a) __attribute__ ((pure, always_inline));
8731 static inline uint64_t BDK_DTX_PKO_DATX(unsigned long a)
8732 {
8733 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
8734 return 0x87e0feaa0040ll + 8ll * ((a) & 0x1);
8735 __bdk_csr_fatal("DTX_PKO_DATX", 1, a, 0, 0, 0);
8736 }
8737
8738 #define typedef_BDK_DTX_PKO_DATX(a) bdk_dtx_pko_datx_t
8739 #define bustype_BDK_DTX_PKO_DATX(a) BDK_CSR_TYPE_RSL
8740 #define basename_BDK_DTX_PKO_DATX(a) "DTX_PKO_DATX"
8741 #define busnum_BDK_DTX_PKO_DATX(a) (a)
8742 #define arguments_BDK_DTX_PKO_DATX(a) (a),-1,-1,-1
8743
8744 /**
8745 * Register (RSL) dtx_pko_ena#
8746 *
8747 * DTX PKO Data Enable Register
8748 */
8749 union bdk_dtx_pko_enax
8750 {
8751 uint64_t u;
8752 struct bdk_dtx_pko_enax_s
8753 {
8754 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8755 uint64_t reserved_36_63 : 28;
8756 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
8757 buses. Normally only one block will drive each bit. */
8758 #else /* Word 0 - Little Endian */
8759 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
8760 buses. Normally only one block will drive each bit. */
8761 uint64_t reserved_36_63 : 28;
8762 #endif /* Word 0 - End */
8763 } s;
8764 /* struct bdk_dtx_pko_enax_s cn; */
8765 };
8766 typedef union bdk_dtx_pko_enax bdk_dtx_pko_enax_t;
8767
8768 static inline uint64_t BDK_DTX_PKO_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
8769 static inline uint64_t BDK_DTX_PKO_ENAX(unsigned long a)
8770 {
8771 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
8772 return 0x87e0feaa0020ll + 8ll * ((a) & 0x1);
8773 __bdk_csr_fatal("DTX_PKO_ENAX", 1, a, 0, 0, 0);
8774 }
8775
8776 #define typedef_BDK_DTX_PKO_ENAX(a) bdk_dtx_pko_enax_t
8777 #define bustype_BDK_DTX_PKO_ENAX(a) BDK_CSR_TYPE_RSL
8778 #define basename_BDK_DTX_PKO_ENAX(a) "DTX_PKO_ENAX"
8779 #define busnum_BDK_DTX_PKO_ENAX(a) (a)
8780 #define arguments_BDK_DTX_PKO_ENAX(a) (a),-1,-1,-1
8781
8782 /**
8783 * Register (RSL) dtx_pko_sel#
8784 *
8785 * DTX PKO Select Register
8786 */
8787 union bdk_dtx_pko_selx
8788 {
8789 uint64_t u;
8790 struct bdk_dtx_pko_selx_s
8791 {
8792 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8793 uint64_t reserved_24_63 : 40;
8794 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
8795 #else /* Word 0 - Little Endian */
8796 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
8797 uint64_t reserved_24_63 : 40;
8798 #endif /* Word 0 - End */
8799 } s;
8800 /* struct bdk_dtx_pko_selx_s cn; */
8801 };
8802 typedef union bdk_dtx_pko_selx bdk_dtx_pko_selx_t;
8803
8804 static inline uint64_t BDK_DTX_PKO_SELX(unsigned long a) __attribute__ ((pure, always_inline));
8805 static inline uint64_t BDK_DTX_PKO_SELX(unsigned long a)
8806 {
8807 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
8808 return 0x87e0feaa0000ll + 8ll * ((a) & 0x1);
8809 __bdk_csr_fatal("DTX_PKO_SELX", 1, a, 0, 0, 0);
8810 }
8811
8812 #define typedef_BDK_DTX_PKO_SELX(a) bdk_dtx_pko_selx_t
8813 #define bustype_BDK_DTX_PKO_SELX(a) BDK_CSR_TYPE_RSL
8814 #define basename_BDK_DTX_PKO_SELX(a) "DTX_PKO_SELX"
8815 #define busnum_BDK_DTX_PKO_SELX(a) (a)
8816 #define arguments_BDK_DTX_PKO_SELX(a) (a),-1,-1,-1
8817
8818 /**
8819 * Register (RSL) dtx_ptp_bcst_rsp
8820 *
8821 * DTX PTP Control Register
8822 */
8823 union bdk_dtx_ptp_bcst_rsp
8824 {
8825 uint64_t u;
8826 struct bdk_dtx_ptp_bcst_rsp_s
8827 {
8828 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8829 uint64_t reserved_1_63 : 63;
8830 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
8831 #else /* Word 0 - Little Endian */
8832 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
8833 uint64_t reserved_1_63 : 63;
8834 #endif /* Word 0 - End */
8835 } s;
8836 /* struct bdk_dtx_ptp_bcst_rsp_s cn; */
8837 };
8838 typedef union bdk_dtx_ptp_bcst_rsp bdk_dtx_ptp_bcst_rsp_t;
8839
8840 #define BDK_DTX_PTP_BCST_RSP BDK_DTX_PTP_BCST_RSP_FUNC()
8841 static inline uint64_t BDK_DTX_PTP_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
8842 static inline uint64_t BDK_DTX_PTP_BCST_RSP_FUNC(void)
8843 {
8844 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
8845 return 0x87e0fe838080ll;
8846 __bdk_csr_fatal("DTX_PTP_BCST_RSP", 0, 0, 0, 0, 0);
8847 }
8848
8849 #define typedef_BDK_DTX_PTP_BCST_RSP bdk_dtx_ptp_bcst_rsp_t
8850 #define bustype_BDK_DTX_PTP_BCST_RSP BDK_CSR_TYPE_RSL
8851 #define basename_BDK_DTX_PTP_BCST_RSP "DTX_PTP_BCST_RSP"
8852 #define busnum_BDK_DTX_PTP_BCST_RSP 0
8853 #define arguments_BDK_DTX_PTP_BCST_RSP -1,-1,-1,-1
8854
8855 /**
8856 * Register (RSL) dtx_ptp_ctl
8857 *
8858 * DTX PTP Control Register
8859 */
8860 union bdk_dtx_ptp_ctl
8861 {
8862 uint64_t u;
8863 struct bdk_dtx_ptp_ctl_s
8864 {
8865 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8866 uint64_t reserved_5_63 : 59;
8867 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
8868 uint64_t reserved_2_3 : 2;
8869 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
8870 debug data. Not applicable when software directly reads the DAT(0..1) registers.
8871 For diagnostic use only. */
8872 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
8873 #else /* Word 0 - Little Endian */
8874 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
8875 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
8876 debug data. Not applicable when software directly reads the DAT(0..1) registers.
8877 For diagnostic use only. */
8878 uint64_t reserved_2_3 : 2;
8879 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
8880 uint64_t reserved_5_63 : 59;
8881 #endif /* Word 0 - End */
8882 } s;
8883 /* struct bdk_dtx_ptp_ctl_s cn; */
8884 };
8885 typedef union bdk_dtx_ptp_ctl bdk_dtx_ptp_ctl_t;
8886
8887 #define BDK_DTX_PTP_CTL BDK_DTX_PTP_CTL_FUNC()
8888 static inline uint64_t BDK_DTX_PTP_CTL_FUNC(void) __attribute__ ((pure, always_inline));
8889 static inline uint64_t BDK_DTX_PTP_CTL_FUNC(void)
8890 {
8891 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
8892 return 0x87e0fe838060ll;
8893 __bdk_csr_fatal("DTX_PTP_CTL", 0, 0, 0, 0, 0);
8894 }
8895
8896 #define typedef_BDK_DTX_PTP_CTL bdk_dtx_ptp_ctl_t
8897 #define bustype_BDK_DTX_PTP_CTL BDK_CSR_TYPE_RSL
8898 #define basename_BDK_DTX_PTP_CTL "DTX_PTP_CTL"
8899 #define busnum_BDK_DTX_PTP_CTL 0
8900 #define arguments_BDK_DTX_PTP_CTL -1,-1,-1,-1
8901
8902 /**
8903 * Register (RSL) dtx_ptp_dat#
8904 *
8905 * DTX PTP Raw Data Register
8906 */
8907 union bdk_dtx_ptp_datx
8908 {
8909 uint64_t u;
8910 struct bdk_dtx_ptp_datx_s
8911 {
8912 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8913 uint64_t reserved_36_63 : 28;
8914 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
8915 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
8916 #else /* Word 0 - Little Endian */
8917 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
8918 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
8919 uint64_t reserved_36_63 : 28;
8920 #endif /* Word 0 - End */
8921 } s;
8922 /* struct bdk_dtx_ptp_datx_s cn; */
8923 };
8924 typedef union bdk_dtx_ptp_datx bdk_dtx_ptp_datx_t;
8925
8926 static inline uint64_t BDK_DTX_PTP_DATX(unsigned long a) __attribute__ ((pure, always_inline));
8927 static inline uint64_t BDK_DTX_PTP_DATX(unsigned long a)
8928 {
8929 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
8930 return 0x87e0fe838040ll + 8ll * ((a) & 0x1);
8931 __bdk_csr_fatal("DTX_PTP_DATX", 1, a, 0, 0, 0);
8932 }
8933
8934 #define typedef_BDK_DTX_PTP_DATX(a) bdk_dtx_ptp_datx_t
8935 #define bustype_BDK_DTX_PTP_DATX(a) BDK_CSR_TYPE_RSL
8936 #define basename_BDK_DTX_PTP_DATX(a) "DTX_PTP_DATX"
8937 #define busnum_BDK_DTX_PTP_DATX(a) (a)
8938 #define arguments_BDK_DTX_PTP_DATX(a) (a),-1,-1,-1
8939
8940 /**
8941 * Register (RSL) dtx_ptp_ena#
8942 *
8943 * DTX PTP Data Enable Register
8944 */
8945 union bdk_dtx_ptp_enax
8946 {
8947 uint64_t u;
8948 struct bdk_dtx_ptp_enax_s
8949 {
8950 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8951 uint64_t reserved_36_63 : 28;
8952 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
8953 buses. Normally only one block will drive each bit. */
8954 #else /* Word 0 - Little Endian */
8955 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
8956 buses. Normally only one block will drive each bit. */
8957 uint64_t reserved_36_63 : 28;
8958 #endif /* Word 0 - End */
8959 } s;
8960 /* struct bdk_dtx_ptp_enax_s cn; */
8961 };
8962 typedef union bdk_dtx_ptp_enax bdk_dtx_ptp_enax_t;
8963
8964 static inline uint64_t BDK_DTX_PTP_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
8965 static inline uint64_t BDK_DTX_PTP_ENAX(unsigned long a)
8966 {
8967 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
8968 return 0x87e0fe838020ll + 8ll * ((a) & 0x1);
8969 __bdk_csr_fatal("DTX_PTP_ENAX", 1, a, 0, 0, 0);
8970 }
8971
8972 #define typedef_BDK_DTX_PTP_ENAX(a) bdk_dtx_ptp_enax_t
8973 #define bustype_BDK_DTX_PTP_ENAX(a) BDK_CSR_TYPE_RSL
8974 #define basename_BDK_DTX_PTP_ENAX(a) "DTX_PTP_ENAX"
8975 #define busnum_BDK_DTX_PTP_ENAX(a) (a)
8976 #define arguments_BDK_DTX_PTP_ENAX(a) (a),-1,-1,-1
8977
8978 /**
8979 * Register (RSL) dtx_ptp_sel#
8980 *
8981 * DTX PTP Select Register
8982 */
8983 union bdk_dtx_ptp_selx
8984 {
8985 uint64_t u;
8986 struct bdk_dtx_ptp_selx_s
8987 {
8988 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
8989 uint64_t reserved_24_63 : 40;
8990 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
8991 #else /* Word 0 - Little Endian */
8992 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
8993 uint64_t reserved_24_63 : 40;
8994 #endif /* Word 0 - End */
8995 } s;
8996 /* struct bdk_dtx_ptp_selx_s cn; */
8997 };
8998 typedef union bdk_dtx_ptp_selx bdk_dtx_ptp_selx_t;
8999
9000 static inline uint64_t BDK_DTX_PTP_SELX(unsigned long a) __attribute__ ((pure, always_inline));
9001 static inline uint64_t BDK_DTX_PTP_SELX(unsigned long a)
9002 {
9003 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
9004 return 0x87e0fe838000ll + 8ll * ((a) & 0x1);
9005 __bdk_csr_fatal("DTX_PTP_SELX", 1, a, 0, 0, 0);
9006 }
9007
9008 #define typedef_BDK_DTX_PTP_SELX(a) bdk_dtx_ptp_selx_t
9009 #define bustype_BDK_DTX_PTP_SELX(a) BDK_CSR_TYPE_RSL
9010 #define basename_BDK_DTX_PTP_SELX(a) "DTX_PTP_SELX"
9011 #define busnum_BDK_DTX_PTP_SELX(a) (a)
9012 #define arguments_BDK_DTX_PTP_SELX(a) (a),-1,-1,-1
9013
9014 /**
9015 * Register (RSL) dtx_rad_bcst_rsp
9016 *
9017 * DTX RAD Control Register
9018 */
9019 union bdk_dtx_rad_bcst_rsp
9020 {
9021 uint64_t u;
9022 struct bdk_dtx_rad_bcst_rsp_s
9023 {
9024 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9025 uint64_t reserved_1_63 : 63;
9026 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
9027 #else /* Word 0 - Little Endian */
9028 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
9029 uint64_t reserved_1_63 : 63;
9030 #endif /* Word 0 - End */
9031 } s;
9032 /* struct bdk_dtx_rad_bcst_rsp_s cn; */
9033 };
9034 typedef union bdk_dtx_rad_bcst_rsp bdk_dtx_rad_bcst_rsp_t;
9035
9036 #define BDK_DTX_RAD_BCST_RSP BDK_DTX_RAD_BCST_RSP_FUNC()
9037 static inline uint64_t BDK_DTX_RAD_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
9038 static inline uint64_t BDK_DTX_RAD_BCST_RSP_FUNC(void)
9039 {
9040 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
9041 return 0x87e0feb80080ll;
9042 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX))
9043 return 0x87e0feb80080ll;
9044 __bdk_csr_fatal("DTX_RAD_BCST_RSP", 0, 0, 0, 0, 0);
9045 }
9046
9047 #define typedef_BDK_DTX_RAD_BCST_RSP bdk_dtx_rad_bcst_rsp_t
9048 #define bustype_BDK_DTX_RAD_BCST_RSP BDK_CSR_TYPE_RSL
9049 #define basename_BDK_DTX_RAD_BCST_RSP "DTX_RAD_BCST_RSP"
9050 #define busnum_BDK_DTX_RAD_BCST_RSP 0
9051 #define arguments_BDK_DTX_RAD_BCST_RSP -1,-1,-1,-1
9052
9053 /**
9054 * Register (RSL) dtx_rad_ctl
9055 *
9056 * DTX RAD Control Register
9057 */
9058 union bdk_dtx_rad_ctl
9059 {
9060 uint64_t u;
9061 struct bdk_dtx_rad_ctl_s
9062 {
9063 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9064 uint64_t reserved_5_63 : 59;
9065 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
9066 uint64_t reserved_2_3 : 2;
9067 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
9068 debug data. Not applicable when software directly reads the DAT(0..1) registers.
9069 For diagnostic use only. */
9070 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
9071 #else /* Word 0 - Little Endian */
9072 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
9073 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
9074 debug data. Not applicable when software directly reads the DAT(0..1) registers.
9075 For diagnostic use only. */
9076 uint64_t reserved_2_3 : 2;
9077 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
9078 uint64_t reserved_5_63 : 59;
9079 #endif /* Word 0 - End */
9080 } s;
9081 /* struct bdk_dtx_rad_ctl_s cn; */
9082 };
9083 typedef union bdk_dtx_rad_ctl bdk_dtx_rad_ctl_t;
9084
9085 #define BDK_DTX_RAD_CTL BDK_DTX_RAD_CTL_FUNC()
9086 static inline uint64_t BDK_DTX_RAD_CTL_FUNC(void) __attribute__ ((pure, always_inline));
9087 static inline uint64_t BDK_DTX_RAD_CTL_FUNC(void)
9088 {
9089 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
9090 return 0x87e0feb80060ll;
9091 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX))
9092 return 0x87e0feb80060ll;
9093 __bdk_csr_fatal("DTX_RAD_CTL", 0, 0, 0, 0, 0);
9094 }
9095
9096 #define typedef_BDK_DTX_RAD_CTL bdk_dtx_rad_ctl_t
9097 #define bustype_BDK_DTX_RAD_CTL BDK_CSR_TYPE_RSL
9098 #define basename_BDK_DTX_RAD_CTL "DTX_RAD_CTL"
9099 #define busnum_BDK_DTX_RAD_CTL 0
9100 #define arguments_BDK_DTX_RAD_CTL -1,-1,-1,-1
9101
9102 /**
9103 * Register (RSL) dtx_rad_dat#
9104 *
9105 * DTX RAD Raw Data Register
9106 */
9107 union bdk_dtx_rad_datx
9108 {
9109 uint64_t u;
9110 struct bdk_dtx_rad_datx_s
9111 {
9112 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9113 uint64_t reserved_36_63 : 28;
9114 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
9115 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
9116 #else /* Word 0 - Little Endian */
9117 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
9118 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
9119 uint64_t reserved_36_63 : 28;
9120 #endif /* Word 0 - End */
9121 } s;
9122 /* struct bdk_dtx_rad_datx_s cn; */
9123 };
9124 typedef union bdk_dtx_rad_datx bdk_dtx_rad_datx_t;
9125
9126 static inline uint64_t BDK_DTX_RAD_DATX(unsigned long a) __attribute__ ((pure, always_inline));
9127 static inline uint64_t BDK_DTX_RAD_DATX(unsigned long a)
9128 {
9129 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
9130 return 0x87e0feb80040ll + 8ll * ((a) & 0x1);
9131 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
9132 return 0x87e0feb80040ll + 8ll * ((a) & 0x1);
9133 __bdk_csr_fatal("DTX_RAD_DATX", 1, a, 0, 0, 0);
9134 }
9135
9136 #define typedef_BDK_DTX_RAD_DATX(a) bdk_dtx_rad_datx_t
9137 #define bustype_BDK_DTX_RAD_DATX(a) BDK_CSR_TYPE_RSL
9138 #define basename_BDK_DTX_RAD_DATX(a) "DTX_RAD_DATX"
9139 #define busnum_BDK_DTX_RAD_DATX(a) (a)
9140 #define arguments_BDK_DTX_RAD_DATX(a) (a),-1,-1,-1
9141
9142 /**
9143 * Register (RSL) dtx_rad_ena#
9144 *
9145 * DTX RAD Data Enable Register
9146 */
9147 union bdk_dtx_rad_enax
9148 {
9149 uint64_t u;
9150 struct bdk_dtx_rad_enax_s
9151 {
9152 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9153 uint64_t reserved_36_63 : 28;
9154 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
9155 buses. Normally only one block will drive each bit. */
9156 #else /* Word 0 - Little Endian */
9157 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
9158 buses. Normally only one block will drive each bit. */
9159 uint64_t reserved_36_63 : 28;
9160 #endif /* Word 0 - End */
9161 } s;
9162 /* struct bdk_dtx_rad_enax_s cn; */
9163 };
9164 typedef union bdk_dtx_rad_enax bdk_dtx_rad_enax_t;
9165
9166 static inline uint64_t BDK_DTX_RAD_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
9167 static inline uint64_t BDK_DTX_RAD_ENAX(unsigned long a)
9168 {
9169 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
9170 return 0x87e0feb80020ll + 8ll * ((a) & 0x1);
9171 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
9172 return 0x87e0feb80020ll + 8ll * ((a) & 0x1);
9173 __bdk_csr_fatal("DTX_RAD_ENAX", 1, a, 0, 0, 0);
9174 }
9175
9176 #define typedef_BDK_DTX_RAD_ENAX(a) bdk_dtx_rad_enax_t
9177 #define bustype_BDK_DTX_RAD_ENAX(a) BDK_CSR_TYPE_RSL
9178 #define basename_BDK_DTX_RAD_ENAX(a) "DTX_RAD_ENAX"
9179 #define busnum_BDK_DTX_RAD_ENAX(a) (a)
9180 #define arguments_BDK_DTX_RAD_ENAX(a) (a),-1,-1,-1
9181
9182 /**
9183 * Register (RSL) dtx_rad_sel#
9184 *
9185 * DTX RAD Select Register
9186 */
9187 union bdk_dtx_rad_selx
9188 {
9189 uint64_t u;
9190 struct bdk_dtx_rad_selx_s
9191 {
9192 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9193 uint64_t reserved_24_63 : 40;
9194 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
9195 #else /* Word 0 - Little Endian */
9196 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
9197 uint64_t reserved_24_63 : 40;
9198 #endif /* Word 0 - End */
9199 } s;
9200 /* struct bdk_dtx_rad_selx_s cn; */
9201 };
9202 typedef union bdk_dtx_rad_selx bdk_dtx_rad_selx_t;
9203
9204 static inline uint64_t BDK_DTX_RAD_SELX(unsigned long a) __attribute__ ((pure, always_inline));
9205 static inline uint64_t BDK_DTX_RAD_SELX(unsigned long a)
9206 {
9207 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
9208 return 0x87e0feb80000ll + 8ll * ((a) & 0x1);
9209 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
9210 return 0x87e0feb80000ll + 8ll * ((a) & 0x1);
9211 __bdk_csr_fatal("DTX_RAD_SELX", 1, a, 0, 0, 0);
9212 }
9213
9214 #define typedef_BDK_DTX_RAD_SELX(a) bdk_dtx_rad_selx_t
9215 #define bustype_BDK_DTX_RAD_SELX(a) BDK_CSR_TYPE_RSL
9216 #define basename_BDK_DTX_RAD_SELX(a) "DTX_RAD_SELX"
9217 #define busnum_BDK_DTX_RAD_SELX(a) (a)
9218 #define arguments_BDK_DTX_RAD_SELX(a) (a),-1,-1,-1
9219
9220 /**
9221 * Register (RSL) dtx_rgx#_bcst_rsp
9222 *
9223 * DTX RGX Control Register
9224 */
9225 union bdk_dtx_rgxx_bcst_rsp
9226 {
9227 uint64_t u;
9228 struct bdk_dtx_rgxx_bcst_rsp_s
9229 {
9230 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9231 uint64_t reserved_1_63 : 63;
9232 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
9233 #else /* Word 0 - Little Endian */
9234 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
9235 uint64_t reserved_1_63 : 63;
9236 #endif /* Word 0 - End */
9237 } s;
9238 /* struct bdk_dtx_rgxx_bcst_rsp_s cn; */
9239 };
9240 typedef union bdk_dtx_rgxx_bcst_rsp bdk_dtx_rgxx_bcst_rsp_t;
9241
9242 static inline uint64_t BDK_DTX_RGXX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
9243 static inline uint64_t BDK_DTX_RGXX_BCST_RSP(unsigned long a)
9244 {
9245 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a==0))
9246 return 0x87e0fe740080ll + 0x8000ll * ((a) & 0x0);
9247 __bdk_csr_fatal("DTX_RGXX_BCST_RSP", 1, a, 0, 0, 0);
9248 }
9249
9250 #define typedef_BDK_DTX_RGXX_BCST_RSP(a) bdk_dtx_rgxx_bcst_rsp_t
9251 #define bustype_BDK_DTX_RGXX_BCST_RSP(a) BDK_CSR_TYPE_RSL
9252 #define basename_BDK_DTX_RGXX_BCST_RSP(a) "DTX_RGXX_BCST_RSP"
9253 #define busnum_BDK_DTX_RGXX_BCST_RSP(a) (a)
9254 #define arguments_BDK_DTX_RGXX_BCST_RSP(a) (a),-1,-1,-1
9255
9256 /**
9257 * Register (RSL) dtx_rgx#_ctl
9258 *
9259 * DTX RGX Control Register
9260 */
9261 union bdk_dtx_rgxx_ctl
9262 {
9263 uint64_t u;
9264 struct bdk_dtx_rgxx_ctl_s
9265 {
9266 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9267 uint64_t reserved_5_63 : 59;
9268 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
9269 uint64_t reserved_2_3 : 2;
9270 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
9271 debug data. Not applicable when software directly reads the DAT(0..1) registers.
9272 For diagnostic use only. */
9273 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
9274 #else /* Word 0 - Little Endian */
9275 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
9276 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
9277 debug data. Not applicable when software directly reads the DAT(0..1) registers.
9278 For diagnostic use only. */
9279 uint64_t reserved_2_3 : 2;
9280 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
9281 uint64_t reserved_5_63 : 59;
9282 #endif /* Word 0 - End */
9283 } s;
9284 /* struct bdk_dtx_rgxx_ctl_s cn; */
9285 };
9286 typedef union bdk_dtx_rgxx_ctl bdk_dtx_rgxx_ctl_t;
9287
9288 static inline uint64_t BDK_DTX_RGXX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
9289 static inline uint64_t BDK_DTX_RGXX_CTL(unsigned long a)
9290 {
9291 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a==0))
9292 return 0x87e0fe740060ll + 0x8000ll * ((a) & 0x0);
9293 __bdk_csr_fatal("DTX_RGXX_CTL", 1, a, 0, 0, 0);
9294 }
9295
9296 #define typedef_BDK_DTX_RGXX_CTL(a) bdk_dtx_rgxx_ctl_t
9297 #define bustype_BDK_DTX_RGXX_CTL(a) BDK_CSR_TYPE_RSL
9298 #define basename_BDK_DTX_RGXX_CTL(a) "DTX_RGXX_CTL"
9299 #define busnum_BDK_DTX_RGXX_CTL(a) (a)
9300 #define arguments_BDK_DTX_RGXX_CTL(a) (a),-1,-1,-1
9301
9302 /**
9303 * Register (RSL) dtx_rgx#_dat#
9304 *
9305 * DTX RGX Raw Data Register
9306 */
9307 union bdk_dtx_rgxx_datx
9308 {
9309 uint64_t u;
9310 struct bdk_dtx_rgxx_datx_s
9311 {
9312 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9313 uint64_t reserved_36_63 : 28;
9314 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
9315 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
9316 #else /* Word 0 - Little Endian */
9317 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
9318 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
9319 uint64_t reserved_36_63 : 28;
9320 #endif /* Word 0 - End */
9321 } s;
9322 /* struct bdk_dtx_rgxx_datx_s cn; */
9323 };
9324 typedef union bdk_dtx_rgxx_datx bdk_dtx_rgxx_datx_t;
9325
9326 static inline uint64_t BDK_DTX_RGXX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
9327 static inline uint64_t BDK_DTX_RGXX_DATX(unsigned long a, unsigned long b)
9328 {
9329 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
9330 return 0x87e0fe740040ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
9331 __bdk_csr_fatal("DTX_RGXX_DATX", 2, a, b, 0, 0);
9332 }
9333
9334 #define typedef_BDK_DTX_RGXX_DATX(a,b) bdk_dtx_rgxx_datx_t
9335 #define bustype_BDK_DTX_RGXX_DATX(a,b) BDK_CSR_TYPE_RSL
9336 #define basename_BDK_DTX_RGXX_DATX(a,b) "DTX_RGXX_DATX"
9337 #define busnum_BDK_DTX_RGXX_DATX(a,b) (a)
9338 #define arguments_BDK_DTX_RGXX_DATX(a,b) (a),(b),-1,-1
9339
9340 /**
9341 * Register (RSL) dtx_rgx#_ena#
9342 *
9343 * DTX RGX Data Enable Register
9344 */
9345 union bdk_dtx_rgxx_enax
9346 {
9347 uint64_t u;
9348 struct bdk_dtx_rgxx_enax_s
9349 {
9350 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9351 uint64_t reserved_36_63 : 28;
9352 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
9353 buses. Normally only one block will drive each bit. */
9354 #else /* Word 0 - Little Endian */
9355 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
9356 buses. Normally only one block will drive each bit. */
9357 uint64_t reserved_36_63 : 28;
9358 #endif /* Word 0 - End */
9359 } s;
9360 /* struct bdk_dtx_rgxx_enax_s cn; */
9361 };
9362 typedef union bdk_dtx_rgxx_enax bdk_dtx_rgxx_enax_t;
9363
9364 static inline uint64_t BDK_DTX_RGXX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
9365 static inline uint64_t BDK_DTX_RGXX_ENAX(unsigned long a, unsigned long b)
9366 {
9367 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
9368 return 0x87e0fe740020ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
9369 __bdk_csr_fatal("DTX_RGXX_ENAX", 2, a, b, 0, 0);
9370 }
9371
9372 #define typedef_BDK_DTX_RGXX_ENAX(a,b) bdk_dtx_rgxx_enax_t
9373 #define bustype_BDK_DTX_RGXX_ENAX(a,b) BDK_CSR_TYPE_RSL
9374 #define basename_BDK_DTX_RGXX_ENAX(a,b) "DTX_RGXX_ENAX"
9375 #define busnum_BDK_DTX_RGXX_ENAX(a,b) (a)
9376 #define arguments_BDK_DTX_RGXX_ENAX(a,b) (a),(b),-1,-1
9377
9378 /**
9379 * Register (RSL) dtx_rgx#_sel#
9380 *
9381 * DTX RGX Select Register
9382 */
9383 union bdk_dtx_rgxx_selx
9384 {
9385 uint64_t u;
9386 struct bdk_dtx_rgxx_selx_s
9387 {
9388 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9389 uint64_t reserved_24_63 : 40;
9390 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
9391 #else /* Word 0 - Little Endian */
9392 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
9393 uint64_t reserved_24_63 : 40;
9394 #endif /* Word 0 - End */
9395 } s;
9396 /* struct bdk_dtx_rgxx_selx_s cn; */
9397 };
9398 typedef union bdk_dtx_rgxx_selx bdk_dtx_rgxx_selx_t;
9399
9400 static inline uint64_t BDK_DTX_RGXX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
9401 static inline uint64_t BDK_DTX_RGXX_SELX(unsigned long a, unsigned long b)
9402 {
9403 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
9404 return 0x87e0fe740000ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
9405 __bdk_csr_fatal("DTX_RGXX_SELX", 2, a, b, 0, 0);
9406 }
9407
9408 #define typedef_BDK_DTX_RGXX_SELX(a,b) bdk_dtx_rgxx_selx_t
9409 #define bustype_BDK_DTX_RGXX_SELX(a,b) BDK_CSR_TYPE_RSL
9410 #define basename_BDK_DTX_RGXX_SELX(a,b) "DTX_RGXX_SELX"
9411 #define busnum_BDK_DTX_RGXX_SELX(a,b) (a)
9412 #define arguments_BDK_DTX_RGXX_SELX(a,b) (a),(b),-1,-1
9413
9414 /**
9415 * Register (RSL) dtx_rnm_bcst_rsp
9416 *
9417 * DTX RNM Control Register
9418 */
9419 union bdk_dtx_rnm_bcst_rsp
9420 {
9421 uint64_t u;
9422 struct bdk_dtx_rnm_bcst_rsp_s
9423 {
9424 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9425 uint64_t reserved_1_63 : 63;
9426 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
9427 #else /* Word 0 - Little Endian */
9428 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
9429 uint64_t reserved_1_63 : 63;
9430 #endif /* Word 0 - End */
9431 } s;
9432 /* struct bdk_dtx_rnm_bcst_rsp_s cn; */
9433 };
9434 typedef union bdk_dtx_rnm_bcst_rsp bdk_dtx_rnm_bcst_rsp_t;
9435
9436 #define BDK_DTX_RNM_BCST_RSP BDK_DTX_RNM_BCST_RSP_FUNC()
9437 static inline uint64_t BDK_DTX_RNM_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
9438 static inline uint64_t BDK_DTX_RNM_BCST_RSP_FUNC(void)
9439 {
9440 return 0x87e0fe200080ll;
9441 }
9442
9443 #define typedef_BDK_DTX_RNM_BCST_RSP bdk_dtx_rnm_bcst_rsp_t
9444 #define bustype_BDK_DTX_RNM_BCST_RSP BDK_CSR_TYPE_RSL
9445 #define basename_BDK_DTX_RNM_BCST_RSP "DTX_RNM_BCST_RSP"
9446 #define busnum_BDK_DTX_RNM_BCST_RSP 0
9447 #define arguments_BDK_DTX_RNM_BCST_RSP -1,-1,-1,-1
9448
9449 /**
9450 * Register (RSL) dtx_rnm_ctl
9451 *
9452 * DTX RNM Control Register
9453 */
9454 union bdk_dtx_rnm_ctl
9455 {
9456 uint64_t u;
9457 struct bdk_dtx_rnm_ctl_s
9458 {
9459 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9460 uint64_t reserved_5_63 : 59;
9461 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
9462 uint64_t reserved_2_3 : 2;
9463 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
9464 debug data. Not applicable when software directly reads the DAT(0..1) registers.
9465 For diagnostic use only. */
9466 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
9467 #else /* Word 0 - Little Endian */
9468 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
9469 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
9470 debug data. Not applicable when software directly reads the DAT(0..1) registers.
9471 For diagnostic use only. */
9472 uint64_t reserved_2_3 : 2;
9473 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
9474 uint64_t reserved_5_63 : 59;
9475 #endif /* Word 0 - End */
9476 } s;
9477 /* struct bdk_dtx_rnm_ctl_s cn; */
9478 };
9479 typedef union bdk_dtx_rnm_ctl bdk_dtx_rnm_ctl_t;
9480
9481 #define BDK_DTX_RNM_CTL BDK_DTX_RNM_CTL_FUNC()
9482 static inline uint64_t BDK_DTX_RNM_CTL_FUNC(void) __attribute__ ((pure, always_inline));
9483 static inline uint64_t BDK_DTX_RNM_CTL_FUNC(void)
9484 {
9485 return 0x87e0fe200060ll;
9486 }
9487
9488 #define typedef_BDK_DTX_RNM_CTL bdk_dtx_rnm_ctl_t
9489 #define bustype_BDK_DTX_RNM_CTL BDK_CSR_TYPE_RSL
9490 #define basename_BDK_DTX_RNM_CTL "DTX_RNM_CTL"
9491 #define busnum_BDK_DTX_RNM_CTL 0
9492 #define arguments_BDK_DTX_RNM_CTL -1,-1,-1,-1
9493
9494 /**
9495 * Register (RSL) dtx_rnm_dat#
9496 *
9497 * DTX RNM Raw Data Register
9498 */
9499 union bdk_dtx_rnm_datx
9500 {
9501 uint64_t u;
9502 struct bdk_dtx_rnm_datx_s
9503 {
9504 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9505 uint64_t reserved_36_63 : 28;
9506 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
9507 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
9508 #else /* Word 0 - Little Endian */
9509 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
9510 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
9511 uint64_t reserved_36_63 : 28;
9512 #endif /* Word 0 - End */
9513 } s;
9514 /* struct bdk_dtx_rnm_datx_s cn; */
9515 };
9516 typedef union bdk_dtx_rnm_datx bdk_dtx_rnm_datx_t;
9517
9518 static inline uint64_t BDK_DTX_RNM_DATX(unsigned long a) __attribute__ ((pure, always_inline));
9519 static inline uint64_t BDK_DTX_RNM_DATX(unsigned long a)
9520 {
9521 if (a<=1)
9522 return 0x87e0fe200040ll + 8ll * ((a) & 0x1);
9523 __bdk_csr_fatal("DTX_RNM_DATX", 1, a, 0, 0, 0);
9524 }
9525
9526 #define typedef_BDK_DTX_RNM_DATX(a) bdk_dtx_rnm_datx_t
9527 #define bustype_BDK_DTX_RNM_DATX(a) BDK_CSR_TYPE_RSL
9528 #define basename_BDK_DTX_RNM_DATX(a) "DTX_RNM_DATX"
9529 #define busnum_BDK_DTX_RNM_DATX(a) (a)
9530 #define arguments_BDK_DTX_RNM_DATX(a) (a),-1,-1,-1
9531
9532 /**
9533 * Register (RSL) dtx_rnm_ena#
9534 *
9535 * DTX RNM Data Enable Register
9536 */
9537 union bdk_dtx_rnm_enax
9538 {
9539 uint64_t u;
9540 struct bdk_dtx_rnm_enax_s
9541 {
9542 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9543 uint64_t reserved_36_63 : 28;
9544 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
9545 buses. Normally only one block will drive each bit. */
9546 #else /* Word 0 - Little Endian */
9547 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
9548 buses. Normally only one block will drive each bit. */
9549 uint64_t reserved_36_63 : 28;
9550 #endif /* Word 0 - End */
9551 } s;
9552 /* struct bdk_dtx_rnm_enax_s cn; */
9553 };
9554 typedef union bdk_dtx_rnm_enax bdk_dtx_rnm_enax_t;
9555
9556 static inline uint64_t BDK_DTX_RNM_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
9557 static inline uint64_t BDK_DTX_RNM_ENAX(unsigned long a)
9558 {
9559 if (a<=1)
9560 return 0x87e0fe200020ll + 8ll * ((a) & 0x1);
9561 __bdk_csr_fatal("DTX_RNM_ENAX", 1, a, 0, 0, 0);
9562 }
9563
9564 #define typedef_BDK_DTX_RNM_ENAX(a) bdk_dtx_rnm_enax_t
9565 #define bustype_BDK_DTX_RNM_ENAX(a) BDK_CSR_TYPE_RSL
9566 #define basename_BDK_DTX_RNM_ENAX(a) "DTX_RNM_ENAX"
9567 #define busnum_BDK_DTX_RNM_ENAX(a) (a)
9568 #define arguments_BDK_DTX_RNM_ENAX(a) (a),-1,-1,-1
9569
9570 /**
9571 * Register (RSL) dtx_rnm_sel#
9572 *
9573 * DTX RNM Select Register
9574 */
9575 union bdk_dtx_rnm_selx
9576 {
9577 uint64_t u;
9578 struct bdk_dtx_rnm_selx_s
9579 {
9580 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9581 uint64_t reserved_24_63 : 40;
9582 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
9583 #else /* Word 0 - Little Endian */
9584 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
9585 uint64_t reserved_24_63 : 40;
9586 #endif /* Word 0 - End */
9587 } s;
9588 /* struct bdk_dtx_rnm_selx_s cn; */
9589 };
9590 typedef union bdk_dtx_rnm_selx bdk_dtx_rnm_selx_t;
9591
9592 static inline uint64_t BDK_DTX_RNM_SELX(unsigned long a) __attribute__ ((pure, always_inline));
9593 static inline uint64_t BDK_DTX_RNM_SELX(unsigned long a)
9594 {
9595 if (a<=1)
9596 return 0x87e0fe200000ll + 8ll * ((a) & 0x1);
9597 __bdk_csr_fatal("DTX_RNM_SELX", 1, a, 0, 0, 0);
9598 }
9599
9600 #define typedef_BDK_DTX_RNM_SELX(a) bdk_dtx_rnm_selx_t
9601 #define bustype_BDK_DTX_RNM_SELX(a) BDK_CSR_TYPE_RSL
9602 #define basename_BDK_DTX_RNM_SELX(a) "DTX_RNM_SELX"
9603 #define busnum_BDK_DTX_RNM_SELX(a) (a)
9604 #define arguments_BDK_DTX_RNM_SELX(a) (a),-1,-1,-1
9605
9606 /**
9607 * Register (RSL) dtx_rst_bcst_rsp
9608 *
9609 * DTX RST Control Register
9610 */
9611 union bdk_dtx_rst_bcst_rsp
9612 {
9613 uint64_t u;
9614 struct bdk_dtx_rst_bcst_rsp_s
9615 {
9616 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9617 uint64_t reserved_1_63 : 63;
9618 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
9619 #else /* Word 0 - Little Endian */
9620 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
9621 uint64_t reserved_1_63 : 63;
9622 #endif /* Word 0 - End */
9623 } s;
9624 /* struct bdk_dtx_rst_bcst_rsp_s cn; */
9625 };
9626 typedef union bdk_dtx_rst_bcst_rsp bdk_dtx_rst_bcst_rsp_t;
9627
9628 #define BDK_DTX_RST_BCST_RSP BDK_DTX_RST_BCST_RSP_FUNC()
9629 static inline uint64_t BDK_DTX_RST_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
9630 static inline uint64_t BDK_DTX_RST_BCST_RSP_FUNC(void)
9631 {
9632 return 0x87e0fe030080ll;
9633 }
9634
9635 #define typedef_BDK_DTX_RST_BCST_RSP bdk_dtx_rst_bcst_rsp_t
9636 #define bustype_BDK_DTX_RST_BCST_RSP BDK_CSR_TYPE_RSL
9637 #define basename_BDK_DTX_RST_BCST_RSP "DTX_RST_BCST_RSP"
9638 #define busnum_BDK_DTX_RST_BCST_RSP 0
9639 #define arguments_BDK_DTX_RST_BCST_RSP -1,-1,-1,-1
9640
9641 /**
9642 * Register (RSL) dtx_rst_ctl
9643 *
9644 * DTX RST Control Register
9645 */
9646 union bdk_dtx_rst_ctl
9647 {
9648 uint64_t u;
9649 struct bdk_dtx_rst_ctl_s
9650 {
9651 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9652 uint64_t reserved_5_63 : 59;
9653 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
9654 uint64_t reserved_2_3 : 2;
9655 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
9656 debug data. Not applicable when software directly reads the DAT(0..1) registers.
9657 For diagnostic use only. */
9658 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
9659 #else /* Word 0 - Little Endian */
9660 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
9661 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
9662 debug data. Not applicable when software directly reads the DAT(0..1) registers.
9663 For diagnostic use only. */
9664 uint64_t reserved_2_3 : 2;
9665 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
9666 uint64_t reserved_5_63 : 59;
9667 #endif /* Word 0 - End */
9668 } s;
9669 /* struct bdk_dtx_rst_ctl_s cn; */
9670 };
9671 typedef union bdk_dtx_rst_ctl bdk_dtx_rst_ctl_t;
9672
9673 #define BDK_DTX_RST_CTL BDK_DTX_RST_CTL_FUNC()
9674 static inline uint64_t BDK_DTX_RST_CTL_FUNC(void) __attribute__ ((pure, always_inline));
9675 static inline uint64_t BDK_DTX_RST_CTL_FUNC(void)
9676 {
9677 return 0x87e0fe030060ll;
9678 }
9679
9680 #define typedef_BDK_DTX_RST_CTL bdk_dtx_rst_ctl_t
9681 #define bustype_BDK_DTX_RST_CTL BDK_CSR_TYPE_RSL
9682 #define basename_BDK_DTX_RST_CTL "DTX_RST_CTL"
9683 #define busnum_BDK_DTX_RST_CTL 0
9684 #define arguments_BDK_DTX_RST_CTL -1,-1,-1,-1
9685
9686 /**
9687 * Register (RSL) dtx_rst_dat#
9688 *
9689 * DTX RST Raw Data Register
9690 */
9691 union bdk_dtx_rst_datx
9692 {
9693 uint64_t u;
9694 struct bdk_dtx_rst_datx_s
9695 {
9696 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9697 uint64_t reserved_36_63 : 28;
9698 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
9699 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
9700 #else /* Word 0 - Little Endian */
9701 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
9702 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
9703 uint64_t reserved_36_63 : 28;
9704 #endif /* Word 0 - End */
9705 } s;
9706 /* struct bdk_dtx_rst_datx_s cn; */
9707 };
9708 typedef union bdk_dtx_rst_datx bdk_dtx_rst_datx_t;
9709
9710 static inline uint64_t BDK_DTX_RST_DATX(unsigned long a) __attribute__ ((pure, always_inline));
9711 static inline uint64_t BDK_DTX_RST_DATX(unsigned long a)
9712 {
9713 if (a<=1)
9714 return 0x87e0fe030040ll + 8ll * ((a) & 0x1);
9715 __bdk_csr_fatal("DTX_RST_DATX", 1, a, 0, 0, 0);
9716 }
9717
9718 #define typedef_BDK_DTX_RST_DATX(a) bdk_dtx_rst_datx_t
9719 #define bustype_BDK_DTX_RST_DATX(a) BDK_CSR_TYPE_RSL
9720 #define basename_BDK_DTX_RST_DATX(a) "DTX_RST_DATX"
9721 #define busnum_BDK_DTX_RST_DATX(a) (a)
9722 #define arguments_BDK_DTX_RST_DATX(a) (a),-1,-1,-1
9723
9724 /**
9725 * Register (RSL) dtx_rst_ena#
9726 *
9727 * DTX RST Data Enable Register
9728 */
9729 union bdk_dtx_rst_enax
9730 {
9731 uint64_t u;
9732 struct bdk_dtx_rst_enax_s
9733 {
9734 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9735 uint64_t reserved_36_63 : 28;
9736 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
9737 buses. Normally only one block will drive each bit. */
9738 #else /* Word 0 - Little Endian */
9739 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
9740 buses. Normally only one block will drive each bit. */
9741 uint64_t reserved_36_63 : 28;
9742 #endif /* Word 0 - End */
9743 } s;
9744 /* struct bdk_dtx_rst_enax_s cn; */
9745 };
9746 typedef union bdk_dtx_rst_enax bdk_dtx_rst_enax_t;
9747
9748 static inline uint64_t BDK_DTX_RST_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
9749 static inline uint64_t BDK_DTX_RST_ENAX(unsigned long a)
9750 {
9751 if (a<=1)
9752 return 0x87e0fe030020ll + 8ll * ((a) & 0x1);
9753 __bdk_csr_fatal("DTX_RST_ENAX", 1, a, 0, 0, 0);
9754 }
9755
9756 #define typedef_BDK_DTX_RST_ENAX(a) bdk_dtx_rst_enax_t
9757 #define bustype_BDK_DTX_RST_ENAX(a) BDK_CSR_TYPE_RSL
9758 #define basename_BDK_DTX_RST_ENAX(a) "DTX_RST_ENAX"
9759 #define busnum_BDK_DTX_RST_ENAX(a) (a)
9760 #define arguments_BDK_DTX_RST_ENAX(a) (a),-1,-1,-1
9761
9762 /**
9763 * Register (RSL) dtx_rst_sel#
9764 *
9765 * DTX RST Select Register
9766 */
9767 union bdk_dtx_rst_selx
9768 {
9769 uint64_t u;
9770 struct bdk_dtx_rst_selx_s
9771 {
9772 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9773 uint64_t reserved_24_63 : 40;
9774 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
9775 #else /* Word 0 - Little Endian */
9776 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
9777 uint64_t reserved_24_63 : 40;
9778 #endif /* Word 0 - End */
9779 } s;
9780 /* struct bdk_dtx_rst_selx_s cn; */
9781 };
9782 typedef union bdk_dtx_rst_selx bdk_dtx_rst_selx_t;
9783
9784 static inline uint64_t BDK_DTX_RST_SELX(unsigned long a) __attribute__ ((pure, always_inline));
9785 static inline uint64_t BDK_DTX_RST_SELX(unsigned long a)
9786 {
9787 if (a<=1)
9788 return 0x87e0fe030000ll + 8ll * ((a) & 0x1);
9789 __bdk_csr_fatal("DTX_RST_SELX", 1, a, 0, 0, 0);
9790 }
9791
9792 #define typedef_BDK_DTX_RST_SELX(a) bdk_dtx_rst_selx_t
9793 #define bustype_BDK_DTX_RST_SELX(a) BDK_CSR_TYPE_RSL
9794 #define basename_BDK_DTX_RST_SELX(a) "DTX_RST_SELX"
9795 #define busnum_BDK_DTX_RST_SELX(a) (a)
9796 #define arguments_BDK_DTX_RST_SELX(a) (a),-1,-1,-1
9797
9798 /**
9799 * Register (RSL) dtx_sata#_bcst_rsp
9800 *
9801 * DTX SATA Control Register
9802 */
9803 union bdk_dtx_satax_bcst_rsp
9804 {
9805 uint64_t u;
9806 struct bdk_dtx_satax_bcst_rsp_s
9807 {
9808 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9809 uint64_t reserved_1_63 : 63;
9810 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
9811 #else /* Word 0 - Little Endian */
9812 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
9813 uint64_t reserved_1_63 : 63;
9814 #endif /* Word 0 - End */
9815 } s;
9816 /* struct bdk_dtx_satax_bcst_rsp_s cn; */
9817 };
9818 typedef union bdk_dtx_satax_bcst_rsp bdk_dtx_satax_bcst_rsp_t;
9819
9820 static inline uint64_t BDK_DTX_SATAX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
9821 static inline uint64_t BDK_DTX_SATAX_BCST_RSP(unsigned long a)
9822 {
9823 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
9824 return 0x87e0fe880080ll + 0x8000ll * ((a) & 0x1);
9825 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=5))
9826 return 0x87e0fe880080ll + 0x8000ll * ((a) & 0x7);
9827 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=15))
9828 return 0x87e0fe880080ll + 0x8000ll * ((a) & 0xf);
9829 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=3))
9830 return 0x87e0fe880080ll + 0x8000ll * ((a) & 0x3);
9831 __bdk_csr_fatal("DTX_SATAX_BCST_RSP", 1, a, 0, 0, 0);
9832 }
9833
9834 #define typedef_BDK_DTX_SATAX_BCST_RSP(a) bdk_dtx_satax_bcst_rsp_t
9835 #define bustype_BDK_DTX_SATAX_BCST_RSP(a) BDK_CSR_TYPE_RSL
9836 #define basename_BDK_DTX_SATAX_BCST_RSP(a) "DTX_SATAX_BCST_RSP"
9837 #define busnum_BDK_DTX_SATAX_BCST_RSP(a) (a)
9838 #define arguments_BDK_DTX_SATAX_BCST_RSP(a) (a),-1,-1,-1
9839
9840 /**
9841 * Register (RSL) dtx_sata#_ctl
9842 *
9843 * DTX SATA Control Register
9844 */
9845 union bdk_dtx_satax_ctl
9846 {
9847 uint64_t u;
9848 struct bdk_dtx_satax_ctl_s
9849 {
9850 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9851 uint64_t reserved_5_63 : 59;
9852 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
9853 uint64_t reserved_2_3 : 2;
9854 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
9855 debug data. Not applicable when software directly reads the DAT(0..1) registers.
9856 For diagnostic use only. */
9857 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
9858 #else /* Word 0 - Little Endian */
9859 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
9860 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
9861 debug data. Not applicable when software directly reads the DAT(0..1) registers.
9862 For diagnostic use only. */
9863 uint64_t reserved_2_3 : 2;
9864 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
9865 uint64_t reserved_5_63 : 59;
9866 #endif /* Word 0 - End */
9867 } s;
9868 /* struct bdk_dtx_satax_ctl_s cn; */
9869 };
9870 typedef union bdk_dtx_satax_ctl bdk_dtx_satax_ctl_t;
9871
9872 static inline uint64_t BDK_DTX_SATAX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
9873 static inline uint64_t BDK_DTX_SATAX_CTL(unsigned long a)
9874 {
9875 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
9876 return 0x87e0fe880060ll + 0x8000ll * ((a) & 0x1);
9877 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=5))
9878 return 0x87e0fe880060ll + 0x8000ll * ((a) & 0x7);
9879 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=15))
9880 return 0x87e0fe880060ll + 0x8000ll * ((a) & 0xf);
9881 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=3))
9882 return 0x87e0fe880060ll + 0x8000ll * ((a) & 0x3);
9883 __bdk_csr_fatal("DTX_SATAX_CTL", 1, a, 0, 0, 0);
9884 }
9885
9886 #define typedef_BDK_DTX_SATAX_CTL(a) bdk_dtx_satax_ctl_t
9887 #define bustype_BDK_DTX_SATAX_CTL(a) BDK_CSR_TYPE_RSL
9888 #define basename_BDK_DTX_SATAX_CTL(a) "DTX_SATAX_CTL"
9889 #define busnum_BDK_DTX_SATAX_CTL(a) (a)
9890 #define arguments_BDK_DTX_SATAX_CTL(a) (a),-1,-1,-1
9891
9892 /**
9893 * Register (RSL) dtx_sata#_dat#
9894 *
9895 * DTX SATA Raw Data Register
9896 */
9897 union bdk_dtx_satax_datx
9898 {
9899 uint64_t u;
9900 struct bdk_dtx_satax_datx_s
9901 {
9902 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9903 uint64_t reserved_36_63 : 28;
9904 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
9905 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
9906 #else /* Word 0 - Little Endian */
9907 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
9908 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
9909 uint64_t reserved_36_63 : 28;
9910 #endif /* Word 0 - End */
9911 } s;
9912 /* struct bdk_dtx_satax_datx_s cn; */
9913 };
9914 typedef union bdk_dtx_satax_datx bdk_dtx_satax_datx_t;
9915
9916 static inline uint64_t BDK_DTX_SATAX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
9917 static inline uint64_t BDK_DTX_SATAX_DATX(unsigned long a, unsigned long b)
9918 {
9919 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a<=1) && (b<=1)))
9920 return 0x87e0fe880040ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
9921 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=5) && (b<=1)))
9922 return 0x87e0fe880040ll + 0x8000ll * ((a) & 0x7) + 8ll * ((b) & 0x1);
9923 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=15) && (b<=1)))
9924 return 0x87e0fe880040ll + 0x8000ll * ((a) & 0xf) + 8ll * ((b) & 0x1);
9925 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=3) && (b<=1)))
9926 return 0x87e0fe880040ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
9927 __bdk_csr_fatal("DTX_SATAX_DATX", 2, a, b, 0, 0);
9928 }
9929
9930 #define typedef_BDK_DTX_SATAX_DATX(a,b) bdk_dtx_satax_datx_t
9931 #define bustype_BDK_DTX_SATAX_DATX(a,b) BDK_CSR_TYPE_RSL
9932 #define basename_BDK_DTX_SATAX_DATX(a,b) "DTX_SATAX_DATX"
9933 #define busnum_BDK_DTX_SATAX_DATX(a,b) (a)
9934 #define arguments_BDK_DTX_SATAX_DATX(a,b) (a),(b),-1,-1
9935
9936 /**
9937 * Register (RSL) dtx_sata#_ena#
9938 *
9939 * DTX SATA Data Enable Register
9940 */
9941 union bdk_dtx_satax_enax
9942 {
9943 uint64_t u;
9944 struct bdk_dtx_satax_enax_s
9945 {
9946 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9947 uint64_t reserved_36_63 : 28;
9948 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
9949 buses. Normally only one block will drive each bit. */
9950 #else /* Word 0 - Little Endian */
9951 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
9952 buses. Normally only one block will drive each bit. */
9953 uint64_t reserved_36_63 : 28;
9954 #endif /* Word 0 - End */
9955 } s;
9956 /* struct bdk_dtx_satax_enax_s cn; */
9957 };
9958 typedef union bdk_dtx_satax_enax bdk_dtx_satax_enax_t;
9959
9960 static inline uint64_t BDK_DTX_SATAX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
9961 static inline uint64_t BDK_DTX_SATAX_ENAX(unsigned long a, unsigned long b)
9962 {
9963 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a<=1) && (b<=1)))
9964 return 0x87e0fe880020ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
9965 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=5) && (b<=1)))
9966 return 0x87e0fe880020ll + 0x8000ll * ((a) & 0x7) + 8ll * ((b) & 0x1);
9967 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=15) && (b<=1)))
9968 return 0x87e0fe880020ll + 0x8000ll * ((a) & 0xf) + 8ll * ((b) & 0x1);
9969 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=3) && (b<=1)))
9970 return 0x87e0fe880020ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
9971 __bdk_csr_fatal("DTX_SATAX_ENAX", 2, a, b, 0, 0);
9972 }
9973
9974 #define typedef_BDK_DTX_SATAX_ENAX(a,b) bdk_dtx_satax_enax_t
9975 #define bustype_BDK_DTX_SATAX_ENAX(a,b) BDK_CSR_TYPE_RSL
9976 #define basename_BDK_DTX_SATAX_ENAX(a,b) "DTX_SATAX_ENAX"
9977 #define busnum_BDK_DTX_SATAX_ENAX(a,b) (a)
9978 #define arguments_BDK_DTX_SATAX_ENAX(a,b) (a),(b),-1,-1
9979
9980 /**
9981 * Register (RSL) dtx_sata#_sel#
9982 *
9983 * DTX SATA Select Register
9984 */
9985 union bdk_dtx_satax_selx
9986 {
9987 uint64_t u;
9988 struct bdk_dtx_satax_selx_s
9989 {
9990 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
9991 uint64_t reserved_24_63 : 40;
9992 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
9993 #else /* Word 0 - Little Endian */
9994 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
9995 uint64_t reserved_24_63 : 40;
9996 #endif /* Word 0 - End */
9997 } s;
9998 /* struct bdk_dtx_satax_selx_s cn; */
9999 };
10000 typedef union bdk_dtx_satax_selx bdk_dtx_satax_selx_t;
10001
10002 static inline uint64_t BDK_DTX_SATAX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
10003 static inline uint64_t BDK_DTX_SATAX_SELX(unsigned long a, unsigned long b)
10004 {
10005 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a<=1) && (b<=1)))
10006 return 0x87e0fe880000ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
10007 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=5) && (b<=1)))
10008 return 0x87e0fe880000ll + 0x8000ll * ((a) & 0x7) + 8ll * ((b) & 0x1);
10009 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=15) && (b<=1)))
10010 return 0x87e0fe880000ll + 0x8000ll * ((a) & 0xf) + 8ll * ((b) & 0x1);
10011 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=3) && (b<=1)))
10012 return 0x87e0fe880000ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
10013 __bdk_csr_fatal("DTX_SATAX_SELX", 2, a, b, 0, 0);
10014 }
10015
10016 #define typedef_BDK_DTX_SATAX_SELX(a,b) bdk_dtx_satax_selx_t
10017 #define bustype_BDK_DTX_SATAX_SELX(a,b) BDK_CSR_TYPE_RSL
10018 #define basename_BDK_DTX_SATAX_SELX(a,b) "DTX_SATAX_SELX"
10019 #define busnum_BDK_DTX_SATAX_SELX(a,b) (a)
10020 #define arguments_BDK_DTX_SATAX_SELX(a,b) (a),(b),-1,-1
10021
10022 /**
10023 * Register (RSL) dtx_sli#_bcst_rsp
10024 *
10025 * DTX SLI Control Register
10026 */
10027 union bdk_dtx_slix_bcst_rsp
10028 {
10029 uint64_t u;
10030 struct bdk_dtx_slix_bcst_rsp_s
10031 {
10032 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10033 uint64_t reserved_1_63 : 63;
10034 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
10035 #else /* Word 0 - Little Endian */
10036 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
10037 uint64_t reserved_1_63 : 63;
10038 #endif /* Word 0 - End */
10039 } s;
10040 /* struct bdk_dtx_slix_bcst_rsp_s cn; */
10041 };
10042 typedef union bdk_dtx_slix_bcst_rsp bdk_dtx_slix_bcst_rsp_t;
10043
10044 static inline uint64_t BDK_DTX_SLIX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
10045 static inline uint64_t BDK_DTX_SLIX_BCST_RSP(unsigned long a)
10046 {
10047 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a==0))
10048 return 0x87e0feba0080ll + 0x8000ll * ((a) & 0x0);
10049 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a==0))
10050 return 0x87e0feba0080ll + 0x8000ll * ((a) & 0x0);
10051 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
10052 return 0x87e0feba0080ll + 0x8000ll * ((a) & 0x1);
10053 __bdk_csr_fatal("DTX_SLIX_BCST_RSP", 1, a, 0, 0, 0);
10054 }
10055
10056 #define typedef_BDK_DTX_SLIX_BCST_RSP(a) bdk_dtx_slix_bcst_rsp_t
10057 #define bustype_BDK_DTX_SLIX_BCST_RSP(a) BDK_CSR_TYPE_RSL
10058 #define basename_BDK_DTX_SLIX_BCST_RSP(a) "DTX_SLIX_BCST_RSP"
10059 #define busnum_BDK_DTX_SLIX_BCST_RSP(a) (a)
10060 #define arguments_BDK_DTX_SLIX_BCST_RSP(a) (a),-1,-1,-1
10061
10062 /**
10063 * Register (RSL) dtx_sli#_ctl
10064 *
10065 * DTX SLI Control Register
10066 */
10067 union bdk_dtx_slix_ctl
10068 {
10069 uint64_t u;
10070 struct bdk_dtx_slix_ctl_s
10071 {
10072 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10073 uint64_t reserved_5_63 : 59;
10074 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
10075 uint64_t reserved_2_3 : 2;
10076 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
10077 debug data. Not applicable when software directly reads the DAT(0..1) registers.
10078 For diagnostic use only. */
10079 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
10080 #else /* Word 0 - Little Endian */
10081 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
10082 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
10083 debug data. Not applicable when software directly reads the DAT(0..1) registers.
10084 For diagnostic use only. */
10085 uint64_t reserved_2_3 : 2;
10086 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
10087 uint64_t reserved_5_63 : 59;
10088 #endif /* Word 0 - End */
10089 } s;
10090 /* struct bdk_dtx_slix_ctl_s cn; */
10091 };
10092 typedef union bdk_dtx_slix_ctl bdk_dtx_slix_ctl_t;
10093
10094 static inline uint64_t BDK_DTX_SLIX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
10095 static inline uint64_t BDK_DTX_SLIX_CTL(unsigned long a)
10096 {
10097 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a==0))
10098 return 0x87e0feba0060ll + 0x8000ll * ((a) & 0x0);
10099 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a==0))
10100 return 0x87e0feba0060ll + 0x8000ll * ((a) & 0x0);
10101 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
10102 return 0x87e0feba0060ll + 0x8000ll * ((a) & 0x1);
10103 __bdk_csr_fatal("DTX_SLIX_CTL", 1, a, 0, 0, 0);
10104 }
10105
10106 #define typedef_BDK_DTX_SLIX_CTL(a) bdk_dtx_slix_ctl_t
10107 #define bustype_BDK_DTX_SLIX_CTL(a) BDK_CSR_TYPE_RSL
10108 #define basename_BDK_DTX_SLIX_CTL(a) "DTX_SLIX_CTL"
10109 #define busnum_BDK_DTX_SLIX_CTL(a) (a)
10110 #define arguments_BDK_DTX_SLIX_CTL(a) (a),-1,-1,-1
10111
10112 /**
10113 * Register (RSL) dtx_sli#_dat#
10114 *
10115 * DTX SLI Raw Data Register
10116 */
10117 union bdk_dtx_slix_datx
10118 {
10119 uint64_t u;
10120 struct bdk_dtx_slix_datx_s
10121 {
10122 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10123 uint64_t reserved_36_63 : 28;
10124 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
10125 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
10126 #else /* Word 0 - Little Endian */
10127 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
10128 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
10129 uint64_t reserved_36_63 : 28;
10130 #endif /* Word 0 - End */
10131 } s;
10132 /* struct bdk_dtx_slix_datx_s cn; */
10133 };
10134 typedef union bdk_dtx_slix_datx bdk_dtx_slix_datx_t;
10135
10136 static inline uint64_t BDK_DTX_SLIX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
10137 static inline uint64_t BDK_DTX_SLIX_DATX(unsigned long a, unsigned long b)
10138 {
10139 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
10140 return 0x87e0feba0040ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
10141 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a==0) && (b<=1)))
10142 return 0x87e0feba0040ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
10143 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=1) && (b<=1)))
10144 return 0x87e0feba0040ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
10145 __bdk_csr_fatal("DTX_SLIX_DATX", 2, a, b, 0, 0);
10146 }
10147
10148 #define typedef_BDK_DTX_SLIX_DATX(a,b) bdk_dtx_slix_datx_t
10149 #define bustype_BDK_DTX_SLIX_DATX(a,b) BDK_CSR_TYPE_RSL
10150 #define basename_BDK_DTX_SLIX_DATX(a,b) "DTX_SLIX_DATX"
10151 #define busnum_BDK_DTX_SLIX_DATX(a,b) (a)
10152 #define arguments_BDK_DTX_SLIX_DATX(a,b) (a),(b),-1,-1
10153
10154 /**
10155 * Register (RSL) dtx_sli#_ena#
10156 *
10157 * DTX SLI Data Enable Register
10158 */
10159 union bdk_dtx_slix_enax
10160 {
10161 uint64_t u;
10162 struct bdk_dtx_slix_enax_s
10163 {
10164 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10165 uint64_t reserved_36_63 : 28;
10166 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
10167 buses. Normally only one block will drive each bit. */
10168 #else /* Word 0 - Little Endian */
10169 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
10170 buses. Normally only one block will drive each bit. */
10171 uint64_t reserved_36_63 : 28;
10172 #endif /* Word 0 - End */
10173 } s;
10174 /* struct bdk_dtx_slix_enax_s cn; */
10175 };
10176 typedef union bdk_dtx_slix_enax bdk_dtx_slix_enax_t;
10177
10178 static inline uint64_t BDK_DTX_SLIX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
10179 static inline uint64_t BDK_DTX_SLIX_ENAX(unsigned long a, unsigned long b)
10180 {
10181 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
10182 return 0x87e0feba0020ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
10183 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a==0) && (b<=1)))
10184 return 0x87e0feba0020ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
10185 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=1) && (b<=1)))
10186 return 0x87e0feba0020ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
10187 __bdk_csr_fatal("DTX_SLIX_ENAX", 2, a, b, 0, 0);
10188 }
10189
10190 #define typedef_BDK_DTX_SLIX_ENAX(a,b) bdk_dtx_slix_enax_t
10191 #define bustype_BDK_DTX_SLIX_ENAX(a,b) BDK_CSR_TYPE_RSL
10192 #define basename_BDK_DTX_SLIX_ENAX(a,b) "DTX_SLIX_ENAX"
10193 #define busnum_BDK_DTX_SLIX_ENAX(a,b) (a)
10194 #define arguments_BDK_DTX_SLIX_ENAX(a,b) (a),(b),-1,-1
10195
10196 /**
10197 * Register (RSL) dtx_sli#_sel#
10198 *
10199 * DTX SLI Select Register
10200 */
10201 union bdk_dtx_slix_selx
10202 {
10203 uint64_t u;
10204 struct bdk_dtx_slix_selx_s
10205 {
10206 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10207 uint64_t reserved_24_63 : 40;
10208 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
10209 #else /* Word 0 - Little Endian */
10210 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
10211 uint64_t reserved_24_63 : 40;
10212 #endif /* Word 0 - End */
10213 } s;
10214 /* struct bdk_dtx_slix_selx_s cn; */
10215 };
10216 typedef union bdk_dtx_slix_selx bdk_dtx_slix_selx_t;
10217
10218 static inline uint64_t BDK_DTX_SLIX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
10219 static inline uint64_t BDK_DTX_SLIX_SELX(unsigned long a, unsigned long b)
10220 {
10221 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a==0) && (b<=1)))
10222 return 0x87e0feba0000ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
10223 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a==0) && (b<=1)))
10224 return 0x87e0feba0000ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
10225 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=1) && (b<=1)))
10226 return 0x87e0feba0000ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
10227 __bdk_csr_fatal("DTX_SLIX_SELX", 2, a, b, 0, 0);
10228 }
10229
10230 #define typedef_BDK_DTX_SLIX_SELX(a,b) bdk_dtx_slix_selx_t
10231 #define bustype_BDK_DTX_SLIX_SELX(a,b) BDK_CSR_TYPE_RSL
10232 #define basename_BDK_DTX_SLIX_SELX(a,b) "DTX_SLIX_SELX"
10233 #define busnum_BDK_DTX_SLIX_SELX(a,b) (a)
10234 #define arguments_BDK_DTX_SLIX_SELX(a,b) (a),(b),-1,-1
10235
10236 /**
10237 * Register (RSL) dtx_smmu#_bcst_rsp
10238 *
10239 * DTX SMMU Control Register
10240 */
10241 union bdk_dtx_smmux_bcst_rsp
10242 {
10243 uint64_t u;
10244 struct bdk_dtx_smmux_bcst_rsp_s
10245 {
10246 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10247 uint64_t reserved_1_63 : 63;
10248 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
10249 #else /* Word 0 - Little Endian */
10250 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
10251 uint64_t reserved_1_63 : 63;
10252 #endif /* Word 0 - End */
10253 } s;
10254 /* struct bdk_dtx_smmux_bcst_rsp_s cn; */
10255 };
10256 typedef union bdk_dtx_smmux_bcst_rsp bdk_dtx_smmux_bcst_rsp_t;
10257
10258 static inline uint64_t BDK_DTX_SMMUX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
10259 static inline uint64_t BDK_DTX_SMMUX_BCST_RSP(unsigned long a)
10260 {
10261 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a==0))
10262 return 0x87e0fe980080ll + 0x8000ll * ((a) & 0x0);
10263 __bdk_csr_fatal("DTX_SMMUX_BCST_RSP", 1, a, 0, 0, 0);
10264 }
10265
10266 #define typedef_BDK_DTX_SMMUX_BCST_RSP(a) bdk_dtx_smmux_bcst_rsp_t
10267 #define bustype_BDK_DTX_SMMUX_BCST_RSP(a) BDK_CSR_TYPE_RSL
10268 #define basename_BDK_DTX_SMMUX_BCST_RSP(a) "DTX_SMMUX_BCST_RSP"
10269 #define busnum_BDK_DTX_SMMUX_BCST_RSP(a) (a)
10270 #define arguments_BDK_DTX_SMMUX_BCST_RSP(a) (a),-1,-1,-1
10271
10272 /**
10273 * Register (RSL) dtx_smmu#_ctl
10274 *
10275 * DTX SMMU Control Register
10276 */
10277 union bdk_dtx_smmux_ctl
10278 {
10279 uint64_t u;
10280 struct bdk_dtx_smmux_ctl_s
10281 {
10282 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10283 uint64_t reserved_5_63 : 59;
10284 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
10285 uint64_t reserved_2_3 : 2;
10286 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
10287 debug data. Not applicable when software directly reads the DAT(0..1) registers.
10288 For diagnostic use only. */
10289 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
10290 #else /* Word 0 - Little Endian */
10291 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
10292 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
10293 debug data. Not applicable when software directly reads the DAT(0..1) registers.
10294 For diagnostic use only. */
10295 uint64_t reserved_2_3 : 2;
10296 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
10297 uint64_t reserved_5_63 : 59;
10298 #endif /* Word 0 - End */
10299 } s;
10300 /* struct bdk_dtx_smmux_ctl_s cn; */
10301 };
10302 typedef union bdk_dtx_smmux_ctl bdk_dtx_smmux_ctl_t;
10303
10304 static inline uint64_t BDK_DTX_SMMUX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
10305 static inline uint64_t BDK_DTX_SMMUX_CTL(unsigned long a)
10306 {
10307 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a==0))
10308 return 0x87e0fe980060ll + 0x8000ll * ((a) & 0x0);
10309 __bdk_csr_fatal("DTX_SMMUX_CTL", 1, a, 0, 0, 0);
10310 }
10311
10312 #define typedef_BDK_DTX_SMMUX_CTL(a) bdk_dtx_smmux_ctl_t
10313 #define bustype_BDK_DTX_SMMUX_CTL(a) BDK_CSR_TYPE_RSL
10314 #define basename_BDK_DTX_SMMUX_CTL(a) "DTX_SMMUX_CTL"
10315 #define busnum_BDK_DTX_SMMUX_CTL(a) (a)
10316 #define arguments_BDK_DTX_SMMUX_CTL(a) (a),-1,-1,-1
10317
10318 /**
10319 * Register (RSL) dtx_smmu#_dat#
10320 *
10321 * DTX SMMU Raw Data Register
10322 */
10323 union bdk_dtx_smmux_datx
10324 {
10325 uint64_t u;
10326 struct bdk_dtx_smmux_datx_s
10327 {
10328 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10329 uint64_t reserved_36_63 : 28;
10330 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
10331 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
10332 #else /* Word 0 - Little Endian */
10333 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
10334 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
10335 uint64_t reserved_36_63 : 28;
10336 #endif /* Word 0 - End */
10337 } s;
10338 /* struct bdk_dtx_smmux_datx_s cn; */
10339 };
10340 typedef union bdk_dtx_smmux_datx bdk_dtx_smmux_datx_t;
10341
10342 static inline uint64_t BDK_DTX_SMMUX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
10343 static inline uint64_t BDK_DTX_SMMUX_DATX(unsigned long a, unsigned long b)
10344 {
10345 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a==0) && (b<=1)))
10346 return 0x87e0fe980040ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
10347 __bdk_csr_fatal("DTX_SMMUX_DATX", 2, a, b, 0, 0);
10348 }
10349
10350 #define typedef_BDK_DTX_SMMUX_DATX(a,b) bdk_dtx_smmux_datx_t
10351 #define bustype_BDK_DTX_SMMUX_DATX(a,b) BDK_CSR_TYPE_RSL
10352 #define basename_BDK_DTX_SMMUX_DATX(a,b) "DTX_SMMUX_DATX"
10353 #define busnum_BDK_DTX_SMMUX_DATX(a,b) (a)
10354 #define arguments_BDK_DTX_SMMUX_DATX(a,b) (a),(b),-1,-1
10355
10356 /**
10357 * Register (RSL) dtx_smmu#_ena#
10358 *
10359 * DTX SMMU Data Enable Register
10360 */
10361 union bdk_dtx_smmux_enax
10362 {
10363 uint64_t u;
10364 struct bdk_dtx_smmux_enax_s
10365 {
10366 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10367 uint64_t reserved_36_63 : 28;
10368 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
10369 buses. Normally only one block will drive each bit. */
10370 #else /* Word 0 - Little Endian */
10371 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
10372 buses. Normally only one block will drive each bit. */
10373 uint64_t reserved_36_63 : 28;
10374 #endif /* Word 0 - End */
10375 } s;
10376 /* struct bdk_dtx_smmux_enax_s cn; */
10377 };
10378 typedef union bdk_dtx_smmux_enax bdk_dtx_smmux_enax_t;
10379
10380 static inline uint64_t BDK_DTX_SMMUX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
10381 static inline uint64_t BDK_DTX_SMMUX_ENAX(unsigned long a, unsigned long b)
10382 {
10383 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a==0) && (b<=1)))
10384 return 0x87e0fe980020ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
10385 __bdk_csr_fatal("DTX_SMMUX_ENAX", 2, a, b, 0, 0);
10386 }
10387
10388 #define typedef_BDK_DTX_SMMUX_ENAX(a,b) bdk_dtx_smmux_enax_t
10389 #define bustype_BDK_DTX_SMMUX_ENAX(a,b) BDK_CSR_TYPE_RSL
10390 #define basename_BDK_DTX_SMMUX_ENAX(a,b) "DTX_SMMUX_ENAX"
10391 #define busnum_BDK_DTX_SMMUX_ENAX(a,b) (a)
10392 #define arguments_BDK_DTX_SMMUX_ENAX(a,b) (a),(b),-1,-1
10393
10394 /**
10395 * Register (RSL) dtx_smmu#_sel#
10396 *
10397 * DTX SMMU Select Register
10398 */
10399 union bdk_dtx_smmux_selx
10400 {
10401 uint64_t u;
10402 struct bdk_dtx_smmux_selx_s
10403 {
10404 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10405 uint64_t reserved_24_63 : 40;
10406 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
10407 #else /* Word 0 - Little Endian */
10408 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
10409 uint64_t reserved_24_63 : 40;
10410 #endif /* Word 0 - End */
10411 } s;
10412 /* struct bdk_dtx_smmux_selx_s cn; */
10413 };
10414 typedef union bdk_dtx_smmux_selx bdk_dtx_smmux_selx_t;
10415
10416 static inline uint64_t BDK_DTX_SMMUX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
10417 static inline uint64_t BDK_DTX_SMMUX_SELX(unsigned long a, unsigned long b)
10418 {
10419 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a==0) && (b<=1)))
10420 return 0x87e0fe980000ll + 0x8000ll * ((a) & 0x0) + 8ll * ((b) & 0x1);
10421 __bdk_csr_fatal("DTX_SMMUX_SELX", 2, a, b, 0, 0);
10422 }
10423
10424 #define typedef_BDK_DTX_SMMUX_SELX(a,b) bdk_dtx_smmux_selx_t
10425 #define bustype_BDK_DTX_SMMUX_SELX(a,b) BDK_CSR_TYPE_RSL
10426 #define basename_BDK_DTX_SMMUX_SELX(a,b) "DTX_SMMUX_SELX"
10427 #define busnum_BDK_DTX_SMMUX_SELX(a,b) (a)
10428 #define arguments_BDK_DTX_SMMUX_SELX(a,b) (a),(b),-1,-1
10429
10430 /**
10431 * Register (RSL) dtx_smmus#_bcst_rsp
10432 *
10433 * DTX SMMUS Control Register
10434 */
10435 union bdk_dtx_smmusx_bcst_rsp
10436 {
10437 uint64_t u;
10438 struct bdk_dtx_smmusx_bcst_rsp_s
10439 {
10440 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10441 uint64_t reserved_1_63 : 63;
10442 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
10443 #else /* Word 0 - Little Endian */
10444 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
10445 uint64_t reserved_1_63 : 63;
10446 #endif /* Word 0 - End */
10447 } s;
10448 /* struct bdk_dtx_smmusx_bcst_rsp_s cn; */
10449 };
10450 typedef union bdk_dtx_smmusx_bcst_rsp bdk_dtx_smmusx_bcst_rsp_t;
10451
10452 static inline uint64_t BDK_DTX_SMMUSX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
10453 static inline uint64_t BDK_DTX_SMMUSX_BCST_RSP(unsigned long a)
10454 {
10455 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=2))
10456 return 0x87e0fe988080ll + 0x8000ll * ((a) & 0x3);
10457 __bdk_csr_fatal("DTX_SMMUSX_BCST_RSP", 1, a, 0, 0, 0);
10458 }
10459
10460 #define typedef_BDK_DTX_SMMUSX_BCST_RSP(a) bdk_dtx_smmusx_bcst_rsp_t
10461 #define bustype_BDK_DTX_SMMUSX_BCST_RSP(a) BDK_CSR_TYPE_RSL
10462 #define basename_BDK_DTX_SMMUSX_BCST_RSP(a) "DTX_SMMUSX_BCST_RSP"
10463 #define busnum_BDK_DTX_SMMUSX_BCST_RSP(a) (a)
10464 #define arguments_BDK_DTX_SMMUSX_BCST_RSP(a) (a),-1,-1,-1
10465
10466 /**
10467 * Register (RSL) dtx_smmus#_ctl
10468 *
10469 * DTX SMMUS Control Register
10470 */
10471 union bdk_dtx_smmusx_ctl
10472 {
10473 uint64_t u;
10474 struct bdk_dtx_smmusx_ctl_s
10475 {
10476 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10477 uint64_t reserved_5_63 : 59;
10478 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
10479 uint64_t reserved_2_3 : 2;
10480 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
10481 debug data. Not applicable when software directly reads the DAT(0..1) registers.
10482 For diagnostic use only. */
10483 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
10484 #else /* Word 0 - Little Endian */
10485 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
10486 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
10487 debug data. Not applicable when software directly reads the DAT(0..1) registers.
10488 For diagnostic use only. */
10489 uint64_t reserved_2_3 : 2;
10490 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
10491 uint64_t reserved_5_63 : 59;
10492 #endif /* Word 0 - End */
10493 } s;
10494 /* struct bdk_dtx_smmusx_ctl_s cn; */
10495 };
10496 typedef union bdk_dtx_smmusx_ctl bdk_dtx_smmusx_ctl_t;
10497
10498 static inline uint64_t BDK_DTX_SMMUSX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
10499 static inline uint64_t BDK_DTX_SMMUSX_CTL(unsigned long a)
10500 {
10501 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=2))
10502 return 0x87e0fe988060ll + 0x8000ll * ((a) & 0x3);
10503 __bdk_csr_fatal("DTX_SMMUSX_CTL", 1, a, 0, 0, 0);
10504 }
10505
10506 #define typedef_BDK_DTX_SMMUSX_CTL(a) bdk_dtx_smmusx_ctl_t
10507 #define bustype_BDK_DTX_SMMUSX_CTL(a) BDK_CSR_TYPE_RSL
10508 #define basename_BDK_DTX_SMMUSX_CTL(a) "DTX_SMMUSX_CTL"
10509 #define busnum_BDK_DTX_SMMUSX_CTL(a) (a)
10510 #define arguments_BDK_DTX_SMMUSX_CTL(a) (a),-1,-1,-1
10511
10512 /**
10513 * Register (RSL) dtx_smmus#_dat#
10514 *
10515 * DTX SMMUS Raw Data Register
10516 */
10517 union bdk_dtx_smmusx_datx
10518 {
10519 uint64_t u;
10520 struct bdk_dtx_smmusx_datx_s
10521 {
10522 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10523 uint64_t reserved_36_63 : 28;
10524 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
10525 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
10526 #else /* Word 0 - Little Endian */
10527 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
10528 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
10529 uint64_t reserved_36_63 : 28;
10530 #endif /* Word 0 - End */
10531 } s;
10532 /* struct bdk_dtx_smmusx_datx_s cn; */
10533 };
10534 typedef union bdk_dtx_smmusx_datx bdk_dtx_smmusx_datx_t;
10535
10536 static inline uint64_t BDK_DTX_SMMUSX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
10537 static inline uint64_t BDK_DTX_SMMUSX_DATX(unsigned long a, unsigned long b)
10538 {
10539 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=2) && (b<=1)))
10540 return 0x87e0fe988040ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
10541 __bdk_csr_fatal("DTX_SMMUSX_DATX", 2, a, b, 0, 0);
10542 }
10543
10544 #define typedef_BDK_DTX_SMMUSX_DATX(a,b) bdk_dtx_smmusx_datx_t
10545 #define bustype_BDK_DTX_SMMUSX_DATX(a,b) BDK_CSR_TYPE_RSL
10546 #define basename_BDK_DTX_SMMUSX_DATX(a,b) "DTX_SMMUSX_DATX"
10547 #define busnum_BDK_DTX_SMMUSX_DATX(a,b) (a)
10548 #define arguments_BDK_DTX_SMMUSX_DATX(a,b) (a),(b),-1,-1
10549
10550 /**
10551 * Register (RSL) dtx_smmus#_ena#
10552 *
10553 * DTX SMMUS Data Enable Register
10554 */
10555 union bdk_dtx_smmusx_enax
10556 {
10557 uint64_t u;
10558 struct bdk_dtx_smmusx_enax_s
10559 {
10560 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10561 uint64_t reserved_36_63 : 28;
10562 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
10563 buses. Normally only one block will drive each bit. */
10564 #else /* Word 0 - Little Endian */
10565 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
10566 buses. Normally only one block will drive each bit. */
10567 uint64_t reserved_36_63 : 28;
10568 #endif /* Word 0 - End */
10569 } s;
10570 /* struct bdk_dtx_smmusx_enax_s cn; */
10571 };
10572 typedef union bdk_dtx_smmusx_enax bdk_dtx_smmusx_enax_t;
10573
10574 static inline uint64_t BDK_DTX_SMMUSX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
10575 static inline uint64_t BDK_DTX_SMMUSX_ENAX(unsigned long a, unsigned long b)
10576 {
10577 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=2) && (b<=1)))
10578 return 0x87e0fe988020ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
10579 __bdk_csr_fatal("DTX_SMMUSX_ENAX", 2, a, b, 0, 0);
10580 }
10581
10582 #define typedef_BDK_DTX_SMMUSX_ENAX(a,b) bdk_dtx_smmusx_enax_t
10583 #define bustype_BDK_DTX_SMMUSX_ENAX(a,b) BDK_CSR_TYPE_RSL
10584 #define basename_BDK_DTX_SMMUSX_ENAX(a,b) "DTX_SMMUSX_ENAX"
10585 #define busnum_BDK_DTX_SMMUSX_ENAX(a,b) (a)
10586 #define arguments_BDK_DTX_SMMUSX_ENAX(a,b) (a),(b),-1,-1
10587
10588 /**
10589 * Register (RSL) dtx_smmus#_sel#
10590 *
10591 * DTX SMMUS Select Register
10592 */
10593 union bdk_dtx_smmusx_selx
10594 {
10595 uint64_t u;
10596 struct bdk_dtx_smmusx_selx_s
10597 {
10598 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10599 uint64_t reserved_24_63 : 40;
10600 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
10601 #else /* Word 0 - Little Endian */
10602 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
10603 uint64_t reserved_24_63 : 40;
10604 #endif /* Word 0 - End */
10605 } s;
10606 /* struct bdk_dtx_smmusx_selx_s cn; */
10607 };
10608 typedef union bdk_dtx_smmusx_selx bdk_dtx_smmusx_selx_t;
10609
10610 static inline uint64_t BDK_DTX_SMMUSX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
10611 static inline uint64_t BDK_DTX_SMMUSX_SELX(unsigned long a, unsigned long b)
10612 {
10613 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=2) && (b<=1)))
10614 return 0x87e0fe988000ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
10615 __bdk_csr_fatal("DTX_SMMUSX_SELX", 2, a, b, 0, 0);
10616 }
10617
10618 #define typedef_BDK_DTX_SMMUSX_SELX(a,b) bdk_dtx_smmusx_selx_t
10619 #define bustype_BDK_DTX_SMMUSX_SELX(a,b) BDK_CSR_TYPE_RSL
10620 #define basename_BDK_DTX_SMMUSX_SELX(a,b) "DTX_SMMUSX_SELX"
10621 #define busnum_BDK_DTX_SMMUSX_SELX(a,b) (a)
10622 #define arguments_BDK_DTX_SMMUSX_SELX(a,b) (a),(b),-1,-1
10623
10624 /**
10625 * Register (RSL) dtx_sso_bcst_rsp
10626 *
10627 * DTX SSO Control Register
10628 */
10629 union bdk_dtx_sso_bcst_rsp
10630 {
10631 uint64_t u;
10632 struct bdk_dtx_sso_bcst_rsp_s
10633 {
10634 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10635 uint64_t reserved_1_63 : 63;
10636 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
10637 #else /* Word 0 - Little Endian */
10638 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
10639 uint64_t reserved_1_63 : 63;
10640 #endif /* Word 0 - End */
10641 } s;
10642 /* struct bdk_dtx_sso_bcst_rsp_s cn; */
10643 };
10644 typedef union bdk_dtx_sso_bcst_rsp bdk_dtx_sso_bcst_rsp_t;
10645
10646 #define BDK_DTX_SSO_BCST_RSP BDK_DTX_SSO_BCST_RSP_FUNC()
10647 static inline uint64_t BDK_DTX_SSO_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
10648 static inline uint64_t BDK_DTX_SSO_BCST_RSP_FUNC(void)
10649 {
10650 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
10651 return 0x87e0feb00080ll;
10652 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
10653 return 0x87e0feb00080ll;
10654 __bdk_csr_fatal("DTX_SSO_BCST_RSP", 0, 0, 0, 0, 0);
10655 }
10656
10657 #define typedef_BDK_DTX_SSO_BCST_RSP bdk_dtx_sso_bcst_rsp_t
10658 #define bustype_BDK_DTX_SSO_BCST_RSP BDK_CSR_TYPE_RSL
10659 #define basename_BDK_DTX_SSO_BCST_RSP "DTX_SSO_BCST_RSP"
10660 #define busnum_BDK_DTX_SSO_BCST_RSP 0
10661 #define arguments_BDK_DTX_SSO_BCST_RSP -1,-1,-1,-1
10662
10663 /**
10664 * Register (RSL) dtx_sso_ctl
10665 *
10666 * DTX SSO Control Register
10667 */
10668 union bdk_dtx_sso_ctl
10669 {
10670 uint64_t u;
10671 struct bdk_dtx_sso_ctl_s
10672 {
10673 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10674 uint64_t reserved_5_63 : 59;
10675 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
10676 uint64_t reserved_2_3 : 2;
10677 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
10678 debug data. Not applicable when software directly reads the DAT(0..1) registers.
10679 For diagnostic use only. */
10680 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
10681 #else /* Word 0 - Little Endian */
10682 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
10683 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
10684 debug data. Not applicable when software directly reads the DAT(0..1) registers.
10685 For diagnostic use only. */
10686 uint64_t reserved_2_3 : 2;
10687 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
10688 uint64_t reserved_5_63 : 59;
10689 #endif /* Word 0 - End */
10690 } s;
10691 /* struct bdk_dtx_sso_ctl_s cn; */
10692 };
10693 typedef union bdk_dtx_sso_ctl bdk_dtx_sso_ctl_t;
10694
10695 #define BDK_DTX_SSO_CTL BDK_DTX_SSO_CTL_FUNC()
10696 static inline uint64_t BDK_DTX_SSO_CTL_FUNC(void) __attribute__ ((pure, always_inline));
10697 static inline uint64_t BDK_DTX_SSO_CTL_FUNC(void)
10698 {
10699 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
10700 return 0x87e0feb00060ll;
10701 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
10702 return 0x87e0feb00060ll;
10703 __bdk_csr_fatal("DTX_SSO_CTL", 0, 0, 0, 0, 0);
10704 }
10705
10706 #define typedef_BDK_DTX_SSO_CTL bdk_dtx_sso_ctl_t
10707 #define bustype_BDK_DTX_SSO_CTL BDK_CSR_TYPE_RSL
10708 #define basename_BDK_DTX_SSO_CTL "DTX_SSO_CTL"
10709 #define busnum_BDK_DTX_SSO_CTL 0
10710 #define arguments_BDK_DTX_SSO_CTL -1,-1,-1,-1
10711
10712 /**
10713 * Register (RSL) dtx_sso_dat#
10714 *
10715 * DTX SSO Raw Data Register
10716 */
10717 union bdk_dtx_sso_datx
10718 {
10719 uint64_t u;
10720 struct bdk_dtx_sso_datx_s
10721 {
10722 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10723 uint64_t reserved_36_63 : 28;
10724 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
10725 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
10726 #else /* Word 0 - Little Endian */
10727 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
10728 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
10729 uint64_t reserved_36_63 : 28;
10730 #endif /* Word 0 - End */
10731 } s;
10732 /* struct bdk_dtx_sso_datx_s cn; */
10733 };
10734 typedef union bdk_dtx_sso_datx bdk_dtx_sso_datx_t;
10735
10736 static inline uint64_t BDK_DTX_SSO_DATX(unsigned long a) __attribute__ ((pure, always_inline));
10737 static inline uint64_t BDK_DTX_SSO_DATX(unsigned long a)
10738 {
10739 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
10740 return 0x87e0feb00040ll + 8ll * ((a) & 0x1);
10741 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
10742 return 0x87e0feb00040ll + 8ll * ((a) & 0x1);
10743 __bdk_csr_fatal("DTX_SSO_DATX", 1, a, 0, 0, 0);
10744 }
10745
10746 #define typedef_BDK_DTX_SSO_DATX(a) bdk_dtx_sso_datx_t
10747 #define bustype_BDK_DTX_SSO_DATX(a) BDK_CSR_TYPE_RSL
10748 #define basename_BDK_DTX_SSO_DATX(a) "DTX_SSO_DATX"
10749 #define busnum_BDK_DTX_SSO_DATX(a) (a)
10750 #define arguments_BDK_DTX_SSO_DATX(a) (a),-1,-1,-1
10751
10752 /**
10753 * Register (RSL) dtx_sso_ena#
10754 *
10755 * DTX SSO Data Enable Register
10756 */
10757 union bdk_dtx_sso_enax
10758 {
10759 uint64_t u;
10760 struct bdk_dtx_sso_enax_s
10761 {
10762 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10763 uint64_t reserved_36_63 : 28;
10764 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
10765 buses. Normally only one block will drive each bit. */
10766 #else /* Word 0 - Little Endian */
10767 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
10768 buses. Normally only one block will drive each bit. */
10769 uint64_t reserved_36_63 : 28;
10770 #endif /* Word 0 - End */
10771 } s;
10772 /* struct bdk_dtx_sso_enax_s cn; */
10773 };
10774 typedef union bdk_dtx_sso_enax bdk_dtx_sso_enax_t;
10775
10776 static inline uint64_t BDK_DTX_SSO_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
10777 static inline uint64_t BDK_DTX_SSO_ENAX(unsigned long a)
10778 {
10779 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
10780 return 0x87e0feb00020ll + 8ll * ((a) & 0x1);
10781 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
10782 return 0x87e0feb00020ll + 8ll * ((a) & 0x1);
10783 __bdk_csr_fatal("DTX_SSO_ENAX", 1, a, 0, 0, 0);
10784 }
10785
10786 #define typedef_BDK_DTX_SSO_ENAX(a) bdk_dtx_sso_enax_t
10787 #define bustype_BDK_DTX_SSO_ENAX(a) BDK_CSR_TYPE_RSL
10788 #define basename_BDK_DTX_SSO_ENAX(a) "DTX_SSO_ENAX"
10789 #define busnum_BDK_DTX_SSO_ENAX(a) (a)
10790 #define arguments_BDK_DTX_SSO_ENAX(a) (a),-1,-1,-1
10791
10792 /**
10793 * Register (RSL) dtx_sso_sel#
10794 *
10795 * DTX SSO Select Register
10796 */
10797 union bdk_dtx_sso_selx
10798 {
10799 uint64_t u;
10800 struct bdk_dtx_sso_selx_s
10801 {
10802 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10803 uint64_t reserved_24_63 : 40;
10804 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
10805 #else /* Word 0 - Little Endian */
10806 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
10807 uint64_t reserved_24_63 : 40;
10808 #endif /* Word 0 - End */
10809 } s;
10810 /* struct bdk_dtx_sso_selx_s cn; */
10811 };
10812 typedef union bdk_dtx_sso_selx bdk_dtx_sso_selx_t;
10813
10814 static inline uint64_t BDK_DTX_SSO_SELX(unsigned long a) __attribute__ ((pure, always_inline));
10815 static inline uint64_t BDK_DTX_SSO_SELX(unsigned long a)
10816 {
10817 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
10818 return 0x87e0feb00000ll + 8ll * ((a) & 0x1);
10819 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
10820 return 0x87e0feb00000ll + 8ll * ((a) & 0x1);
10821 __bdk_csr_fatal("DTX_SSO_SELX", 1, a, 0, 0, 0);
10822 }
10823
10824 #define typedef_BDK_DTX_SSO_SELX(a) bdk_dtx_sso_selx_t
10825 #define bustype_BDK_DTX_SSO_SELX(a) BDK_CSR_TYPE_RSL
10826 #define basename_BDK_DTX_SSO_SELX(a) "DTX_SSO_SELX"
10827 #define busnum_BDK_DTX_SSO_SELX(a) (a)
10828 #define arguments_BDK_DTX_SSO_SELX(a) (a),-1,-1,-1
10829
10830 /**
10831 * Register (RSL) dtx_tim_bcst_rsp
10832 *
10833 * DTX TIM Control Register
10834 */
10835 union bdk_dtx_tim_bcst_rsp
10836 {
10837 uint64_t u;
10838 struct bdk_dtx_tim_bcst_rsp_s
10839 {
10840 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10841 uint64_t reserved_1_63 : 63;
10842 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
10843 #else /* Word 0 - Little Endian */
10844 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
10845 uint64_t reserved_1_63 : 63;
10846 #endif /* Word 0 - End */
10847 } s;
10848 /* struct bdk_dtx_tim_bcst_rsp_s cn; */
10849 };
10850 typedef union bdk_dtx_tim_bcst_rsp bdk_dtx_tim_bcst_rsp_t;
10851
10852 #define BDK_DTX_TIM_BCST_RSP BDK_DTX_TIM_BCST_RSP_FUNC()
10853 static inline uint64_t BDK_DTX_TIM_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
10854 static inline uint64_t BDK_DTX_TIM_BCST_RSP_FUNC(void)
10855 {
10856 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
10857 return 0x87e0feac0080ll;
10858 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
10859 return 0x87e0feac0080ll;
10860 __bdk_csr_fatal("DTX_TIM_BCST_RSP", 0, 0, 0, 0, 0);
10861 }
10862
10863 #define typedef_BDK_DTX_TIM_BCST_RSP bdk_dtx_tim_bcst_rsp_t
10864 #define bustype_BDK_DTX_TIM_BCST_RSP BDK_CSR_TYPE_RSL
10865 #define basename_BDK_DTX_TIM_BCST_RSP "DTX_TIM_BCST_RSP"
10866 #define busnum_BDK_DTX_TIM_BCST_RSP 0
10867 #define arguments_BDK_DTX_TIM_BCST_RSP -1,-1,-1,-1
10868
10869 /**
10870 * Register (RSL) dtx_tim_ctl
10871 *
10872 * DTX TIM Control Register
10873 */
10874 union bdk_dtx_tim_ctl
10875 {
10876 uint64_t u;
10877 struct bdk_dtx_tim_ctl_s
10878 {
10879 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10880 uint64_t reserved_5_63 : 59;
10881 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
10882 uint64_t reserved_2_3 : 2;
10883 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
10884 debug data. Not applicable when software directly reads the DAT(0..1) registers.
10885 For diagnostic use only. */
10886 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
10887 #else /* Word 0 - Little Endian */
10888 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
10889 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
10890 debug data. Not applicable when software directly reads the DAT(0..1) registers.
10891 For diagnostic use only. */
10892 uint64_t reserved_2_3 : 2;
10893 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
10894 uint64_t reserved_5_63 : 59;
10895 #endif /* Word 0 - End */
10896 } s;
10897 /* struct bdk_dtx_tim_ctl_s cn; */
10898 };
10899 typedef union bdk_dtx_tim_ctl bdk_dtx_tim_ctl_t;
10900
10901 #define BDK_DTX_TIM_CTL BDK_DTX_TIM_CTL_FUNC()
10902 static inline uint64_t BDK_DTX_TIM_CTL_FUNC(void) __attribute__ ((pure, always_inline));
10903 static inline uint64_t BDK_DTX_TIM_CTL_FUNC(void)
10904 {
10905 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
10906 return 0x87e0feac0060ll;
10907 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
10908 return 0x87e0feac0060ll;
10909 __bdk_csr_fatal("DTX_TIM_CTL", 0, 0, 0, 0, 0);
10910 }
10911
10912 #define typedef_BDK_DTX_TIM_CTL bdk_dtx_tim_ctl_t
10913 #define bustype_BDK_DTX_TIM_CTL BDK_CSR_TYPE_RSL
10914 #define basename_BDK_DTX_TIM_CTL "DTX_TIM_CTL"
10915 #define busnum_BDK_DTX_TIM_CTL 0
10916 #define arguments_BDK_DTX_TIM_CTL -1,-1,-1,-1
10917
10918 /**
10919 * Register (RSL) dtx_tim_dat#
10920 *
10921 * DTX TIM Raw Data Register
10922 */
10923 union bdk_dtx_tim_datx
10924 {
10925 uint64_t u;
10926 struct bdk_dtx_tim_datx_s
10927 {
10928 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10929 uint64_t reserved_36_63 : 28;
10930 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
10931 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
10932 #else /* Word 0 - Little Endian */
10933 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
10934 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
10935 uint64_t reserved_36_63 : 28;
10936 #endif /* Word 0 - End */
10937 } s;
10938 /* struct bdk_dtx_tim_datx_s cn; */
10939 };
10940 typedef union bdk_dtx_tim_datx bdk_dtx_tim_datx_t;
10941
10942 static inline uint64_t BDK_DTX_TIM_DATX(unsigned long a) __attribute__ ((pure, always_inline));
10943 static inline uint64_t BDK_DTX_TIM_DATX(unsigned long a)
10944 {
10945 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
10946 return 0x87e0feac0040ll + 8ll * ((a) & 0x1);
10947 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
10948 return 0x87e0feac0040ll + 8ll * ((a) & 0x1);
10949 __bdk_csr_fatal("DTX_TIM_DATX", 1, a, 0, 0, 0);
10950 }
10951
10952 #define typedef_BDK_DTX_TIM_DATX(a) bdk_dtx_tim_datx_t
10953 #define bustype_BDK_DTX_TIM_DATX(a) BDK_CSR_TYPE_RSL
10954 #define basename_BDK_DTX_TIM_DATX(a) "DTX_TIM_DATX"
10955 #define busnum_BDK_DTX_TIM_DATX(a) (a)
10956 #define arguments_BDK_DTX_TIM_DATX(a) (a),-1,-1,-1
10957
10958 /**
10959 * Register (RSL) dtx_tim_ena#
10960 *
10961 * DTX TIM Data Enable Register
10962 */
10963 union bdk_dtx_tim_enax
10964 {
10965 uint64_t u;
10966 struct bdk_dtx_tim_enax_s
10967 {
10968 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
10969 uint64_t reserved_36_63 : 28;
10970 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
10971 buses. Normally only one block will drive each bit. */
10972 #else /* Word 0 - Little Endian */
10973 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
10974 buses. Normally only one block will drive each bit. */
10975 uint64_t reserved_36_63 : 28;
10976 #endif /* Word 0 - End */
10977 } s;
10978 /* struct bdk_dtx_tim_enax_s cn; */
10979 };
10980 typedef union bdk_dtx_tim_enax bdk_dtx_tim_enax_t;
10981
10982 static inline uint64_t BDK_DTX_TIM_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
10983 static inline uint64_t BDK_DTX_TIM_ENAX(unsigned long a)
10984 {
10985 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
10986 return 0x87e0feac0020ll + 8ll * ((a) & 0x1);
10987 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
10988 return 0x87e0feac0020ll + 8ll * ((a) & 0x1);
10989 __bdk_csr_fatal("DTX_TIM_ENAX", 1, a, 0, 0, 0);
10990 }
10991
10992 #define typedef_BDK_DTX_TIM_ENAX(a) bdk_dtx_tim_enax_t
10993 #define bustype_BDK_DTX_TIM_ENAX(a) BDK_CSR_TYPE_RSL
10994 #define basename_BDK_DTX_TIM_ENAX(a) "DTX_TIM_ENAX"
10995 #define busnum_BDK_DTX_TIM_ENAX(a) (a)
10996 #define arguments_BDK_DTX_TIM_ENAX(a) (a),-1,-1,-1
10997
10998 /**
10999 * Register (RSL) dtx_tim_sel#
11000 *
11001 * DTX TIM Select Register
11002 */
11003 union bdk_dtx_tim_selx
11004 {
11005 uint64_t u;
11006 struct bdk_dtx_tim_selx_s
11007 {
11008 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11009 uint64_t reserved_24_63 : 40;
11010 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
11011 #else /* Word 0 - Little Endian */
11012 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
11013 uint64_t reserved_24_63 : 40;
11014 #endif /* Word 0 - End */
11015 } s;
11016 /* struct bdk_dtx_tim_selx_s cn; */
11017 };
11018 typedef union bdk_dtx_tim_selx bdk_dtx_tim_selx_t;
11019
11020 static inline uint64_t BDK_DTX_TIM_SELX(unsigned long a) __attribute__ ((pure, always_inline));
11021 static inline uint64_t BDK_DTX_TIM_SELX(unsigned long a)
11022 {
11023 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
11024 return 0x87e0feac0000ll + 8ll * ((a) & 0x1);
11025 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
11026 return 0x87e0feac0000ll + 8ll * ((a) & 0x1);
11027 __bdk_csr_fatal("DTX_TIM_SELX", 1, a, 0, 0, 0);
11028 }
11029
11030 #define typedef_BDK_DTX_TIM_SELX(a) bdk_dtx_tim_selx_t
11031 #define bustype_BDK_DTX_TIM_SELX(a) BDK_CSR_TYPE_RSL
11032 #define basename_BDK_DTX_TIM_SELX(a) "DTX_TIM_SELX"
11033 #define busnum_BDK_DTX_TIM_SELX(a) (a)
11034 #define arguments_BDK_DTX_TIM_SELX(a) (a),-1,-1,-1
11035
11036 /**
11037 * Register (RSL) dtx_tns_bcst_rsp
11038 *
11039 * DTX TNS Control Register
11040 */
11041 union bdk_dtx_tns_bcst_rsp
11042 {
11043 uint64_t u;
11044 struct bdk_dtx_tns_bcst_rsp_s
11045 {
11046 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11047 uint64_t reserved_1_63 : 63;
11048 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
11049 #else /* Word 0 - Little Endian */
11050 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
11051 uint64_t reserved_1_63 : 63;
11052 #endif /* Word 0 - End */
11053 } s;
11054 /* struct bdk_dtx_tns_bcst_rsp_s cn; */
11055 };
11056 typedef union bdk_dtx_tns_bcst_rsp bdk_dtx_tns_bcst_rsp_t;
11057
11058 #define BDK_DTX_TNS_BCST_RSP BDK_DTX_TNS_BCST_RSP_FUNC()
11059 static inline uint64_t BDK_DTX_TNS_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
11060 static inline uint64_t BDK_DTX_TNS_BCST_RSP_FUNC(void)
11061 {
11062 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX))
11063 return 0x87e0fea10080ll;
11064 __bdk_csr_fatal("DTX_TNS_BCST_RSP", 0, 0, 0, 0, 0);
11065 }
11066
11067 #define typedef_BDK_DTX_TNS_BCST_RSP bdk_dtx_tns_bcst_rsp_t
11068 #define bustype_BDK_DTX_TNS_BCST_RSP BDK_CSR_TYPE_RSL
11069 #define basename_BDK_DTX_TNS_BCST_RSP "DTX_TNS_BCST_RSP"
11070 #define busnum_BDK_DTX_TNS_BCST_RSP 0
11071 #define arguments_BDK_DTX_TNS_BCST_RSP -1,-1,-1,-1
11072
11073 /**
11074 * Register (RSL) dtx_tns_ctl
11075 *
11076 * DTX TNS Control Register
11077 */
11078 union bdk_dtx_tns_ctl
11079 {
11080 uint64_t u;
11081 struct bdk_dtx_tns_ctl_s
11082 {
11083 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11084 uint64_t reserved_5_63 : 59;
11085 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
11086 uint64_t reserved_2_3 : 2;
11087 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
11088 debug data. Not applicable when software directly reads the DAT(0..1) registers.
11089 For diagnostic use only. */
11090 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
11091 #else /* Word 0 - Little Endian */
11092 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
11093 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
11094 debug data. Not applicable when software directly reads the DAT(0..1) registers.
11095 For diagnostic use only. */
11096 uint64_t reserved_2_3 : 2;
11097 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
11098 uint64_t reserved_5_63 : 59;
11099 #endif /* Word 0 - End */
11100 } s;
11101 /* struct bdk_dtx_tns_ctl_s cn; */
11102 };
11103 typedef union bdk_dtx_tns_ctl bdk_dtx_tns_ctl_t;
11104
11105 #define BDK_DTX_TNS_CTL BDK_DTX_TNS_CTL_FUNC()
11106 static inline uint64_t BDK_DTX_TNS_CTL_FUNC(void) __attribute__ ((pure, always_inline));
11107 static inline uint64_t BDK_DTX_TNS_CTL_FUNC(void)
11108 {
11109 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX))
11110 return 0x87e0fea10060ll;
11111 __bdk_csr_fatal("DTX_TNS_CTL", 0, 0, 0, 0, 0);
11112 }
11113
11114 #define typedef_BDK_DTX_TNS_CTL bdk_dtx_tns_ctl_t
11115 #define bustype_BDK_DTX_TNS_CTL BDK_CSR_TYPE_RSL
11116 #define basename_BDK_DTX_TNS_CTL "DTX_TNS_CTL"
11117 #define busnum_BDK_DTX_TNS_CTL 0
11118 #define arguments_BDK_DTX_TNS_CTL -1,-1,-1,-1
11119
11120 /**
11121 * Register (RSL) dtx_tns_dat#
11122 *
11123 * DTX TNS Raw Data Register
11124 */
11125 union bdk_dtx_tns_datx
11126 {
11127 uint64_t u;
11128 struct bdk_dtx_tns_datx_s
11129 {
11130 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11131 uint64_t reserved_36_63 : 28;
11132 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
11133 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
11134 #else /* Word 0 - Little Endian */
11135 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
11136 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
11137 uint64_t reserved_36_63 : 28;
11138 #endif /* Word 0 - End */
11139 } s;
11140 /* struct bdk_dtx_tns_datx_s cn; */
11141 };
11142 typedef union bdk_dtx_tns_datx bdk_dtx_tns_datx_t;
11143
11144 static inline uint64_t BDK_DTX_TNS_DATX(unsigned long a) __attribute__ ((pure, always_inline));
11145 static inline uint64_t BDK_DTX_TNS_DATX(unsigned long a)
11146 {
11147 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
11148 return 0x87e0fea10040ll + 8ll * ((a) & 0x1);
11149 __bdk_csr_fatal("DTX_TNS_DATX", 1, a, 0, 0, 0);
11150 }
11151
11152 #define typedef_BDK_DTX_TNS_DATX(a) bdk_dtx_tns_datx_t
11153 #define bustype_BDK_DTX_TNS_DATX(a) BDK_CSR_TYPE_RSL
11154 #define basename_BDK_DTX_TNS_DATX(a) "DTX_TNS_DATX"
11155 #define busnum_BDK_DTX_TNS_DATX(a) (a)
11156 #define arguments_BDK_DTX_TNS_DATX(a) (a),-1,-1,-1
11157
11158 /**
11159 * Register (RSL) dtx_tns_ena#
11160 *
11161 * DTX TNS Data Enable Register
11162 */
11163 union bdk_dtx_tns_enax
11164 {
11165 uint64_t u;
11166 struct bdk_dtx_tns_enax_s
11167 {
11168 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11169 uint64_t reserved_36_63 : 28;
11170 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
11171 buses. Normally only one block will drive each bit. */
11172 #else /* Word 0 - Little Endian */
11173 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
11174 buses. Normally only one block will drive each bit. */
11175 uint64_t reserved_36_63 : 28;
11176 #endif /* Word 0 - End */
11177 } s;
11178 /* struct bdk_dtx_tns_enax_s cn; */
11179 };
11180 typedef union bdk_dtx_tns_enax bdk_dtx_tns_enax_t;
11181
11182 static inline uint64_t BDK_DTX_TNS_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
11183 static inline uint64_t BDK_DTX_TNS_ENAX(unsigned long a)
11184 {
11185 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
11186 return 0x87e0fea10020ll + 8ll * ((a) & 0x1);
11187 __bdk_csr_fatal("DTX_TNS_ENAX", 1, a, 0, 0, 0);
11188 }
11189
11190 #define typedef_BDK_DTX_TNS_ENAX(a) bdk_dtx_tns_enax_t
11191 #define bustype_BDK_DTX_TNS_ENAX(a) BDK_CSR_TYPE_RSL
11192 #define basename_BDK_DTX_TNS_ENAX(a) "DTX_TNS_ENAX"
11193 #define busnum_BDK_DTX_TNS_ENAX(a) (a)
11194 #define arguments_BDK_DTX_TNS_ENAX(a) (a),-1,-1,-1
11195
11196 /**
11197 * Register (RSL) dtx_tns_sel#
11198 *
11199 * DTX TNS Select Register
11200 */
11201 union bdk_dtx_tns_selx
11202 {
11203 uint64_t u;
11204 struct bdk_dtx_tns_selx_s
11205 {
11206 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11207 uint64_t reserved_24_63 : 40;
11208 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
11209 #else /* Word 0 - Little Endian */
11210 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
11211 uint64_t reserved_24_63 : 40;
11212 #endif /* Word 0 - End */
11213 } s;
11214 /* struct bdk_dtx_tns_selx_s cn; */
11215 };
11216 typedef union bdk_dtx_tns_selx bdk_dtx_tns_selx_t;
11217
11218 static inline uint64_t BDK_DTX_TNS_SELX(unsigned long a) __attribute__ ((pure, always_inline));
11219 static inline uint64_t BDK_DTX_TNS_SELX(unsigned long a)
11220 {
11221 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
11222 return 0x87e0fea10000ll + 8ll * ((a) & 0x1);
11223 __bdk_csr_fatal("DTX_TNS_SELX", 1, a, 0, 0, 0);
11224 }
11225
11226 #define typedef_BDK_DTX_TNS_SELX(a) bdk_dtx_tns_selx_t
11227 #define bustype_BDK_DTX_TNS_SELX(a) BDK_CSR_TYPE_RSL
11228 #define basename_BDK_DTX_TNS_SELX(a) "DTX_TNS_SELX"
11229 #define busnum_BDK_DTX_TNS_SELX(a) (a)
11230 #define arguments_BDK_DTX_TNS_SELX(a) (a),-1,-1,-1
11231
11232 /**
11233 * Register (RSL) dtx_uaa#_bcst_rsp
11234 *
11235 * DTX UAA Control Register
11236 */
11237 union bdk_dtx_uaax_bcst_rsp
11238 {
11239 uint64_t u;
11240 struct bdk_dtx_uaax_bcst_rsp_s
11241 {
11242 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11243 uint64_t reserved_1_63 : 63;
11244 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
11245 #else /* Word 0 - Little Endian */
11246 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
11247 uint64_t reserved_1_63 : 63;
11248 #endif /* Word 0 - End */
11249 } s;
11250 /* struct bdk_dtx_uaax_bcst_rsp_s cn; */
11251 };
11252 typedef union bdk_dtx_uaax_bcst_rsp bdk_dtx_uaax_bcst_rsp_t;
11253
11254 static inline uint64_t BDK_DTX_UAAX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
11255 static inline uint64_t BDK_DTX_UAAX_BCST_RSP(unsigned long a)
11256 {
11257 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=3))
11258 return 0x87e0fe140080ll + 0x8000ll * ((a) & 0x3);
11259 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=3))
11260 return 0x87e0fe140080ll + 0x8000ll * ((a) & 0x3);
11261 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
11262 return 0x87e0fe120080ll + 0x8000ll * ((a) & 0x1);
11263 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=7))
11264 return 0x87e0fe140080ll + 0x8000ll * ((a) & 0x7);
11265 __bdk_csr_fatal("DTX_UAAX_BCST_RSP", 1, a, 0, 0, 0);
11266 }
11267
11268 #define typedef_BDK_DTX_UAAX_BCST_RSP(a) bdk_dtx_uaax_bcst_rsp_t
11269 #define bustype_BDK_DTX_UAAX_BCST_RSP(a) BDK_CSR_TYPE_RSL
11270 #define basename_BDK_DTX_UAAX_BCST_RSP(a) "DTX_UAAX_BCST_RSP"
11271 #define busnum_BDK_DTX_UAAX_BCST_RSP(a) (a)
11272 #define arguments_BDK_DTX_UAAX_BCST_RSP(a) (a),-1,-1,-1
11273
11274 /**
11275 * Register (RSL) dtx_uaa#_ctl
11276 *
11277 * DTX UAA Control Register
11278 */
11279 union bdk_dtx_uaax_ctl
11280 {
11281 uint64_t u;
11282 struct bdk_dtx_uaax_ctl_s
11283 {
11284 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11285 uint64_t reserved_5_63 : 59;
11286 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
11287 uint64_t reserved_2_3 : 2;
11288 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
11289 debug data. Not applicable when software directly reads the DAT(0..1) registers.
11290 For diagnostic use only. */
11291 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
11292 #else /* Word 0 - Little Endian */
11293 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
11294 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
11295 debug data. Not applicable when software directly reads the DAT(0..1) registers.
11296 For diagnostic use only. */
11297 uint64_t reserved_2_3 : 2;
11298 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
11299 uint64_t reserved_5_63 : 59;
11300 #endif /* Word 0 - End */
11301 } s;
11302 /* struct bdk_dtx_uaax_ctl_s cn; */
11303 };
11304 typedef union bdk_dtx_uaax_ctl bdk_dtx_uaax_ctl_t;
11305
11306 static inline uint64_t BDK_DTX_UAAX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
11307 static inline uint64_t BDK_DTX_UAAX_CTL(unsigned long a)
11308 {
11309 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=3))
11310 return 0x87e0fe140060ll + 0x8000ll * ((a) & 0x3);
11311 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=3))
11312 return 0x87e0fe140060ll + 0x8000ll * ((a) & 0x3);
11313 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
11314 return 0x87e0fe120060ll + 0x8000ll * ((a) & 0x1);
11315 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=7))
11316 return 0x87e0fe140060ll + 0x8000ll * ((a) & 0x7);
11317 __bdk_csr_fatal("DTX_UAAX_CTL", 1, a, 0, 0, 0);
11318 }
11319
11320 #define typedef_BDK_DTX_UAAX_CTL(a) bdk_dtx_uaax_ctl_t
11321 #define bustype_BDK_DTX_UAAX_CTL(a) BDK_CSR_TYPE_RSL
11322 #define basename_BDK_DTX_UAAX_CTL(a) "DTX_UAAX_CTL"
11323 #define busnum_BDK_DTX_UAAX_CTL(a) (a)
11324 #define arguments_BDK_DTX_UAAX_CTL(a) (a),-1,-1,-1
11325
11326 /**
11327 * Register (RSL) dtx_uaa#_dat#
11328 *
11329 * DTX UAA Raw Data Register
11330 */
11331 union bdk_dtx_uaax_datx
11332 {
11333 uint64_t u;
11334 struct bdk_dtx_uaax_datx_s
11335 {
11336 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11337 uint64_t reserved_36_63 : 28;
11338 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
11339 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
11340 #else /* Word 0 - Little Endian */
11341 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
11342 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
11343 uint64_t reserved_36_63 : 28;
11344 #endif /* Word 0 - End */
11345 } s;
11346 /* struct bdk_dtx_uaax_datx_s cn; */
11347 };
11348 typedef union bdk_dtx_uaax_datx bdk_dtx_uaax_datx_t;
11349
11350 static inline uint64_t BDK_DTX_UAAX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
11351 static inline uint64_t BDK_DTX_UAAX_DATX(unsigned long a, unsigned long b)
11352 {
11353 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a<=3) && (b<=1)))
11354 return 0x87e0fe140040ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
11355 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=3) && (b<=1)))
11356 return 0x87e0fe140040ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
11357 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=1) && (b<=1)))
11358 return 0x87e0fe120040ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
11359 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=7) && (b<=1)))
11360 return 0x87e0fe140040ll + 0x8000ll * ((a) & 0x7) + 8ll * ((b) & 0x1);
11361 __bdk_csr_fatal("DTX_UAAX_DATX", 2, a, b, 0, 0);
11362 }
11363
11364 #define typedef_BDK_DTX_UAAX_DATX(a,b) bdk_dtx_uaax_datx_t
11365 #define bustype_BDK_DTX_UAAX_DATX(a,b) BDK_CSR_TYPE_RSL
11366 #define basename_BDK_DTX_UAAX_DATX(a,b) "DTX_UAAX_DATX"
11367 #define busnum_BDK_DTX_UAAX_DATX(a,b) (a)
11368 #define arguments_BDK_DTX_UAAX_DATX(a,b) (a),(b),-1,-1
11369
11370 /**
11371 * Register (RSL) dtx_uaa#_ena#
11372 *
11373 * DTX UAA Data Enable Register
11374 */
11375 union bdk_dtx_uaax_enax
11376 {
11377 uint64_t u;
11378 struct bdk_dtx_uaax_enax_s
11379 {
11380 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11381 uint64_t reserved_36_63 : 28;
11382 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
11383 buses. Normally only one block will drive each bit. */
11384 #else /* Word 0 - Little Endian */
11385 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
11386 buses. Normally only one block will drive each bit. */
11387 uint64_t reserved_36_63 : 28;
11388 #endif /* Word 0 - End */
11389 } s;
11390 /* struct bdk_dtx_uaax_enax_s cn; */
11391 };
11392 typedef union bdk_dtx_uaax_enax bdk_dtx_uaax_enax_t;
11393
11394 static inline uint64_t BDK_DTX_UAAX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
11395 static inline uint64_t BDK_DTX_UAAX_ENAX(unsigned long a, unsigned long b)
11396 {
11397 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a<=3) && (b<=1)))
11398 return 0x87e0fe140020ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
11399 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=3) && (b<=1)))
11400 return 0x87e0fe140020ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
11401 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=1) && (b<=1)))
11402 return 0x87e0fe120020ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
11403 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=7) && (b<=1)))
11404 return 0x87e0fe140020ll + 0x8000ll * ((a) & 0x7) + 8ll * ((b) & 0x1);
11405 __bdk_csr_fatal("DTX_UAAX_ENAX", 2, a, b, 0, 0);
11406 }
11407
11408 #define typedef_BDK_DTX_UAAX_ENAX(a,b) bdk_dtx_uaax_enax_t
11409 #define bustype_BDK_DTX_UAAX_ENAX(a,b) BDK_CSR_TYPE_RSL
11410 #define basename_BDK_DTX_UAAX_ENAX(a,b) "DTX_UAAX_ENAX"
11411 #define busnum_BDK_DTX_UAAX_ENAX(a,b) (a)
11412 #define arguments_BDK_DTX_UAAX_ENAX(a,b) (a),(b),-1,-1
11413
11414 /**
11415 * Register (RSL) dtx_uaa#_sel#
11416 *
11417 * DTX UAA Select Register
11418 */
11419 union bdk_dtx_uaax_selx
11420 {
11421 uint64_t u;
11422 struct bdk_dtx_uaax_selx_s
11423 {
11424 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11425 uint64_t reserved_24_63 : 40;
11426 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
11427 #else /* Word 0 - Little Endian */
11428 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
11429 uint64_t reserved_24_63 : 40;
11430 #endif /* Word 0 - End */
11431 } s;
11432 /* struct bdk_dtx_uaax_selx_s cn; */
11433 };
11434 typedef union bdk_dtx_uaax_selx bdk_dtx_uaax_selx_t;
11435
11436 static inline uint64_t BDK_DTX_UAAX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
11437 static inline uint64_t BDK_DTX_UAAX_SELX(unsigned long a, unsigned long b)
11438 {
11439 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a<=3) && (b<=1)))
11440 return 0x87e0fe140000ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
11441 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=3) && (b<=1)))
11442 return 0x87e0fe140000ll + 0x8000ll * ((a) & 0x3) + 8ll * ((b) & 0x1);
11443 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=1) && (b<=1)))
11444 return 0x87e0fe120000ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
11445 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=7) && (b<=1)))
11446 return 0x87e0fe140000ll + 0x8000ll * ((a) & 0x7) + 8ll * ((b) & 0x1);
11447 __bdk_csr_fatal("DTX_UAAX_SELX", 2, a, b, 0, 0);
11448 }
11449
11450 #define typedef_BDK_DTX_UAAX_SELX(a,b) bdk_dtx_uaax_selx_t
11451 #define bustype_BDK_DTX_UAAX_SELX(a,b) BDK_CSR_TYPE_RSL
11452 #define basename_BDK_DTX_UAAX_SELX(a,b) "DTX_UAAX_SELX"
11453 #define busnum_BDK_DTX_UAAX_SELX(a,b) (a)
11454 #define arguments_BDK_DTX_UAAX_SELX(a,b) (a),(b),-1,-1
11455
11456 /**
11457 * Register (RSL) dtx_usbdrd#_bcst_rsp
11458 *
11459 * DTX USBDRD Control Register
11460 */
11461 union bdk_dtx_usbdrdx_bcst_rsp
11462 {
11463 uint64_t u;
11464 struct bdk_dtx_usbdrdx_bcst_rsp_s
11465 {
11466 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11467 uint64_t reserved_1_63 : 63;
11468 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
11469 #else /* Word 0 - Little Endian */
11470 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
11471 uint64_t reserved_1_63 : 63;
11472 #endif /* Word 0 - End */
11473 } s;
11474 /* struct bdk_dtx_usbdrdx_bcst_rsp_s cn; */
11475 };
11476 typedef union bdk_dtx_usbdrdx_bcst_rsp bdk_dtx_usbdrdx_bcst_rsp_t;
11477
11478 static inline uint64_t BDK_DTX_USBDRDX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
11479 static inline uint64_t BDK_DTX_USBDRDX_BCST_RSP(unsigned long a)
11480 {
11481 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
11482 return 0x87e0feb40080ll + 0x8000ll * ((a) & 0x1);
11483 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
11484 return 0x87e0feb40080ll + 0x8000ll * ((a) & 0x1);
11485 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
11486 return 0x87e0feb40080ll + 0x8000ll * ((a) & 0x1);
11487 __bdk_csr_fatal("DTX_USBDRDX_BCST_RSP", 1, a, 0, 0, 0);
11488 }
11489
11490 #define typedef_BDK_DTX_USBDRDX_BCST_RSP(a) bdk_dtx_usbdrdx_bcst_rsp_t
11491 #define bustype_BDK_DTX_USBDRDX_BCST_RSP(a) BDK_CSR_TYPE_RSL
11492 #define basename_BDK_DTX_USBDRDX_BCST_RSP(a) "DTX_USBDRDX_BCST_RSP"
11493 #define busnum_BDK_DTX_USBDRDX_BCST_RSP(a) (a)
11494 #define arguments_BDK_DTX_USBDRDX_BCST_RSP(a) (a),-1,-1,-1
11495
11496 /**
11497 * Register (RSL) dtx_usbdrd#_ctl
11498 *
11499 * DTX USBDRD Control Register
11500 */
11501 union bdk_dtx_usbdrdx_ctl
11502 {
11503 uint64_t u;
11504 struct bdk_dtx_usbdrdx_ctl_s
11505 {
11506 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11507 uint64_t reserved_5_63 : 59;
11508 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
11509 uint64_t reserved_2_3 : 2;
11510 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
11511 debug data. Not applicable when software directly reads the DAT(0..1) registers.
11512 For diagnostic use only. */
11513 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
11514 #else /* Word 0 - Little Endian */
11515 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
11516 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
11517 debug data. Not applicable when software directly reads the DAT(0..1) registers.
11518 For diagnostic use only. */
11519 uint64_t reserved_2_3 : 2;
11520 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
11521 uint64_t reserved_5_63 : 59;
11522 #endif /* Word 0 - End */
11523 } s;
11524 /* struct bdk_dtx_usbdrdx_ctl_s cn; */
11525 };
11526 typedef union bdk_dtx_usbdrdx_ctl bdk_dtx_usbdrdx_ctl_t;
11527
11528 static inline uint64_t BDK_DTX_USBDRDX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
11529 static inline uint64_t BDK_DTX_USBDRDX_CTL(unsigned long a)
11530 {
11531 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
11532 return 0x87e0feb40060ll + 0x8000ll * ((a) & 0x1);
11533 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
11534 return 0x87e0feb40060ll + 0x8000ll * ((a) & 0x1);
11535 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
11536 return 0x87e0feb40060ll + 0x8000ll * ((a) & 0x1);
11537 __bdk_csr_fatal("DTX_USBDRDX_CTL", 1, a, 0, 0, 0);
11538 }
11539
11540 #define typedef_BDK_DTX_USBDRDX_CTL(a) bdk_dtx_usbdrdx_ctl_t
11541 #define bustype_BDK_DTX_USBDRDX_CTL(a) BDK_CSR_TYPE_RSL
11542 #define basename_BDK_DTX_USBDRDX_CTL(a) "DTX_USBDRDX_CTL"
11543 #define busnum_BDK_DTX_USBDRDX_CTL(a) (a)
11544 #define arguments_BDK_DTX_USBDRDX_CTL(a) (a),-1,-1,-1
11545
11546 /**
11547 * Register (RSL) dtx_usbdrd#_dat#
11548 *
11549 * DTX USBDRD Raw Data Register
11550 */
11551 union bdk_dtx_usbdrdx_datx
11552 {
11553 uint64_t u;
11554 struct bdk_dtx_usbdrdx_datx_s
11555 {
11556 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11557 uint64_t reserved_36_63 : 28;
11558 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
11559 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
11560 #else /* Word 0 - Little Endian */
11561 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
11562 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
11563 uint64_t reserved_36_63 : 28;
11564 #endif /* Word 0 - End */
11565 } s;
11566 /* struct bdk_dtx_usbdrdx_datx_s cn; */
11567 };
11568 typedef union bdk_dtx_usbdrdx_datx bdk_dtx_usbdrdx_datx_t;
11569
11570 static inline uint64_t BDK_DTX_USBDRDX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
11571 static inline uint64_t BDK_DTX_USBDRDX_DATX(unsigned long a, unsigned long b)
11572 {
11573 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a<=1) && (b<=1)))
11574 return 0x87e0feb40040ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
11575 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=1) && (b<=1)))
11576 return 0x87e0feb40040ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
11577 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
11578 return 0x87e0feb40040ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
11579 __bdk_csr_fatal("DTX_USBDRDX_DATX", 2, a, b, 0, 0);
11580 }
11581
11582 #define typedef_BDK_DTX_USBDRDX_DATX(a,b) bdk_dtx_usbdrdx_datx_t
11583 #define bustype_BDK_DTX_USBDRDX_DATX(a,b) BDK_CSR_TYPE_RSL
11584 #define basename_BDK_DTX_USBDRDX_DATX(a,b) "DTX_USBDRDX_DATX"
11585 #define busnum_BDK_DTX_USBDRDX_DATX(a,b) (a)
11586 #define arguments_BDK_DTX_USBDRDX_DATX(a,b) (a),(b),-1,-1
11587
11588 /**
11589 * Register (RSL) dtx_usbdrd#_ena#
11590 *
11591 * DTX USBDRD Data Enable Register
11592 */
11593 union bdk_dtx_usbdrdx_enax
11594 {
11595 uint64_t u;
11596 struct bdk_dtx_usbdrdx_enax_s
11597 {
11598 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11599 uint64_t reserved_36_63 : 28;
11600 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
11601 buses. Normally only one block will drive each bit. */
11602 #else /* Word 0 - Little Endian */
11603 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
11604 buses. Normally only one block will drive each bit. */
11605 uint64_t reserved_36_63 : 28;
11606 #endif /* Word 0 - End */
11607 } s;
11608 /* struct bdk_dtx_usbdrdx_enax_s cn; */
11609 };
11610 typedef union bdk_dtx_usbdrdx_enax bdk_dtx_usbdrdx_enax_t;
11611
11612 static inline uint64_t BDK_DTX_USBDRDX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
11613 static inline uint64_t BDK_DTX_USBDRDX_ENAX(unsigned long a, unsigned long b)
11614 {
11615 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a<=1) && (b<=1)))
11616 return 0x87e0feb40020ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
11617 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=1) && (b<=1)))
11618 return 0x87e0feb40020ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
11619 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
11620 return 0x87e0feb40020ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
11621 __bdk_csr_fatal("DTX_USBDRDX_ENAX", 2, a, b, 0, 0);
11622 }
11623
11624 #define typedef_BDK_DTX_USBDRDX_ENAX(a,b) bdk_dtx_usbdrdx_enax_t
11625 #define bustype_BDK_DTX_USBDRDX_ENAX(a,b) BDK_CSR_TYPE_RSL
11626 #define basename_BDK_DTX_USBDRDX_ENAX(a,b) "DTX_USBDRDX_ENAX"
11627 #define busnum_BDK_DTX_USBDRDX_ENAX(a,b) (a)
11628 #define arguments_BDK_DTX_USBDRDX_ENAX(a,b) (a),(b),-1,-1
11629
11630 /**
11631 * Register (RSL) dtx_usbdrd#_sel#
11632 *
11633 * DTX USBDRD Select Register
11634 */
11635 union bdk_dtx_usbdrdx_selx
11636 {
11637 uint64_t u;
11638 struct bdk_dtx_usbdrdx_selx_s
11639 {
11640 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11641 uint64_t reserved_24_63 : 40;
11642 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
11643 #else /* Word 0 - Little Endian */
11644 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
11645 uint64_t reserved_24_63 : 40;
11646 #endif /* Word 0 - End */
11647 } s;
11648 /* struct bdk_dtx_usbdrdx_selx_s cn; */
11649 };
11650 typedef union bdk_dtx_usbdrdx_selx bdk_dtx_usbdrdx_selx_t;
11651
11652 static inline uint64_t BDK_DTX_USBDRDX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
11653 static inline uint64_t BDK_DTX_USBDRDX_SELX(unsigned long a, unsigned long b)
11654 {
11655 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && ((a<=1) && (b<=1)))
11656 return 0x87e0feb40000ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
11657 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && ((a<=1) && (b<=1)))
11658 return 0x87e0feb40000ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
11659 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
11660 return 0x87e0feb40000ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
11661 __bdk_csr_fatal("DTX_USBDRDX_SELX", 2, a, b, 0, 0);
11662 }
11663
11664 #define typedef_BDK_DTX_USBDRDX_SELX(a,b) bdk_dtx_usbdrdx_selx_t
11665 #define bustype_BDK_DTX_USBDRDX_SELX(a,b) BDK_CSR_TYPE_RSL
11666 #define basename_BDK_DTX_USBDRDX_SELX(a,b) "DTX_USBDRDX_SELX"
11667 #define busnum_BDK_DTX_USBDRDX_SELX(a,b) (a)
11668 #define arguments_BDK_DTX_USBDRDX_SELX(a,b) (a),(b),-1,-1
11669
11670 /**
11671 * Register (RSL) dtx_usbh#_bcst_rsp
11672 *
11673 * DTX USBH Control Register
11674 */
11675 union bdk_dtx_usbhx_bcst_rsp
11676 {
11677 uint64_t u;
11678 struct bdk_dtx_usbhx_bcst_rsp_s
11679 {
11680 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11681 uint64_t reserved_1_63 : 63;
11682 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
11683 #else /* Word 0 - Little Endian */
11684 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
11685 uint64_t reserved_1_63 : 63;
11686 #endif /* Word 0 - End */
11687 } s;
11688 /* struct bdk_dtx_usbhx_bcst_rsp_s cn; */
11689 };
11690 typedef union bdk_dtx_usbhx_bcst_rsp bdk_dtx_usbhx_bcst_rsp_t;
11691
11692 static inline uint64_t BDK_DTX_USBHX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
11693 static inline uint64_t BDK_DTX_USBHX_BCST_RSP(unsigned long a)
11694 {
11695 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
11696 return 0x87e0feb40080ll + 0x8000ll * ((a) & 0x1);
11697 __bdk_csr_fatal("DTX_USBHX_BCST_RSP", 1, a, 0, 0, 0);
11698 }
11699
11700 #define typedef_BDK_DTX_USBHX_BCST_RSP(a) bdk_dtx_usbhx_bcst_rsp_t
11701 #define bustype_BDK_DTX_USBHX_BCST_RSP(a) BDK_CSR_TYPE_RSL
11702 #define basename_BDK_DTX_USBHX_BCST_RSP(a) "DTX_USBHX_BCST_RSP"
11703 #define busnum_BDK_DTX_USBHX_BCST_RSP(a) (a)
11704 #define arguments_BDK_DTX_USBHX_BCST_RSP(a) (a),-1,-1,-1
11705
11706 /**
11707 * Register (RSL) dtx_usbh#_ctl
11708 *
11709 * DTX USBH Control Register
11710 */
11711 union bdk_dtx_usbhx_ctl
11712 {
11713 uint64_t u;
11714 struct bdk_dtx_usbhx_ctl_s
11715 {
11716 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11717 uint64_t reserved_5_63 : 59;
11718 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
11719 uint64_t reserved_2_3 : 2;
11720 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
11721 debug data. Not applicable when software directly reads the DAT(0..1) registers.
11722 For diagnostic use only. */
11723 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
11724 #else /* Word 0 - Little Endian */
11725 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
11726 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
11727 debug data. Not applicable when software directly reads the DAT(0..1) registers.
11728 For diagnostic use only. */
11729 uint64_t reserved_2_3 : 2;
11730 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
11731 uint64_t reserved_5_63 : 59;
11732 #endif /* Word 0 - End */
11733 } s;
11734 /* struct bdk_dtx_usbhx_ctl_s cn; */
11735 };
11736 typedef union bdk_dtx_usbhx_ctl bdk_dtx_usbhx_ctl_t;
11737
11738 static inline uint64_t BDK_DTX_USBHX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
11739 static inline uint64_t BDK_DTX_USBHX_CTL(unsigned long a)
11740 {
11741 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
11742 return 0x87e0feb40060ll + 0x8000ll * ((a) & 0x1);
11743 __bdk_csr_fatal("DTX_USBHX_CTL", 1, a, 0, 0, 0);
11744 }
11745
11746 #define typedef_BDK_DTX_USBHX_CTL(a) bdk_dtx_usbhx_ctl_t
11747 #define bustype_BDK_DTX_USBHX_CTL(a) BDK_CSR_TYPE_RSL
11748 #define basename_BDK_DTX_USBHX_CTL(a) "DTX_USBHX_CTL"
11749 #define busnum_BDK_DTX_USBHX_CTL(a) (a)
11750 #define arguments_BDK_DTX_USBHX_CTL(a) (a),-1,-1,-1
11751
11752 /**
11753 * Register (RSL) dtx_usbh#_dat#
11754 *
11755 * DTX USBH Raw Data Register
11756 */
11757 union bdk_dtx_usbhx_datx
11758 {
11759 uint64_t u;
11760 struct bdk_dtx_usbhx_datx_s
11761 {
11762 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11763 uint64_t reserved_36_63 : 28;
11764 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
11765 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
11766 #else /* Word 0 - Little Endian */
11767 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
11768 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
11769 uint64_t reserved_36_63 : 28;
11770 #endif /* Word 0 - End */
11771 } s;
11772 /* struct bdk_dtx_usbhx_datx_s cn; */
11773 };
11774 typedef union bdk_dtx_usbhx_datx bdk_dtx_usbhx_datx_t;
11775
11776 static inline uint64_t BDK_DTX_USBHX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
11777 static inline uint64_t BDK_DTX_USBHX_DATX(unsigned long a, unsigned long b)
11778 {
11779 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=1) && (b<=1)))
11780 return 0x87e0feb40040ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
11781 __bdk_csr_fatal("DTX_USBHX_DATX", 2, a, b, 0, 0);
11782 }
11783
11784 #define typedef_BDK_DTX_USBHX_DATX(a,b) bdk_dtx_usbhx_datx_t
11785 #define bustype_BDK_DTX_USBHX_DATX(a,b) BDK_CSR_TYPE_RSL
11786 #define basename_BDK_DTX_USBHX_DATX(a,b) "DTX_USBHX_DATX"
11787 #define busnum_BDK_DTX_USBHX_DATX(a,b) (a)
11788 #define arguments_BDK_DTX_USBHX_DATX(a,b) (a),(b),-1,-1
11789
11790 /**
11791 * Register (RSL) dtx_usbh#_ena#
11792 *
11793 * DTX USBH Data Enable Register
11794 */
11795 union bdk_dtx_usbhx_enax
11796 {
11797 uint64_t u;
11798 struct bdk_dtx_usbhx_enax_s
11799 {
11800 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11801 uint64_t reserved_36_63 : 28;
11802 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
11803 buses. Normally only one block will drive each bit. */
11804 #else /* Word 0 - Little Endian */
11805 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
11806 buses. Normally only one block will drive each bit. */
11807 uint64_t reserved_36_63 : 28;
11808 #endif /* Word 0 - End */
11809 } s;
11810 /* struct bdk_dtx_usbhx_enax_s cn; */
11811 };
11812 typedef union bdk_dtx_usbhx_enax bdk_dtx_usbhx_enax_t;
11813
11814 static inline uint64_t BDK_DTX_USBHX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
11815 static inline uint64_t BDK_DTX_USBHX_ENAX(unsigned long a, unsigned long b)
11816 {
11817 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=1) && (b<=1)))
11818 return 0x87e0feb40020ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
11819 __bdk_csr_fatal("DTX_USBHX_ENAX", 2, a, b, 0, 0);
11820 }
11821
11822 #define typedef_BDK_DTX_USBHX_ENAX(a,b) bdk_dtx_usbhx_enax_t
11823 #define bustype_BDK_DTX_USBHX_ENAX(a,b) BDK_CSR_TYPE_RSL
11824 #define basename_BDK_DTX_USBHX_ENAX(a,b) "DTX_USBHX_ENAX"
11825 #define busnum_BDK_DTX_USBHX_ENAX(a,b) (a)
11826 #define arguments_BDK_DTX_USBHX_ENAX(a,b) (a),(b),-1,-1
11827
11828 /**
11829 * Register (RSL) dtx_usbh#_sel#
11830 *
11831 * DTX USBH Select Register
11832 */
11833 union bdk_dtx_usbhx_selx
11834 {
11835 uint64_t u;
11836 struct bdk_dtx_usbhx_selx_s
11837 {
11838 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11839 uint64_t reserved_24_63 : 40;
11840 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
11841 #else /* Word 0 - Little Endian */
11842 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
11843 uint64_t reserved_24_63 : 40;
11844 #endif /* Word 0 - End */
11845 } s;
11846 /* struct bdk_dtx_usbhx_selx_s cn; */
11847 };
11848 typedef union bdk_dtx_usbhx_selx bdk_dtx_usbhx_selx_t;
11849
11850 static inline uint64_t BDK_DTX_USBHX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
11851 static inline uint64_t BDK_DTX_USBHX_SELX(unsigned long a, unsigned long b)
11852 {
11853 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=1) && (b<=1)))
11854 return 0x87e0feb40000ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
11855 __bdk_csr_fatal("DTX_USBHX_SELX", 2, a, b, 0, 0);
11856 }
11857
11858 #define typedef_BDK_DTX_USBHX_SELX(a,b) bdk_dtx_usbhx_selx_t
11859 #define bustype_BDK_DTX_USBHX_SELX(a,b) BDK_CSR_TYPE_RSL
11860 #define basename_BDK_DTX_USBHX_SELX(a,b) "DTX_USBHX_SELX"
11861 #define busnum_BDK_DTX_USBHX_SELX(a,b) (a)
11862 #define arguments_BDK_DTX_USBHX_SELX(a,b) (a),(b),-1,-1
11863
11864 /**
11865 * Register (RSL) dtx_xcp#_bcst_rsp
11866 *
11867 * DTX XCP Control Register
11868 */
11869 union bdk_dtx_xcpx_bcst_rsp
11870 {
11871 uint64_t u;
11872 struct bdk_dtx_xcpx_bcst_rsp_s
11873 {
11874 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11875 uint64_t reserved_1_63 : 63;
11876 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
11877 #else /* Word 0 - Little Endian */
11878 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
11879 uint64_t reserved_1_63 : 63;
11880 #endif /* Word 0 - End */
11881 } s;
11882 /* struct bdk_dtx_xcpx_bcst_rsp_s cn; */
11883 };
11884 typedef union bdk_dtx_xcpx_bcst_rsp bdk_dtx_xcpx_bcst_rsp_t;
11885
11886 static inline uint64_t BDK_DTX_XCPX_BCST_RSP(unsigned long a) __attribute__ ((pure, always_inline));
11887 static inline uint64_t BDK_DTX_XCPX_BCST_RSP(unsigned long a)
11888 {
11889 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
11890 return 0x87e0fe960080ll + 0x8000ll * ((a) & 0x1);
11891 __bdk_csr_fatal("DTX_XCPX_BCST_RSP", 1, a, 0, 0, 0);
11892 }
11893
11894 #define typedef_BDK_DTX_XCPX_BCST_RSP(a) bdk_dtx_xcpx_bcst_rsp_t
11895 #define bustype_BDK_DTX_XCPX_BCST_RSP(a) BDK_CSR_TYPE_RSL
11896 #define basename_BDK_DTX_XCPX_BCST_RSP(a) "DTX_XCPX_BCST_RSP"
11897 #define busnum_BDK_DTX_XCPX_BCST_RSP(a) (a)
11898 #define arguments_BDK_DTX_XCPX_BCST_RSP(a) (a),-1,-1,-1
11899
11900 /**
11901 * Register (RSL) dtx_xcp#_ctl
11902 *
11903 * DTX XCP Control Register
11904 */
11905 union bdk_dtx_xcpx_ctl
11906 {
11907 uint64_t u;
11908 struct bdk_dtx_xcpx_ctl_s
11909 {
11910 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11911 uint64_t reserved_5_63 : 59;
11912 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
11913 uint64_t reserved_2_3 : 2;
11914 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
11915 debug data. Not applicable when software directly reads the DAT(0..1) registers.
11916 For diagnostic use only. */
11917 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
11918 #else /* Word 0 - Little Endian */
11919 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
11920 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
11921 debug data. Not applicable when software directly reads the DAT(0..1) registers.
11922 For diagnostic use only. */
11923 uint64_t reserved_2_3 : 2;
11924 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
11925 uint64_t reserved_5_63 : 59;
11926 #endif /* Word 0 - End */
11927 } s;
11928 /* struct bdk_dtx_xcpx_ctl_s cn; */
11929 };
11930 typedef union bdk_dtx_xcpx_ctl bdk_dtx_xcpx_ctl_t;
11931
11932 static inline uint64_t BDK_DTX_XCPX_CTL(unsigned long a) __attribute__ ((pure, always_inline));
11933 static inline uint64_t BDK_DTX_XCPX_CTL(unsigned long a)
11934 {
11935 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
11936 return 0x87e0fe960060ll + 0x8000ll * ((a) & 0x1);
11937 __bdk_csr_fatal("DTX_XCPX_CTL", 1, a, 0, 0, 0);
11938 }
11939
11940 #define typedef_BDK_DTX_XCPX_CTL(a) bdk_dtx_xcpx_ctl_t
11941 #define bustype_BDK_DTX_XCPX_CTL(a) BDK_CSR_TYPE_RSL
11942 #define basename_BDK_DTX_XCPX_CTL(a) "DTX_XCPX_CTL"
11943 #define busnum_BDK_DTX_XCPX_CTL(a) (a)
11944 #define arguments_BDK_DTX_XCPX_CTL(a) (a),-1,-1,-1
11945
11946 /**
11947 * Register (RSL) dtx_xcp#_dat#
11948 *
11949 * DTX XCP Raw Data Register
11950 */
11951 union bdk_dtx_xcpx_datx
11952 {
11953 uint64_t u;
11954 struct bdk_dtx_xcpx_datx_s
11955 {
11956 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11957 uint64_t reserved_36_63 : 28;
11958 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
11959 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
11960 #else /* Word 0 - Little Endian */
11961 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
11962 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
11963 uint64_t reserved_36_63 : 28;
11964 #endif /* Word 0 - End */
11965 } s;
11966 /* struct bdk_dtx_xcpx_datx_s cn; */
11967 };
11968 typedef union bdk_dtx_xcpx_datx bdk_dtx_xcpx_datx_t;
11969
11970 static inline uint64_t BDK_DTX_XCPX_DATX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
11971 static inline uint64_t BDK_DTX_XCPX_DATX(unsigned long a, unsigned long b)
11972 {
11973 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
11974 return 0x87e0fe960040ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
11975 __bdk_csr_fatal("DTX_XCPX_DATX", 2, a, b, 0, 0);
11976 }
11977
11978 #define typedef_BDK_DTX_XCPX_DATX(a,b) bdk_dtx_xcpx_datx_t
11979 #define bustype_BDK_DTX_XCPX_DATX(a,b) BDK_CSR_TYPE_RSL
11980 #define basename_BDK_DTX_XCPX_DATX(a,b) "DTX_XCPX_DATX"
11981 #define busnum_BDK_DTX_XCPX_DATX(a,b) (a)
11982 #define arguments_BDK_DTX_XCPX_DATX(a,b) (a),(b),-1,-1
11983
11984 /**
11985 * Register (RSL) dtx_xcp#_ena#
11986 *
11987 * DTX XCP Data Enable Register
11988 */
11989 union bdk_dtx_xcpx_enax
11990 {
11991 uint64_t u;
11992 struct bdk_dtx_xcpx_enax_s
11993 {
11994 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
11995 uint64_t reserved_36_63 : 28;
11996 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
11997 buses. Normally only one block will drive each bit. */
11998 #else /* Word 0 - Little Endian */
11999 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
12000 buses. Normally only one block will drive each bit. */
12001 uint64_t reserved_36_63 : 28;
12002 #endif /* Word 0 - End */
12003 } s;
12004 /* struct bdk_dtx_xcpx_enax_s cn; */
12005 };
12006 typedef union bdk_dtx_xcpx_enax bdk_dtx_xcpx_enax_t;
12007
12008 static inline uint64_t BDK_DTX_XCPX_ENAX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
12009 static inline uint64_t BDK_DTX_XCPX_ENAX(unsigned long a, unsigned long b)
12010 {
12011 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
12012 return 0x87e0fe960020ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
12013 __bdk_csr_fatal("DTX_XCPX_ENAX", 2, a, b, 0, 0);
12014 }
12015
12016 #define typedef_BDK_DTX_XCPX_ENAX(a,b) bdk_dtx_xcpx_enax_t
12017 #define bustype_BDK_DTX_XCPX_ENAX(a,b) BDK_CSR_TYPE_RSL
12018 #define basename_BDK_DTX_XCPX_ENAX(a,b) "DTX_XCPX_ENAX"
12019 #define busnum_BDK_DTX_XCPX_ENAX(a,b) (a)
12020 #define arguments_BDK_DTX_XCPX_ENAX(a,b) (a),(b),-1,-1
12021
12022 /**
12023 * Register (RSL) dtx_xcp#_sel#
12024 *
12025 * DTX XCP Select Register
12026 */
12027 union bdk_dtx_xcpx_selx
12028 {
12029 uint64_t u;
12030 struct bdk_dtx_xcpx_selx_s
12031 {
12032 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
12033 uint64_t reserved_24_63 : 40;
12034 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
12035 #else /* Word 0 - Little Endian */
12036 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
12037 uint64_t reserved_24_63 : 40;
12038 #endif /* Word 0 - End */
12039 } s;
12040 /* struct bdk_dtx_xcpx_selx_s cn; */
12041 };
12042 typedef union bdk_dtx_xcpx_selx bdk_dtx_xcpx_selx_t;
12043
12044 static inline uint64_t BDK_DTX_XCPX_SELX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline));
12045 static inline uint64_t BDK_DTX_XCPX_SELX(unsigned long a, unsigned long b)
12046 {
12047 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && ((a<=1) && (b<=1)))
12048 return 0x87e0fe960000ll + 0x8000ll * ((a) & 0x1) + 8ll * ((b) & 0x1);
12049 __bdk_csr_fatal("DTX_XCPX_SELX", 2, a, b, 0, 0);
12050 }
12051
12052 #define typedef_BDK_DTX_XCPX_SELX(a,b) bdk_dtx_xcpx_selx_t
12053 #define bustype_BDK_DTX_XCPX_SELX(a,b) BDK_CSR_TYPE_RSL
12054 #define basename_BDK_DTX_XCPX_SELX(a,b) "DTX_XCPX_SELX"
12055 #define busnum_BDK_DTX_XCPX_SELX(a,b) (a)
12056 #define arguments_BDK_DTX_XCPX_SELX(a,b) (a),(b),-1,-1
12057
12058 /**
12059 * Register (RSL) dtx_xcv_bcst_rsp
12060 *
12061 * DTX XCV Control Register
12062 */
12063 union bdk_dtx_xcv_bcst_rsp
12064 {
12065 uint64_t u;
12066 struct bdk_dtx_xcv_bcst_rsp_s
12067 {
12068 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
12069 uint64_t reserved_1_63 : 63;
12070 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
12071 #else /* Word 0 - Little Endian */
12072 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
12073 uint64_t reserved_1_63 : 63;
12074 #endif /* Word 0 - End */
12075 } s;
12076 /* struct bdk_dtx_xcv_bcst_rsp_s cn; */
12077 };
12078 typedef union bdk_dtx_xcv_bcst_rsp bdk_dtx_xcv_bcst_rsp_t;
12079
12080 #define BDK_DTX_XCV_BCST_RSP BDK_DTX_XCV_BCST_RSP_FUNC()
12081 static inline uint64_t BDK_DTX_XCV_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
12082 static inline uint64_t BDK_DTX_XCV_BCST_RSP_FUNC(void)
12083 {
12084 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX))
12085 return 0x87e0fe6d8080ll;
12086 __bdk_csr_fatal("DTX_XCV_BCST_RSP", 0, 0, 0, 0, 0);
12087 }
12088
12089 #define typedef_BDK_DTX_XCV_BCST_RSP bdk_dtx_xcv_bcst_rsp_t
12090 #define bustype_BDK_DTX_XCV_BCST_RSP BDK_CSR_TYPE_RSL
12091 #define basename_BDK_DTX_XCV_BCST_RSP "DTX_XCV_BCST_RSP"
12092 #define busnum_BDK_DTX_XCV_BCST_RSP 0
12093 #define arguments_BDK_DTX_XCV_BCST_RSP -1,-1,-1,-1
12094
12095 /**
12096 * Register (RSL) dtx_xcv_ctl
12097 *
12098 * DTX XCV Control Register
12099 */
12100 union bdk_dtx_xcv_ctl
12101 {
12102 uint64_t u;
12103 struct bdk_dtx_xcv_ctl_s
12104 {
12105 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
12106 uint64_t reserved_5_63 : 59;
12107 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
12108 uint64_t reserved_2_3 : 2;
12109 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
12110 debug data. Not applicable when software directly reads the DAT(0..1) registers.
12111 For diagnostic use only. */
12112 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
12113 #else /* Word 0 - Little Endian */
12114 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
12115 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
12116 debug data. Not applicable when software directly reads the DAT(0..1) registers.
12117 For diagnostic use only. */
12118 uint64_t reserved_2_3 : 2;
12119 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
12120 uint64_t reserved_5_63 : 59;
12121 #endif /* Word 0 - End */
12122 } s;
12123 /* struct bdk_dtx_xcv_ctl_s cn; */
12124 };
12125 typedef union bdk_dtx_xcv_ctl bdk_dtx_xcv_ctl_t;
12126
12127 #define BDK_DTX_XCV_CTL BDK_DTX_XCV_CTL_FUNC()
12128 static inline uint64_t BDK_DTX_XCV_CTL_FUNC(void) __attribute__ ((pure, always_inline));
12129 static inline uint64_t BDK_DTX_XCV_CTL_FUNC(void)
12130 {
12131 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX))
12132 return 0x87e0fe6d8060ll;
12133 __bdk_csr_fatal("DTX_XCV_CTL", 0, 0, 0, 0, 0);
12134 }
12135
12136 #define typedef_BDK_DTX_XCV_CTL bdk_dtx_xcv_ctl_t
12137 #define bustype_BDK_DTX_XCV_CTL BDK_CSR_TYPE_RSL
12138 #define basename_BDK_DTX_XCV_CTL "DTX_XCV_CTL"
12139 #define busnum_BDK_DTX_XCV_CTL 0
12140 #define arguments_BDK_DTX_XCV_CTL -1,-1,-1,-1
12141
12142 /**
12143 * Register (RSL) dtx_xcv_dat#
12144 *
12145 * DTX XCV Raw Data Register
12146 */
12147 union bdk_dtx_xcv_datx
12148 {
12149 uint64_t u;
12150 struct bdk_dtx_xcv_datx_s
12151 {
12152 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
12153 uint64_t reserved_36_63 : 28;
12154 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
12155 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
12156 #else /* Word 0 - Little Endian */
12157 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
12158 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
12159 uint64_t reserved_36_63 : 28;
12160 #endif /* Word 0 - End */
12161 } s;
12162 /* struct bdk_dtx_xcv_datx_s cn; */
12163 };
12164 typedef union bdk_dtx_xcv_datx bdk_dtx_xcv_datx_t;
12165
12166 static inline uint64_t BDK_DTX_XCV_DATX(unsigned long a) __attribute__ ((pure, always_inline));
12167 static inline uint64_t BDK_DTX_XCV_DATX(unsigned long a)
12168 {
12169 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
12170 return 0x87e0fe6d8040ll + 8ll * ((a) & 0x1);
12171 __bdk_csr_fatal("DTX_XCV_DATX", 1, a, 0, 0, 0);
12172 }
12173
12174 #define typedef_BDK_DTX_XCV_DATX(a) bdk_dtx_xcv_datx_t
12175 #define bustype_BDK_DTX_XCV_DATX(a) BDK_CSR_TYPE_RSL
12176 #define basename_BDK_DTX_XCV_DATX(a) "DTX_XCV_DATX"
12177 #define busnum_BDK_DTX_XCV_DATX(a) (a)
12178 #define arguments_BDK_DTX_XCV_DATX(a) (a),-1,-1,-1
12179
12180 /**
12181 * Register (RSL) dtx_xcv_ena#
12182 *
12183 * DTX XCV Data Enable Register
12184 */
12185 union bdk_dtx_xcv_enax
12186 {
12187 uint64_t u;
12188 struct bdk_dtx_xcv_enax_s
12189 {
12190 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
12191 uint64_t reserved_36_63 : 28;
12192 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
12193 buses. Normally only one block will drive each bit. */
12194 #else /* Word 0 - Little Endian */
12195 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
12196 buses. Normally only one block will drive each bit. */
12197 uint64_t reserved_36_63 : 28;
12198 #endif /* Word 0 - End */
12199 } s;
12200 /* struct bdk_dtx_xcv_enax_s cn; */
12201 };
12202 typedef union bdk_dtx_xcv_enax bdk_dtx_xcv_enax_t;
12203
12204 static inline uint64_t BDK_DTX_XCV_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
12205 static inline uint64_t BDK_DTX_XCV_ENAX(unsigned long a)
12206 {
12207 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
12208 return 0x87e0fe6d8020ll + 8ll * ((a) & 0x1);
12209 __bdk_csr_fatal("DTX_XCV_ENAX", 1, a, 0, 0, 0);
12210 }
12211
12212 #define typedef_BDK_DTX_XCV_ENAX(a) bdk_dtx_xcv_enax_t
12213 #define bustype_BDK_DTX_XCV_ENAX(a) BDK_CSR_TYPE_RSL
12214 #define basename_BDK_DTX_XCV_ENAX(a) "DTX_XCV_ENAX"
12215 #define busnum_BDK_DTX_XCV_ENAX(a) (a)
12216 #define arguments_BDK_DTX_XCV_ENAX(a) (a),-1,-1,-1
12217
12218 /**
12219 * Register (RSL) dtx_xcv_sel#
12220 *
12221 * DTX XCV Select Register
12222 */
12223 union bdk_dtx_xcv_selx
12224 {
12225 uint64_t u;
12226 struct bdk_dtx_xcv_selx_s
12227 {
12228 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
12229 uint64_t reserved_24_63 : 40;
12230 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
12231 #else /* Word 0 - Little Endian */
12232 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
12233 uint64_t reserved_24_63 : 40;
12234 #endif /* Word 0 - End */
12235 } s;
12236 /* struct bdk_dtx_xcv_selx_s cn; */
12237 };
12238 typedef union bdk_dtx_xcv_selx bdk_dtx_xcv_selx_t;
12239
12240 static inline uint64_t BDK_DTX_XCV_SELX(unsigned long a) __attribute__ ((pure, always_inline));
12241 static inline uint64_t BDK_DTX_XCV_SELX(unsigned long a)
12242 {
12243 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX) && (a<=1))
12244 return 0x87e0fe6d8000ll + 8ll * ((a) & 0x1);
12245 __bdk_csr_fatal("DTX_XCV_SELX", 1, a, 0, 0, 0);
12246 }
12247
12248 #define typedef_BDK_DTX_XCV_SELX(a) bdk_dtx_xcv_selx_t
12249 #define bustype_BDK_DTX_XCV_SELX(a) BDK_CSR_TYPE_RSL
12250 #define basename_BDK_DTX_XCV_SELX(a) "DTX_XCV_SELX"
12251 #define busnum_BDK_DTX_XCV_SELX(a) (a)
12252 #define arguments_BDK_DTX_XCV_SELX(a) (a),-1,-1,-1
12253
12254 /**
12255 * Register (RSL) dtx_zip_bcst_rsp
12256 *
12257 * DTX ZIP Control Register
12258 */
12259 union bdk_dtx_zip_bcst_rsp
12260 {
12261 uint64_t u;
12262 struct bdk_dtx_zip_bcst_rsp_s
12263 {
12264 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
12265 uint64_t reserved_1_63 : 63;
12266 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
12267 #else /* Word 0 - Little Endian */
12268 uint64_t ena : 1; /**< [ 0: 0](R/W) Enable this DTX instance as the responder to DTX broadcast read/write operations. */
12269 uint64_t reserved_1_63 : 63;
12270 #endif /* Word 0 - End */
12271 } s;
12272 /* struct bdk_dtx_zip_bcst_rsp_s cn; */
12273 };
12274 typedef union bdk_dtx_zip_bcst_rsp bdk_dtx_zip_bcst_rsp_t;
12275
12276 #define BDK_DTX_ZIP_BCST_RSP BDK_DTX_ZIP_BCST_RSP_FUNC()
12277 static inline uint64_t BDK_DTX_ZIP_BCST_RSP_FUNC(void) __attribute__ ((pure, always_inline));
12278 static inline uint64_t BDK_DTX_ZIP_BCST_RSP_FUNC(void)
12279 {
12280 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
12281 return 0x87e0fe9c0080ll;
12282 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX))
12283 return 0x87e0fe9c0080ll;
12284 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
12285 return 0x87e0fe9c0080ll;
12286 __bdk_csr_fatal("DTX_ZIP_BCST_RSP", 0, 0, 0, 0, 0);
12287 }
12288
12289 #define typedef_BDK_DTX_ZIP_BCST_RSP bdk_dtx_zip_bcst_rsp_t
12290 #define bustype_BDK_DTX_ZIP_BCST_RSP BDK_CSR_TYPE_RSL
12291 #define basename_BDK_DTX_ZIP_BCST_RSP "DTX_ZIP_BCST_RSP"
12292 #define busnum_BDK_DTX_ZIP_BCST_RSP 0
12293 #define arguments_BDK_DTX_ZIP_BCST_RSP -1,-1,-1,-1
12294
12295 /**
12296 * Register (RSL) dtx_zip_ctl
12297 *
12298 * DTX ZIP Control Register
12299 */
12300 union bdk_dtx_zip_ctl
12301 {
12302 uint64_t u;
12303 struct bdk_dtx_zip_ctl_s
12304 {
12305 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
12306 uint64_t reserved_5_63 : 59;
12307 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
12308 uint64_t reserved_2_3 : 2;
12309 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
12310 debug data. Not applicable when software directly reads the DAT(0..1) registers.
12311 For diagnostic use only. */
12312 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
12313 #else /* Word 0 - Little Endian */
12314 uint64_t swap : 1; /**< [ 0: 0](R/W) Swap the high and low 36-bit debug bus outputs. */
12315 uint64_t echoen : 1; /**< [ 1: 1](R/W) Drive debug bus with the value in DTX_MIO_ENA(0..1) instead of normal block
12316 debug data. Not applicable when software directly reads the DAT(0..1) registers.
12317 For diagnostic use only. */
12318 uint64_t reserved_2_3 : 2;
12319 uint64_t active : 1; /**< [ 4: 4](R/W) Force block's gated clocks on, so that the state of idle signals may be captured. */
12320 uint64_t reserved_5_63 : 59;
12321 #endif /* Word 0 - End */
12322 } s;
12323 /* struct bdk_dtx_zip_ctl_s cn; */
12324 };
12325 typedef union bdk_dtx_zip_ctl bdk_dtx_zip_ctl_t;
12326
12327 #define BDK_DTX_ZIP_CTL BDK_DTX_ZIP_CTL_FUNC()
12328 static inline uint64_t BDK_DTX_ZIP_CTL_FUNC(void) __attribute__ ((pure, always_inline));
12329 static inline uint64_t BDK_DTX_ZIP_CTL_FUNC(void)
12330 {
12331 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
12332 return 0x87e0fe9c0060ll;
12333 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX))
12334 return 0x87e0fe9c0060ll;
12335 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
12336 return 0x87e0fe9c0060ll;
12337 __bdk_csr_fatal("DTX_ZIP_CTL", 0, 0, 0, 0, 0);
12338 }
12339
12340 #define typedef_BDK_DTX_ZIP_CTL bdk_dtx_zip_ctl_t
12341 #define bustype_BDK_DTX_ZIP_CTL BDK_CSR_TYPE_RSL
12342 #define basename_BDK_DTX_ZIP_CTL "DTX_ZIP_CTL"
12343 #define busnum_BDK_DTX_ZIP_CTL 0
12344 #define arguments_BDK_DTX_ZIP_CTL -1,-1,-1,-1
12345
12346 /**
12347 * Register (RSL) dtx_zip_dat#
12348 *
12349 * DTX ZIP Raw Data Register
12350 */
12351 union bdk_dtx_zip_datx
12352 {
12353 uint64_t u;
12354 struct bdk_dtx_zip_datx_s
12355 {
12356 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
12357 uint64_t reserved_36_63 : 28;
12358 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
12359 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
12360 #else /* Word 0 - Little Endian */
12361 uint64_t raw : 36; /**< [ 35: 0](RO/H) Raw debug data captured by the DTX before the ENA is applied. This gives the
12362 ability to peek into blocks during an OCLA capture without OCLA reconfiguration. */
12363 uint64_t reserved_36_63 : 28;
12364 #endif /* Word 0 - End */
12365 } s;
12366 /* struct bdk_dtx_zip_datx_s cn; */
12367 };
12368 typedef union bdk_dtx_zip_datx bdk_dtx_zip_datx_t;
12369
12370 static inline uint64_t BDK_DTX_ZIP_DATX(unsigned long a) __attribute__ ((pure, always_inline));
12371 static inline uint64_t BDK_DTX_ZIP_DATX(unsigned long a)
12372 {
12373 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
12374 return 0x87e0fe9c0040ll + 8ll * ((a) & 0x1);
12375 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
12376 return 0x87e0fe9c0040ll + 8ll * ((a) & 0x1);
12377 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
12378 return 0x87e0fe9c0040ll + 8ll * ((a) & 0x1);
12379 __bdk_csr_fatal("DTX_ZIP_DATX", 1, a, 0, 0, 0);
12380 }
12381
12382 #define typedef_BDK_DTX_ZIP_DATX(a) bdk_dtx_zip_datx_t
12383 #define bustype_BDK_DTX_ZIP_DATX(a) BDK_CSR_TYPE_RSL
12384 #define basename_BDK_DTX_ZIP_DATX(a) "DTX_ZIP_DATX"
12385 #define busnum_BDK_DTX_ZIP_DATX(a) (a)
12386 #define arguments_BDK_DTX_ZIP_DATX(a) (a),-1,-1,-1
12387
12388 /**
12389 * Register (RSL) dtx_zip_ena#
12390 *
12391 * DTX ZIP Data Enable Register
12392 */
12393 union bdk_dtx_zip_enax
12394 {
12395 uint64_t u;
12396 struct bdk_dtx_zip_enax_s
12397 {
12398 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
12399 uint64_t reserved_36_63 : 28;
12400 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
12401 buses. Normally only one block will drive each bit. */
12402 #else /* Word 0 - Little Endian */
12403 uint64_t ena : 36; /**< [ 35: 0](R/W) Output enable vector of which bits to drive onto the low/high 36-bit debug
12404 buses. Normally only one block will drive each bit. */
12405 uint64_t reserved_36_63 : 28;
12406 #endif /* Word 0 - End */
12407 } s;
12408 /* struct bdk_dtx_zip_enax_s cn; */
12409 };
12410 typedef union bdk_dtx_zip_enax bdk_dtx_zip_enax_t;
12411
12412 static inline uint64_t BDK_DTX_ZIP_ENAX(unsigned long a) __attribute__ ((pure, always_inline));
12413 static inline uint64_t BDK_DTX_ZIP_ENAX(unsigned long a)
12414 {
12415 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
12416 return 0x87e0fe9c0020ll + 8ll * ((a) & 0x1);
12417 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
12418 return 0x87e0fe9c0020ll + 8ll * ((a) & 0x1);
12419 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
12420 return 0x87e0fe9c0020ll + 8ll * ((a) & 0x1);
12421 __bdk_csr_fatal("DTX_ZIP_ENAX", 1, a, 0, 0, 0);
12422 }
12423
12424 #define typedef_BDK_DTX_ZIP_ENAX(a) bdk_dtx_zip_enax_t
12425 #define bustype_BDK_DTX_ZIP_ENAX(a) BDK_CSR_TYPE_RSL
12426 #define basename_BDK_DTX_ZIP_ENAX(a) "DTX_ZIP_ENAX"
12427 #define busnum_BDK_DTX_ZIP_ENAX(a) (a)
12428 #define arguments_BDK_DTX_ZIP_ENAX(a) (a),-1,-1,-1
12429
12430 /**
12431 * Register (RSL) dtx_zip_sel#
12432 *
12433 * DTX ZIP Select Register
12434 */
12435 union bdk_dtx_zip_selx
12436 {
12437 uint64_t u;
12438 struct bdk_dtx_zip_selx_s
12439 {
12440 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
12441 uint64_t reserved_24_63 : 40;
12442 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
12443 #else /* Word 0 - Little Endian */
12444 uint64_t value : 24; /**< [ 23: 0](R/W) Debug select. Selects which signals to drive onto low/high 36-bit debug buses. */
12445 uint64_t reserved_24_63 : 40;
12446 #endif /* Word 0 - End */
12447 } s;
12448 /* struct bdk_dtx_zip_selx_s cn; */
12449 };
12450 typedef union bdk_dtx_zip_selx bdk_dtx_zip_selx_t;
12451
12452 static inline uint64_t BDK_DTX_ZIP_SELX(unsigned long a) __attribute__ ((pure, always_inline));
12453 static inline uint64_t BDK_DTX_ZIP_SELX(unsigned long a)
12454 {
12455 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX) && (a<=1))
12456 return 0x87e0fe9c0000ll + 8ll * ((a) & 0x1);
12457 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1))
12458 return 0x87e0fe9c0000ll + 8ll * ((a) & 0x1);
12459 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
12460 return 0x87e0fe9c0000ll + 8ll * ((a) & 0x1);
12461 __bdk_csr_fatal("DTX_ZIP_SELX", 1, a, 0, 0, 0);
12462 }
12463
12464 #define typedef_BDK_DTX_ZIP_SELX(a) bdk_dtx_zip_selx_t
12465 #define bustype_BDK_DTX_ZIP_SELX(a) BDK_CSR_TYPE_RSL
12466 #define basename_BDK_DTX_ZIP_SELX(a) "DTX_ZIP_SELX"
12467 #define busnum_BDK_DTX_ZIP_SELX(a) (a)
12468 #define arguments_BDK_DTX_ZIP_SELX(a) (a),-1,-1,-1
12469
12470 #endif /* __BDK_CSRS_DTX_H__ */