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-2012 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_RNM_DEFS_H__
29 #define __CVMX_RNM_DEFS_H__
31 #define CVMX_RNM_BIST_STATUS (CVMX_ADD_IO_SEG(0x0001180040000008ull))
32 #define CVMX_RNM_CTL_STATUS (CVMX_ADD_IO_SEG(0x0001180040000000ull))
33 #define CVMX_RNM_EER_DBG (CVMX_ADD_IO_SEG(0x0001180040000018ull))
34 #define CVMX_RNM_EER_KEY (CVMX_ADD_IO_SEG(0x0001180040000010ull))
35 #define CVMX_RNM_SERIAL_NUM (CVMX_ADD_IO_SEG(0x0001180040000020ull))
37 union cvmx_rnm_bist_status
{
39 struct cvmx_rnm_bist_status_s
{
40 #ifdef __BIG_ENDIAN_BITFIELD
41 uint64_t reserved_2_63
:62;
47 uint64_t reserved_2_63
:62;
52 union cvmx_rnm_ctl_status
{
54 struct cvmx_rnm_ctl_status_s
{
55 #ifdef __BIG_ENDIAN_BITFIELD
56 uint64_t reserved_12_63
:52;
76 uint64_t reserved_12_63
:52;
79 struct cvmx_rnm_ctl_status_cn30xx
{
80 #ifdef __BIG_ENDIAN_BITFIELD
81 uint64_t reserved_4_63
:60;
91 uint64_t reserved_4_63
:60;
94 struct cvmx_rnm_ctl_status_cn50xx
{
95 #ifdef __BIG_ENDIAN_BITFIELD
96 uint64_t reserved_9_63
:55;
110 uint64_t reserved_9_63
:55;
113 struct cvmx_rnm_ctl_status_cn63xx
{
114 #ifdef __BIG_ENDIAN_BITFIELD
115 uint64_t reserved_11_63
:53;
133 uint64_t reserved_11_63
:53;
138 union cvmx_rnm_eer_dbg
{
140 struct cvmx_rnm_eer_dbg_s
{
141 #ifdef __BIG_ENDIAN_BITFIELD
149 union cvmx_rnm_eer_key
{
151 struct cvmx_rnm_eer_key_s
{
152 #ifdef __BIG_ENDIAN_BITFIELD
160 union cvmx_rnm_serial_num
{
162 struct cvmx_rnm_serial_num_s
{
163 #ifdef __BIG_ENDIAN_BITFIELD