1 /***********************license start***************
2 * Author: Cavium Networks
4 * Contact: support@caviumnetworks.com
5 * This file is part of the OCTEON SDK
7 * Copyright (c) 2003-2012 Cavium Networks
9 * This file is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License, Version 2, as
11 * published by the Free Software Foundation.
13 * This file is distributed in the hope that it will be useful, but
14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
15 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
16 * NONINFRINGEMENT. See the GNU General Public License for more
19 * You should have received a copy of the GNU General Public License
20 * along with this file; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 * or visit http://www.gnu.org/licenses/.
24 * This file may also be available under a different license from Cavium.
25 * Contact Cavium Networks for more information
26 ***********************license end**************************************/
28 #ifndef __CVMX_L2D_DEFS_H__
29 #define __CVMX_L2D_DEFS_H__
31 #define CVMX_L2D_BST0 (CVMX_ADD_IO_SEG(0x0001180080000780ull))
32 #define CVMX_L2D_BST1 (CVMX_ADD_IO_SEG(0x0001180080000788ull))
33 #define CVMX_L2D_BST2 (CVMX_ADD_IO_SEG(0x0001180080000790ull))
34 #define CVMX_L2D_BST3 (CVMX_ADD_IO_SEG(0x0001180080000798ull))
35 #define CVMX_L2D_ERR (CVMX_ADD_IO_SEG(0x0001180080000010ull))
36 #define CVMX_L2D_FADR (CVMX_ADD_IO_SEG(0x0001180080000018ull))
37 #define CVMX_L2D_FSYN0 (CVMX_ADD_IO_SEG(0x0001180080000020ull))
38 #define CVMX_L2D_FSYN1 (CVMX_ADD_IO_SEG(0x0001180080000028ull))
39 #define CVMX_L2D_FUS0 (CVMX_ADD_IO_SEG(0x00011800800007A0ull))
40 #define CVMX_L2D_FUS1 (CVMX_ADD_IO_SEG(0x00011800800007A8ull))
41 #define CVMX_L2D_FUS2 (CVMX_ADD_IO_SEG(0x00011800800007B0ull))
42 #define CVMX_L2D_FUS3 (CVMX_ADD_IO_SEG(0x00011800800007B8ull))
46 struct cvmx_l2d_bst0_s
{
47 #ifdef __BIG_ENDIAN_BITFIELD
48 uint64_t reserved_35_63
:29;
54 uint64_t reserved_35_63
:29;
57 struct cvmx_l2d_bst0_s cn30xx
;
58 struct cvmx_l2d_bst0_s cn31xx
;
59 struct cvmx_l2d_bst0_s cn38xx
;
60 struct cvmx_l2d_bst0_s cn38xxp2
;
61 struct cvmx_l2d_bst0_s cn50xx
;
62 struct cvmx_l2d_bst0_s cn52xx
;
63 struct cvmx_l2d_bst0_s cn52xxp1
;
64 struct cvmx_l2d_bst0_s cn56xx
;
65 struct cvmx_l2d_bst0_s cn56xxp1
;
66 struct cvmx_l2d_bst0_s cn58xx
;
67 struct cvmx_l2d_bst0_s cn58xxp1
;
72 struct cvmx_l2d_bst1_s
{
73 #ifdef __BIG_ENDIAN_BITFIELD
74 uint64_t reserved_34_63
:30;
78 uint64_t reserved_34_63
:30;
81 struct cvmx_l2d_bst1_s cn30xx
;
82 struct cvmx_l2d_bst1_s cn31xx
;
83 struct cvmx_l2d_bst1_s cn38xx
;
84 struct cvmx_l2d_bst1_s cn38xxp2
;
85 struct cvmx_l2d_bst1_s cn50xx
;
86 struct cvmx_l2d_bst1_s cn52xx
;
87 struct cvmx_l2d_bst1_s cn52xxp1
;
88 struct cvmx_l2d_bst1_s cn56xx
;
89 struct cvmx_l2d_bst1_s cn56xxp1
;
90 struct cvmx_l2d_bst1_s cn58xx
;
91 struct cvmx_l2d_bst1_s cn58xxp1
;
96 struct cvmx_l2d_bst2_s
{
97 #ifdef __BIG_ENDIAN_BITFIELD
98 uint64_t reserved_34_63
:30;
102 uint64_t reserved_34_63
:30;
105 struct cvmx_l2d_bst2_s cn30xx
;
106 struct cvmx_l2d_bst2_s cn31xx
;
107 struct cvmx_l2d_bst2_s cn38xx
;
108 struct cvmx_l2d_bst2_s cn38xxp2
;
109 struct cvmx_l2d_bst2_s cn50xx
;
110 struct cvmx_l2d_bst2_s cn52xx
;
111 struct cvmx_l2d_bst2_s cn52xxp1
;
112 struct cvmx_l2d_bst2_s cn56xx
;
113 struct cvmx_l2d_bst2_s cn56xxp1
;
114 struct cvmx_l2d_bst2_s cn58xx
;
115 struct cvmx_l2d_bst2_s cn58xxp1
;
118 union cvmx_l2d_bst3
{
120 struct cvmx_l2d_bst3_s
{
121 #ifdef __BIG_ENDIAN_BITFIELD
122 uint64_t reserved_34_63
:30;
126 uint64_t reserved_34_63
:30;
129 struct cvmx_l2d_bst3_s cn30xx
;
130 struct cvmx_l2d_bst3_s cn31xx
;
131 struct cvmx_l2d_bst3_s cn38xx
;
132 struct cvmx_l2d_bst3_s cn38xxp2
;
133 struct cvmx_l2d_bst3_s cn50xx
;
134 struct cvmx_l2d_bst3_s cn52xx
;
135 struct cvmx_l2d_bst3_s cn52xxp1
;
136 struct cvmx_l2d_bst3_s cn56xx
;
137 struct cvmx_l2d_bst3_s cn56xxp1
;
138 struct cvmx_l2d_bst3_s cn58xx
;
139 struct cvmx_l2d_bst3_s cn58xxp1
;
144 struct cvmx_l2d_err_s
{
145 #ifdef __BIG_ENDIAN_BITFIELD
146 uint64_t reserved_6_63
:58;
150 uint64_t ded_intena
:1;
151 uint64_t sec_intena
:1;
155 uint64_t sec_intena
:1;
156 uint64_t ded_intena
:1;
160 uint64_t reserved_6_63
:58;
163 struct cvmx_l2d_err_s cn30xx
;
164 struct cvmx_l2d_err_s cn31xx
;
165 struct cvmx_l2d_err_s cn38xx
;
166 struct cvmx_l2d_err_s cn38xxp2
;
167 struct cvmx_l2d_err_s cn50xx
;
168 struct cvmx_l2d_err_s cn52xx
;
169 struct cvmx_l2d_err_s cn52xxp1
;
170 struct cvmx_l2d_err_s cn56xx
;
171 struct cvmx_l2d_err_s cn56xxp1
;
172 struct cvmx_l2d_err_s cn58xx
;
173 struct cvmx_l2d_err_s cn58xxp1
;
176 union cvmx_l2d_fadr
{
178 struct cvmx_l2d_fadr_s
{
179 #ifdef __BIG_ENDIAN_BITFIELD
180 uint64_t reserved_19_63
:45;
190 uint64_t reserved_19_63
:45;
193 struct cvmx_l2d_fadr_cn30xx
{
194 #ifdef __BIG_ENDIAN_BITFIELD
195 uint64_t reserved_18_63
:46;
197 uint64_t reserved_13_13
:1;
199 uint64_t reserved_9_10
:2;
203 uint64_t reserved_9_10
:2;
205 uint64_t reserved_13_13
:1;
207 uint64_t reserved_18_63
:46;
210 struct cvmx_l2d_fadr_cn31xx
{
211 #ifdef __BIG_ENDIAN_BITFIELD
212 uint64_t reserved_18_63
:46;
214 uint64_t reserved_13_13
:1;
216 uint64_t reserved_10_10
:1;
220 uint64_t reserved_10_10
:1;
222 uint64_t reserved_13_13
:1;
224 uint64_t reserved_18_63
:46;
227 struct cvmx_l2d_fadr_cn38xx
{
228 #ifdef __BIG_ENDIAN_BITFIELD
229 uint64_t reserved_18_63
:46;
237 uint64_t reserved_18_63
:46;
240 struct cvmx_l2d_fadr_cn38xx cn38xxp2
;
241 struct cvmx_l2d_fadr_cn50xx
{
242 #ifdef __BIG_ENDIAN_BITFIELD
243 uint64_t reserved_18_63
:46;
246 uint64_t reserved_8_10
:3;
250 uint64_t reserved_8_10
:3;
253 uint64_t reserved_18_63
:46;
256 struct cvmx_l2d_fadr_cn52xx
{
257 #ifdef __BIG_ENDIAN_BITFIELD
258 uint64_t reserved_18_63
:46;
261 uint64_t reserved_10_10
:1;
265 uint64_t reserved_10_10
:1;
268 uint64_t reserved_18_63
:46;
271 struct cvmx_l2d_fadr_cn52xx cn52xxp1
;
272 struct cvmx_l2d_fadr_s cn56xx
;
273 struct cvmx_l2d_fadr_s cn56xxp1
;
274 struct cvmx_l2d_fadr_s cn58xx
;
275 struct cvmx_l2d_fadr_s cn58xxp1
;
278 union cvmx_l2d_fsyn0
{
280 struct cvmx_l2d_fsyn0_s
{
281 #ifdef __BIG_ENDIAN_BITFIELD
282 uint64_t reserved_20_63
:44;
283 uint64_t fsyn_ow1
:10;
284 uint64_t fsyn_ow0
:10;
286 uint64_t fsyn_ow0
:10;
287 uint64_t fsyn_ow1
:10;
288 uint64_t reserved_20_63
:44;
291 struct cvmx_l2d_fsyn0_s cn30xx
;
292 struct cvmx_l2d_fsyn0_s cn31xx
;
293 struct cvmx_l2d_fsyn0_s cn38xx
;
294 struct cvmx_l2d_fsyn0_s cn38xxp2
;
295 struct cvmx_l2d_fsyn0_s cn50xx
;
296 struct cvmx_l2d_fsyn0_s cn52xx
;
297 struct cvmx_l2d_fsyn0_s cn52xxp1
;
298 struct cvmx_l2d_fsyn0_s cn56xx
;
299 struct cvmx_l2d_fsyn0_s cn56xxp1
;
300 struct cvmx_l2d_fsyn0_s cn58xx
;
301 struct cvmx_l2d_fsyn0_s cn58xxp1
;
304 union cvmx_l2d_fsyn1
{
306 struct cvmx_l2d_fsyn1_s
{
307 #ifdef __BIG_ENDIAN_BITFIELD
308 uint64_t reserved_20_63
:44;
309 uint64_t fsyn_ow3
:10;
310 uint64_t fsyn_ow2
:10;
312 uint64_t fsyn_ow2
:10;
313 uint64_t fsyn_ow3
:10;
314 uint64_t reserved_20_63
:44;
317 struct cvmx_l2d_fsyn1_s cn30xx
;
318 struct cvmx_l2d_fsyn1_s cn31xx
;
319 struct cvmx_l2d_fsyn1_s cn38xx
;
320 struct cvmx_l2d_fsyn1_s cn38xxp2
;
321 struct cvmx_l2d_fsyn1_s cn50xx
;
322 struct cvmx_l2d_fsyn1_s cn52xx
;
323 struct cvmx_l2d_fsyn1_s cn52xxp1
;
324 struct cvmx_l2d_fsyn1_s cn56xx
;
325 struct cvmx_l2d_fsyn1_s cn56xxp1
;
326 struct cvmx_l2d_fsyn1_s cn58xx
;
327 struct cvmx_l2d_fsyn1_s cn58xxp1
;
330 union cvmx_l2d_fus0
{
332 struct cvmx_l2d_fus0_s
{
333 #ifdef __BIG_ENDIAN_BITFIELD
334 uint64_t reserved_34_63
:30;
338 uint64_t reserved_34_63
:30;
341 struct cvmx_l2d_fus0_s cn30xx
;
342 struct cvmx_l2d_fus0_s cn31xx
;
343 struct cvmx_l2d_fus0_s cn38xx
;
344 struct cvmx_l2d_fus0_s cn38xxp2
;
345 struct cvmx_l2d_fus0_s cn50xx
;
346 struct cvmx_l2d_fus0_s cn52xx
;
347 struct cvmx_l2d_fus0_s cn52xxp1
;
348 struct cvmx_l2d_fus0_s cn56xx
;
349 struct cvmx_l2d_fus0_s cn56xxp1
;
350 struct cvmx_l2d_fus0_s cn58xx
;
351 struct cvmx_l2d_fus0_s cn58xxp1
;
354 union cvmx_l2d_fus1
{
356 struct cvmx_l2d_fus1_s
{
357 #ifdef __BIG_ENDIAN_BITFIELD
358 uint64_t reserved_34_63
:30;
362 uint64_t reserved_34_63
:30;
365 struct cvmx_l2d_fus1_s cn30xx
;
366 struct cvmx_l2d_fus1_s cn31xx
;
367 struct cvmx_l2d_fus1_s cn38xx
;
368 struct cvmx_l2d_fus1_s cn38xxp2
;
369 struct cvmx_l2d_fus1_s cn50xx
;
370 struct cvmx_l2d_fus1_s cn52xx
;
371 struct cvmx_l2d_fus1_s cn52xxp1
;
372 struct cvmx_l2d_fus1_s cn56xx
;
373 struct cvmx_l2d_fus1_s cn56xxp1
;
374 struct cvmx_l2d_fus1_s cn58xx
;
375 struct cvmx_l2d_fus1_s cn58xxp1
;
378 union cvmx_l2d_fus2
{
380 struct cvmx_l2d_fus2_s
{
381 #ifdef __BIG_ENDIAN_BITFIELD
382 uint64_t reserved_34_63
:30;
386 uint64_t reserved_34_63
:30;
389 struct cvmx_l2d_fus2_s cn30xx
;
390 struct cvmx_l2d_fus2_s cn31xx
;
391 struct cvmx_l2d_fus2_s cn38xx
;
392 struct cvmx_l2d_fus2_s cn38xxp2
;
393 struct cvmx_l2d_fus2_s cn50xx
;
394 struct cvmx_l2d_fus2_s cn52xx
;
395 struct cvmx_l2d_fus2_s cn52xxp1
;
396 struct cvmx_l2d_fus2_s cn56xx
;
397 struct cvmx_l2d_fus2_s cn56xxp1
;
398 struct cvmx_l2d_fus2_s cn58xx
;
399 struct cvmx_l2d_fus2_s cn58xxp1
;
402 union cvmx_l2d_fus3
{
404 struct cvmx_l2d_fus3_s
{
405 #ifdef __BIG_ENDIAN_BITFIELD
406 uint64_t reserved_40_63
:24;
408 uint64_t reserved_34_36
:3;
412 uint64_t reserved_34_36
:3;
414 uint64_t reserved_40_63
:24;
417 struct cvmx_l2d_fus3_cn30xx
{
418 #ifdef __BIG_ENDIAN_BITFIELD
419 uint64_t reserved_35_63
:29;
425 uint64_t reserved_35_63
:29;
428 struct cvmx_l2d_fus3_cn31xx
{
429 #ifdef __BIG_ENDIAN_BITFIELD
430 uint64_t reserved_35_63
:29;
431 uint64_t crip_128k
:1;
435 uint64_t crip_128k
:1;
436 uint64_t reserved_35_63
:29;
439 struct cvmx_l2d_fus3_cn38xx
{
440 #ifdef __BIG_ENDIAN_BITFIELD
441 uint64_t reserved_36_63
:28;
442 uint64_t crip_256k
:1;
443 uint64_t crip_512k
:1;
447 uint64_t crip_512k
:1;
448 uint64_t crip_256k
:1;
449 uint64_t reserved_36_63
:28;
452 struct cvmx_l2d_fus3_cn38xx cn38xxp2
;
453 struct cvmx_l2d_fus3_cn50xx
{
454 #ifdef __BIG_ENDIAN_BITFIELD
455 uint64_t reserved_40_63
:24;
457 uint64_t reserved_36_36
:1;
465 uint64_t reserved_36_36
:1;
467 uint64_t reserved_40_63
:24;
470 struct cvmx_l2d_fus3_cn52xx
{
471 #ifdef __BIG_ENDIAN_BITFIELD
472 uint64_t reserved_40_63
:24;
474 uint64_t reserved_36_36
:1;
475 uint64_t crip_128k
:1;
476 uint64_t crip_256k
:1;
480 uint64_t crip_256k
:1;
481 uint64_t crip_128k
:1;
482 uint64_t reserved_36_36
:1;
484 uint64_t reserved_40_63
:24;
487 struct cvmx_l2d_fus3_cn52xx cn52xxp1
;
488 struct cvmx_l2d_fus3_cn56xx
{
489 #ifdef __BIG_ENDIAN_BITFIELD
490 uint64_t reserved_40_63
:24;
492 uint64_t reserved_36_36
:1;
493 uint64_t crip_512k
:1;
494 uint64_t crip_1024k
:1;
498 uint64_t crip_1024k
:1;
499 uint64_t crip_512k
:1;
500 uint64_t reserved_36_36
:1;
502 uint64_t reserved_40_63
:24;
505 struct cvmx_l2d_fus3_cn56xx cn56xxp1
;
506 struct cvmx_l2d_fus3_cn58xx
{
507 #ifdef __BIG_ENDIAN_BITFIELD
508 uint64_t reserved_39_63
:25;
510 uint64_t reserved_36_36
:1;
511 uint64_t crip_512k
:1;
512 uint64_t crip_1024k
:1;
516 uint64_t crip_1024k
:1;
517 uint64_t crip_512k
:1;
518 uint64_t reserved_36_36
:1;
520 uint64_t reserved_39_63
:25;
523 struct cvmx_l2d_fus3_cn58xx cn58xxp1
;