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_SPXX_DEFS_H__
29 #define __CVMX_SPXX_DEFS_H__
31 #define CVMX_SPXX_BCKPRS_CNT(block_id) \
32 CVMX_ADD_IO_SEG(0x0001180090000340ull + (((block_id) & 1) * 0x8000000ull))
33 #define CVMX_SPXX_BIST_STAT(block_id) \
34 CVMX_ADD_IO_SEG(0x00011800900007F8ull + (((block_id) & 1) * 0x8000000ull))
35 #define CVMX_SPXX_CLK_CTL(block_id) \
36 CVMX_ADD_IO_SEG(0x0001180090000348ull + (((block_id) & 1) * 0x8000000ull))
37 #define CVMX_SPXX_CLK_STAT(block_id) \
38 CVMX_ADD_IO_SEG(0x0001180090000350ull + (((block_id) & 1) * 0x8000000ull))
39 #define CVMX_SPXX_DBG_DESKEW_CTL(block_id) \
40 CVMX_ADD_IO_SEG(0x0001180090000368ull + (((block_id) & 1) * 0x8000000ull))
41 #define CVMX_SPXX_DBG_DESKEW_STATE(block_id) \
42 CVMX_ADD_IO_SEG(0x0001180090000370ull + (((block_id) & 1) * 0x8000000ull))
43 #define CVMX_SPXX_DRV_CTL(block_id) \
44 CVMX_ADD_IO_SEG(0x0001180090000358ull + (((block_id) & 1) * 0x8000000ull))
45 #define CVMX_SPXX_ERR_CTL(block_id) \
46 CVMX_ADD_IO_SEG(0x0001180090000320ull + (((block_id) & 1) * 0x8000000ull))
47 #define CVMX_SPXX_INT_DAT(block_id) \
48 CVMX_ADD_IO_SEG(0x0001180090000318ull + (((block_id) & 1) * 0x8000000ull))
49 #define CVMX_SPXX_INT_MSK(block_id) \
50 CVMX_ADD_IO_SEG(0x0001180090000308ull + (((block_id) & 1) * 0x8000000ull))
51 #define CVMX_SPXX_INT_REG(block_id) \
52 CVMX_ADD_IO_SEG(0x0001180090000300ull + (((block_id) & 1) * 0x8000000ull))
53 #define CVMX_SPXX_INT_SYNC(block_id) \
54 CVMX_ADD_IO_SEG(0x0001180090000310ull + (((block_id) & 1) * 0x8000000ull))
55 #define CVMX_SPXX_TPA_ACC(block_id) \
56 CVMX_ADD_IO_SEG(0x0001180090000338ull + (((block_id) & 1) * 0x8000000ull))
57 #define CVMX_SPXX_TPA_MAX(block_id) \
58 CVMX_ADD_IO_SEG(0x0001180090000330ull + (((block_id) & 1) * 0x8000000ull))
59 #define CVMX_SPXX_TPA_SEL(block_id) \
60 CVMX_ADD_IO_SEG(0x0001180090000328ull + (((block_id) & 1) * 0x8000000ull))
61 #define CVMX_SPXX_TRN4_CTL(block_id) \
62 CVMX_ADD_IO_SEG(0x0001180090000360ull + (((block_id) & 1) * 0x8000000ull))
64 union cvmx_spxx_bckprs_cnt
{
66 struct cvmx_spxx_bckprs_cnt_s
{
67 uint64_t reserved_32_63
:32;
70 struct cvmx_spxx_bckprs_cnt_s cn38xx
;
71 struct cvmx_spxx_bckprs_cnt_s cn38xxp2
;
72 struct cvmx_spxx_bckprs_cnt_s cn58xx
;
73 struct cvmx_spxx_bckprs_cnt_s cn58xxp1
;
76 union cvmx_spxx_bist_stat
{
78 struct cvmx_spxx_bist_stat_s
{
79 uint64_t reserved_3_63
:61;
84 struct cvmx_spxx_bist_stat_s cn38xx
;
85 struct cvmx_spxx_bist_stat_s cn38xxp2
;
86 struct cvmx_spxx_bist_stat_s cn58xx
;
87 struct cvmx_spxx_bist_stat_s cn58xxp1
;
90 union cvmx_spxx_clk_ctl
{
92 struct cvmx_spxx_clk_ctl_s
{
93 uint64_t reserved_17_63
:47;
95 uint64_t reserved_12_15
:4;
105 struct cvmx_spxx_clk_ctl_s cn38xx
;
106 struct cvmx_spxx_clk_ctl_s cn38xxp2
;
107 struct cvmx_spxx_clk_ctl_s cn58xx
;
108 struct cvmx_spxx_clk_ctl_s cn58xxp1
;
111 union cvmx_spxx_clk_stat
{
113 struct cvmx_spxx_clk_stat_s
{
114 uint64_t reserved_11_63
:53;
116 uint64_t reserved_9_9
:1;
122 uint64_t reserved_0_3
:4;
124 struct cvmx_spxx_clk_stat_s cn38xx
;
125 struct cvmx_spxx_clk_stat_s cn38xxp2
;
126 struct cvmx_spxx_clk_stat_s cn58xx
;
127 struct cvmx_spxx_clk_stat_s cn58xxp1
;
130 union cvmx_spxx_dbg_deskew_ctl
{
132 struct cvmx_spxx_dbg_deskew_ctl_s
{
133 uint64_t reserved_30_63
:34;
136 uint64_t reserved_26_27
:2;
139 uint64_t reserved_22_23
:2;
150 struct cvmx_spxx_dbg_deskew_ctl_s cn38xx
;
151 struct cvmx_spxx_dbg_deskew_ctl_s cn38xxp2
;
152 struct cvmx_spxx_dbg_deskew_ctl_s cn58xx
;
153 struct cvmx_spxx_dbg_deskew_ctl_s cn58xxp1
;
156 union cvmx_spxx_dbg_deskew_state
{
158 struct cvmx_spxx_dbg_deskew_state_s
{
159 uint64_t reserved_9_63
:55;
165 struct cvmx_spxx_dbg_deskew_state_s cn38xx
;
166 struct cvmx_spxx_dbg_deskew_state_s cn38xxp2
;
167 struct cvmx_spxx_dbg_deskew_state_s cn58xx
;
168 struct cvmx_spxx_dbg_deskew_state_s cn58xxp1
;
171 union cvmx_spxx_drv_ctl
{
173 struct cvmx_spxx_drv_ctl_s
{
174 uint64_t reserved_0_63
:64;
176 struct cvmx_spxx_drv_ctl_cn38xx
{
177 uint64_t reserved_16_63
:48;
182 struct cvmx_spxx_drv_ctl_cn38xx cn38xxp2
;
183 struct cvmx_spxx_drv_ctl_cn58xx
{
184 uint64_t reserved_24_63
:40;
187 uint64_t reserved_10_15
:6;
190 struct cvmx_spxx_drv_ctl_cn58xx cn58xxp1
;
193 union cvmx_spxx_err_ctl
{
195 struct cvmx_spxx_err_ctl_s
{
196 uint64_t reserved_9_63
:55;
200 uint64_t reserved_4_5
:2;
203 struct cvmx_spxx_err_ctl_s cn38xx
;
204 struct cvmx_spxx_err_ctl_s cn38xxp2
;
205 struct cvmx_spxx_err_ctl_s cn58xx
;
206 struct cvmx_spxx_err_ctl_s cn58xxp1
;
209 union cvmx_spxx_int_dat
{
211 struct cvmx_spxx_int_dat_s
{
212 uint64_t reserved_32_63
:32;
214 uint64_t reserved_14_30
:17;
219 struct cvmx_spxx_int_dat_s cn38xx
;
220 struct cvmx_spxx_int_dat_s cn38xxp2
;
221 struct cvmx_spxx_int_dat_s cn58xx
;
222 struct cvmx_spxx_int_dat_s cn58xxp1
;
225 union cvmx_spxx_int_msk
{
227 struct cvmx_spxx_int_msk_s
{
228 uint64_t reserved_12_63
:52;
237 uint64_t reserved_2_3
:2;
241 struct cvmx_spxx_int_msk_s cn38xx
;
242 struct cvmx_spxx_int_msk_s cn38xxp2
;
243 struct cvmx_spxx_int_msk_s cn58xx
;
244 struct cvmx_spxx_int_msk_s cn58xxp1
;
247 union cvmx_spxx_int_reg
{
249 struct cvmx_spxx_int_reg_s
{
250 uint64_t reserved_32_63
:32;
252 uint64_t reserved_12_30
:19;
261 uint64_t reserved_2_3
:2;
265 struct cvmx_spxx_int_reg_s cn38xx
;
266 struct cvmx_spxx_int_reg_s cn38xxp2
;
267 struct cvmx_spxx_int_reg_s cn58xx
;
268 struct cvmx_spxx_int_reg_s cn58xxp1
;
271 union cvmx_spxx_int_sync
{
273 struct cvmx_spxx_int_sync_s
{
274 uint64_t reserved_12_63
:52;
283 uint64_t reserved_2_3
:2;
287 struct cvmx_spxx_int_sync_s cn38xx
;
288 struct cvmx_spxx_int_sync_s cn38xxp2
;
289 struct cvmx_spxx_int_sync_s cn58xx
;
290 struct cvmx_spxx_int_sync_s cn58xxp1
;
293 union cvmx_spxx_tpa_acc
{
295 struct cvmx_spxx_tpa_acc_s
{
296 uint64_t reserved_32_63
:32;
299 struct cvmx_spxx_tpa_acc_s cn38xx
;
300 struct cvmx_spxx_tpa_acc_s cn38xxp2
;
301 struct cvmx_spxx_tpa_acc_s cn58xx
;
302 struct cvmx_spxx_tpa_acc_s cn58xxp1
;
305 union cvmx_spxx_tpa_max
{
307 struct cvmx_spxx_tpa_max_s
{
308 uint64_t reserved_32_63
:32;
311 struct cvmx_spxx_tpa_max_s cn38xx
;
312 struct cvmx_spxx_tpa_max_s cn38xxp2
;
313 struct cvmx_spxx_tpa_max_s cn58xx
;
314 struct cvmx_spxx_tpa_max_s cn58xxp1
;
317 union cvmx_spxx_tpa_sel
{
319 struct cvmx_spxx_tpa_sel_s
{
320 uint64_t reserved_4_63
:60;
323 struct cvmx_spxx_tpa_sel_s cn38xx
;
324 struct cvmx_spxx_tpa_sel_s cn38xxp2
;
325 struct cvmx_spxx_tpa_sel_s cn58xx
;
326 struct cvmx_spxx_tpa_sel_s cn58xxp1
;
329 union cvmx_spxx_trn4_ctl
{
331 struct cvmx_spxx_trn4_ctl_s
{
332 uint64_t reserved_13_63
:51;
341 struct cvmx_spxx_trn4_ctl_s cn38xx
;
342 struct cvmx_spxx_trn4_ctl_s cn38xxp2
;
343 struct cvmx_spxx_trn4_ctl_s cn58xx
;
344 struct cvmx_spxx_trn4_ctl_s cn58xxp1
;