Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cvmx-uctlx-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_UCTLX_DEFS_H__
29 #define __CVMX_UCTLX_DEFS_H__
30 
31 #define CVMX_UCTLX_BIST_STATUS(block_id) (CVMX_ADD_IO_SEG(0x000118006F0000A0ull))
32 #define CVMX_UCTLX_CLK_RST_CTL(block_id) (CVMX_ADD_IO_SEG(0x000118006F000000ull))
33 #define CVMX_UCTLX_EHCI_CTL(block_id) (CVMX_ADD_IO_SEG(0x000118006F000080ull))
34 #define CVMX_UCTLX_EHCI_FLA(block_id) (CVMX_ADD_IO_SEG(0x000118006F0000A8ull))
35 #define CVMX_UCTLX_ERTO_CTL(block_id) (CVMX_ADD_IO_SEG(0x000118006F000090ull))
36 #define CVMX_UCTLX_IF_ENA(block_id) (CVMX_ADD_IO_SEG(0x000118006F000030ull))
37 #define CVMX_UCTLX_INT_ENA(block_id) (CVMX_ADD_IO_SEG(0x000118006F000028ull))
38 #define CVMX_UCTLX_INT_REG(block_id) (CVMX_ADD_IO_SEG(0x000118006F000020ull))
39 #define CVMX_UCTLX_OHCI_CTL(block_id) (CVMX_ADD_IO_SEG(0x000118006F000088ull))
40 #define CVMX_UCTLX_ORTO_CTL(block_id) (CVMX_ADD_IO_SEG(0x000118006F000098ull))
41 #define CVMX_UCTLX_PPAF_WM(block_id) (CVMX_ADD_IO_SEG(0x000118006F000038ull))
42 #define CVMX_UCTLX_UPHY_CTL_STATUS(block_id) (CVMX_ADD_IO_SEG(0x000118006F000008ull))
43 #define CVMX_UCTLX_UPHY_PORTX_CTL_STATUS(offset, block_id) (CVMX_ADD_IO_SEG(0x000118006F000010ull) + (((offset) & 1) + ((block_id) & 0) * 0x0ull) * 8)
44 
48 #ifdef __BIG_ENDIAN_BITFIELD
56 #else
64 #endif
65  } s;
73 };
74 
78 #ifdef __BIG_ENDIAN_BITFIELD
82  uint64_t ehci_sm:1;
84  uint64_t ohci_sm:1;
92  uint64_t h_div:4;
97  uint64_t p_por:1;
98  uint64_t p_prst:1;
99  uint64_t hrst:1;
100 #else
122 #endif
123  } s;
131 };
132 
136 #ifdef __BIG_ENDIAN_BITFIELD
138  uint64_t desc_rbm:1;
139  uint64_t reg_nb:1;
140  uint64_t l2c_dc:1;
141  uint64_t l2c_bc:1;
142  uint64_t l2c_0pag:1;
143  uint64_t l2c_stt:1;
149 #else
162 #endif
163  } s;
171 };
172 
176 #ifdef __BIG_ENDIAN_BITFIELD
178  uint64_t fla:6;
179 #else
182 #endif
183  } s;
191 };
192 
196 #ifdef __BIG_ENDIAN_BITFIELD
198  uint64_t to_val:27;
200 #else
204 #endif
205  } s;
213 };
214 
218 #ifdef __BIG_ENDIAN_BITFIELD
220  uint64_t en:1;
221 #else
224 #endif
225  } s;
233 };
234 
238 #ifdef __BIG_ENDIAN_BITFIELD
240  uint64_t ec_ovf_e:1;
241  uint64_t oc_ovf_e:1;
242  uint64_t wb_pop_e:1;
243  uint64_t wb_psh_f:1;
244  uint64_t cf_psh_f:1;
245  uint64_t or_psh_f:1;
246  uint64_t er_psh_f:1;
247  uint64_t pp_psh_f:1;
248 #else
258 #endif
259  } s;
267 };
268 
272 #ifdef __BIG_ENDIAN_BITFIELD
274  uint64_t ec_ovf_e:1;
275  uint64_t oc_ovf_e:1;
276  uint64_t wb_pop_e:1;
277  uint64_t wb_psh_f:1;
278  uint64_t cf_psh_f:1;
279  uint64_t or_psh_f:1;
280  uint64_t er_psh_f:1;
281  uint64_t pp_psh_f:1;
282 #else
292 #endif
293  } s;
301 };
302 
306 #ifdef __BIG_ENDIAN_BITFIELD
308  uint64_t reg_nb:1;
309  uint64_t l2c_dc:1;
310  uint64_t l2c_bc:1;
311  uint64_t l2c_0pag:1;
312  uint64_t l2c_stt:1;
318 #else
330 #endif
331  } s;
339 };
340 
344 #ifdef __BIG_ENDIAN_BITFIELD
346  uint64_t to_val:24;
348 #else
352 #endif
353  } s;
361 };
362 
366 #ifdef __BIG_ENDIAN_BITFIELD
368  uint64_t wm:5;
369 #else
372 #endif
373  } s;
379 };
380 
384 #ifdef __BIG_ENDIAN_BITFIELD
387  uint64_t bist_err:1;
388  uint64_t hsbist:1;
389  uint64_t fsbist:1;
390  uint64_t lsbist:1;
391  uint64_t siddq:1;
392  uint64_t vtest_en:1;
394  uint64_t bist_en:1;
396 #else
408 #endif
409  } s;
417 };
418 
422 #ifdef __BIG_ENDIAN_BITFIELD
436  uint64_t sqrxtune:3;
438  uint64_t loop_en:1;
439  uint64_t tclk:1;
441  uint64_t taddr_in:4;
442  uint64_t tdata_in:8;
443 #else
464 #endif
465  } s;
473 };
474 
475 #endif