1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
|
/*
* THIS FILE IS AUTOMATICALLY GENERATED
* DONT EDIT THIS FILE
*/
/* $OpenBSD: cn30xxasxreg.h,v 1.1 2011/06/16 11:22:30 syuu Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
/*
* Cavium Networks OCTEON CN30XX Hardware Reference Manual
* CN30XX-HM-1.0
* 13.9 ASX Registers
*/
#ifndef _CN30XXASXREG_H_
#define _CN30XXASXREG_H_
#define ASX0_RX_PRT_EN 0x00011800b0000000ULL
#define ASX0_TX_PRT_EN 0x00011800b0000008ULL
#define ASX0_INT_REG 0x00011800b0000010ULL
#define ASX0_INT_EN 0x00011800b0000018ULL
#define ASX0_RX_CLK_SET0 0x00011800b0000020ULL
#define ASX0_RX_CLK_SET1 0x00011800b0000028ULL
#define ASX0_RX_CLK_SET2 0x00011800b0000030ULL
#define ASX0_PRT_LOOP 0x00011800b0000040ULL
#define ASX0_TX_CLK_SET0 0x00011800b0000048ULL
#define ASX0_TX_CLK_SET1 0x00011800b0000050ULL
#define ASX0_TX_CLK_SET2 0x00011800b0000058ULL
#define ASX0_COMP_BYP 0x00011800b0000068ULL
#define ASX0_TX_HI_WATER000 0x00011800b0000080ULL
#define ASX0_TX_HI_WATER001 0x00011800b0000088ULL
#define ASX0_TX_HI_WATER002 0x00011800b0000090ULL
#define ASX0_GMII_RX_CLK_SET 0x00011800b0000180ULL
#define ASX0_GMII_RX_DAT_SET 0x00011800b0000188ULL
#define ASX0_MII_RX_DAT_SET 0x00011800b0000190ULL
#define ASX0_BASE 0x00011800b0000000ULL
#define ASX0_SIZE 0x0198ULL
#define ASX0_RX_PRT_EN_OFFSET 0x0000
#define ASX0_TX_PRT_EN_OFFSET 0x0008
#define ASX0_INT_REG_OFFSET 0x0010
#define ASX0_INT_EN_OFFSET 0x0018
#define ASX0_RX_CLK_SET0_OFFSET 0x0020
#define ASX0_RX_CLK_SET1_OFFSET 0x0028
#define ASX0_RX_CLK_SET2_OFFSET 0x0030
#define ASX0_PRT_LOOP_OFFSET 0x0040
#define ASX0_TX_CLK_SET0_OFFSET 0x0048
#define ASX0_TX_CLK_SET1_OFFSET 0x0050
#define ASX0_TX_CLK_SET2_OFFSET 0x0058
#define ASX0_COMP_BYP_OFFSET 0x0068
#define ASX0_TX_HI_WATER000_OFFSET 0x0080
#define ASX0_TX_HI_WATER001_OFFSET 0x0088
#define ASX0_TX_HI_WATER002_OFFSET 0x0090
#define ASX0_GMII_RX_CLK_SET_OFFSET 0x0180
#define ASX0_GMII_RX_DAT_SET_OFFSET 0x0188
#define ASX0_MII_RX_DAT_SET_OFFSET 0x0190
/* XXX */
/*
* ASX_RX_PRT_EN
*/
#define ASX0_RX_PRT_EN_63_3 0xfffffff8
#define ASX0_RX_PRT_EN_PRT_EN 0x00000007
/*
* ASX0_TX_PRT_EN
*/
#define ASX0_TX_PRT_EN_63_3 0xfffffff8
#define ASX0_TX_PRT_EN_PRT_EN 0x00000007
/*
* ASX0_INT_REG
*/
#define ASX0_INT_REG_63_11 0xfffff800
#define ASX0_INT_REG_TXPSH 0x00000700
#define ASX0_INT_REG_7 0x00000080
#define ASX0_INT_REG_TXPOP 0x00000070
#define ASX0_INT_REG_3 0x00000008
#define ASX0_INT_REG_OVRFLW 0x00000007
/*
* ASX0_INT_EN
*/
#define ASX0_INT_EN_63_11 0xfffff800
#define ASX0_INT_EN_TXPSH 0x00000700
#define ASX0_INT_EN_7 0x00000080
#define ASX0_INT_EN_TXPOP 0x00000070
#define ASX0_INT_EN_3 0x00000008
#define ASX0_INT_EN_OVRFLW 0x00000007
/*
* ASX0_RX_CLK_SET
*/
#define ASX0_RX_CLK_SET_63_5 0xffffffe0
#define ASX0_RX_CLK_SET_SETTING 0x0000001f
/*
* ASX0_RRT_LOOP
*/
#define ASX0_PRT_LOOP_63_7 0xffffff80
#define ASX0_PRT_LOOP_EXT_LOOP 0x00000070
#define ASX0_PRT_LOOP_3 0x00000008
#define ASX0_PRT_LOOP_PRT_LOOP 0x00000007
/*
* ASX0_TX_CLK_SET
*/
#define ASX0_TX_CLK_SET_63_5 0xffffffe0
#define ASX0_TX_CLK_SET_SETTING 0x0000001f
/*
* ASX0_TX_COMP_BYP
*/
#define ASX0_TX_COMP_BYP_63_9 0xfffffe00
#define ASX0_TX_COMP_BYP_BYPASS 0x00000100
#define ASX0_TX_COMP_BYP_PCTL 0x000000f0
#define ASX0_TX_COMP_BYP_NCTL 0x0000000f
/*
* ASX0_TX_HI_WATER
*/
#define ASX0_TX_HI_WATER_63_3 0xfffffff8
#define ASX0_TX_HI_WATER_MARK 0x00000007
/*
* ASX0_GMXII_RX_CLK_SET
*/
#define ASX0_GMII_RX_CLK_SET_63_5 0xffffffe0
#define ASX0_GMII_RX_CLK_SET_SETTING 0x0000001f
/*
* ASX0_GMXII_RX_DAT_SET
*/
#define ASX0_GMII_RX_DAT_SET_63_5 0xffffffe0
#define ASX0_GMII_RX_DAT_SET_SETTING 0x0000001f
/* ---- */
#define ASX0_RX_PRT_EN_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x03\x3d" "63_3\0" \
"f\x00\x03" "PRT_EN\0"
#define ASX0_TX_PRT_EN_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x03\x3d" "63_3\0" \
"f\x00\x03" "PRT_EN\0"
#define ASX0_INT_REG_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x0b\x35" "63_11\0" \
"f\x08\x03" "TXPSH\0" \
"b\x07" "7\0" \
"f\x04\x03" "TXPOP\0" \
"b\x03" "3\0" \
"f\x00\x03" "OVRFLW\0"
#define ASX0_INT_EN_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x0b\x35" "63_11\0" \
"f\x08\x03" "TXPSH\0" \
"b\x07" "7\0" \
"f\x04\x03" "TXPOP\0" \
"b\x03" "3\0" \
"f\x00\x03" "OVRFLW\0"
#define ASX0_RX_CLK_SET0_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define ASX0_RX_CLK_SET1_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define ASX0_RX_CLK_SET2_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define ASX0_PRT_LOOP_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x07\x39" "63_7\0" \
"f\x04\x03" "EXT_LOOP\0" \
"b\x03" "3\0" \
"f\x00\x03" "PRT_LOOP\0"
#define ASX0_TX_CLK_SET0_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define ASX0_TX_CLK_SET1_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define ASX0_TX_CLK_SET2_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define ASX0_COMP_BYP_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define ASX0_TX_HI_WATER000_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define ASX0_TX_HI_WATER001_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define ASX0_TX_HI_WATER002_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define ASX0_GMII_RX_CLK_SET_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x05\x3b" "63_5\0" \
"f\x00\x05" "SETTING\0"
#define ASX0_GMII_RX_DAT_SET_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x05\x3b" "63_5\0" \
"f\x00\x05" "SETTING\0"
#define ASX0_MII_RX_DAT_SET_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#endif /* _CN30XXASXREG_H_ */
|