Merge tag 'v3.3.7' into 3.3/master
[zen-stable.git] / arch / mips / include / asm / octeon / cvmx-rnm-defs.h
blobc45da1f35ea7a70a4fc4635ea3c846db7d202f08
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-2010 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
17 * details.
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 #include <linux/types.h>
33 #define CVMX_RNM_BIST_STATUS (CVMX_ADD_IO_SEG(0x0001180040000008ull))
34 #define CVMX_RNM_CTL_STATUS (CVMX_ADD_IO_SEG(0x0001180040000000ull))
35 #define CVMX_RNM_EER_DBG (CVMX_ADD_IO_SEG(0x0001180040000018ull))
36 #define CVMX_RNM_EER_KEY (CVMX_ADD_IO_SEG(0x0001180040000010ull))
37 #define CVMX_RNM_SERIAL_NUM (CVMX_ADD_IO_SEG(0x0001180040000020ull))
39 union cvmx_rnm_bist_status {
40 uint64_t u64;
41 struct cvmx_rnm_bist_status_s {
42 uint64_t reserved_2_63:62;
43 uint64_t rrc:1;
44 uint64_t mem:1;
45 } s;
46 struct cvmx_rnm_bist_status_s cn30xx;
47 struct cvmx_rnm_bist_status_s cn31xx;
48 struct cvmx_rnm_bist_status_s cn38xx;
49 struct cvmx_rnm_bist_status_s cn38xxp2;
50 struct cvmx_rnm_bist_status_s cn50xx;
51 struct cvmx_rnm_bist_status_s cn52xx;
52 struct cvmx_rnm_bist_status_s cn52xxp1;
53 struct cvmx_rnm_bist_status_s cn56xx;
54 struct cvmx_rnm_bist_status_s cn56xxp1;
55 struct cvmx_rnm_bist_status_s cn58xx;
56 struct cvmx_rnm_bist_status_s cn58xxp1;
57 struct cvmx_rnm_bist_status_s cn63xx;
58 struct cvmx_rnm_bist_status_s cn63xxp1;
61 union cvmx_rnm_ctl_status {
62 uint64_t u64;
63 struct cvmx_rnm_ctl_status_s {
64 uint64_t reserved_11_63:53;
65 uint64_t eer_lck:1;
66 uint64_t eer_val:1;
67 uint64_t ent_sel:4;
68 uint64_t exp_ent:1;
69 uint64_t rng_rst:1;
70 uint64_t rnm_rst:1;
71 uint64_t rng_en:1;
72 uint64_t ent_en:1;
73 } s;
74 struct cvmx_rnm_ctl_status_cn30xx {
75 uint64_t reserved_4_63:60;
76 uint64_t rng_rst:1;
77 uint64_t rnm_rst:1;
78 uint64_t rng_en:1;
79 uint64_t ent_en:1;
80 } cn30xx;
81 struct cvmx_rnm_ctl_status_cn30xx cn31xx;
82 struct cvmx_rnm_ctl_status_cn30xx cn38xx;
83 struct cvmx_rnm_ctl_status_cn30xx cn38xxp2;
84 struct cvmx_rnm_ctl_status_cn50xx {
85 uint64_t reserved_9_63:55;
86 uint64_t ent_sel:4;
87 uint64_t exp_ent:1;
88 uint64_t rng_rst:1;
89 uint64_t rnm_rst:1;
90 uint64_t rng_en:1;
91 uint64_t ent_en:1;
92 } cn50xx;
93 struct cvmx_rnm_ctl_status_cn50xx cn52xx;
94 struct cvmx_rnm_ctl_status_cn50xx cn52xxp1;
95 struct cvmx_rnm_ctl_status_cn50xx cn56xx;
96 struct cvmx_rnm_ctl_status_cn50xx cn56xxp1;
97 struct cvmx_rnm_ctl_status_cn50xx cn58xx;
98 struct cvmx_rnm_ctl_status_cn50xx cn58xxp1;
99 struct cvmx_rnm_ctl_status_s cn63xx;
100 struct cvmx_rnm_ctl_status_s cn63xxp1;
103 union cvmx_rnm_eer_dbg {
104 uint64_t u64;
105 struct cvmx_rnm_eer_dbg_s {
106 uint64_t dat:64;
107 } s;
108 struct cvmx_rnm_eer_dbg_s cn63xx;
109 struct cvmx_rnm_eer_dbg_s cn63xxp1;
112 union cvmx_rnm_eer_key {
113 uint64_t u64;
114 struct cvmx_rnm_eer_key_s {
115 uint64_t key:64;
116 } s;
117 struct cvmx_rnm_eer_key_s cn63xx;
118 struct cvmx_rnm_eer_key_s cn63xxp1;
121 union cvmx_rnm_serial_num {
122 uint64_t u64;
123 struct cvmx_rnm_serial_num_s {
124 uint64_t dat:64;
125 } s;
126 struct cvmx_rnm_serial_num_s cn63xx;
129 #endif