Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cvmx-spxx-defs.h
Go to the documentation of this file.
1 /***********************license start***************
2  * Author: Cavium Networks
3  *
4  * Contact: [email protected]
5  * This file is part of the OCTEON SDK
6  *
7  * Copyright (c) 2003-2012 Cavium Networks
8  *
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.
12  *
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
17  * details.
18  *
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/.
23  *
24  * This file may also be available under a different license from Cavium.
25  * Contact Cavium Networks for more information
26  ***********************license end**************************************/
27 
28 #ifndef __CVMX_SPXX_DEFS_H__
29 #define __CVMX_SPXX_DEFS_H__
30 
31 #define CVMX_SPXX_BCKPRS_CNT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000340ull) + ((block_id) & 1) * 0x8000000ull)
32 #define CVMX_SPXX_BIST_STAT(block_id) (CVMX_ADD_IO_SEG(0x00011800900007F8ull) + ((block_id) & 1) * 0x8000000ull)
33 #define CVMX_SPXX_CLK_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000348ull) + ((block_id) & 1) * 0x8000000ull)
34 #define CVMX_SPXX_CLK_STAT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000350ull) + ((block_id) & 1) * 0x8000000ull)
35 #define CVMX_SPXX_DBG_DESKEW_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000368ull) + ((block_id) & 1) * 0x8000000ull)
36 #define CVMX_SPXX_DBG_DESKEW_STATE(block_id) (CVMX_ADD_IO_SEG(0x0001180090000370ull) + ((block_id) & 1) * 0x8000000ull)
37 #define CVMX_SPXX_DRV_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000358ull) + ((block_id) & 1) * 0x8000000ull)
38 #define CVMX_SPXX_ERR_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000320ull) + ((block_id) & 1) * 0x8000000ull)
39 #define CVMX_SPXX_INT_DAT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000318ull) + ((block_id) & 1) * 0x8000000ull)
40 #define CVMX_SPXX_INT_MSK(block_id) (CVMX_ADD_IO_SEG(0x0001180090000308ull) + ((block_id) & 1) * 0x8000000ull)
41 #define CVMX_SPXX_INT_REG(block_id) (CVMX_ADD_IO_SEG(0x0001180090000300ull) + ((block_id) & 1) * 0x8000000ull)
42 #define CVMX_SPXX_INT_SYNC(block_id) (CVMX_ADD_IO_SEG(0x0001180090000310ull) + ((block_id) & 1) * 0x8000000ull)
43 #define CVMX_SPXX_TPA_ACC(block_id) (CVMX_ADD_IO_SEG(0x0001180090000338ull) + ((block_id) & 1) * 0x8000000ull)
44 #define CVMX_SPXX_TPA_MAX(block_id) (CVMX_ADD_IO_SEG(0x0001180090000330ull) + ((block_id) & 1) * 0x8000000ull)
45 #define CVMX_SPXX_TPA_SEL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000328ull) + ((block_id) & 1) * 0x8000000ull)
46 #define CVMX_SPXX_TRN4_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000360ull) + ((block_id) & 1) * 0x8000000ull)
47 
51 #ifdef __BIG_ENDIAN_BITFIELD
53  uint64_t cnt:32;
54 #else
57 #endif
58  } s;
63 };
64 
68 #ifdef __BIG_ENDIAN_BITFIELD
70  uint64_t stat2:1;
71  uint64_t stat1:1;
72  uint64_t stat0:1;
73 #else
78 #endif
79  } s;
84 };
85 
89 #ifdef __BIG_ENDIAN_BITFIELD
91  uint64_t seetrn:1;
93  uint64_t clkdly:5;
94  uint64_t runbist:1;
95  uint64_t statdrv:1;
96  uint64_t statrcv:1;
97  uint64_t sndtrn:1;
98  uint64_t drptrn:1;
99  uint64_t rcvtrn:1;
100  uint64_t srxdlck:1;
101 #else
113 #endif
114  } s;
119 };
120 
124 #ifdef __BIG_ENDIAN_BITFIELD
126  uint64_t stxcal:1;
128  uint64_t srxtrn:1;
129  uint64_t s4clk1:1;
130  uint64_t s4clk0:1;
131  uint64_t d4clk1:1;
132  uint64_t d4clk0:1;
134 #else
144 #endif
145  } s;
150 };
151 
155 #ifdef __BIG_ENDIAN_BITFIELD
157  uint64_t fallnop:1;
158  uint64_t fall8:1;
160  uint64_t sstep_go:1;
161  uint64_t sstep:1;
163  uint64_t clrdly:1;
164  uint64_t dec:1;
165  uint64_t inc:1;
166  uint64_t mux:1;
167  uint64_t offset:5;
168  uint64_t bitsel:5;
169  uint64_t offdly:6;
170  uint64_t dllfrc:1;
171  uint64_t dlldis:1;
172 #else
189 #endif
190  } s;
195 };
196 
200 #ifdef __BIG_ENDIAN_BITFIELD
202  uint64_t testres:1;
203  uint64_t unxterm:1;
204  uint64_t muxsel:2;
205  uint64_t offset:5;
206 #else
212 #endif
213  } s;
218 };
219 
223 #ifdef __BIG_ENDIAN_BITFIELD
225 #else
227 #endif
228  } s;
230 #ifdef __BIG_ENDIAN_BITFIELD
232  uint64_t stx4ncmp:4;
233  uint64_t stx4pcmp:4;
234  uint64_t srx4cmp:8;
235 #else
240 #endif
241  } cn38xx;
244 #ifdef __BIG_ENDIAN_BITFIELD
246  uint64_t stx4ncmp:4;
247  uint64_t stx4pcmp:4;
249  uint64_t srx4cmp:10;
250 #else
256 #endif
257  } cn58xx;
259 };
260 
264 #ifdef __BIG_ENDIAN_BITFIELD
266  uint64_t prtnxa:1;
267  uint64_t dipcls:1;
268  uint64_t dippay:1;
270  uint64_t errcnt:4;
271 #else
278 #endif
279  } s;
284 };
285 
289 #ifdef __BIG_ENDIAN_BITFIELD
291  uint64_t mul:1;
293  uint64_t calbnk:2;
294  uint64_t rsvop:4;
295  uint64_t prt:8;
296 #else
303 #endif
304  } s;
309 };
310 
314 #ifdef __BIG_ENDIAN_BITFIELD
316  uint64_t calerr:1;
317  uint64_t syncerr:1;
318  uint64_t diperr:1;
319  uint64_t tpaovr:1;
320  uint64_t rsverr:1;
321  uint64_t drwnng:1;
322  uint64_t clserr:1;
323  uint64_t spiovr:1;
325  uint64_t abnorm:1;
326  uint64_t prtnxa:1;
327 #else
340 #endif
341  } s;
346 };
347 
351 #ifdef __BIG_ENDIAN_BITFIELD
353  uint64_t spf:1;
355  uint64_t calerr:1;
356  uint64_t syncerr:1;
357  uint64_t diperr:1;
358  uint64_t tpaovr:1;
359  uint64_t rsverr:1;
360  uint64_t drwnng:1;
361  uint64_t clserr:1;
362  uint64_t spiovr:1;
364  uint64_t abnorm:1;
365  uint64_t prtnxa:1;
366 #else
381 #endif
382  } s;
387 };
388 
392 #ifdef __BIG_ENDIAN_BITFIELD
394  uint64_t calerr:1;
395  uint64_t syncerr:1;
396  uint64_t diperr:1;
397  uint64_t tpaovr:1;
398  uint64_t rsverr:1;
399  uint64_t drwnng:1;
400  uint64_t clserr:1;
401  uint64_t spiovr:1;
403  uint64_t abnorm:1;
404  uint64_t prtnxa:1;
405 #else
418 #endif
419  } s;
424 };
425 
429 #ifdef __BIG_ENDIAN_BITFIELD
431  uint64_t cnt:32;
432 #else
435 #endif
436  } s;
441 };
442 
446 #ifdef __BIG_ENDIAN_BITFIELD
448  uint64_t max:32;
449 #else
452 #endif
453  } s;
458 };
459 
463 #ifdef __BIG_ENDIAN_BITFIELD
465  uint64_t prtsel:4;
466 #else
469 #endif
470  } s;
475 };
476 
480 #ifdef __BIG_ENDIAN_BITFIELD
482  uint64_t trntest:1;
483  uint64_t jitter:3;
484  uint64_t clr_boot:1;
485  uint64_t set_boot:1;
486  uint64_t maxdist:5;
487  uint64_t macro_en:1;
488  uint64_t mux_en:1;
489 #else
498 #endif
499  } s;
504 };
505 
506 #endif