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-2008 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 \
32 CVMX_ADD_IO_SEG(0x0001180080000780ull)
33 #define CVMX_L2D_BST1 \
34 CVMX_ADD_IO_SEG(0x0001180080000788ull)
35 #define CVMX_L2D_BST2 \
36 CVMX_ADD_IO_SEG(0x0001180080000790ull)
37 #define CVMX_L2D_BST3 \
38 CVMX_ADD_IO_SEG(0x0001180080000798ull)
39 #define CVMX_L2D_ERR \
40 CVMX_ADD_IO_SEG(0x0001180080000010ull)
41 #define CVMX_L2D_FADR \
42 CVMX_ADD_IO_SEG(0x0001180080000018ull)
43 #define CVMX_L2D_FSYN0 \
44 CVMX_ADD_IO_SEG(0x0001180080000020ull)
45 #define CVMX_L2D_FSYN1 \
46 CVMX_ADD_IO_SEG(0x0001180080000028ull)
47 #define CVMX_L2D_FUS0 \
48 CVMX_ADD_IO_SEG(0x00011800800007A0ull)
49 #define CVMX_L2D_FUS1 \
50 CVMX_ADD_IO_SEG(0x00011800800007A8ull)
51 #define CVMX_L2D_FUS2 \
52 CVMX_ADD_IO_SEG(0x00011800800007B0ull)
53 #define CVMX_L2D_FUS3 \
54 CVMX_ADD_IO_SEG(0x00011800800007B8ull)
58 struct cvmx_l2d_bst0_s
{
59 uint64_t reserved_35_63
:29;
63 struct cvmx_l2d_bst0_s cn30xx
;
64 struct cvmx_l2d_bst0_s cn31xx
;
65 struct cvmx_l2d_bst0_s cn38xx
;
66 struct cvmx_l2d_bst0_s cn38xxp2
;
67 struct cvmx_l2d_bst0_s cn50xx
;
68 struct cvmx_l2d_bst0_s cn52xx
;
69 struct cvmx_l2d_bst0_s cn52xxp1
;
70 struct cvmx_l2d_bst0_s cn56xx
;
71 struct cvmx_l2d_bst0_s cn56xxp1
;
72 struct cvmx_l2d_bst0_s cn58xx
;
73 struct cvmx_l2d_bst0_s cn58xxp1
;
78 struct cvmx_l2d_bst1_s
{
79 uint64_t reserved_34_63
:30;
82 struct cvmx_l2d_bst1_s cn30xx
;
83 struct cvmx_l2d_bst1_s cn31xx
;
84 struct cvmx_l2d_bst1_s cn38xx
;
85 struct cvmx_l2d_bst1_s cn38xxp2
;
86 struct cvmx_l2d_bst1_s cn50xx
;
87 struct cvmx_l2d_bst1_s cn52xx
;
88 struct cvmx_l2d_bst1_s cn52xxp1
;
89 struct cvmx_l2d_bst1_s cn56xx
;
90 struct cvmx_l2d_bst1_s cn56xxp1
;
91 struct cvmx_l2d_bst1_s cn58xx
;
92 struct cvmx_l2d_bst1_s cn58xxp1
;
97 struct cvmx_l2d_bst2_s
{
98 uint64_t reserved_34_63
:30;
101 struct cvmx_l2d_bst2_s cn30xx
;
102 struct cvmx_l2d_bst2_s cn31xx
;
103 struct cvmx_l2d_bst2_s cn38xx
;
104 struct cvmx_l2d_bst2_s cn38xxp2
;
105 struct cvmx_l2d_bst2_s cn50xx
;
106 struct cvmx_l2d_bst2_s cn52xx
;
107 struct cvmx_l2d_bst2_s cn52xxp1
;
108 struct cvmx_l2d_bst2_s cn56xx
;
109 struct cvmx_l2d_bst2_s cn56xxp1
;
110 struct cvmx_l2d_bst2_s cn58xx
;
111 struct cvmx_l2d_bst2_s cn58xxp1
;
114 union cvmx_l2d_bst3
{
116 struct cvmx_l2d_bst3_s
{
117 uint64_t reserved_34_63
:30;
120 struct cvmx_l2d_bst3_s cn30xx
;
121 struct cvmx_l2d_bst3_s cn31xx
;
122 struct cvmx_l2d_bst3_s cn38xx
;
123 struct cvmx_l2d_bst3_s cn38xxp2
;
124 struct cvmx_l2d_bst3_s cn50xx
;
125 struct cvmx_l2d_bst3_s cn52xx
;
126 struct cvmx_l2d_bst3_s cn52xxp1
;
127 struct cvmx_l2d_bst3_s cn56xx
;
128 struct cvmx_l2d_bst3_s cn56xxp1
;
129 struct cvmx_l2d_bst3_s cn58xx
;
130 struct cvmx_l2d_bst3_s cn58xxp1
;
135 struct cvmx_l2d_err_s
{
136 uint64_t reserved_6_63
:58;
140 uint64_t ded_intena
:1;
141 uint64_t sec_intena
:1;
144 struct cvmx_l2d_err_s cn30xx
;
145 struct cvmx_l2d_err_s cn31xx
;
146 struct cvmx_l2d_err_s cn38xx
;
147 struct cvmx_l2d_err_s cn38xxp2
;
148 struct cvmx_l2d_err_s cn50xx
;
149 struct cvmx_l2d_err_s cn52xx
;
150 struct cvmx_l2d_err_s cn52xxp1
;
151 struct cvmx_l2d_err_s cn56xx
;
152 struct cvmx_l2d_err_s cn56xxp1
;
153 struct cvmx_l2d_err_s cn58xx
;
154 struct cvmx_l2d_err_s cn58xxp1
;
157 union cvmx_l2d_fadr
{
159 struct cvmx_l2d_fadr_s
{
160 uint64_t reserved_19_63
:45;
166 struct cvmx_l2d_fadr_cn30xx
{
167 uint64_t reserved_18_63
:46;
169 uint64_t reserved_13_13
:1;
171 uint64_t reserved_9_10
:2;
174 struct cvmx_l2d_fadr_cn31xx
{
175 uint64_t reserved_18_63
:46;
177 uint64_t reserved_13_13
:1;
179 uint64_t reserved_10_10
:1;
182 struct cvmx_l2d_fadr_cn38xx
{
183 uint64_t reserved_18_63
:46;
188 struct cvmx_l2d_fadr_cn38xx cn38xxp2
;
189 struct cvmx_l2d_fadr_cn50xx
{
190 uint64_t reserved_18_63
:46;
193 uint64_t reserved_8_10
:3;
196 struct cvmx_l2d_fadr_cn52xx
{
197 uint64_t reserved_18_63
:46;
200 uint64_t reserved_10_10
:1;
203 struct cvmx_l2d_fadr_cn52xx cn52xxp1
;
204 struct cvmx_l2d_fadr_s cn56xx
;
205 struct cvmx_l2d_fadr_s cn56xxp1
;
206 struct cvmx_l2d_fadr_s cn58xx
;
207 struct cvmx_l2d_fadr_s cn58xxp1
;
210 union cvmx_l2d_fsyn0
{
212 struct cvmx_l2d_fsyn0_s
{
213 uint64_t reserved_20_63
:44;
214 uint64_t fsyn_ow1
:10;
215 uint64_t fsyn_ow0
:10;
217 struct cvmx_l2d_fsyn0_s cn30xx
;
218 struct cvmx_l2d_fsyn0_s cn31xx
;
219 struct cvmx_l2d_fsyn0_s cn38xx
;
220 struct cvmx_l2d_fsyn0_s cn38xxp2
;
221 struct cvmx_l2d_fsyn0_s cn50xx
;
222 struct cvmx_l2d_fsyn0_s cn52xx
;
223 struct cvmx_l2d_fsyn0_s cn52xxp1
;
224 struct cvmx_l2d_fsyn0_s cn56xx
;
225 struct cvmx_l2d_fsyn0_s cn56xxp1
;
226 struct cvmx_l2d_fsyn0_s cn58xx
;
227 struct cvmx_l2d_fsyn0_s cn58xxp1
;
230 union cvmx_l2d_fsyn1
{
232 struct cvmx_l2d_fsyn1_s
{
233 uint64_t reserved_20_63
:44;
234 uint64_t fsyn_ow3
:10;
235 uint64_t fsyn_ow2
:10;
237 struct cvmx_l2d_fsyn1_s cn30xx
;
238 struct cvmx_l2d_fsyn1_s cn31xx
;
239 struct cvmx_l2d_fsyn1_s cn38xx
;
240 struct cvmx_l2d_fsyn1_s cn38xxp2
;
241 struct cvmx_l2d_fsyn1_s cn50xx
;
242 struct cvmx_l2d_fsyn1_s cn52xx
;
243 struct cvmx_l2d_fsyn1_s cn52xxp1
;
244 struct cvmx_l2d_fsyn1_s cn56xx
;
245 struct cvmx_l2d_fsyn1_s cn56xxp1
;
246 struct cvmx_l2d_fsyn1_s cn58xx
;
247 struct cvmx_l2d_fsyn1_s cn58xxp1
;
250 union cvmx_l2d_fus0
{
252 struct cvmx_l2d_fus0_s
{
253 uint64_t reserved_34_63
:30;
256 struct cvmx_l2d_fus0_s cn30xx
;
257 struct cvmx_l2d_fus0_s cn31xx
;
258 struct cvmx_l2d_fus0_s cn38xx
;
259 struct cvmx_l2d_fus0_s cn38xxp2
;
260 struct cvmx_l2d_fus0_s cn50xx
;
261 struct cvmx_l2d_fus0_s cn52xx
;
262 struct cvmx_l2d_fus0_s cn52xxp1
;
263 struct cvmx_l2d_fus0_s cn56xx
;
264 struct cvmx_l2d_fus0_s cn56xxp1
;
265 struct cvmx_l2d_fus0_s cn58xx
;
266 struct cvmx_l2d_fus0_s cn58xxp1
;
269 union cvmx_l2d_fus1
{
271 struct cvmx_l2d_fus1_s
{
272 uint64_t reserved_34_63
:30;
275 struct cvmx_l2d_fus1_s cn30xx
;
276 struct cvmx_l2d_fus1_s cn31xx
;
277 struct cvmx_l2d_fus1_s cn38xx
;
278 struct cvmx_l2d_fus1_s cn38xxp2
;
279 struct cvmx_l2d_fus1_s cn50xx
;
280 struct cvmx_l2d_fus1_s cn52xx
;
281 struct cvmx_l2d_fus1_s cn52xxp1
;
282 struct cvmx_l2d_fus1_s cn56xx
;
283 struct cvmx_l2d_fus1_s cn56xxp1
;
284 struct cvmx_l2d_fus1_s cn58xx
;
285 struct cvmx_l2d_fus1_s cn58xxp1
;
288 union cvmx_l2d_fus2
{
290 struct cvmx_l2d_fus2_s
{
291 uint64_t reserved_34_63
:30;
294 struct cvmx_l2d_fus2_s cn30xx
;
295 struct cvmx_l2d_fus2_s cn31xx
;
296 struct cvmx_l2d_fus2_s cn38xx
;
297 struct cvmx_l2d_fus2_s cn38xxp2
;
298 struct cvmx_l2d_fus2_s cn50xx
;
299 struct cvmx_l2d_fus2_s cn52xx
;
300 struct cvmx_l2d_fus2_s cn52xxp1
;
301 struct cvmx_l2d_fus2_s cn56xx
;
302 struct cvmx_l2d_fus2_s cn56xxp1
;
303 struct cvmx_l2d_fus2_s cn58xx
;
304 struct cvmx_l2d_fus2_s cn58xxp1
;
307 union cvmx_l2d_fus3
{
309 struct cvmx_l2d_fus3_s
{
310 uint64_t reserved_40_63
:24;
312 uint64_t reserved_34_36
:3;
315 struct cvmx_l2d_fus3_cn30xx
{
316 uint64_t reserved_35_63
:29;
320 struct cvmx_l2d_fus3_cn31xx
{
321 uint64_t reserved_35_63
:29;
322 uint64_t crip_128k
:1;
325 struct cvmx_l2d_fus3_cn38xx
{
326 uint64_t reserved_36_63
:28;
327 uint64_t crip_256k
:1;
328 uint64_t crip_512k
:1;
331 struct cvmx_l2d_fus3_cn38xx cn38xxp2
;
332 struct cvmx_l2d_fus3_cn50xx
{
333 uint64_t reserved_40_63
:24;
335 uint64_t reserved_36_36
:1;
340 struct cvmx_l2d_fus3_cn52xx
{
341 uint64_t reserved_40_63
:24;
343 uint64_t reserved_36_36
:1;
344 uint64_t crip_128k
:1;
345 uint64_t crip_256k
:1;
348 struct cvmx_l2d_fus3_cn52xx cn52xxp1
;
349 struct cvmx_l2d_fus3_cn56xx
{
350 uint64_t reserved_40_63
:24;
352 uint64_t reserved_36_36
:1;
353 uint64_t crip_512k
:1;
354 uint64_t crip_1024k
:1;
357 struct cvmx_l2d_fus3_cn56xx cn56xxp1
;
358 struct cvmx_l2d_fus3_cn58xx
{
359 uint64_t reserved_39_63
:25;
361 uint64_t reserved_36_36
:1;
362 uint64_t crip_512k
:1;
363 uint64_t crip_1024k
:1;
366 struct cvmx_l2d_fus3_cn58xx cn58xxp1
;