Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cvmx-stxx-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_STXX_DEFS_H__
29 #define __CVMX_STXX_DEFS_H__
30 
31 #define CVMX_STXX_ARB_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000608ull) + ((block_id) & 1) * 0x8000000ull)
32 #define CVMX_STXX_BCKPRS_CNT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000688ull) + ((block_id) & 1) * 0x8000000ull)
33 #define CVMX_STXX_COM_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000600ull) + ((block_id) & 1) * 0x8000000ull)
34 #define CVMX_STXX_DIP_CNT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000690ull) + ((block_id) & 1) * 0x8000000ull)
35 #define CVMX_STXX_IGN_CAL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000610ull) + ((block_id) & 1) * 0x8000000ull)
36 #define CVMX_STXX_INT_MSK(block_id) (CVMX_ADD_IO_SEG(0x00011800900006A0ull) + ((block_id) & 1) * 0x8000000ull)
37 #define CVMX_STXX_INT_REG(block_id) (CVMX_ADD_IO_SEG(0x0001180090000698ull) + ((block_id) & 1) * 0x8000000ull)
38 #define CVMX_STXX_INT_SYNC(block_id) (CVMX_ADD_IO_SEG(0x00011800900006A8ull) + ((block_id) & 1) * 0x8000000ull)
39 #define CVMX_STXX_MIN_BST(block_id) (CVMX_ADD_IO_SEG(0x0001180090000618ull) + ((block_id) & 1) * 0x8000000ull)
40 #define CVMX_STXX_SPI4_CALX(offset, block_id) (CVMX_ADD_IO_SEG(0x0001180090000400ull) + (((offset) & 31) + ((block_id) & 1) * 0x1000000ull) * 8)
41 #define CVMX_STXX_SPI4_DAT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000628ull) + ((block_id) & 1) * 0x8000000ull)
42 #define CVMX_STXX_SPI4_STAT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000630ull) + ((block_id) & 1) * 0x8000000ull)
43 #define CVMX_STXX_STAT_BYTES_HI(block_id) (CVMX_ADD_IO_SEG(0x0001180090000648ull) + ((block_id) & 1) * 0x8000000ull)
44 #define CVMX_STXX_STAT_BYTES_LO(block_id) (CVMX_ADD_IO_SEG(0x0001180090000680ull) + ((block_id) & 1) * 0x8000000ull)
45 #define CVMX_STXX_STAT_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000638ull) + ((block_id) & 1) * 0x8000000ull)
46 #define CVMX_STXX_STAT_PKT_XMT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000640ull) + ((block_id) & 1) * 0x8000000ull)
47 
51 #ifdef __BIG_ENDIAN_BITFIELD
53  uint64_t mintrn:1;
55  uint64_t igntpa:1;
57 #else
63 #endif
64  } s;
69 };
70 
74 #ifdef __BIG_ENDIAN_BITFIELD
76  uint64_t cnt:32;
77 #else
80 #endif
81  } s;
86 };
87 
91 #ifdef __BIG_ENDIAN_BITFIELD
93  uint64_t st_en:1;
95  uint64_t inf_en:1;
96 #else
101 #endif
102  } s;
107 };
108 
112 #ifdef __BIG_ENDIAN_BITFIELD
114  uint64_t frmmax:4;
115  uint64_t dipmax:4;
116 #else
120 #endif
121  } s;
126 };
127 
131 #ifdef __BIG_ENDIAN_BITFIELD
133  uint64_t igntpa:16;
134 #else
137 #endif
138  } s;
143 };
144 
148 #ifdef __BIG_ENDIAN_BITFIELD
150  uint64_t frmerr:1;
151  uint64_t unxfrm:1;
152  uint64_t nosync:1;
153  uint64_t diperr:1;
154  uint64_t datovr:1;
155  uint64_t ovrbst:1;
156  uint64_t calpar1:1;
157  uint64_t calpar0:1;
158 #else
168 #endif
169  } s;
174 };
175 
179 #ifdef __BIG_ENDIAN_BITFIELD
181  uint64_t syncerr:1;
182  uint64_t frmerr:1;
183  uint64_t unxfrm:1;
184  uint64_t nosync:1;
185  uint64_t diperr:1;
186  uint64_t datovr:1;
187  uint64_t ovrbst:1;
188  uint64_t calpar1:1;
189  uint64_t calpar0:1;
190 #else
201 #endif
202  } s;
207 };
208 
212 #ifdef __BIG_ENDIAN_BITFIELD
214  uint64_t frmerr:1;
215  uint64_t unxfrm:1;
216  uint64_t nosync:1;
217  uint64_t diperr:1;
218  uint64_t datovr:1;
219  uint64_t ovrbst:1;
220  uint64_t calpar1:1;
221  uint64_t calpar0:1;
222 #else
232 #endif
233  } s;
238 };
239 
243 #ifdef __BIG_ENDIAN_BITFIELD
245  uint64_t minb:9;
246 #else
249 #endif
250  } s;
255 };
256 
260 #ifdef __BIG_ENDIAN_BITFIELD
262  uint64_t oddpar:1;
263  uint64_t prt3:4;
264  uint64_t prt2:4;
265  uint64_t prt1:4;
266  uint64_t prt0:4;
267 #else
274 #endif
275  } s;
280 };
281 
285 #ifdef __BIG_ENDIAN_BITFIELD
287  uint64_t alpha:16;
288  uint64_t max_t:16;
289 #else
293 #endif
294  } s;
299 };
300 
304 #ifdef __BIG_ENDIAN_BITFIELD
306  uint64_t m:8;
308  uint64_t len:7;
309 #else
314 #endif
315  } s;
320 };
321 
325 #ifdef __BIG_ENDIAN_BITFIELD
327  uint64_t cnt:32;
328 #else
331 #endif
332  } s;
337 };
338 
342 #ifdef __BIG_ENDIAN_BITFIELD
344  uint64_t cnt:32;
345 #else
348 #endif
349  } s;
354 };
355 
359 #ifdef __BIG_ENDIAN_BITFIELD
361  uint64_t clr:1;
362  uint64_t bckprs:4;
363 #else
367 #endif
368  } s;
373 };
374 
378 #ifdef __BIG_ENDIAN_BITFIELD
380  uint64_t cnt:32;
381 #else
384 #endif
385  } s;
390 };
391 
392 #endif