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
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_SMIX_DEFS_H__
29 #define __CVMX_SMIX_DEFS_H__
31 #define CVMX_SMIX_CLK(offset) (CVMX_ADD_IO_SEG(0x0001180000001818ull) + ((offset) & 1) * 256)
32 #define CVMX_SMIX_CMD(offset) (CVMX_ADD_IO_SEG(0x0001180000001800ull) + ((offset) & 1) * 256)
33 #define CVMX_SMIX_EN(offset) (CVMX_ADD_IO_SEG(0x0001180000001820ull) + ((offset) & 1) * 256)
34 #define CVMX_SMIX_RD_DAT(offset) (CVMX_ADD_IO_SEG(0x0001180000001810ull) + ((offset) & 1) * 256)
35 #define CVMX_SMIX_WR_DAT(offset) (CVMX_ADD_IO_SEG(0x0001180000001808ull) + ((offset) & 1) * 256)
39 struct cvmx_smix_clk_s {
40 uint64_t reserved_25_63:39;
42 uint64_t reserved_21_23:3;
44 uint64_t sample_mode:1;
45 uint64_t reserved_14_14:1;
51 struct cvmx_smix_clk_cn30xx {
52 uint64_t reserved_21_63:43;
54 uint64_t sample_mode:1;
55 uint64_t reserved_14_14:1;
61 struct cvmx_smix_clk_cn30xx cn31xx;
62 struct cvmx_smix_clk_cn30xx cn38xx;
63 struct cvmx_smix_clk_cn30xx cn38xxp2;
64 struct cvmx_smix_clk_s cn50xx;
65 struct cvmx_smix_clk_s cn52xx;
66 struct cvmx_smix_clk_s cn52xxp1;
67 struct cvmx_smix_clk_s cn56xx;
68 struct cvmx_smix_clk_s cn56xxp1;
69 struct cvmx_smix_clk_cn30xx cn58xx;
70 struct cvmx_smix_clk_cn30xx cn58xxp1;
71 struct cvmx_smix_clk_s cn63xx;
72 struct cvmx_smix_clk_s cn63xxp1;
77 struct cvmx_smix_cmd_s {
78 uint64_t reserved_18_63:46;
80 uint64_t reserved_13_15:3;
82 uint64_t reserved_5_7:3;
85 struct cvmx_smix_cmd_cn30xx {
86 uint64_t reserved_17_63:47;
88 uint64_t reserved_13_15:3;
90 uint64_t reserved_5_7:3;
93 struct cvmx_smix_cmd_cn30xx cn31xx;
94 struct cvmx_smix_cmd_cn30xx cn38xx;
95 struct cvmx_smix_cmd_cn30xx cn38xxp2;
96 struct cvmx_smix_cmd_s cn50xx;
97 struct cvmx_smix_cmd_s cn52xx;
98 struct cvmx_smix_cmd_s cn52xxp1;
99 struct cvmx_smix_cmd_s cn56xx;
100 struct cvmx_smix_cmd_s cn56xxp1;
101 struct cvmx_smix_cmd_cn30xx cn58xx;
102 struct cvmx_smix_cmd_cn30xx cn58xxp1;
103 struct cvmx_smix_cmd_s cn63xx;
104 struct cvmx_smix_cmd_s cn63xxp1;
109 struct cvmx_smix_en_s {
110 uint64_t reserved_1_63:63;
113 struct cvmx_smix_en_s cn30xx;
114 struct cvmx_smix_en_s cn31xx;
115 struct cvmx_smix_en_s cn38xx;
116 struct cvmx_smix_en_s cn38xxp2;
117 struct cvmx_smix_en_s cn50xx;
118 struct cvmx_smix_en_s cn52xx;
119 struct cvmx_smix_en_s cn52xxp1;
120 struct cvmx_smix_en_s cn56xx;
121 struct cvmx_smix_en_s cn56xxp1;
122 struct cvmx_smix_en_s cn58xx;
123 struct cvmx_smix_en_s cn58xxp1;
124 struct cvmx_smix_en_s cn63xx;
125 struct cvmx_smix_en_s cn63xxp1;
128 union cvmx_smix_rd_dat {
130 struct cvmx_smix_rd_dat_s {
131 uint64_t reserved_18_63:46;
136 struct cvmx_smix_rd_dat_s cn30xx;
137 struct cvmx_smix_rd_dat_s cn31xx;
138 struct cvmx_smix_rd_dat_s cn38xx;
139 struct cvmx_smix_rd_dat_s cn38xxp2;
140 struct cvmx_smix_rd_dat_s cn50xx;
141 struct cvmx_smix_rd_dat_s cn52xx;
142 struct cvmx_smix_rd_dat_s cn52xxp1;
143 struct cvmx_smix_rd_dat_s cn56xx;
144 struct cvmx_smix_rd_dat_s cn56xxp1;
145 struct cvmx_smix_rd_dat_s cn58xx;
146 struct cvmx_smix_rd_dat_s cn58xxp1;
147 struct cvmx_smix_rd_dat_s cn63xx;
148 struct cvmx_smix_rd_dat_s cn63xxp1;
151 union cvmx_smix_wr_dat {
153 struct cvmx_smix_wr_dat_s {
154 uint64_t reserved_18_63:46;
159 struct cvmx_smix_wr_dat_s cn30xx;
160 struct cvmx_smix_wr_dat_s cn31xx;
161 struct cvmx_smix_wr_dat_s cn38xx;
162 struct cvmx_smix_wr_dat_s cn38xxp2;
163 struct cvmx_smix_wr_dat_s cn50xx;
164 struct cvmx_smix_wr_dat_s cn52xx;
165 struct cvmx_smix_wr_dat_s cn52xxp1;
166 struct cvmx_smix_wr_dat_s cn56xx;
167 struct cvmx_smix_wr_dat_s cn56xxp1;
168 struct cvmx_smix_wr_dat_s cn58xx;
169 struct cvmx_smix_wr_dat_s cn58xxp1;
170 struct cvmx_smix_wr_dat_s cn63xx;
171 struct cvmx_smix_wr_dat_s cn63xxp1;