Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cvmx-rnm-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_RNM_DEFS_H__
29 #define __CVMX_RNM_DEFS_H__
30 
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))
36 
40 #ifdef __BIG_ENDIAN_BITFIELD
42  uint64_t rrc:1;
43  uint64_t mem:1;
44 #else
48 #endif
49  } s;
68 };
69 
73 #ifdef __BIG_ENDIAN_BITFIELD
75  uint64_t dis_mak:1;
76  uint64_t eer_lck:1;
77  uint64_t eer_val:1;
78  uint64_t ent_sel:4;
79  uint64_t exp_ent:1;
80  uint64_t rng_rst:1;
81  uint64_t rnm_rst:1;
82  uint64_t rng_en:1;
83  uint64_t ent_en:1;
84 #else
95 #endif
96  } s;
98 #ifdef __BIG_ENDIAN_BITFIELD
100  uint64_t rng_rst:1;
101  uint64_t rnm_rst:1;
102  uint64_t rng_en:1;
103  uint64_t ent_en:1;
104 #else
110 #endif
111  } cn30xx;
116 #ifdef __BIG_ENDIAN_BITFIELD
118  uint64_t ent_sel:4;
119  uint64_t exp_ent:1;
120  uint64_t rng_rst:1;
121  uint64_t rnm_rst:1;
122  uint64_t rng_en:1;
123  uint64_t ent_en:1;
124 #else
132 #endif
133  } cn50xx;
142 #ifdef __BIG_ENDIAN_BITFIELD
144  uint64_t eer_lck:1;
145  uint64_t eer_val:1;
146  uint64_t ent_sel:4;
147  uint64_t exp_ent:1;
148  uint64_t rng_rst:1;
149  uint64_t rnm_rst:1;
150  uint64_t rng_en:1;
151  uint64_t ent_en:1;
152 #else
162 #endif
163  } cn63xx;
169 };
170 
174 #ifdef __BIG_ENDIAN_BITFIELD
175  uint64_t dat:64;
176 #else
178 #endif
179  } s;
187 };
188 
192 #ifdef __BIG_ENDIAN_BITFIELD
193  uint64_t key:64;
194 #else
196 #endif
197  } s;
205 };
206 
210 #ifdef __BIG_ENDIAN_BITFIELD
211  uint64_t dat:64;
212 #else
214 #endif
215  } s;
222 };
223 
224 #endif