1 /***********************license start***************
2 * Copyright (c) 2003-2012 Cavium Inc. (support@cavium.com). All rights
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
10 * * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
13 * * Redistributions in binary form must reproduce the above
14 * copyright notice, this list of conditions and the following
15 * disclaimer in the documentation and/or other materials provided
16 * with the distribution.
18 * * Neither the name of Cavium Inc. nor the names of
19 * its contributors may be used to endorse or promote products
20 * derived from this software without specific prior written
23 * This Software, including technical data, may be subject to U.S. export control
24 * laws, including the U.S. Export Administration Act and its associated
25 * regulations, and may be subject to export or import regulations in other
28 * TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS"
29 * AND WITH ALL FAULTS AND CAVIUM INC. MAKES NO PROMISES, REPRESENTATIONS OR
30 * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO
31 * THE SOFTWARE, INCLUDING ITS CONDITION, ITS CONFORMITY TO ANY REPRESENTATION OR
32 * DESCRIPTION, OR THE EXISTENCE OF ANY LATENT OR PATENT DEFECTS, AND CAVIUM
33 * SPECIFICALLY DISCLAIMS ALL IMPLIED (IF ANY) WARRANTIES OF TITLE,
34 * MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, LACK OF
35 * VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION OR
36 * CORRESPONDENCE TO DESCRIPTION. THE ENTIRE RISK ARISING OUT OF USE OR
37 * PERFORMANCE OF THE SOFTWARE LIES WITH YOU.
38 ***********************license end**************************************/
44 * Configuration and status register (CSR) type definitions for
47 * This file is auto generated. Do not edit.
52 #ifndef __CVMX_DBG_DEFS_H__
53 #define __CVMX_DBG_DEFS_H__
55 #if CVMX_ENABLE_CSR_ADDRESS_CHECKING
56 #define CVMX_DBG_DATA CVMX_DBG_DATA_FUNC()
57 static inline uint64_t CVMX_DBG_DATA_FUNC(void)
59 if (!(OCTEON_IS_MODEL(OCTEON_CN3XXX) || OCTEON_IS_MODEL(OCTEON_CN50XX) || OCTEON_IS_MODEL(OCTEON_CN58XX)))
60 cvmx_warn("CVMX_DBG_DATA not supported on this chip\n");
61 return CVMX_ADD_IO_SEG(0x00011F00000001E8ull);
64 #define CVMX_DBG_DATA (CVMX_ADD_IO_SEG(0x00011F00000001E8ull))
70 * DBG_DATA = Debug Data Register
72 * Value returned on the debug-data lines from the RSLs
76 struct cvmx_dbg_data_s {
77 #ifdef __BIG_ENDIAN_BITFIELD
78 uint64_t reserved_23_63 : 41;
79 uint64_t c_mul : 5; /**< C_MUL pins sampled at DCOK assertion */
80 uint64_t dsel_ext : 1; /**< Allows changes in the external pins to set the
81 debug select value. */
82 uint64_t data : 17; /**< Value on the debug data lines. */
85 uint64_t dsel_ext : 1;
87 uint64_t reserved_23_63 : 41;
90 struct cvmx_dbg_data_cn30xx {
91 #ifdef __BIG_ENDIAN_BITFIELD
92 uint64_t reserved_31_63 : 33;
93 uint64_t pll_mul : 3; /**< pll_mul pins sampled at DCOK assertion */
94 uint64_t reserved_23_27 : 5;
95 uint64_t c_mul : 5; /**< Core PLL multiplier sampled at DCOK assertion */
96 uint64_t dsel_ext : 1; /**< Allows changes in the external pins to set the
97 debug select value. */
98 uint64_t data : 17; /**< Value on the debug data lines. */
101 uint64_t dsel_ext : 1;
103 uint64_t reserved_23_27 : 5;
104 uint64_t pll_mul : 3;
105 uint64_t reserved_31_63 : 33;
108 struct cvmx_dbg_data_cn30xx cn31xx;
109 struct cvmx_dbg_data_cn38xx {
110 #ifdef __BIG_ENDIAN_BITFIELD
111 uint64_t reserved_29_63 : 35;
112 uint64_t d_mul : 4; /**< D_MUL pins sampled on DCOK assertion */
113 uint64_t dclk_mul2 : 1; /**< Should always be set for fast DDR-II operation */
114 uint64_t cclk_div2 : 1; /**< Should always be clear for fast core clock */
115 uint64_t c_mul : 5; /**< C_MUL pins sampled at DCOK assertion */
116 uint64_t dsel_ext : 1; /**< Allows changes in the external pins to set the
117 debug select value. */
118 uint64_t data : 17; /**< Value on the debug data lines. */
121 uint64_t dsel_ext : 1;
123 uint64_t cclk_div2 : 1;
124 uint64_t dclk_mul2 : 1;
126 uint64_t reserved_29_63 : 35;
129 struct cvmx_dbg_data_cn38xx cn38xxp2;
130 struct cvmx_dbg_data_cn30xx cn50xx;
131 struct cvmx_dbg_data_cn58xx {
132 #ifdef __BIG_ENDIAN_BITFIELD
133 uint64_t reserved_29_63 : 35;
134 uint64_t rem : 6; /**< Remaining debug_select pins sampled at DCOK */
135 uint64_t c_mul : 5; /**< C_MUL pins sampled at DCOK assertion */
136 uint64_t dsel_ext : 1; /**< Allows changes in the external pins to set the
137 debug select value. */
138 uint64_t data : 17; /**< Value on the debug data lines. */
141 uint64_t dsel_ext : 1;
144 uint64_t reserved_29_63 : 35;
147 struct cvmx_dbg_data_cn58xx cn58xxp1;
149 typedef union cvmx_dbg_data cvmx_dbg_data_t;