xref: /titanic_52/usr/src/uts/common/io/chxge/com/regs.h (revision d39a76e7b087a3d0927cbe6898dc0a6770fa6c68)
1*d39a76e7Sxw161283 /*
2*d39a76e7Sxw161283  * CDDL HEADER START
3*d39a76e7Sxw161283  *
4*d39a76e7Sxw161283  * The contents of this file are subject to the terms of the
5*d39a76e7Sxw161283  * Common Development and Distribution License (the "License").
6*d39a76e7Sxw161283  * You may not use this file except in compliance with the License.
7*d39a76e7Sxw161283  *
8*d39a76e7Sxw161283  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*d39a76e7Sxw161283  * or http://www.opensolaris.org/os/licensing.
10*d39a76e7Sxw161283  * See the License for the specific language governing permissions
11*d39a76e7Sxw161283  * and limitations under the License.
12*d39a76e7Sxw161283  *
13*d39a76e7Sxw161283  * When distributing Covered Code, include this CDDL HEADER in each
14*d39a76e7Sxw161283  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*d39a76e7Sxw161283  * If applicable, add the following below this CDDL HEADER, with the
16*d39a76e7Sxw161283  * fields enclosed by brackets "[]" replaced with your own identifying
17*d39a76e7Sxw161283  * information: Portions Copyright [yyyy] [name of copyright owner]
18*d39a76e7Sxw161283  *
19*d39a76e7Sxw161283  * CDDL HEADER END
20*d39a76e7Sxw161283  */
21*d39a76e7Sxw161283 
22*d39a76e7Sxw161283 /* This file is automatically generated --- do not edit */
23*d39a76e7Sxw161283 
24*d39a76e7Sxw161283 #pragma ident	"%Z%%M%	%I%	%E% SMI"	/* regs.h */
25*d39a76e7Sxw161283 
26*d39a76e7Sxw161283 /* SGE registers */
27*d39a76e7Sxw161283 #define A_SG_CONTROL 0x0
28*d39a76e7Sxw161283 
29*d39a76e7Sxw161283 #define S_CMDQ0_ENABLE    0
30*d39a76e7Sxw161283 #define V_CMDQ0_ENABLE(x) ((x) << S_CMDQ0_ENABLE)
31*d39a76e7Sxw161283 #define F_CMDQ0_ENABLE    V_CMDQ0_ENABLE(1U)
32*d39a76e7Sxw161283 
33*d39a76e7Sxw161283 #define S_CMDQ1_ENABLE    1
34*d39a76e7Sxw161283 #define V_CMDQ1_ENABLE(x) ((x) << S_CMDQ1_ENABLE)
35*d39a76e7Sxw161283 #define F_CMDQ1_ENABLE    V_CMDQ1_ENABLE(1U)
36*d39a76e7Sxw161283 
37*d39a76e7Sxw161283 #define S_FL0_ENABLE    2
38*d39a76e7Sxw161283 #define V_FL0_ENABLE(x) ((x) << S_FL0_ENABLE)
39*d39a76e7Sxw161283 #define F_FL0_ENABLE    V_FL0_ENABLE(1U)
40*d39a76e7Sxw161283 
41*d39a76e7Sxw161283 #define S_FL1_ENABLE    3
42*d39a76e7Sxw161283 #define V_FL1_ENABLE(x) ((x) << S_FL1_ENABLE)
43*d39a76e7Sxw161283 #define F_FL1_ENABLE    V_FL1_ENABLE(1U)
44*d39a76e7Sxw161283 
45*d39a76e7Sxw161283 #define S_CPL_ENABLE    4
46*d39a76e7Sxw161283 #define V_CPL_ENABLE(x) ((x) << S_CPL_ENABLE)
47*d39a76e7Sxw161283 #define F_CPL_ENABLE    V_CPL_ENABLE(1U)
48*d39a76e7Sxw161283 
49*d39a76e7Sxw161283 #define S_RESPONSE_QUEUE_ENABLE    5
50*d39a76e7Sxw161283 #define V_RESPONSE_QUEUE_ENABLE(x) ((x) << S_RESPONSE_QUEUE_ENABLE)
51*d39a76e7Sxw161283 #define F_RESPONSE_QUEUE_ENABLE    V_RESPONSE_QUEUE_ENABLE(1U)
52*d39a76e7Sxw161283 
53*d39a76e7Sxw161283 #define S_CMDQ_PRIORITY    6
54*d39a76e7Sxw161283 #define M_CMDQ_PRIORITY    0x3
55*d39a76e7Sxw161283 #define V_CMDQ_PRIORITY(x) ((x) << S_CMDQ_PRIORITY)
56*d39a76e7Sxw161283 #define G_CMDQ_PRIORITY(x) (((x) >> S_CMDQ_PRIORITY) & M_CMDQ_PRIORITY)
57*d39a76e7Sxw161283 
58*d39a76e7Sxw161283 #define S_DISABLE_CMDQ0_GTS    8
59*d39a76e7Sxw161283 #define V_DISABLE_CMDQ0_GTS(x) ((x) << S_DISABLE_CMDQ0_GTS)
60*d39a76e7Sxw161283 #define F_DISABLE_CMDQ0_GTS    V_DISABLE_CMDQ0_GTS(1U)
61*d39a76e7Sxw161283 
62*d39a76e7Sxw161283 #define S_DISABLE_CMDQ1_GTS    9
63*d39a76e7Sxw161283 #define V_DISABLE_CMDQ1_GTS(x) ((x) << S_DISABLE_CMDQ1_GTS)
64*d39a76e7Sxw161283 #define F_DISABLE_CMDQ1_GTS    V_DISABLE_CMDQ1_GTS(1U)
65*d39a76e7Sxw161283 
66*d39a76e7Sxw161283 #define S_DISABLE_FL0_GTS    10
67*d39a76e7Sxw161283 #define V_DISABLE_FL0_GTS(x) ((x) << S_DISABLE_FL0_GTS)
68*d39a76e7Sxw161283 #define F_DISABLE_FL0_GTS    V_DISABLE_FL0_GTS(1U)
69*d39a76e7Sxw161283 
70*d39a76e7Sxw161283 #define S_DISABLE_FL1_GTS    11
71*d39a76e7Sxw161283 #define V_DISABLE_FL1_GTS(x) ((x) << S_DISABLE_FL1_GTS)
72*d39a76e7Sxw161283 #define F_DISABLE_FL1_GTS    V_DISABLE_FL1_GTS(1U)
73*d39a76e7Sxw161283 
74*d39a76e7Sxw161283 #define S_ENABLE_BIG_ENDIAN    12
75*d39a76e7Sxw161283 #define V_ENABLE_BIG_ENDIAN(x) ((x) << S_ENABLE_BIG_ENDIAN)
76*d39a76e7Sxw161283 #define F_ENABLE_BIG_ENDIAN    V_ENABLE_BIG_ENDIAN(1U)
77*d39a76e7Sxw161283 
78*d39a76e7Sxw161283 #define S_FL_SELECTION_CRITERIA    13
79*d39a76e7Sxw161283 #define V_FL_SELECTION_CRITERIA(x) ((x) << S_FL_SELECTION_CRITERIA)
80*d39a76e7Sxw161283 #define F_FL_SELECTION_CRITERIA    V_FL_SELECTION_CRITERIA(1U)
81*d39a76e7Sxw161283 
82*d39a76e7Sxw161283 #define S_ISCSI_COALESCE    14
83*d39a76e7Sxw161283 #define V_ISCSI_COALESCE(x) ((x) << S_ISCSI_COALESCE)
84*d39a76e7Sxw161283 #define F_ISCSI_COALESCE    V_ISCSI_COALESCE(1U)
85*d39a76e7Sxw161283 
86*d39a76e7Sxw161283 #define S_RX_PKT_OFFSET    15
87*d39a76e7Sxw161283 #define M_RX_PKT_OFFSET    0x7
88*d39a76e7Sxw161283 #define V_RX_PKT_OFFSET(x) ((x) << S_RX_PKT_OFFSET)
89*d39a76e7Sxw161283 #define G_RX_PKT_OFFSET(x) (((x) >> S_RX_PKT_OFFSET) & M_RX_PKT_OFFSET)
90*d39a76e7Sxw161283 
91*d39a76e7Sxw161283 #define S_VLAN_XTRACT    18
92*d39a76e7Sxw161283 #define V_VLAN_XTRACT(x) ((x) << S_VLAN_XTRACT)
93*d39a76e7Sxw161283 #define F_VLAN_XTRACT    V_VLAN_XTRACT(1U)
94*d39a76e7Sxw161283 
95*d39a76e7Sxw161283 #define A_SG_DOORBELL 0x4
96*d39a76e7Sxw161283 #define A_SG_CMD0BASELWR 0x8
97*d39a76e7Sxw161283 #define A_SG_CMD0BASEUPR 0xc
98*d39a76e7Sxw161283 #define A_SG_CMD1BASELWR 0x10
99*d39a76e7Sxw161283 #define A_SG_CMD1BASEUPR 0x14
100*d39a76e7Sxw161283 #define A_SG_FL0BASELWR 0x18
101*d39a76e7Sxw161283 #define A_SG_FL0BASEUPR 0x1c
102*d39a76e7Sxw161283 #define A_SG_FL1BASELWR 0x20
103*d39a76e7Sxw161283 #define A_SG_FL1BASEUPR 0x24
104*d39a76e7Sxw161283 #define A_SG_CMD0SIZE 0x28
105*d39a76e7Sxw161283 
106*d39a76e7Sxw161283 #define S_CMDQ0_SIZE    0
107*d39a76e7Sxw161283 #define M_CMDQ0_SIZE    0x1ffff
108*d39a76e7Sxw161283 #define V_CMDQ0_SIZE(x) ((x) << S_CMDQ0_SIZE)
109*d39a76e7Sxw161283 #define G_CMDQ0_SIZE(x) (((x) >> S_CMDQ0_SIZE) & M_CMDQ0_SIZE)
110*d39a76e7Sxw161283 
111*d39a76e7Sxw161283 #define A_SG_FL0SIZE 0x2c
112*d39a76e7Sxw161283 
113*d39a76e7Sxw161283 #define S_FL0_SIZE    0
114*d39a76e7Sxw161283 #define M_FL0_SIZE    0x1ffff
115*d39a76e7Sxw161283 #define V_FL0_SIZE(x) ((x) << S_FL0_SIZE)
116*d39a76e7Sxw161283 #define G_FL0_SIZE(x) (((x) >> S_FL0_SIZE) & M_FL0_SIZE)
117*d39a76e7Sxw161283 
118*d39a76e7Sxw161283 #define A_SG_RSPSIZE 0x30
119*d39a76e7Sxw161283 
120*d39a76e7Sxw161283 #define S_RESPQ_SIZE    0
121*d39a76e7Sxw161283 #define M_RESPQ_SIZE    0x1ffff
122*d39a76e7Sxw161283 #define V_RESPQ_SIZE(x) ((x) << S_RESPQ_SIZE)
123*d39a76e7Sxw161283 #define G_RESPQ_SIZE(x) (((x) >> S_RESPQ_SIZE) & M_RESPQ_SIZE)
124*d39a76e7Sxw161283 
125*d39a76e7Sxw161283 #define A_SG_RSPBASELWR 0x34
126*d39a76e7Sxw161283 #define A_SG_RSPBASEUPR 0x38
127*d39a76e7Sxw161283 #define A_SG_FLTHRESHOLD 0x3c
128*d39a76e7Sxw161283 
129*d39a76e7Sxw161283 #define S_FL_THRESHOLD    0
130*d39a76e7Sxw161283 #define M_FL_THRESHOLD    0xffff
131*d39a76e7Sxw161283 #define V_FL_THRESHOLD(x) ((x) << S_FL_THRESHOLD)
132*d39a76e7Sxw161283 #define G_FL_THRESHOLD(x) (((x) >> S_FL_THRESHOLD) & M_FL_THRESHOLD)
133*d39a76e7Sxw161283 
134*d39a76e7Sxw161283 #define A_SG_RSPQUEUECREDIT 0x40
135*d39a76e7Sxw161283 
136*d39a76e7Sxw161283 #define S_RESPQ_CREDIT    0
137*d39a76e7Sxw161283 #define M_RESPQ_CREDIT    0x1ffff
138*d39a76e7Sxw161283 #define V_RESPQ_CREDIT(x) ((x) << S_RESPQ_CREDIT)
139*d39a76e7Sxw161283 #define G_RESPQ_CREDIT(x) (((x) >> S_RESPQ_CREDIT) & M_RESPQ_CREDIT)
140*d39a76e7Sxw161283 
141*d39a76e7Sxw161283 #define A_SG_SLEEPING 0x48
142*d39a76e7Sxw161283 
143*d39a76e7Sxw161283 #define S_SLEEPING    0
144*d39a76e7Sxw161283 #define M_SLEEPING    0xffff
145*d39a76e7Sxw161283 #define V_SLEEPING(x) ((x) << S_SLEEPING)
146*d39a76e7Sxw161283 #define G_SLEEPING(x) (((x) >> S_SLEEPING) & M_SLEEPING)
147*d39a76e7Sxw161283 
148*d39a76e7Sxw161283 #define A_SG_INTRTIMER 0x4c
149*d39a76e7Sxw161283 
150*d39a76e7Sxw161283 #define S_INTERRUPT_TIMER_COUNT    0
151*d39a76e7Sxw161283 #define M_INTERRUPT_TIMER_COUNT    0xffffff
152*d39a76e7Sxw161283 #define V_INTERRUPT_TIMER_COUNT(x) ((x) << S_INTERRUPT_TIMER_COUNT)
153*d39a76e7Sxw161283 #define G_INTERRUPT_TIMER_COUNT(x) (((x) >> S_INTERRUPT_TIMER_COUNT) & M_INTERRUPT_TIMER_COUNT)
154*d39a76e7Sxw161283 
155*d39a76e7Sxw161283 #define A_SG_CMD0PTR 0x50
156*d39a76e7Sxw161283 
157*d39a76e7Sxw161283 #define S_CMDQ0_POINTER    0
158*d39a76e7Sxw161283 #define M_CMDQ0_POINTER    0xffff
159*d39a76e7Sxw161283 #define V_CMDQ0_POINTER(x) ((x) << S_CMDQ0_POINTER)
160*d39a76e7Sxw161283 #define G_CMDQ0_POINTER(x) (((x) >> S_CMDQ0_POINTER) & M_CMDQ0_POINTER)
161*d39a76e7Sxw161283 
162*d39a76e7Sxw161283 #define S_CURRENT_GENERATION_BIT    16
163*d39a76e7Sxw161283 #define V_CURRENT_GENERATION_BIT(x) ((x) << S_CURRENT_GENERATION_BIT)
164*d39a76e7Sxw161283 #define F_CURRENT_GENERATION_BIT    V_CURRENT_GENERATION_BIT(1U)
165*d39a76e7Sxw161283 
166*d39a76e7Sxw161283 #define A_SG_CMD1PTR 0x54
167*d39a76e7Sxw161283 
168*d39a76e7Sxw161283 #define S_CMDQ1_POINTER    0
169*d39a76e7Sxw161283 #define M_CMDQ1_POINTER    0xffff
170*d39a76e7Sxw161283 #define V_CMDQ1_POINTER(x) ((x) << S_CMDQ1_POINTER)
171*d39a76e7Sxw161283 #define G_CMDQ1_POINTER(x) (((x) >> S_CMDQ1_POINTER) & M_CMDQ1_POINTER)
172*d39a76e7Sxw161283 
173*d39a76e7Sxw161283 #define A_SG_FL0PTR 0x58
174*d39a76e7Sxw161283 
175*d39a76e7Sxw161283 #define S_FL0_POINTER    0
176*d39a76e7Sxw161283 #define M_FL0_POINTER    0xffff
177*d39a76e7Sxw161283 #define V_FL0_POINTER(x) ((x) << S_FL0_POINTER)
178*d39a76e7Sxw161283 #define G_FL0_POINTER(x) (((x) >> S_FL0_POINTER) & M_FL0_POINTER)
179*d39a76e7Sxw161283 
180*d39a76e7Sxw161283 #define A_SG_FL1PTR 0x5c
181*d39a76e7Sxw161283 
182*d39a76e7Sxw161283 #define S_FL1_POINTER    0
183*d39a76e7Sxw161283 #define M_FL1_POINTER    0xffff
184*d39a76e7Sxw161283 #define V_FL1_POINTER(x) ((x) << S_FL1_POINTER)
185*d39a76e7Sxw161283 #define G_FL1_POINTER(x) (((x) >> S_FL1_POINTER) & M_FL1_POINTER)
186*d39a76e7Sxw161283 
187*d39a76e7Sxw161283 #define A_SG_VERSION 0x6c
188*d39a76e7Sxw161283 
189*d39a76e7Sxw161283 #define S_DAY    0
190*d39a76e7Sxw161283 #define M_DAY    0x1f
191*d39a76e7Sxw161283 #define V_DAY(x) ((x) << S_DAY)
192*d39a76e7Sxw161283 #define G_DAY(x) (((x) >> S_DAY) & M_DAY)
193*d39a76e7Sxw161283 
194*d39a76e7Sxw161283 #define S_MONTH    5
195*d39a76e7Sxw161283 #define M_MONTH    0xf
196*d39a76e7Sxw161283 #define V_MONTH(x) ((x) << S_MONTH)
197*d39a76e7Sxw161283 #define G_MONTH(x) (((x) >> S_MONTH) & M_MONTH)
198*d39a76e7Sxw161283 
199*d39a76e7Sxw161283 #define A_SG_CMD1SIZE 0xb0
200*d39a76e7Sxw161283 
201*d39a76e7Sxw161283 #define S_CMDQ1_SIZE    0
202*d39a76e7Sxw161283 #define M_CMDQ1_SIZE    0x1ffff
203*d39a76e7Sxw161283 #define V_CMDQ1_SIZE(x) ((x) << S_CMDQ1_SIZE)
204*d39a76e7Sxw161283 #define G_CMDQ1_SIZE(x) (((x) >> S_CMDQ1_SIZE) & M_CMDQ1_SIZE)
205*d39a76e7Sxw161283 
206*d39a76e7Sxw161283 #define A_SG_FL1SIZE 0xb4
207*d39a76e7Sxw161283 
208*d39a76e7Sxw161283 #define S_FL1_SIZE    0
209*d39a76e7Sxw161283 #define M_FL1_SIZE    0x1ffff
210*d39a76e7Sxw161283 #define V_FL1_SIZE(x) ((x) << S_FL1_SIZE)
211*d39a76e7Sxw161283 #define G_FL1_SIZE(x) (((x) >> S_FL1_SIZE) & M_FL1_SIZE)
212*d39a76e7Sxw161283 
213*d39a76e7Sxw161283 #define A_SG_INT_ENABLE 0xb8
214*d39a76e7Sxw161283 
215*d39a76e7Sxw161283 #define S_RESPQ_EXHAUSTED    0
216*d39a76e7Sxw161283 #define V_RESPQ_EXHAUSTED(x) ((x) << S_RESPQ_EXHAUSTED)
217*d39a76e7Sxw161283 #define F_RESPQ_EXHAUSTED    V_RESPQ_EXHAUSTED(1U)
218*d39a76e7Sxw161283 
219*d39a76e7Sxw161283 #define S_RESPQ_OVERFLOW    1
220*d39a76e7Sxw161283 #define V_RESPQ_OVERFLOW(x) ((x) << S_RESPQ_OVERFLOW)
221*d39a76e7Sxw161283 #define F_RESPQ_OVERFLOW    V_RESPQ_OVERFLOW(1U)
222*d39a76e7Sxw161283 
223*d39a76e7Sxw161283 #define S_FL_EXHAUSTED    2
224*d39a76e7Sxw161283 #define V_FL_EXHAUSTED(x) ((x) << S_FL_EXHAUSTED)
225*d39a76e7Sxw161283 #define F_FL_EXHAUSTED    V_FL_EXHAUSTED(1U)
226*d39a76e7Sxw161283 
227*d39a76e7Sxw161283 #define S_PACKET_TOO_BIG    3
228*d39a76e7Sxw161283 #define V_PACKET_TOO_BIG(x) ((x) << S_PACKET_TOO_BIG)
229*d39a76e7Sxw161283 #define F_PACKET_TOO_BIG    V_PACKET_TOO_BIG(1U)
230*d39a76e7Sxw161283 
231*d39a76e7Sxw161283 #define S_PACKET_MISMATCH    4
232*d39a76e7Sxw161283 #define V_PACKET_MISMATCH(x) ((x) << S_PACKET_MISMATCH)
233*d39a76e7Sxw161283 #define F_PACKET_MISMATCH    V_PACKET_MISMATCH(1U)
234*d39a76e7Sxw161283 
235*d39a76e7Sxw161283 #define A_SG_INT_CAUSE 0xbc
236*d39a76e7Sxw161283 #define A_SG_RESPACCUTIMER 0xc0
237*d39a76e7Sxw161283 
238*d39a76e7Sxw161283 /* MC3 registers */
239*d39a76e7Sxw161283 #define A_MC3_CFG 0x100
240*d39a76e7Sxw161283 
241*d39a76e7Sxw161283 #define S_CLK_ENABLE    0
242*d39a76e7Sxw161283 #define V_CLK_ENABLE(x) ((x) << S_CLK_ENABLE)
243*d39a76e7Sxw161283 #define F_CLK_ENABLE    V_CLK_ENABLE(1U)
244*d39a76e7Sxw161283 
245*d39a76e7Sxw161283 #define S_READY    1
246*d39a76e7Sxw161283 #define V_READY(x) ((x) << S_READY)
247*d39a76e7Sxw161283 #define F_READY    V_READY(1U)
248*d39a76e7Sxw161283 
249*d39a76e7Sxw161283 #define S_READ_TO_WRITE_DELAY    2
250*d39a76e7Sxw161283 #define M_READ_TO_WRITE_DELAY    0x7
251*d39a76e7Sxw161283 #define V_READ_TO_WRITE_DELAY(x) ((x) << S_READ_TO_WRITE_DELAY)
252*d39a76e7Sxw161283 #define G_READ_TO_WRITE_DELAY(x) (((x) >> S_READ_TO_WRITE_DELAY) & M_READ_TO_WRITE_DELAY)
253*d39a76e7Sxw161283 
254*d39a76e7Sxw161283 #define S_WRITE_TO_READ_DELAY    5
255*d39a76e7Sxw161283 #define M_WRITE_TO_READ_DELAY    0x7
256*d39a76e7Sxw161283 #define V_WRITE_TO_READ_DELAY(x) ((x) << S_WRITE_TO_READ_DELAY)
257*d39a76e7Sxw161283 #define G_WRITE_TO_READ_DELAY(x) (((x) >> S_WRITE_TO_READ_DELAY) & M_WRITE_TO_READ_DELAY)
258*d39a76e7Sxw161283 
259*d39a76e7Sxw161283 #define S_MC3_BANK_CYCLE    8
260*d39a76e7Sxw161283 #define M_MC3_BANK_CYCLE    0xf
261*d39a76e7Sxw161283 #define V_MC3_BANK_CYCLE(x) ((x) << S_MC3_BANK_CYCLE)
262*d39a76e7Sxw161283 #define G_MC3_BANK_CYCLE(x) (((x) >> S_MC3_BANK_CYCLE) & M_MC3_BANK_CYCLE)
263*d39a76e7Sxw161283 
264*d39a76e7Sxw161283 #define S_REFRESH_CYCLE    12
265*d39a76e7Sxw161283 #define M_REFRESH_CYCLE    0xf
266*d39a76e7Sxw161283 #define V_REFRESH_CYCLE(x) ((x) << S_REFRESH_CYCLE)
267*d39a76e7Sxw161283 #define G_REFRESH_CYCLE(x) (((x) >> S_REFRESH_CYCLE) & M_REFRESH_CYCLE)
268*d39a76e7Sxw161283 
269*d39a76e7Sxw161283 #define S_PRECHARGE_CYCLE    16
270*d39a76e7Sxw161283 #define M_PRECHARGE_CYCLE    0x3
271*d39a76e7Sxw161283 #define V_PRECHARGE_CYCLE(x) ((x) << S_PRECHARGE_CYCLE)
272*d39a76e7Sxw161283 #define G_PRECHARGE_CYCLE(x) (((x) >> S_PRECHARGE_CYCLE) & M_PRECHARGE_CYCLE)
273*d39a76e7Sxw161283 
274*d39a76e7Sxw161283 #define S_ACTIVE_TO_READ_WRITE_DELAY    18
275*d39a76e7Sxw161283 #define V_ACTIVE_TO_READ_WRITE_DELAY(x) ((x) << S_ACTIVE_TO_READ_WRITE_DELAY)
276*d39a76e7Sxw161283 #define F_ACTIVE_TO_READ_WRITE_DELAY    V_ACTIVE_TO_READ_WRITE_DELAY(1U)
277*d39a76e7Sxw161283 
278*d39a76e7Sxw161283 #define S_ACTIVE_TO_PRECHARGE_DELAY    19
279*d39a76e7Sxw161283 #define M_ACTIVE_TO_PRECHARGE_DELAY    0x7
280*d39a76e7Sxw161283 #define V_ACTIVE_TO_PRECHARGE_DELAY(x) ((x) << S_ACTIVE_TO_PRECHARGE_DELAY)
281*d39a76e7Sxw161283 #define G_ACTIVE_TO_PRECHARGE_DELAY(x) (((x) >> S_ACTIVE_TO_PRECHARGE_DELAY) & M_ACTIVE_TO_PRECHARGE_DELAY)
282*d39a76e7Sxw161283 
283*d39a76e7Sxw161283 #define S_WRITE_RECOVERY_DELAY    22
284*d39a76e7Sxw161283 #define M_WRITE_RECOVERY_DELAY    0x3
285*d39a76e7Sxw161283 #define V_WRITE_RECOVERY_DELAY(x) ((x) << S_WRITE_RECOVERY_DELAY)
286*d39a76e7Sxw161283 #define G_WRITE_RECOVERY_DELAY(x) (((x) >> S_WRITE_RECOVERY_DELAY) & M_WRITE_RECOVERY_DELAY)
287*d39a76e7Sxw161283 
288*d39a76e7Sxw161283 #define S_DENSITY    24
289*d39a76e7Sxw161283 #define M_DENSITY    0x3
290*d39a76e7Sxw161283 #define V_DENSITY(x) ((x) << S_DENSITY)
291*d39a76e7Sxw161283 #define G_DENSITY(x) (((x) >> S_DENSITY) & M_DENSITY)
292*d39a76e7Sxw161283 
293*d39a76e7Sxw161283 #define S_ORGANIZATION    26
294*d39a76e7Sxw161283 #define V_ORGANIZATION(x) ((x) << S_ORGANIZATION)
295*d39a76e7Sxw161283 #define F_ORGANIZATION    V_ORGANIZATION(1U)
296*d39a76e7Sxw161283 
297*d39a76e7Sxw161283 #define S_BANKS    27
298*d39a76e7Sxw161283 #define V_BANKS(x) ((x) << S_BANKS)
299*d39a76e7Sxw161283 #define F_BANKS    V_BANKS(1U)
300*d39a76e7Sxw161283 
301*d39a76e7Sxw161283 #define S_UNREGISTERED    28
302*d39a76e7Sxw161283 #define V_UNREGISTERED(x) ((x) << S_UNREGISTERED)
303*d39a76e7Sxw161283 #define F_UNREGISTERED    V_UNREGISTERED(1U)
304*d39a76e7Sxw161283 
305*d39a76e7Sxw161283 #define S_MC3_WIDTH    29
306*d39a76e7Sxw161283 #define M_MC3_WIDTH    0x3
307*d39a76e7Sxw161283 #define V_MC3_WIDTH(x) ((x) << S_MC3_WIDTH)
308*d39a76e7Sxw161283 #define G_MC3_WIDTH(x) (((x) >> S_MC3_WIDTH) & M_MC3_WIDTH)
309*d39a76e7Sxw161283 
310*d39a76e7Sxw161283 #define S_MC3_SLOW    31
311*d39a76e7Sxw161283 #define V_MC3_SLOW(x) ((x) << S_MC3_SLOW)
312*d39a76e7Sxw161283 #define F_MC3_SLOW    V_MC3_SLOW(1U)
313*d39a76e7Sxw161283 
314*d39a76e7Sxw161283 #define A_MC3_MODE 0x104
315*d39a76e7Sxw161283 
316*d39a76e7Sxw161283 #define S_MC3_MODE    0
317*d39a76e7Sxw161283 #define M_MC3_MODE    0x3fff
318*d39a76e7Sxw161283 #define V_MC3_MODE(x) ((x) << S_MC3_MODE)
319*d39a76e7Sxw161283 #define G_MC3_MODE(x) (((x) >> S_MC3_MODE) & M_MC3_MODE)
320*d39a76e7Sxw161283 
321*d39a76e7Sxw161283 #define S_BUSY    31
322*d39a76e7Sxw161283 #define V_BUSY(x) ((x) << S_BUSY)
323*d39a76e7Sxw161283 #define F_BUSY    V_BUSY(1U)
324*d39a76e7Sxw161283 
325*d39a76e7Sxw161283 #define A_MC3_EXT_MODE 0x108
326*d39a76e7Sxw161283 
327*d39a76e7Sxw161283 #define S_MC3_EXTENDED_MODE    0
328*d39a76e7Sxw161283 #define M_MC3_EXTENDED_MODE    0x3fff
329*d39a76e7Sxw161283 #define V_MC3_EXTENDED_MODE(x) ((x) << S_MC3_EXTENDED_MODE)
330*d39a76e7Sxw161283 #define G_MC3_EXTENDED_MODE(x) (((x) >> S_MC3_EXTENDED_MODE) & M_MC3_EXTENDED_MODE)
331*d39a76e7Sxw161283 
332*d39a76e7Sxw161283 #define A_MC3_PRECHARG 0x10c
333*d39a76e7Sxw161283 #define A_MC3_REFRESH 0x110
334*d39a76e7Sxw161283 
335*d39a76e7Sxw161283 #define S_REFRESH_ENABLE    0
336*d39a76e7Sxw161283 #define V_REFRESH_ENABLE(x) ((x) << S_REFRESH_ENABLE)
337*d39a76e7Sxw161283 #define F_REFRESH_ENABLE    V_REFRESH_ENABLE(1U)
338*d39a76e7Sxw161283 
339*d39a76e7Sxw161283 #define S_REFRESH_DIVISOR    1
340*d39a76e7Sxw161283 #define M_REFRESH_DIVISOR    0x3fff
341*d39a76e7Sxw161283 #define V_REFRESH_DIVISOR(x) ((x) << S_REFRESH_DIVISOR)
342*d39a76e7Sxw161283 #define G_REFRESH_DIVISOR(x) (((x) >> S_REFRESH_DIVISOR) & M_REFRESH_DIVISOR)
343*d39a76e7Sxw161283 
344*d39a76e7Sxw161283 #define A_MC3_STROBE 0x114
345*d39a76e7Sxw161283 
346*d39a76e7Sxw161283 #define S_MASTER_DLL_RESET    0
347*d39a76e7Sxw161283 #define V_MASTER_DLL_RESET(x) ((x) << S_MASTER_DLL_RESET)
348*d39a76e7Sxw161283 #define F_MASTER_DLL_RESET    V_MASTER_DLL_RESET(1U)
349*d39a76e7Sxw161283 
350*d39a76e7Sxw161283 #define S_MASTER_DLL_TAP_COUNT    1
351*d39a76e7Sxw161283 #define M_MASTER_DLL_TAP_COUNT    0xff
352*d39a76e7Sxw161283 #define V_MASTER_DLL_TAP_COUNT(x) ((x) << S_MASTER_DLL_TAP_COUNT)
353*d39a76e7Sxw161283 #define G_MASTER_DLL_TAP_COUNT(x) (((x) >> S_MASTER_DLL_TAP_COUNT) & M_MASTER_DLL_TAP_COUNT)
354*d39a76e7Sxw161283 
355*d39a76e7Sxw161283 #define S_MASTER_DLL_LOCKED    9
356*d39a76e7Sxw161283 #define V_MASTER_DLL_LOCKED(x) ((x) << S_MASTER_DLL_LOCKED)
357*d39a76e7Sxw161283 #define F_MASTER_DLL_LOCKED    V_MASTER_DLL_LOCKED(1U)
358*d39a76e7Sxw161283 
359*d39a76e7Sxw161283 #define S_MASTER_DLL_MAX_TAP_COUNT    10
360*d39a76e7Sxw161283 #define V_MASTER_DLL_MAX_TAP_COUNT(x) ((x) << S_MASTER_DLL_MAX_TAP_COUNT)
361*d39a76e7Sxw161283 #define F_MASTER_DLL_MAX_TAP_COUNT    V_MASTER_DLL_MAX_TAP_COUNT(1U)
362*d39a76e7Sxw161283 
363*d39a76e7Sxw161283 #define S_MASTER_DLL_TAP_COUNT_OFFSET    11
364*d39a76e7Sxw161283 #define M_MASTER_DLL_TAP_COUNT_OFFSET    0x3f
365*d39a76e7Sxw161283 #define V_MASTER_DLL_TAP_COUNT_OFFSET(x) ((x) << S_MASTER_DLL_TAP_COUNT_OFFSET)
366*d39a76e7Sxw161283 #define G_MASTER_DLL_TAP_COUNT_OFFSET(x) (((x) >> S_MASTER_DLL_TAP_COUNT_OFFSET) & M_MASTER_DLL_TAP_COUNT_OFFSET)
367*d39a76e7Sxw161283 
368*d39a76e7Sxw161283 #define S_SLAVE_DLL_RESET    11
369*d39a76e7Sxw161283 #define V_SLAVE_DLL_RESET(x) ((x) << S_SLAVE_DLL_RESET)
370*d39a76e7Sxw161283 #define F_SLAVE_DLL_RESET    V_SLAVE_DLL_RESET(1U)
371*d39a76e7Sxw161283 
372*d39a76e7Sxw161283 #define S_SLAVE_DLL_DELTA    12
373*d39a76e7Sxw161283 #define M_SLAVE_DLL_DELTA    0xf
374*d39a76e7Sxw161283 #define V_SLAVE_DLL_DELTA(x) ((x) << S_SLAVE_DLL_DELTA)
375*d39a76e7Sxw161283 #define G_SLAVE_DLL_DELTA(x) (((x) >> S_SLAVE_DLL_DELTA) & M_SLAVE_DLL_DELTA)
376*d39a76e7Sxw161283 
377*d39a76e7Sxw161283 #define S_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT    17
378*d39a76e7Sxw161283 #define M_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT    0x3f
379*d39a76e7Sxw161283 #define V_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT(x) ((x) << S_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT)
380*d39a76e7Sxw161283 #define G_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT(x) (((x) >> S_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT) & M_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT)
381*d39a76e7Sxw161283 
382*d39a76e7Sxw161283 #define S_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT_ENABLE    23
383*d39a76e7Sxw161283 #define V_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT_ENABLE(x) ((x) << S_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT_ENABLE)
384*d39a76e7Sxw161283 #define F_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT_ENABLE    V_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT_ENABLE(1U)
385*d39a76e7Sxw161283 
386*d39a76e7Sxw161283 #define S_SLAVE_DELAY_LINE_TAP_COUNT    24
387*d39a76e7Sxw161283 #define M_SLAVE_DELAY_LINE_TAP_COUNT    0x3f
388*d39a76e7Sxw161283 #define V_SLAVE_DELAY_LINE_TAP_COUNT(x) ((x) << S_SLAVE_DELAY_LINE_TAP_COUNT)
389*d39a76e7Sxw161283 #define G_SLAVE_DELAY_LINE_TAP_COUNT(x) (((x) >> S_SLAVE_DELAY_LINE_TAP_COUNT) & M_SLAVE_DELAY_LINE_TAP_COUNT)
390*d39a76e7Sxw161283 
391*d39a76e7Sxw161283 #define A_MC3_ECC_CNTL 0x118
392*d39a76e7Sxw161283 
393*d39a76e7Sxw161283 #define S_ECC_GENERATION_ENABLE    0
394*d39a76e7Sxw161283 #define V_ECC_GENERATION_ENABLE(x) ((x) << S_ECC_GENERATION_ENABLE)
395*d39a76e7Sxw161283 #define F_ECC_GENERATION_ENABLE    V_ECC_GENERATION_ENABLE(1U)
396*d39a76e7Sxw161283 
397*d39a76e7Sxw161283 #define S_ECC_CHECK_ENABLE    1
398*d39a76e7Sxw161283 #define V_ECC_CHECK_ENABLE(x) ((x) << S_ECC_CHECK_ENABLE)
399*d39a76e7Sxw161283 #define F_ECC_CHECK_ENABLE    V_ECC_CHECK_ENABLE(1U)
400*d39a76e7Sxw161283 
401*d39a76e7Sxw161283 #define S_CORRECTABLE_ERROR_COUNT    2
402*d39a76e7Sxw161283 #define M_CORRECTABLE_ERROR_COUNT    0xff
403*d39a76e7Sxw161283 #define V_CORRECTABLE_ERROR_COUNT(x) ((x) << S_CORRECTABLE_ERROR_COUNT)
404*d39a76e7Sxw161283 #define G_CORRECTABLE_ERROR_COUNT(x) (((x) >> S_CORRECTABLE_ERROR_COUNT) & M_CORRECTABLE_ERROR_COUNT)
405*d39a76e7Sxw161283 
406*d39a76e7Sxw161283 #define S_UNCORRECTABLE_ERROR_COUNT    10
407*d39a76e7Sxw161283 #define M_UNCORRECTABLE_ERROR_COUNT    0xff
408*d39a76e7Sxw161283 #define V_UNCORRECTABLE_ERROR_COUNT(x) ((x) << S_UNCORRECTABLE_ERROR_COUNT)
409*d39a76e7Sxw161283 #define G_UNCORRECTABLE_ERROR_COUNT(x) (((x) >> S_UNCORRECTABLE_ERROR_COUNT) & M_UNCORRECTABLE_ERROR_COUNT)
410*d39a76e7Sxw161283 
411*d39a76e7Sxw161283 #define A_MC3_CE_ADDR 0x11c
412*d39a76e7Sxw161283 
413*d39a76e7Sxw161283 #define S_MC3_CE_ADDR    4
414*d39a76e7Sxw161283 #define M_MC3_CE_ADDR    0xfffffff
415*d39a76e7Sxw161283 #define V_MC3_CE_ADDR(x) ((x) << S_MC3_CE_ADDR)
416*d39a76e7Sxw161283 #define G_MC3_CE_ADDR(x) (((x) >> S_MC3_CE_ADDR) & M_MC3_CE_ADDR)
417*d39a76e7Sxw161283 
418*d39a76e7Sxw161283 #define A_MC3_CE_DATA0 0x120
419*d39a76e7Sxw161283 #define A_MC3_CE_DATA1 0x124
420*d39a76e7Sxw161283 #define A_MC3_CE_DATA2 0x128
421*d39a76e7Sxw161283 #define A_MC3_CE_DATA3 0x12c
422*d39a76e7Sxw161283 #define A_MC3_CE_DATA4 0x130
423*d39a76e7Sxw161283 #define A_MC3_UE_ADDR 0x134
424*d39a76e7Sxw161283 
425*d39a76e7Sxw161283 #define S_MC3_UE_ADDR    4
426*d39a76e7Sxw161283 #define M_MC3_UE_ADDR    0xfffffff
427*d39a76e7Sxw161283 #define V_MC3_UE_ADDR(x) ((x) << S_MC3_UE_ADDR)
428*d39a76e7Sxw161283 #define G_MC3_UE_ADDR(x) (((x) >> S_MC3_UE_ADDR) & M_MC3_UE_ADDR)
429*d39a76e7Sxw161283 
430*d39a76e7Sxw161283 #define A_MC3_UE_DATA0 0x138
431*d39a76e7Sxw161283 #define A_MC3_UE_DATA1 0x13c
432*d39a76e7Sxw161283 #define A_MC3_UE_DATA2 0x140
433*d39a76e7Sxw161283 #define A_MC3_UE_DATA3 0x144
434*d39a76e7Sxw161283 #define A_MC3_UE_DATA4 0x148
435*d39a76e7Sxw161283 #define A_MC3_BD_ADDR 0x14c
436*d39a76e7Sxw161283 #define A_MC3_BD_DATA0 0x150
437*d39a76e7Sxw161283 #define A_MC3_BD_DATA1 0x154
438*d39a76e7Sxw161283 #define A_MC3_BD_DATA2 0x158
439*d39a76e7Sxw161283 #define A_MC3_BD_DATA3 0x15c
440*d39a76e7Sxw161283 #define A_MC3_BD_DATA4 0x160
441*d39a76e7Sxw161283 #define A_MC3_BD_OP 0x164
442*d39a76e7Sxw161283 
443*d39a76e7Sxw161283 #define S_BACK_DOOR_OPERATION    0
444*d39a76e7Sxw161283 #define V_BACK_DOOR_OPERATION(x) ((x) << S_BACK_DOOR_OPERATION)
445*d39a76e7Sxw161283 #define F_BACK_DOOR_OPERATION    V_BACK_DOOR_OPERATION(1U)
446*d39a76e7Sxw161283 
447*d39a76e7Sxw161283 #define A_MC3_BIST_ADDR_BEG 0x168
448*d39a76e7Sxw161283 #define A_MC3_BIST_ADDR_END 0x16c
449*d39a76e7Sxw161283 #define A_MC3_BIST_DATA 0x170
450*d39a76e7Sxw161283 #define A_MC3_BIST_OP 0x174
451*d39a76e7Sxw161283 
452*d39a76e7Sxw161283 #define S_OP    0
453*d39a76e7Sxw161283 #define V_OP(x) ((x) << S_OP)
454*d39a76e7Sxw161283 #define F_OP    V_OP(1U)
455*d39a76e7Sxw161283 
456*d39a76e7Sxw161283 #define S_DATA_PATTERN    1
457*d39a76e7Sxw161283 #define M_DATA_PATTERN    0x3
458*d39a76e7Sxw161283 #define V_DATA_PATTERN(x) ((x) << S_DATA_PATTERN)
459*d39a76e7Sxw161283 #define G_DATA_PATTERN(x) (((x) >> S_DATA_PATTERN) & M_DATA_PATTERN)
460*d39a76e7Sxw161283 
461*d39a76e7Sxw161283 #define S_CONTINUOUS    3
462*d39a76e7Sxw161283 #define V_CONTINUOUS(x) ((x) << S_CONTINUOUS)
463*d39a76e7Sxw161283 #define F_CONTINUOUS    V_CONTINUOUS(1U)
464*d39a76e7Sxw161283 
465*d39a76e7Sxw161283 #define A_MC3_INT_ENABLE 0x178
466*d39a76e7Sxw161283 
467*d39a76e7Sxw161283 #define S_MC3_CORR_ERR    0
468*d39a76e7Sxw161283 #define V_MC3_CORR_ERR(x) ((x) << S_MC3_CORR_ERR)
469*d39a76e7Sxw161283 #define F_MC3_CORR_ERR    V_MC3_CORR_ERR(1U)
470*d39a76e7Sxw161283 
471*d39a76e7Sxw161283 #define S_MC3_UNCORR_ERR    1
472*d39a76e7Sxw161283 #define V_MC3_UNCORR_ERR(x) ((x) << S_MC3_UNCORR_ERR)
473*d39a76e7Sxw161283 #define F_MC3_UNCORR_ERR    V_MC3_UNCORR_ERR(1U)
474*d39a76e7Sxw161283 
475*d39a76e7Sxw161283 #define S_MC3_PARITY_ERR    2
476*d39a76e7Sxw161283 #define M_MC3_PARITY_ERR    0xff
477*d39a76e7Sxw161283 #define V_MC3_PARITY_ERR(x) ((x) << S_MC3_PARITY_ERR)
478*d39a76e7Sxw161283 #define G_MC3_PARITY_ERR(x) (((x) >> S_MC3_PARITY_ERR) & M_MC3_PARITY_ERR)
479*d39a76e7Sxw161283 
480*d39a76e7Sxw161283 #define S_MC3_ADDR_ERR    10
481*d39a76e7Sxw161283 #define V_MC3_ADDR_ERR(x) ((x) << S_MC3_ADDR_ERR)
482*d39a76e7Sxw161283 #define F_MC3_ADDR_ERR    V_MC3_ADDR_ERR(1U)
483*d39a76e7Sxw161283 
484*d39a76e7Sxw161283 #define A_MC3_INT_CAUSE 0x17c
485*d39a76e7Sxw161283 
486*d39a76e7Sxw161283 /* MC4 registers */
487*d39a76e7Sxw161283 #define A_MC4_CFG 0x180
488*d39a76e7Sxw161283 
489*d39a76e7Sxw161283 #define S_POWER_UP    0
490*d39a76e7Sxw161283 #define V_POWER_UP(x) ((x) << S_POWER_UP)
491*d39a76e7Sxw161283 #define F_POWER_UP    V_POWER_UP(1U)
492*d39a76e7Sxw161283 
493*d39a76e7Sxw161283 #define S_MC4_BANK_CYCLE    8
494*d39a76e7Sxw161283 #define M_MC4_BANK_CYCLE    0x7
495*d39a76e7Sxw161283 #define V_MC4_BANK_CYCLE(x) ((x) << S_MC4_BANK_CYCLE)
496*d39a76e7Sxw161283 #define G_MC4_BANK_CYCLE(x) (((x) >> S_MC4_BANK_CYCLE) & M_MC4_BANK_CYCLE)
497*d39a76e7Sxw161283 
498*d39a76e7Sxw161283 #define S_MC4_NARROW    24
499*d39a76e7Sxw161283 #define V_MC4_NARROW(x) ((x) << S_MC4_NARROW)
500*d39a76e7Sxw161283 #define F_MC4_NARROW    V_MC4_NARROW(1U)
501*d39a76e7Sxw161283 
502*d39a76e7Sxw161283 #define S_MC4_SLOW    25
503*d39a76e7Sxw161283 #define V_MC4_SLOW(x) ((x) << S_MC4_SLOW)
504*d39a76e7Sxw161283 #define F_MC4_SLOW    V_MC4_SLOW(1U)
505*d39a76e7Sxw161283 
506*d39a76e7Sxw161283 #define S_MC4A_WIDTH    24
507*d39a76e7Sxw161283 #define M_MC4A_WIDTH    0x3
508*d39a76e7Sxw161283 #define V_MC4A_WIDTH(x) ((x) << S_MC4A_WIDTH)
509*d39a76e7Sxw161283 #define G_MC4A_WIDTH(x) (((x) >> S_MC4A_WIDTH) & M_MC4A_WIDTH)
510*d39a76e7Sxw161283 
511*d39a76e7Sxw161283 #define S_MC4A_SLOW    26
512*d39a76e7Sxw161283 #define V_MC4A_SLOW(x) ((x) << S_MC4A_SLOW)
513*d39a76e7Sxw161283 #define F_MC4A_SLOW    V_MC4A_SLOW(1U)
514*d39a76e7Sxw161283 
515*d39a76e7Sxw161283 #define A_MC4_MODE 0x184
516*d39a76e7Sxw161283 
517*d39a76e7Sxw161283 #define S_MC4_MODE    0
518*d39a76e7Sxw161283 #define M_MC4_MODE    0x7fff
519*d39a76e7Sxw161283 #define V_MC4_MODE(x) ((x) << S_MC4_MODE)
520*d39a76e7Sxw161283 #define G_MC4_MODE(x) (((x) >> S_MC4_MODE) & M_MC4_MODE)
521*d39a76e7Sxw161283 
522*d39a76e7Sxw161283 #define A_MC4_EXT_MODE 0x188
523*d39a76e7Sxw161283 
524*d39a76e7Sxw161283 #define S_MC4_EXTENDED_MODE    0
525*d39a76e7Sxw161283 #define M_MC4_EXTENDED_MODE    0x7fff
526*d39a76e7Sxw161283 #define V_MC4_EXTENDED_MODE(x) ((x) << S_MC4_EXTENDED_MODE)
527*d39a76e7Sxw161283 #define G_MC4_EXTENDED_MODE(x) (((x) >> S_MC4_EXTENDED_MODE) & M_MC4_EXTENDED_MODE)
528*d39a76e7Sxw161283 
529*d39a76e7Sxw161283 #define A_MC4_REFRESH 0x190
530*d39a76e7Sxw161283 #define A_MC4_STROBE 0x194
531*d39a76e7Sxw161283 #define A_MC4_ECC_CNTL 0x198
532*d39a76e7Sxw161283 #define A_MC4_CE_ADDR 0x19c
533*d39a76e7Sxw161283 
534*d39a76e7Sxw161283 #define S_MC4_CE_ADDR    4
535*d39a76e7Sxw161283 #define M_MC4_CE_ADDR    0xffffff
536*d39a76e7Sxw161283 #define V_MC4_CE_ADDR(x) ((x) << S_MC4_CE_ADDR)
537*d39a76e7Sxw161283 #define G_MC4_CE_ADDR(x) (((x) >> S_MC4_CE_ADDR) & M_MC4_CE_ADDR)
538*d39a76e7Sxw161283 
539*d39a76e7Sxw161283 #define A_MC4_CE_DATA0 0x1a0
540*d39a76e7Sxw161283 #define A_MC4_CE_DATA1 0x1a4
541*d39a76e7Sxw161283 #define A_MC4_CE_DATA2 0x1a8
542*d39a76e7Sxw161283 #define A_MC4_CE_DATA3 0x1ac
543*d39a76e7Sxw161283 #define A_MC4_CE_DATA4 0x1b0
544*d39a76e7Sxw161283 #define A_MC4_UE_ADDR 0x1b4
545*d39a76e7Sxw161283 
546*d39a76e7Sxw161283 #define S_MC4_UE_ADDR    4
547*d39a76e7Sxw161283 #define M_MC4_UE_ADDR    0xffffff
548*d39a76e7Sxw161283 #define V_MC4_UE_ADDR(x) ((x) << S_MC4_UE_ADDR)
549*d39a76e7Sxw161283 #define G_MC4_UE_ADDR(x) (((x) >> S_MC4_UE_ADDR) & M_MC4_UE_ADDR)
550*d39a76e7Sxw161283 
551*d39a76e7Sxw161283 #define A_MC4_UE_DATA0 0x1b8
552*d39a76e7Sxw161283 #define A_MC4_UE_DATA1 0x1bc
553*d39a76e7Sxw161283 #define A_MC4_UE_DATA2 0x1c0
554*d39a76e7Sxw161283 #define A_MC4_UE_DATA3 0x1c4
555*d39a76e7Sxw161283 #define A_MC4_UE_DATA4 0x1c8
556*d39a76e7Sxw161283 #define A_MC4_BD_ADDR 0x1cc
557*d39a76e7Sxw161283 
558*d39a76e7Sxw161283 #define S_MC4_BACK_DOOR_ADDR    0
559*d39a76e7Sxw161283 #define M_MC4_BACK_DOOR_ADDR    0xfffffff
560*d39a76e7Sxw161283 #define V_MC4_BACK_DOOR_ADDR(x) ((x) << S_MC4_BACK_DOOR_ADDR)
561*d39a76e7Sxw161283 #define G_MC4_BACK_DOOR_ADDR(x) (((x) >> S_MC4_BACK_DOOR_ADDR) & M_MC4_BACK_DOOR_ADDR)
562*d39a76e7Sxw161283 
563*d39a76e7Sxw161283 #define A_MC4_BD_DATA0 0x1d0
564*d39a76e7Sxw161283 #define A_MC4_BD_DATA1 0x1d4
565*d39a76e7Sxw161283 #define A_MC4_BD_DATA2 0x1d8
566*d39a76e7Sxw161283 #define A_MC4_BD_DATA3 0x1dc
567*d39a76e7Sxw161283 #define A_MC4_BD_DATA4 0x1e0
568*d39a76e7Sxw161283 #define A_MC4_BD_OP 0x1e4
569*d39a76e7Sxw161283 
570*d39a76e7Sxw161283 #define S_OPERATION    0
571*d39a76e7Sxw161283 #define V_OPERATION(x) ((x) << S_OPERATION)
572*d39a76e7Sxw161283 #define F_OPERATION    V_OPERATION(1U)
573*d39a76e7Sxw161283 
574*d39a76e7Sxw161283 #define A_MC4_BIST_ADDR_BEG 0x1e8
575*d39a76e7Sxw161283 #define A_MC4_BIST_ADDR_END 0x1ec
576*d39a76e7Sxw161283 #define A_MC4_BIST_DATA 0x1f0
577*d39a76e7Sxw161283 #define A_MC4_BIST_OP 0x1f4
578*d39a76e7Sxw161283 #define A_MC4_INT_ENABLE 0x1f8
579*d39a76e7Sxw161283 
580*d39a76e7Sxw161283 #define S_MC4_CORR_ERR    0
581*d39a76e7Sxw161283 #define V_MC4_CORR_ERR(x) ((x) << S_MC4_CORR_ERR)
582*d39a76e7Sxw161283 #define F_MC4_CORR_ERR    V_MC4_CORR_ERR(1U)
583*d39a76e7Sxw161283 
584*d39a76e7Sxw161283 #define S_MC4_UNCORR_ERR    1
585*d39a76e7Sxw161283 #define V_MC4_UNCORR_ERR(x) ((x) << S_MC4_UNCORR_ERR)
586*d39a76e7Sxw161283 #define F_MC4_UNCORR_ERR    V_MC4_UNCORR_ERR(1U)
587*d39a76e7Sxw161283 
588*d39a76e7Sxw161283 #define S_MC4_ADDR_ERR    2
589*d39a76e7Sxw161283 #define V_MC4_ADDR_ERR(x) ((x) << S_MC4_ADDR_ERR)
590*d39a76e7Sxw161283 #define F_MC4_ADDR_ERR    V_MC4_ADDR_ERR(1U)
591*d39a76e7Sxw161283 
592*d39a76e7Sxw161283 #define A_MC4_INT_CAUSE 0x1fc
593*d39a76e7Sxw161283 
594*d39a76e7Sxw161283 /* TPI registers */
595*d39a76e7Sxw161283 #define A_TPI_ADDR 0x280
596*d39a76e7Sxw161283 
597*d39a76e7Sxw161283 #define S_TPI_ADDRESS    0
598*d39a76e7Sxw161283 #define M_TPI_ADDRESS    0xffffff
599*d39a76e7Sxw161283 #define V_TPI_ADDRESS(x) ((x) << S_TPI_ADDRESS)
600*d39a76e7Sxw161283 #define G_TPI_ADDRESS(x) (((x) >> S_TPI_ADDRESS) & M_TPI_ADDRESS)
601*d39a76e7Sxw161283 
602*d39a76e7Sxw161283 #define A_TPI_WR_DATA 0x284
603*d39a76e7Sxw161283 #define A_TPI_RD_DATA 0x288
604*d39a76e7Sxw161283 #define A_TPI_CSR 0x28c
605*d39a76e7Sxw161283 
606*d39a76e7Sxw161283 #define S_TPIWR    0
607*d39a76e7Sxw161283 #define V_TPIWR(x) ((x) << S_TPIWR)
608*d39a76e7Sxw161283 #define F_TPIWR    V_TPIWR(1U)
609*d39a76e7Sxw161283 
610*d39a76e7Sxw161283 #define S_TPIRDY    1
611*d39a76e7Sxw161283 #define V_TPIRDY(x) ((x) << S_TPIRDY)
612*d39a76e7Sxw161283 #define F_TPIRDY    V_TPIRDY(1U)
613*d39a76e7Sxw161283 
614*d39a76e7Sxw161283 #define S_INT_DIR    31
615*d39a76e7Sxw161283 #define V_INT_DIR(x) ((x) << S_INT_DIR)
616*d39a76e7Sxw161283 #define F_INT_DIR    V_INT_DIR(1U)
617*d39a76e7Sxw161283 
618*d39a76e7Sxw161283 #define A_TPI_PAR 0x29c
619*d39a76e7Sxw161283 
620*d39a76e7Sxw161283 #define S_TPIPAR    0
621*d39a76e7Sxw161283 #define M_TPIPAR    0x7f
622*d39a76e7Sxw161283 #define V_TPIPAR(x) ((x) << S_TPIPAR)
623*d39a76e7Sxw161283 #define G_TPIPAR(x) (((x) >> S_TPIPAR) & M_TPIPAR)
624*d39a76e7Sxw161283 
625*d39a76e7Sxw161283 
626*d39a76e7Sxw161283 /* TP registers */
627*d39a76e7Sxw161283 #define A_TP_IN_CONFIG 0x300
628*d39a76e7Sxw161283 
629*d39a76e7Sxw161283 #define S_TP_IN_CSPI_TUNNEL    0
630*d39a76e7Sxw161283 #define V_TP_IN_CSPI_TUNNEL(x) ((x) << S_TP_IN_CSPI_TUNNEL)
631*d39a76e7Sxw161283 #define F_TP_IN_CSPI_TUNNEL    V_TP_IN_CSPI_TUNNEL(1U)
632*d39a76e7Sxw161283 
633*d39a76e7Sxw161283 #define S_TP_IN_CSPI_ETHERNET    1
634*d39a76e7Sxw161283 #define V_TP_IN_CSPI_ETHERNET(x) ((x) << S_TP_IN_CSPI_ETHERNET)
635*d39a76e7Sxw161283 #define F_TP_IN_CSPI_ETHERNET    V_TP_IN_CSPI_ETHERNET(1U)
636*d39a76e7Sxw161283 
637*d39a76e7Sxw161283 #define S_TP_IN_CSPI_CPL    3
638*d39a76e7Sxw161283 #define V_TP_IN_CSPI_CPL(x) ((x) << S_TP_IN_CSPI_CPL)
639*d39a76e7Sxw161283 #define F_TP_IN_CSPI_CPL    V_TP_IN_CSPI_CPL(1U)
640*d39a76e7Sxw161283 
641*d39a76e7Sxw161283 #define S_TP_IN_CSPI_POS    4
642*d39a76e7Sxw161283 #define V_TP_IN_CSPI_POS(x) ((x) << S_TP_IN_CSPI_POS)
643*d39a76e7Sxw161283 #define F_TP_IN_CSPI_POS    V_TP_IN_CSPI_POS(1U)
644*d39a76e7Sxw161283 
645*d39a76e7Sxw161283 #define S_TP_IN_CSPI_CHECK_IP_CSUM    5
646*d39a76e7Sxw161283 #define V_TP_IN_CSPI_CHECK_IP_CSUM(x) ((x) << S_TP_IN_CSPI_CHECK_IP_CSUM)
647*d39a76e7Sxw161283 #define F_TP_IN_CSPI_CHECK_IP_CSUM    V_TP_IN_CSPI_CHECK_IP_CSUM(1U)
648*d39a76e7Sxw161283 
649*d39a76e7Sxw161283 #define S_TP_IN_CSPI_CHECK_TCP_CSUM    6
650*d39a76e7Sxw161283 #define V_TP_IN_CSPI_CHECK_TCP_CSUM(x) ((x) << S_TP_IN_CSPI_CHECK_TCP_CSUM)
651*d39a76e7Sxw161283 #define F_TP_IN_CSPI_CHECK_TCP_CSUM    V_TP_IN_CSPI_CHECK_TCP_CSUM(1U)
652*d39a76e7Sxw161283 
653*d39a76e7Sxw161283 #define S_TP_IN_ESPI_TUNNEL    7
654*d39a76e7Sxw161283 #define V_TP_IN_ESPI_TUNNEL(x) ((x) << S_TP_IN_ESPI_TUNNEL)
655*d39a76e7Sxw161283 #define F_TP_IN_ESPI_TUNNEL    V_TP_IN_ESPI_TUNNEL(1U)
656*d39a76e7Sxw161283 
657*d39a76e7Sxw161283 #define S_TP_IN_ESPI_ETHERNET    8
658*d39a76e7Sxw161283 #define V_TP_IN_ESPI_ETHERNET(x) ((x) << S_TP_IN_ESPI_ETHERNET)
659*d39a76e7Sxw161283 #define F_TP_IN_ESPI_ETHERNET    V_TP_IN_ESPI_ETHERNET(1U)
660*d39a76e7Sxw161283 
661*d39a76e7Sxw161283 #define S_TP_IN_ESPI_CPL    10
662*d39a76e7Sxw161283 #define V_TP_IN_ESPI_CPL(x) ((x) << S_TP_IN_ESPI_CPL)
663*d39a76e7Sxw161283 #define F_TP_IN_ESPI_CPL    V_TP_IN_ESPI_CPL(1U)
664*d39a76e7Sxw161283 
665*d39a76e7Sxw161283 #define S_TP_IN_ESPI_POS    11
666*d39a76e7Sxw161283 #define V_TP_IN_ESPI_POS(x) ((x) << S_TP_IN_ESPI_POS)
667*d39a76e7Sxw161283 #define F_TP_IN_ESPI_POS    V_TP_IN_ESPI_POS(1U)
668*d39a76e7Sxw161283 
669*d39a76e7Sxw161283 #define S_TP_IN_ESPI_CHECK_IP_CSUM    12
670*d39a76e7Sxw161283 #define V_TP_IN_ESPI_CHECK_IP_CSUM(x) ((x) << S_TP_IN_ESPI_CHECK_IP_CSUM)
671*d39a76e7Sxw161283 #define F_TP_IN_ESPI_CHECK_IP_CSUM    V_TP_IN_ESPI_CHECK_IP_CSUM(1U)
672*d39a76e7Sxw161283 
673*d39a76e7Sxw161283 #define S_TP_IN_ESPI_CHECK_TCP_CSUM    13
674*d39a76e7Sxw161283 #define V_TP_IN_ESPI_CHECK_TCP_CSUM(x) ((x) << S_TP_IN_ESPI_CHECK_TCP_CSUM)
675*d39a76e7Sxw161283 #define F_TP_IN_ESPI_CHECK_TCP_CSUM    V_TP_IN_ESPI_CHECK_TCP_CSUM(1U)
676*d39a76e7Sxw161283 
677*d39a76e7Sxw161283 #define S_OFFLOAD_DISABLE    14
678*d39a76e7Sxw161283 #define V_OFFLOAD_DISABLE(x) ((x) << S_OFFLOAD_DISABLE)
679*d39a76e7Sxw161283 #define F_OFFLOAD_DISABLE    V_OFFLOAD_DISABLE(1U)
680*d39a76e7Sxw161283 
681*d39a76e7Sxw161283 #define A_TP_OUT_CONFIG 0x304
682*d39a76e7Sxw161283 
683*d39a76e7Sxw161283 #define S_TP_OUT_C_ETH    0
684*d39a76e7Sxw161283 #define V_TP_OUT_C_ETH(x) ((x) << S_TP_OUT_C_ETH)
685*d39a76e7Sxw161283 #define F_TP_OUT_C_ETH    V_TP_OUT_C_ETH(1U)
686*d39a76e7Sxw161283 
687*d39a76e7Sxw161283 #define S_TP_OUT_CSPI_CPL    2
688*d39a76e7Sxw161283 #define V_TP_OUT_CSPI_CPL(x) ((x) << S_TP_OUT_CSPI_CPL)
689*d39a76e7Sxw161283 #define F_TP_OUT_CSPI_CPL    V_TP_OUT_CSPI_CPL(1U)
690*d39a76e7Sxw161283 
691*d39a76e7Sxw161283 #define S_TP_OUT_CSPI_POS    3
692*d39a76e7Sxw161283 #define V_TP_OUT_CSPI_POS(x) ((x) << S_TP_OUT_CSPI_POS)
693*d39a76e7Sxw161283 #define F_TP_OUT_CSPI_POS    V_TP_OUT_CSPI_POS(1U)
694*d39a76e7Sxw161283 
695*d39a76e7Sxw161283 #define S_TP_OUT_CSPI_GENERATE_IP_CSUM    4
696*d39a76e7Sxw161283 #define V_TP_OUT_CSPI_GENERATE_IP_CSUM(x) ((x) << S_TP_OUT_CSPI_GENERATE_IP_CSUM)
697*d39a76e7Sxw161283 #define F_TP_OUT_CSPI_GENERATE_IP_CSUM    V_TP_OUT_CSPI_GENERATE_IP_CSUM(1U)
698*d39a76e7Sxw161283 
699*d39a76e7Sxw161283 #define S_TP_OUT_CSPI_GENERATE_TCP_CSUM    5
700*d39a76e7Sxw161283 #define V_TP_OUT_CSPI_GENERATE_TCP_CSUM(x) ((x) << S_TP_OUT_CSPI_GENERATE_TCP_CSUM)
701*d39a76e7Sxw161283 #define F_TP_OUT_CSPI_GENERATE_TCP_CSUM    V_TP_OUT_CSPI_GENERATE_TCP_CSUM(1U)
702*d39a76e7Sxw161283 
703*d39a76e7Sxw161283 #define S_TP_OUT_ESPI_ETHERNET    6
704*d39a76e7Sxw161283 #define V_TP_OUT_ESPI_ETHERNET(x) ((x) << S_TP_OUT_ESPI_ETHERNET)
705*d39a76e7Sxw161283 #define F_TP_OUT_ESPI_ETHERNET    V_TP_OUT_ESPI_ETHERNET(1U)
706*d39a76e7Sxw161283 
707*d39a76e7Sxw161283 #define S_TP_OUT_ESPI_TAG_ETHERNET    7
708*d39a76e7Sxw161283 #define V_TP_OUT_ESPI_TAG_ETHERNET(x) ((x) << S_TP_OUT_ESPI_TAG_ETHERNET)
709*d39a76e7Sxw161283 #define F_TP_OUT_ESPI_TAG_ETHERNET    V_TP_OUT_ESPI_TAG_ETHERNET(1U)
710*d39a76e7Sxw161283 
711*d39a76e7Sxw161283 #define S_TP_OUT_ESPI_CPL    8
712*d39a76e7Sxw161283 #define V_TP_OUT_ESPI_CPL(x) ((x) << S_TP_OUT_ESPI_CPL)
713*d39a76e7Sxw161283 #define F_TP_OUT_ESPI_CPL    V_TP_OUT_ESPI_CPL(1U)
714*d39a76e7Sxw161283 
715*d39a76e7Sxw161283 #define S_TP_OUT_ESPI_POS    9
716*d39a76e7Sxw161283 #define V_TP_OUT_ESPI_POS(x) ((x) << S_TP_OUT_ESPI_POS)
717*d39a76e7Sxw161283 #define F_TP_OUT_ESPI_POS    V_TP_OUT_ESPI_POS(1U)
718*d39a76e7Sxw161283 
719*d39a76e7Sxw161283 #define S_TP_OUT_ESPI_GENERATE_IP_CSUM    10
720*d39a76e7Sxw161283 #define V_TP_OUT_ESPI_GENERATE_IP_CSUM(x) ((x) << S_TP_OUT_ESPI_GENERATE_IP_CSUM)
721*d39a76e7Sxw161283 #define F_TP_OUT_ESPI_GENERATE_IP_CSUM    V_TP_OUT_ESPI_GENERATE_IP_CSUM(1U)
722*d39a76e7Sxw161283 
723*d39a76e7Sxw161283 #define S_TP_OUT_ESPI_GENERATE_TCP_CSUM    11
724*d39a76e7Sxw161283 #define V_TP_OUT_ESPI_GENERATE_TCP_CSUM(x) ((x) << S_TP_OUT_ESPI_GENERATE_TCP_CSUM)
725*d39a76e7Sxw161283 #define F_TP_OUT_ESPI_GENERATE_TCP_CSUM    V_TP_OUT_ESPI_GENERATE_TCP_CSUM(1U)
726*d39a76e7Sxw161283 
727*d39a76e7Sxw161283 #define A_TP_GLOBAL_CONFIG 0x308
728*d39a76e7Sxw161283 
729*d39a76e7Sxw161283 #define S_IP_TTL    0
730*d39a76e7Sxw161283 #define M_IP_TTL    0xff
731*d39a76e7Sxw161283 #define V_IP_TTL(x) ((x) << S_IP_TTL)
732*d39a76e7Sxw161283 #define G_IP_TTL(x) (((x) >> S_IP_TTL) & M_IP_TTL)
733*d39a76e7Sxw161283 
734*d39a76e7Sxw161283 #define S_TCAM_SERVER_REGION_USAGE    8
735*d39a76e7Sxw161283 #define M_TCAM_SERVER_REGION_USAGE    0x3
736*d39a76e7Sxw161283 #define V_TCAM_SERVER_REGION_USAGE(x) ((x) << S_TCAM_SERVER_REGION_USAGE)
737*d39a76e7Sxw161283 #define G_TCAM_SERVER_REGION_USAGE(x) (((x) >> S_TCAM_SERVER_REGION_USAGE) & M_TCAM_SERVER_REGION_USAGE)
738*d39a76e7Sxw161283 
739*d39a76e7Sxw161283 #define S_QOS_MAPPING    10
740*d39a76e7Sxw161283 #define V_QOS_MAPPING(x) ((x) << S_QOS_MAPPING)
741*d39a76e7Sxw161283 #define F_QOS_MAPPING    V_QOS_MAPPING(1U)
742*d39a76e7Sxw161283 
743*d39a76e7Sxw161283 #define S_TCP_CSUM    11
744*d39a76e7Sxw161283 #define V_TCP_CSUM(x) ((x) << S_TCP_CSUM)
745*d39a76e7Sxw161283 #define F_TCP_CSUM    V_TCP_CSUM(1U)
746*d39a76e7Sxw161283 
747*d39a76e7Sxw161283 #define S_UDP_CSUM    12
748*d39a76e7Sxw161283 #define V_UDP_CSUM(x) ((x) << S_UDP_CSUM)
749*d39a76e7Sxw161283 #define F_UDP_CSUM    V_UDP_CSUM(1U)
750*d39a76e7Sxw161283 
751*d39a76e7Sxw161283 #define S_IP_CSUM    13
752*d39a76e7Sxw161283 #define V_IP_CSUM(x) ((x) << S_IP_CSUM)
753*d39a76e7Sxw161283 #define F_IP_CSUM    V_IP_CSUM(1U)
754*d39a76e7Sxw161283 
755*d39a76e7Sxw161283 #define S_IP_ID_SPLIT    14
756*d39a76e7Sxw161283 #define V_IP_ID_SPLIT(x) ((x) << S_IP_ID_SPLIT)
757*d39a76e7Sxw161283 #define F_IP_ID_SPLIT    V_IP_ID_SPLIT(1U)
758*d39a76e7Sxw161283 
759*d39a76e7Sxw161283 #define S_PATH_MTU    15
760*d39a76e7Sxw161283 #define V_PATH_MTU(x) ((x) << S_PATH_MTU)
761*d39a76e7Sxw161283 #define F_PATH_MTU    V_PATH_MTU(1U)
762*d39a76e7Sxw161283 
763*d39a76e7Sxw161283 #define S_5TUPLE_LOOKUP    17
764*d39a76e7Sxw161283 #define M_5TUPLE_LOOKUP    0x3
765*d39a76e7Sxw161283 #define V_5TUPLE_LOOKUP(x) ((x) << S_5TUPLE_LOOKUP)
766*d39a76e7Sxw161283 #define G_5TUPLE_LOOKUP(x) (((x) >> S_5TUPLE_LOOKUP) & M_5TUPLE_LOOKUP)
767*d39a76e7Sxw161283 
768*d39a76e7Sxw161283 #define S_IP_FRAGMENT_DROP    19
769*d39a76e7Sxw161283 #define V_IP_FRAGMENT_DROP(x) ((x) << S_IP_FRAGMENT_DROP)
770*d39a76e7Sxw161283 #define F_IP_FRAGMENT_DROP    V_IP_FRAGMENT_DROP(1U)
771*d39a76e7Sxw161283 
772*d39a76e7Sxw161283 #define S_PING_DROP    20
773*d39a76e7Sxw161283 #define V_PING_DROP(x) ((x) << S_PING_DROP)
774*d39a76e7Sxw161283 #define F_PING_DROP    V_PING_DROP(1U)
775*d39a76e7Sxw161283 
776*d39a76e7Sxw161283 #define S_PROTECT_MODE    21
777*d39a76e7Sxw161283 #define V_PROTECT_MODE(x) ((x) << S_PROTECT_MODE)
778*d39a76e7Sxw161283 #define F_PROTECT_MODE    V_PROTECT_MODE(1U)
779*d39a76e7Sxw161283 
780*d39a76e7Sxw161283 #define S_SYN_COOKIE_ALGORITHM    22
781*d39a76e7Sxw161283 #define V_SYN_COOKIE_ALGORITHM(x) ((x) << S_SYN_COOKIE_ALGORITHM)
782*d39a76e7Sxw161283 #define F_SYN_COOKIE_ALGORITHM    V_SYN_COOKIE_ALGORITHM(1U)
783*d39a76e7Sxw161283 
784*d39a76e7Sxw161283 #define S_ATTACK_FILTER    23
785*d39a76e7Sxw161283 #define V_ATTACK_FILTER(x) ((x) << S_ATTACK_FILTER)
786*d39a76e7Sxw161283 #define F_ATTACK_FILTER    V_ATTACK_FILTER(1U)
787*d39a76e7Sxw161283 
788*d39a76e7Sxw161283 #define S_INTERFACE_TYPE    24
789*d39a76e7Sxw161283 #define V_INTERFACE_TYPE(x) ((x) << S_INTERFACE_TYPE)
790*d39a76e7Sxw161283 #define F_INTERFACE_TYPE    V_INTERFACE_TYPE(1U)
791*d39a76e7Sxw161283 
792*d39a76e7Sxw161283 #define S_DISABLE_RX_FLOW_CONTROL    25
793*d39a76e7Sxw161283 #define V_DISABLE_RX_FLOW_CONTROL(x) ((x) << S_DISABLE_RX_FLOW_CONTROL)
794*d39a76e7Sxw161283 #define F_DISABLE_RX_FLOW_CONTROL    V_DISABLE_RX_FLOW_CONTROL(1U)
795*d39a76e7Sxw161283 
796*d39a76e7Sxw161283 #define S_SYN_COOKIE_PARAMETER    26
797*d39a76e7Sxw161283 #define M_SYN_COOKIE_PARAMETER    0x3f
798*d39a76e7Sxw161283 #define V_SYN_COOKIE_PARAMETER(x) ((x) << S_SYN_COOKIE_PARAMETER)
799*d39a76e7Sxw161283 #define G_SYN_COOKIE_PARAMETER(x) (((x) >> S_SYN_COOKIE_PARAMETER) & M_SYN_COOKIE_PARAMETER)
800*d39a76e7Sxw161283 
801*d39a76e7Sxw161283 #define A_TP_GLOBAL_RX_CREDITS 0x30c
802*d39a76e7Sxw161283 #define A_TP_CM_SIZE 0x310
803*d39a76e7Sxw161283 #define A_TP_CM_MM_BASE 0x314
804*d39a76e7Sxw161283 
805*d39a76e7Sxw161283 #define S_CM_MEMMGR_BASE    0
806*d39a76e7Sxw161283 #define M_CM_MEMMGR_BASE    0xfffffff
807*d39a76e7Sxw161283 #define V_CM_MEMMGR_BASE(x) ((x) << S_CM_MEMMGR_BASE)
808*d39a76e7Sxw161283 #define G_CM_MEMMGR_BASE(x) (((x) >> S_CM_MEMMGR_BASE) & M_CM_MEMMGR_BASE)
809*d39a76e7Sxw161283 
810*d39a76e7Sxw161283 #define A_TP_CM_TIMER_BASE 0x318
811*d39a76e7Sxw161283 
812*d39a76e7Sxw161283 #define S_CM_TIMER_BASE    0
813*d39a76e7Sxw161283 #define M_CM_TIMER_BASE    0xfffffff
814*d39a76e7Sxw161283 #define V_CM_TIMER_BASE(x) ((x) << S_CM_TIMER_BASE)
815*d39a76e7Sxw161283 #define G_CM_TIMER_BASE(x) (((x) >> S_CM_TIMER_BASE) & M_CM_TIMER_BASE)
816*d39a76e7Sxw161283 
817*d39a76e7Sxw161283 #define A_TP_PM_SIZE 0x31c
818*d39a76e7Sxw161283 #define A_TP_PM_TX_BASE 0x320
819*d39a76e7Sxw161283 #define A_TP_PM_DEFRAG_BASE 0x324
820*d39a76e7Sxw161283 #define A_TP_PM_RX_BASE 0x328
821*d39a76e7Sxw161283 #define A_TP_PM_RX_PG_SIZE 0x32c
822*d39a76e7Sxw161283 #define A_TP_PM_RX_MAX_PGS 0x330
823*d39a76e7Sxw161283 #define A_TP_PM_TX_PG_SIZE 0x334
824*d39a76e7Sxw161283 #define A_TP_PM_TX_MAX_PGS 0x338
825*d39a76e7Sxw161283 #define A_TP_TCP_OPTIONS 0x340
826*d39a76e7Sxw161283 
827*d39a76e7Sxw161283 #define S_TIMESTAMP    0
828*d39a76e7Sxw161283 #define M_TIMESTAMP    0x3
829*d39a76e7Sxw161283 #define V_TIMESTAMP(x) ((x) << S_TIMESTAMP)
830*d39a76e7Sxw161283 #define G_TIMESTAMP(x) (((x) >> S_TIMESTAMP) & M_TIMESTAMP)
831*d39a76e7Sxw161283 
832*d39a76e7Sxw161283 #define S_WINDOW_SCALE    2
833*d39a76e7Sxw161283 #define M_WINDOW_SCALE    0x3
834*d39a76e7Sxw161283 #define V_WINDOW_SCALE(x) ((x) << S_WINDOW_SCALE)
835*d39a76e7Sxw161283 #define G_WINDOW_SCALE(x) (((x) >> S_WINDOW_SCALE) & M_WINDOW_SCALE)
836*d39a76e7Sxw161283 
837*d39a76e7Sxw161283 #define S_SACK    4
838*d39a76e7Sxw161283 #define M_SACK    0x3
839*d39a76e7Sxw161283 #define V_SACK(x) ((x) << S_SACK)
840*d39a76e7Sxw161283 #define G_SACK(x) (((x) >> S_SACK) & M_SACK)
841*d39a76e7Sxw161283 
842*d39a76e7Sxw161283 #define S_ECN    6
843*d39a76e7Sxw161283 #define M_ECN    0x3
844*d39a76e7Sxw161283 #define V_ECN(x) ((x) << S_ECN)
845*d39a76e7Sxw161283 #define G_ECN(x) (((x) >> S_ECN) & M_ECN)
846*d39a76e7Sxw161283 
847*d39a76e7Sxw161283 #define S_SACK_ALGORITHM    8
848*d39a76e7Sxw161283 #define M_SACK_ALGORITHM    0x3
849*d39a76e7Sxw161283 #define V_SACK_ALGORITHM(x) ((x) << S_SACK_ALGORITHM)
850*d39a76e7Sxw161283 #define G_SACK_ALGORITHM(x) (((x) >> S_SACK_ALGORITHM) & M_SACK_ALGORITHM)
851*d39a76e7Sxw161283 
852*d39a76e7Sxw161283 #define S_MSS    10
853*d39a76e7Sxw161283 #define V_MSS(x) ((x) << S_MSS)
854*d39a76e7Sxw161283 #define F_MSS    V_MSS(1U)
855*d39a76e7Sxw161283 
856*d39a76e7Sxw161283 #define S_DEFAULT_PEER_MSS    16
857*d39a76e7Sxw161283 #define M_DEFAULT_PEER_MSS    0xffff
858*d39a76e7Sxw161283 #define V_DEFAULT_PEER_MSS(x) ((x) << S_DEFAULT_PEER_MSS)
859*d39a76e7Sxw161283 #define G_DEFAULT_PEER_MSS(x) (((x) >> S_DEFAULT_PEER_MSS) & M_DEFAULT_PEER_MSS)
860*d39a76e7Sxw161283 
861*d39a76e7Sxw161283 #define A_TP_DACK_CONFIG 0x344
862*d39a76e7Sxw161283 
863*d39a76e7Sxw161283 #define S_DACK_MODE    0
864*d39a76e7Sxw161283 #define V_DACK_MODE(x) ((x) << S_DACK_MODE)
865*d39a76e7Sxw161283 #define F_DACK_MODE    V_DACK_MODE(1U)
866*d39a76e7Sxw161283 
867*d39a76e7Sxw161283 #define S_DACK_AUTO_MGMT    1
868*d39a76e7Sxw161283 #define V_DACK_AUTO_MGMT(x) ((x) << S_DACK_AUTO_MGMT)
869*d39a76e7Sxw161283 #define F_DACK_AUTO_MGMT    V_DACK_AUTO_MGMT(1U)
870*d39a76e7Sxw161283 
871*d39a76e7Sxw161283 #define S_DACK_AUTO_CAREFUL    2
872*d39a76e7Sxw161283 #define V_DACK_AUTO_CAREFUL(x) ((x) << S_DACK_AUTO_CAREFUL)
873*d39a76e7Sxw161283 #define F_DACK_AUTO_CAREFUL    V_DACK_AUTO_CAREFUL(1U)
874*d39a76e7Sxw161283 
875*d39a76e7Sxw161283 #define S_DACK_MSS_SELECTOR    3
876*d39a76e7Sxw161283 #define M_DACK_MSS_SELECTOR    0x3
877*d39a76e7Sxw161283 #define V_DACK_MSS_SELECTOR(x) ((x) << S_DACK_MSS_SELECTOR)
878*d39a76e7Sxw161283 #define G_DACK_MSS_SELECTOR(x) (((x) >> S_DACK_MSS_SELECTOR) & M_DACK_MSS_SELECTOR)
879*d39a76e7Sxw161283 
880*d39a76e7Sxw161283 #define S_DACK_BYTE_THRESHOLD    5
881*d39a76e7Sxw161283 #define M_DACK_BYTE_THRESHOLD    0xfffff
882*d39a76e7Sxw161283 #define V_DACK_BYTE_THRESHOLD(x) ((x) << S_DACK_BYTE_THRESHOLD)
883*d39a76e7Sxw161283 #define G_DACK_BYTE_THRESHOLD(x) (((x) >> S_DACK_BYTE_THRESHOLD) & M_DACK_BYTE_THRESHOLD)
884*d39a76e7Sxw161283 
885*d39a76e7Sxw161283 #define A_TP_PC_CONFIG 0x348
886*d39a76e7Sxw161283 
887*d39a76e7Sxw161283 #define S_TP_ACCESS_LATENCY    0
888*d39a76e7Sxw161283 #define M_TP_ACCESS_LATENCY    0xf
889*d39a76e7Sxw161283 #define V_TP_ACCESS_LATENCY(x) ((x) << S_TP_ACCESS_LATENCY)
890*d39a76e7Sxw161283 #define G_TP_ACCESS_LATENCY(x) (((x) >> S_TP_ACCESS_LATENCY) & M_TP_ACCESS_LATENCY)
891*d39a76e7Sxw161283 
892*d39a76e7Sxw161283 #define S_HELD_FIN_DISABLE    4
893*d39a76e7Sxw161283 #define V_HELD_FIN_DISABLE(x) ((x) << S_HELD_FIN_DISABLE)
894*d39a76e7Sxw161283 #define F_HELD_FIN_DISABLE    V_HELD_FIN_DISABLE(1U)
895*d39a76e7Sxw161283 
896*d39a76e7Sxw161283 #define S_DDP_FC_ENABLE    5
897*d39a76e7Sxw161283 #define V_DDP_FC_ENABLE(x) ((x) << S_DDP_FC_ENABLE)
898*d39a76e7Sxw161283 #define F_DDP_FC_ENABLE    V_DDP_FC_ENABLE(1U)
899*d39a76e7Sxw161283 
900*d39a76e7Sxw161283 #define S_RDMA_ERR_ENABLE    6
901*d39a76e7Sxw161283 #define V_RDMA_ERR_ENABLE(x) ((x) << S_RDMA_ERR_ENABLE)
902*d39a76e7Sxw161283 #define F_RDMA_ERR_ENABLE    V_RDMA_ERR_ENABLE(1U)
903*d39a76e7Sxw161283 
904*d39a76e7Sxw161283 #define S_FAST_PDU_DELIVERY    7
905*d39a76e7Sxw161283 #define V_FAST_PDU_DELIVERY(x) ((x) << S_FAST_PDU_DELIVERY)
906*d39a76e7Sxw161283 #define F_FAST_PDU_DELIVERY    V_FAST_PDU_DELIVERY(1U)
907*d39a76e7Sxw161283 
908*d39a76e7Sxw161283 #define S_CLEAR_FIN    8
909*d39a76e7Sxw161283 #define V_CLEAR_FIN(x) ((x) << S_CLEAR_FIN)
910*d39a76e7Sxw161283 #define F_CLEAR_FIN    V_CLEAR_FIN(1U)
911*d39a76e7Sxw161283 
912*d39a76e7Sxw161283 #define S_DIS_TX_FILL_WIN_PUSH	  12
913*d39a76e7Sxw161283 #define V_DIS_TX_FILL_WIN_PUSH(x) ((x) << S_DIS_TX_FILL_WIN_PUSH)
914*d39a76e7Sxw161283 #define F_DIS_TX_FILL_WIN_PUSH	  V_DIS_TX_FILL_WIN_PUSH(1U)
915*d39a76e7Sxw161283 
916*d39a76e7Sxw161283 #define S_TP_PC_REV    30
917*d39a76e7Sxw161283 #define M_TP_PC_REV    0x3
918*d39a76e7Sxw161283 #define V_TP_PC_REV(x) ((x) << S_TP_PC_REV)
919*d39a76e7Sxw161283 #define G_TP_PC_REV(x) (((x) >> S_TP_PC_REV) & M_TP_PC_REV)
920*d39a76e7Sxw161283 
921*d39a76e7Sxw161283 #define A_TP_BACKOFF0 0x350
922*d39a76e7Sxw161283 
923*d39a76e7Sxw161283 #define S_ELEMENT0    0
924*d39a76e7Sxw161283 #define M_ELEMENT0    0xff
925*d39a76e7Sxw161283 #define V_ELEMENT0(x) ((x) << S_ELEMENT0)
926*d39a76e7Sxw161283 #define G_ELEMENT0(x) (((x) >> S_ELEMENT0) & M_ELEMENT0)
927*d39a76e7Sxw161283 
928*d39a76e7Sxw161283 #define S_ELEMENT1    8
929*d39a76e7Sxw161283 #define M_ELEMENT1    0xff
930*d39a76e7Sxw161283 #define V_ELEMENT1(x) ((x) << S_ELEMENT1)
931*d39a76e7Sxw161283 #define G_ELEMENT1(x) (((x) >> S_ELEMENT1) & M_ELEMENT1)
932*d39a76e7Sxw161283 
933*d39a76e7Sxw161283 #define S_ELEMENT2    16
934*d39a76e7Sxw161283 #define M_ELEMENT2    0xff
935*d39a76e7Sxw161283 #define V_ELEMENT2(x) ((x) << S_ELEMENT2)
936*d39a76e7Sxw161283 #define G_ELEMENT2(x) (((x) >> S_ELEMENT2) & M_ELEMENT2)
937*d39a76e7Sxw161283 
938*d39a76e7Sxw161283 #define S_ELEMENT3    24
939*d39a76e7Sxw161283 #define M_ELEMENT3    0xff
940*d39a76e7Sxw161283 #define V_ELEMENT3(x) ((x) << S_ELEMENT3)
941*d39a76e7Sxw161283 #define G_ELEMENT3(x) (((x) >> S_ELEMENT3) & M_ELEMENT3)
942*d39a76e7Sxw161283 
943*d39a76e7Sxw161283 #define A_TP_BACKOFF1 0x354
944*d39a76e7Sxw161283 #define A_TP_BACKOFF2 0x358
945*d39a76e7Sxw161283 #define A_TP_BACKOFF3 0x35c
946*d39a76e7Sxw161283 #define A_TP_PARA_REG0 0x360
947*d39a76e7Sxw161283 
948*d39a76e7Sxw161283 #define S_VAR_MULT    0
949*d39a76e7Sxw161283 #define M_VAR_MULT    0xf
950*d39a76e7Sxw161283 #define V_VAR_MULT(x) ((x) << S_VAR_MULT)
951*d39a76e7Sxw161283 #define G_VAR_MULT(x) (((x) >> S_VAR_MULT) & M_VAR_MULT)
952*d39a76e7Sxw161283 
953*d39a76e7Sxw161283 #define S_VAR_GAIN    4
954*d39a76e7Sxw161283 #define M_VAR_GAIN    0xf
955*d39a76e7Sxw161283 #define V_VAR_GAIN(x) ((x) << S_VAR_GAIN)
956*d39a76e7Sxw161283 #define G_VAR_GAIN(x) (((x) >> S_VAR_GAIN) & M_VAR_GAIN)
957*d39a76e7Sxw161283 
958*d39a76e7Sxw161283 #define S_SRTT_GAIN    8
959*d39a76e7Sxw161283 #define M_SRTT_GAIN    0xf
960*d39a76e7Sxw161283 #define V_SRTT_GAIN(x) ((x) << S_SRTT_GAIN)
961*d39a76e7Sxw161283 #define G_SRTT_GAIN(x) (((x) >> S_SRTT_GAIN) & M_SRTT_GAIN)
962*d39a76e7Sxw161283 
963*d39a76e7Sxw161283 #define S_RTTVAR_INIT    12
964*d39a76e7Sxw161283 #define M_RTTVAR_INIT    0xf
965*d39a76e7Sxw161283 #define V_RTTVAR_INIT(x) ((x) << S_RTTVAR_INIT)
966*d39a76e7Sxw161283 #define G_RTTVAR_INIT(x) (((x) >> S_RTTVAR_INIT) & M_RTTVAR_INIT)
967*d39a76e7Sxw161283 
968*d39a76e7Sxw161283 #define S_DUP_THRESH    20
969*d39a76e7Sxw161283 #define M_DUP_THRESH    0xf
970*d39a76e7Sxw161283 #define V_DUP_THRESH(x) ((x) << S_DUP_THRESH)
971*d39a76e7Sxw161283 #define G_DUP_THRESH(x) (((x) >> S_DUP_THRESH) & M_DUP_THRESH)
972*d39a76e7Sxw161283 
973*d39a76e7Sxw161283 #define S_INIT_CONG_WIN    24
974*d39a76e7Sxw161283 #define M_INIT_CONG_WIN    0x7
975*d39a76e7Sxw161283 #define V_INIT_CONG_WIN(x) ((x) << S_INIT_CONG_WIN)
976*d39a76e7Sxw161283 #define G_INIT_CONG_WIN(x) (((x) >> S_INIT_CONG_WIN) & M_INIT_CONG_WIN)
977*d39a76e7Sxw161283 
978*d39a76e7Sxw161283 #define A_TP_PARA_REG1 0x364
979*d39a76e7Sxw161283 
980*d39a76e7Sxw161283 #define S_INITIAL_SLOW_START_THRESHOLD    0
981*d39a76e7Sxw161283 #define M_INITIAL_SLOW_START_THRESHOLD    0xffff
982*d39a76e7Sxw161283 #define V_INITIAL_SLOW_START_THRESHOLD(x) ((x) << S_INITIAL_SLOW_START_THRESHOLD)
983*d39a76e7Sxw161283 #define G_INITIAL_SLOW_START_THRESHOLD(x) (((x) >> S_INITIAL_SLOW_START_THRESHOLD) & M_INITIAL_SLOW_START_THRESHOLD)
984*d39a76e7Sxw161283 
985*d39a76e7Sxw161283 #define S_RECEIVE_BUFFER_SIZE    16
986*d39a76e7Sxw161283 #define M_RECEIVE_BUFFER_SIZE    0xffff
987*d39a76e7Sxw161283 #define V_RECEIVE_BUFFER_SIZE(x) ((x) << S_RECEIVE_BUFFER_SIZE)
988*d39a76e7Sxw161283 #define G_RECEIVE_BUFFER_SIZE(x) (((x) >> S_RECEIVE_BUFFER_SIZE) & M_RECEIVE_BUFFER_SIZE)
989*d39a76e7Sxw161283 
990*d39a76e7Sxw161283 #define A_TP_PARA_REG2 0x368
991*d39a76e7Sxw161283 
992*d39a76e7Sxw161283 #define S_RX_COALESCE_SIZE    0
993*d39a76e7Sxw161283 #define M_RX_COALESCE_SIZE    0xffff
994*d39a76e7Sxw161283 #define V_RX_COALESCE_SIZE(x) ((x) << S_RX_COALESCE_SIZE)
995*d39a76e7Sxw161283 #define G_RX_COALESCE_SIZE(x) (((x) >> S_RX_COALESCE_SIZE) & M_RX_COALESCE_SIZE)
996*d39a76e7Sxw161283 
997*d39a76e7Sxw161283 #define S_MAX_RX_SIZE    16
998*d39a76e7Sxw161283 #define M_MAX_RX_SIZE    0xffff
999*d39a76e7Sxw161283 #define V_MAX_RX_SIZE(x) ((x) << S_MAX_RX_SIZE)
1000*d39a76e7Sxw161283 #define G_MAX_RX_SIZE(x) (((x) >> S_MAX_RX_SIZE) & M_MAX_RX_SIZE)
1001*d39a76e7Sxw161283 
1002*d39a76e7Sxw161283 #define A_TP_PARA_REG3 0x36c
1003*d39a76e7Sxw161283 
1004*d39a76e7Sxw161283 #define S_RX_COALESCING_PSH_DELIVER    0
1005*d39a76e7Sxw161283 #define V_RX_COALESCING_PSH_DELIVER(x) ((x) << S_RX_COALESCING_PSH_DELIVER)
1006*d39a76e7Sxw161283 #define F_RX_COALESCING_PSH_DELIVER    V_RX_COALESCING_PSH_DELIVER(1U)
1007*d39a76e7Sxw161283 
1008*d39a76e7Sxw161283 #define S_RX_COALESCING_ENABLE    1
1009*d39a76e7Sxw161283 #define V_RX_COALESCING_ENABLE(x) ((x) << S_RX_COALESCING_ENABLE)
1010*d39a76e7Sxw161283 #define F_RX_COALESCING_ENABLE    V_RX_COALESCING_ENABLE(1U)
1011*d39a76e7Sxw161283 
1012*d39a76e7Sxw161283 #define S_TAHOE_ENABLE    2
1013*d39a76e7Sxw161283 #define V_TAHOE_ENABLE(x) ((x) << S_TAHOE_ENABLE)
1014*d39a76e7Sxw161283 #define F_TAHOE_ENABLE    V_TAHOE_ENABLE(1U)
1015*d39a76e7Sxw161283 
1016*d39a76e7Sxw161283 #define S_MAX_REORDER_FRAGMENTS    12
1017*d39a76e7Sxw161283 #define M_MAX_REORDER_FRAGMENTS    0x7
1018*d39a76e7Sxw161283 #define V_MAX_REORDER_FRAGMENTS(x) ((x) << S_MAX_REORDER_FRAGMENTS)
1019*d39a76e7Sxw161283 #define G_MAX_REORDER_FRAGMENTS(x) (((x) >> S_MAX_REORDER_FRAGMENTS) & M_MAX_REORDER_FRAGMENTS)
1020*d39a76e7Sxw161283 
1021*d39a76e7Sxw161283 #define A_TP_TIMER_RESOLUTION 0x390
1022*d39a76e7Sxw161283 
1023*d39a76e7Sxw161283 #define S_DELAYED_ACK_TIMER_RESOLUTION    0
1024*d39a76e7Sxw161283 #define M_DELAYED_ACK_TIMER_RESOLUTION    0x3f
1025*d39a76e7Sxw161283 #define V_DELAYED_ACK_TIMER_RESOLUTION(x) ((x) << S_DELAYED_ACK_TIMER_RESOLUTION)
1026*d39a76e7Sxw161283 #define G_DELAYED_ACK_TIMER_RESOLUTION(x) (((x) >> S_DELAYED_ACK_TIMER_RESOLUTION) & M_DELAYED_ACK_TIMER_RESOLUTION)
1027*d39a76e7Sxw161283 
1028*d39a76e7Sxw161283 #define S_GENERIC_TIMER_RESOLUTION    16
1029*d39a76e7Sxw161283 #define M_GENERIC_TIMER_RESOLUTION    0x3f
1030*d39a76e7Sxw161283 #define V_GENERIC_TIMER_RESOLUTION(x) ((x) << S_GENERIC_TIMER_RESOLUTION)
1031*d39a76e7Sxw161283 #define G_GENERIC_TIMER_RESOLUTION(x) (((x) >> S_GENERIC_TIMER_RESOLUTION) & M_GENERIC_TIMER_RESOLUTION)
1032*d39a76e7Sxw161283 
1033*d39a76e7Sxw161283 #define A_TP_2MSL 0x394
1034*d39a76e7Sxw161283 
1035*d39a76e7Sxw161283 #define S_2MSL    0
1036*d39a76e7Sxw161283 #define M_2MSL    0x3fffffff
1037*d39a76e7Sxw161283 #define V_2MSL(x) ((x) << S_2MSL)
1038*d39a76e7Sxw161283 #define G_2MSL(x) (((x) >> S_2MSL) & M_2MSL)
1039*d39a76e7Sxw161283 
1040*d39a76e7Sxw161283 #define A_TP_RXT_MIN 0x398
1041*d39a76e7Sxw161283 
1042*d39a76e7Sxw161283 #define S_RETRANSMIT_TIMER_MIN    0
1043*d39a76e7Sxw161283 #define M_RETRANSMIT_TIMER_MIN    0xffff
1044*d39a76e7Sxw161283 #define V_RETRANSMIT_TIMER_MIN(x) ((x) << S_RETRANSMIT_TIMER_MIN)
1045*d39a76e7Sxw161283 #define G_RETRANSMIT_TIMER_MIN(x) (((x) >> S_RETRANSMIT_TIMER_MIN) & M_RETRANSMIT_TIMER_MIN)
1046*d39a76e7Sxw161283 
1047*d39a76e7Sxw161283 #define A_TP_RXT_MAX 0x39c
1048*d39a76e7Sxw161283 
1049*d39a76e7Sxw161283 #define S_RETRANSMIT_TIMER_MAX    0
1050*d39a76e7Sxw161283 #define M_RETRANSMIT_TIMER_MAX    0x3fffffff
1051*d39a76e7Sxw161283 #define V_RETRANSMIT_TIMER_MAX(x) ((x) << S_RETRANSMIT_TIMER_MAX)
1052*d39a76e7Sxw161283 #define G_RETRANSMIT_TIMER_MAX(x) (((x) >> S_RETRANSMIT_TIMER_MAX) & M_RETRANSMIT_TIMER_MAX)
1053*d39a76e7Sxw161283 
1054*d39a76e7Sxw161283 #define A_TP_PERS_MIN 0x3a0
1055*d39a76e7Sxw161283 
1056*d39a76e7Sxw161283 #define S_PERSIST_TIMER_MIN    0
1057*d39a76e7Sxw161283 #define M_PERSIST_TIMER_MIN    0xffff
1058*d39a76e7Sxw161283 #define V_PERSIST_TIMER_MIN(x) ((x) << S_PERSIST_TIMER_MIN)
1059*d39a76e7Sxw161283 #define G_PERSIST_TIMER_MIN(x) (((x) >> S_PERSIST_TIMER_MIN) & M_PERSIST_TIMER_MIN)
1060*d39a76e7Sxw161283 
1061*d39a76e7Sxw161283 #define A_TP_PERS_MAX 0x3a4
1062*d39a76e7Sxw161283 
1063*d39a76e7Sxw161283 #define S_PERSIST_TIMER_MAX    0
1064*d39a76e7Sxw161283 #define M_PERSIST_TIMER_MAX    0x3fffffff
1065*d39a76e7Sxw161283 #define V_PERSIST_TIMER_MAX(x) ((x) << S_PERSIST_TIMER_MAX)
1066*d39a76e7Sxw161283 #define G_PERSIST_TIMER_MAX(x) (((x) >> S_PERSIST_TIMER_MAX) & M_PERSIST_TIMER_MAX)
1067*d39a76e7Sxw161283 
1068*d39a76e7Sxw161283 #define A_TP_KEEP_IDLE 0x3ac
1069*d39a76e7Sxw161283 
1070*d39a76e7Sxw161283 #define S_KEEP_ALIVE_IDLE_TIME    0
1071*d39a76e7Sxw161283 #define M_KEEP_ALIVE_IDLE_TIME    0x3fffffff
1072*d39a76e7Sxw161283 #define V_KEEP_ALIVE_IDLE_TIME(x) ((x) << S_KEEP_ALIVE_IDLE_TIME)
1073*d39a76e7Sxw161283 #define G_KEEP_ALIVE_IDLE_TIME(x) (((x) >> S_KEEP_ALIVE_IDLE_TIME) & M_KEEP_ALIVE_IDLE_TIME)
1074*d39a76e7Sxw161283 
1075*d39a76e7Sxw161283 #define A_TP_KEEP_INTVL 0x3b0
1076*d39a76e7Sxw161283 
1077*d39a76e7Sxw161283 #define S_KEEP_ALIVE_INTERVAL_TIME    0
1078*d39a76e7Sxw161283 #define M_KEEP_ALIVE_INTERVAL_TIME    0x3fffffff
1079*d39a76e7Sxw161283 #define V_KEEP_ALIVE_INTERVAL_TIME(x) ((x) << S_KEEP_ALIVE_INTERVAL_TIME)
1080*d39a76e7Sxw161283 #define G_KEEP_ALIVE_INTERVAL_TIME(x) (((x) >> S_KEEP_ALIVE_INTERVAL_TIME) & M_KEEP_ALIVE_INTERVAL_TIME)
1081*d39a76e7Sxw161283 
1082*d39a76e7Sxw161283 #define A_TP_INIT_SRTT 0x3b4
1083*d39a76e7Sxw161283 
1084*d39a76e7Sxw161283 #define S_INITIAL_SRTT    0
1085*d39a76e7Sxw161283 #define M_INITIAL_SRTT    0xffff
1086*d39a76e7Sxw161283 #define V_INITIAL_SRTT(x) ((x) << S_INITIAL_SRTT)
1087*d39a76e7Sxw161283 #define G_INITIAL_SRTT(x) (((x) >> S_INITIAL_SRTT) & M_INITIAL_SRTT)
1088*d39a76e7Sxw161283 
1089*d39a76e7Sxw161283 #define A_TP_DACK_TIME 0x3b8
1090*d39a76e7Sxw161283 
1091*d39a76e7Sxw161283 #define S_DELAYED_ACK_TIME    0
1092*d39a76e7Sxw161283 #define M_DELAYED_ACK_TIME    0x7ff
1093*d39a76e7Sxw161283 #define V_DELAYED_ACK_TIME(x) ((x) << S_DELAYED_ACK_TIME)
1094*d39a76e7Sxw161283 #define G_DELAYED_ACK_TIME(x) (((x) >> S_DELAYED_ACK_TIME) & M_DELAYED_ACK_TIME)
1095*d39a76e7Sxw161283 
1096*d39a76e7Sxw161283 #define A_TP_FINWAIT2_TIME 0x3bc
1097*d39a76e7Sxw161283 
1098*d39a76e7Sxw161283 #define S_FINWAIT2_TIME    0
1099*d39a76e7Sxw161283 #define M_FINWAIT2_TIME    0x3fffffff
1100*d39a76e7Sxw161283 #define V_FINWAIT2_TIME(x) ((x) << S_FINWAIT2_TIME)
1101*d39a76e7Sxw161283 #define G_FINWAIT2_TIME(x) (((x) >> S_FINWAIT2_TIME) & M_FINWAIT2_TIME)
1102*d39a76e7Sxw161283 
1103*d39a76e7Sxw161283 #define A_TP_FAST_FINWAIT2_TIME 0x3c0
1104*d39a76e7Sxw161283 
1105*d39a76e7Sxw161283 #define S_FAST_FINWAIT2_TIME    0
1106*d39a76e7Sxw161283 #define M_FAST_FINWAIT2_TIME    0x3fffffff
1107*d39a76e7Sxw161283 #define V_FAST_FINWAIT2_TIME(x) ((x) << S_FAST_FINWAIT2_TIME)
1108*d39a76e7Sxw161283 #define G_FAST_FINWAIT2_TIME(x) (((x) >> S_FAST_FINWAIT2_TIME) & M_FAST_FINWAIT2_TIME)
1109*d39a76e7Sxw161283 
1110*d39a76e7Sxw161283 #define A_TP_SHIFT_CNT 0x3c4
1111*d39a76e7Sxw161283 
1112*d39a76e7Sxw161283 #define S_KEEPALIVE_MAX    0
1113*d39a76e7Sxw161283 #define M_KEEPALIVE_MAX    0xff
1114*d39a76e7Sxw161283 #define V_KEEPALIVE_MAX(x) ((x) << S_KEEPALIVE_MAX)
1115*d39a76e7Sxw161283 #define G_KEEPALIVE_MAX(x) (((x) >> S_KEEPALIVE_MAX) & M_KEEPALIVE_MAX)
1116*d39a76e7Sxw161283 
1117*d39a76e7Sxw161283 #define S_WINDOWPROBE_MAX    8
1118*d39a76e7Sxw161283 #define M_WINDOWPROBE_MAX    0xff
1119*d39a76e7Sxw161283 #define V_WINDOWPROBE_MAX(x) ((x) << S_WINDOWPROBE_MAX)
1120*d39a76e7Sxw161283 #define G_WINDOWPROBE_MAX(x) (((x) >> S_WINDOWPROBE_MAX) & M_WINDOWPROBE_MAX)
1121*d39a76e7Sxw161283 
1122*d39a76e7Sxw161283 #define S_RETRANSMISSION_MAX    16
1123*d39a76e7Sxw161283 #define M_RETRANSMISSION_MAX    0xff
1124*d39a76e7Sxw161283 #define V_RETRANSMISSION_MAX(x) ((x) << S_RETRANSMISSION_MAX)
1125*d39a76e7Sxw161283 #define G_RETRANSMISSION_MAX(x) (((x) >> S_RETRANSMISSION_MAX) & M_RETRANSMISSION_MAX)
1126*d39a76e7Sxw161283 
1127*d39a76e7Sxw161283 #define S_SYN_MAX    24
1128*d39a76e7Sxw161283 #define M_SYN_MAX    0xff
1129*d39a76e7Sxw161283 #define V_SYN_MAX(x) ((x) << S_SYN_MAX)
1130*d39a76e7Sxw161283 #define G_SYN_MAX(x) (((x) >> S_SYN_MAX) & M_SYN_MAX)
1131*d39a76e7Sxw161283 
1132*d39a76e7Sxw161283 #define A_TP_QOS_REG0 0x3e0
1133*d39a76e7Sxw161283 
1134*d39a76e7Sxw161283 #define S_L3_VALUE    0
1135*d39a76e7Sxw161283 #define M_L3_VALUE    0x3f
1136*d39a76e7Sxw161283 #define V_L3_VALUE(x) ((x) << S_L3_VALUE)
1137*d39a76e7Sxw161283 #define G_L3_VALUE(x) (((x) >> S_L3_VALUE) & M_L3_VALUE)
1138*d39a76e7Sxw161283 
1139*d39a76e7Sxw161283 #define A_TP_QOS_REG1 0x3e4
1140*d39a76e7Sxw161283 #define A_TP_QOS_REG2 0x3e8
1141*d39a76e7Sxw161283 #define A_TP_QOS_REG3 0x3ec
1142*d39a76e7Sxw161283 #define A_TP_QOS_REG4 0x3f0
1143*d39a76e7Sxw161283 #define A_TP_QOS_REG5 0x3f4
1144*d39a76e7Sxw161283 #define A_TP_QOS_REG6 0x3f8
1145*d39a76e7Sxw161283 #define A_TP_QOS_REG7 0x3fc
1146*d39a76e7Sxw161283 #define A_TP_MTU_REG0 0x404
1147*d39a76e7Sxw161283 #define A_TP_MTU_REG1 0x408
1148*d39a76e7Sxw161283 #define A_TP_MTU_REG2 0x40c
1149*d39a76e7Sxw161283 #define A_TP_MTU_REG3 0x410
1150*d39a76e7Sxw161283 #define A_TP_MTU_REG4 0x414
1151*d39a76e7Sxw161283 #define A_TP_MTU_REG5 0x418
1152*d39a76e7Sxw161283 #define A_TP_MTU_REG6 0x41c
1153*d39a76e7Sxw161283 #define A_TP_MTU_REG7 0x420
1154*d39a76e7Sxw161283 #define A_TP_RESET 0x44c
1155*d39a76e7Sxw161283 
1156*d39a76e7Sxw161283 #define S_TP_RESET    0
1157*d39a76e7Sxw161283 #define V_TP_RESET(x) ((x) << S_TP_RESET)
1158*d39a76e7Sxw161283 #define F_TP_RESET    V_TP_RESET(1U)
1159*d39a76e7Sxw161283 
1160*d39a76e7Sxw161283 #define S_CM_MEMMGR_INIT    1
1161*d39a76e7Sxw161283 #define V_CM_MEMMGR_INIT(x) ((x) << S_CM_MEMMGR_INIT)
1162*d39a76e7Sxw161283 #define F_CM_MEMMGR_INIT    V_CM_MEMMGR_INIT(1U)
1163*d39a76e7Sxw161283 
1164*d39a76e7Sxw161283 #define A_TP_MIB_INDEX 0x450
1165*d39a76e7Sxw161283 #define A_TP_MIB_DATA 0x454
1166*d39a76e7Sxw161283 #define A_TP_SYNC_TIME_HI 0x458
1167*d39a76e7Sxw161283 #define A_TP_SYNC_TIME_LO 0x45c
1168*d39a76e7Sxw161283 #define A_TP_CM_MM_RX_FLST_BASE 0x460
1169*d39a76e7Sxw161283 
1170*d39a76e7Sxw161283 #define S_CM_MEMMGR_RX_FREE_LIST_BASE    0
1171*d39a76e7Sxw161283 #define M_CM_MEMMGR_RX_FREE_LIST_BASE    0xfffffff
1172*d39a76e7Sxw161283 #define V_CM_MEMMGR_RX_FREE_LIST_BASE(x) ((x) << S_CM_MEMMGR_RX_FREE_LIST_BASE)
1173*d39a76e7Sxw161283 #define G_CM_MEMMGR_RX_FREE_LIST_BASE(x) (((x) >> S_CM_MEMMGR_RX_FREE_LIST_BASE) & M_CM_MEMMGR_RX_FREE_LIST_BASE)
1174*d39a76e7Sxw161283 
1175*d39a76e7Sxw161283 #define A_TP_CM_MM_TX_FLST_BASE 0x464
1176*d39a76e7Sxw161283 
1177*d39a76e7Sxw161283 #define S_CM_MEMMGR_TX_FREE_LIST_BASE    0
1178*d39a76e7Sxw161283 #define M_CM_MEMMGR_TX_FREE_LIST_BASE    0xfffffff
1179*d39a76e7Sxw161283 #define V_CM_MEMMGR_TX_FREE_LIST_BASE(x) ((x) << S_CM_MEMMGR_TX_FREE_LIST_BASE)
1180*d39a76e7Sxw161283 #define G_CM_MEMMGR_TX_FREE_LIST_BASE(x) (((x) >> S_CM_MEMMGR_TX_FREE_LIST_BASE) & M_CM_MEMMGR_TX_FREE_LIST_BASE)
1181*d39a76e7Sxw161283 
1182*d39a76e7Sxw161283 #define A_TP_CM_MM_P_FLST_BASE 0x468
1183*d39a76e7Sxw161283 
1184*d39a76e7Sxw161283 #define S_CM_MEMMGR_PSTRUCT_FREE_LIST_BASE    0
1185*d39a76e7Sxw161283 #define M_CM_MEMMGR_PSTRUCT_FREE_LIST_BASE    0xfffffff
1186*d39a76e7Sxw161283 #define V_CM_MEMMGR_PSTRUCT_FREE_LIST_BASE(x) ((x) << S_CM_MEMMGR_PSTRUCT_FREE_LIST_BASE)
1187*d39a76e7Sxw161283 #define G_CM_MEMMGR_PSTRUCT_FREE_LIST_BASE(x) (((x) >> S_CM_MEMMGR_PSTRUCT_FREE_LIST_BASE) & M_CM_MEMMGR_PSTRUCT_FREE_LIST_BASE)
1188*d39a76e7Sxw161283 
1189*d39a76e7Sxw161283 #define A_TP_CM_MM_MAX_P 0x46c
1190*d39a76e7Sxw161283 
1191*d39a76e7Sxw161283 #define S_CM_MEMMGR_MAX_PSTRUCT    0
1192*d39a76e7Sxw161283 #define M_CM_MEMMGR_MAX_PSTRUCT    0xfffffff
1193*d39a76e7Sxw161283 #define V_CM_MEMMGR_MAX_PSTRUCT(x) ((x) << S_CM_MEMMGR_MAX_PSTRUCT)
1194*d39a76e7Sxw161283 #define G_CM_MEMMGR_MAX_PSTRUCT(x) (((x) >> S_CM_MEMMGR_MAX_PSTRUCT) & M_CM_MEMMGR_MAX_PSTRUCT)
1195*d39a76e7Sxw161283 
1196*d39a76e7Sxw161283 #define A_TP_INT_ENABLE 0x470
1197*d39a76e7Sxw161283 
1198*d39a76e7Sxw161283 #define S_TX_FREE_LIST_EMPTY    0
1199*d39a76e7Sxw161283 #define V_TX_FREE_LIST_EMPTY(x) ((x) << S_TX_FREE_LIST_EMPTY)
1200*d39a76e7Sxw161283 #define F_TX_FREE_LIST_EMPTY    V_TX_FREE_LIST_EMPTY(1U)
1201*d39a76e7Sxw161283 
1202*d39a76e7Sxw161283 #define S_RX_FREE_LIST_EMPTY    1
1203*d39a76e7Sxw161283 #define V_RX_FREE_LIST_EMPTY(x) ((x) << S_RX_FREE_LIST_EMPTY)
1204*d39a76e7Sxw161283 #define F_RX_FREE_LIST_EMPTY    V_RX_FREE_LIST_EMPTY(1U)
1205*d39a76e7Sxw161283 
1206*d39a76e7Sxw161283 #define A_TP_INT_CAUSE 0x474
1207*d39a76e7Sxw161283 #define A_TP_TIMER_SEPARATOR 0x4a4
1208*d39a76e7Sxw161283 
1209*d39a76e7Sxw161283 #define S_DISABLE_PAST_TIMER_INSERTION    0
1210*d39a76e7Sxw161283 #define V_DISABLE_PAST_TIMER_INSERTION(x) ((x) << S_DISABLE_PAST_TIMER_INSERTION)
1211*d39a76e7Sxw161283 #define F_DISABLE_PAST_TIMER_INSERTION    V_DISABLE_PAST_TIMER_INSERTION(1U)
1212*d39a76e7Sxw161283 
1213*d39a76e7Sxw161283 #define S_MODULATION_TIMER_SEPARATOR    1
1214*d39a76e7Sxw161283 #define M_MODULATION_TIMER_SEPARATOR    0x7fff
1215*d39a76e7Sxw161283 #define V_MODULATION_TIMER_SEPARATOR(x) ((x) << S_MODULATION_TIMER_SEPARATOR)
1216*d39a76e7Sxw161283 #define G_MODULATION_TIMER_SEPARATOR(x) (((x) >> S_MODULATION_TIMER_SEPARATOR) & M_MODULATION_TIMER_SEPARATOR)
1217*d39a76e7Sxw161283 
1218*d39a76e7Sxw161283 #define S_GLOBAL_TIMER_SEPARATOR    16
1219*d39a76e7Sxw161283 #define M_GLOBAL_TIMER_SEPARATOR    0xffff
1220*d39a76e7Sxw161283 #define V_GLOBAL_TIMER_SEPARATOR(x) ((x) << S_GLOBAL_TIMER_SEPARATOR)
1221*d39a76e7Sxw161283 #define G_GLOBAL_TIMER_SEPARATOR(x) (((x) >> S_GLOBAL_TIMER_SEPARATOR) & M_GLOBAL_TIMER_SEPARATOR)
1222*d39a76e7Sxw161283 
1223*d39a76e7Sxw161283 #define A_TP_CM_FC_MODE 0x4b0
1224*d39a76e7Sxw161283 #define A_TP_PC_CONGESTION_CNTL 0x4b4
1225*d39a76e7Sxw161283 #define A_TP_TX_DROP_CONFIG 0x4b8
1226*d39a76e7Sxw161283 
1227*d39a76e7Sxw161283 #define S_ENABLE_TX_DROP    31
1228*d39a76e7Sxw161283 #define V_ENABLE_TX_DROP(x) ((x) << S_ENABLE_TX_DROP)
1229*d39a76e7Sxw161283 #define F_ENABLE_TX_DROP    V_ENABLE_TX_DROP(1U)
1230*d39a76e7Sxw161283 
1231*d39a76e7Sxw161283 #define S_ENABLE_TX_ERROR    30
1232*d39a76e7Sxw161283 #define V_ENABLE_TX_ERROR(x) ((x) << S_ENABLE_TX_ERROR)
1233*d39a76e7Sxw161283 #define F_ENABLE_TX_ERROR    V_ENABLE_TX_ERROR(1U)
1234*d39a76e7Sxw161283 
1235*d39a76e7Sxw161283 #define S_DROP_TICKS_CNT    4
1236*d39a76e7Sxw161283 #define M_DROP_TICKS_CNT    0x3ffffff
1237*d39a76e7Sxw161283 #define V_DROP_TICKS_CNT(x) ((x) << S_DROP_TICKS_CNT)
1238*d39a76e7Sxw161283 #define G_DROP_TICKS_CNT(x) (((x) >> S_DROP_TICKS_CNT) & M_DROP_TICKS_CNT)
1239*d39a76e7Sxw161283 
1240*d39a76e7Sxw161283 #define S_NUM_PKTS_DROPPED    0
1241*d39a76e7Sxw161283 #define M_NUM_PKTS_DROPPED    0xf
1242*d39a76e7Sxw161283 #define V_NUM_PKTS_DROPPED(x) ((x) << S_NUM_PKTS_DROPPED)
1243*d39a76e7Sxw161283 #define G_NUM_PKTS_DROPPED(x) (((x) >> S_NUM_PKTS_DROPPED) & M_NUM_PKTS_DROPPED)
1244*d39a76e7Sxw161283 
1245*d39a76e7Sxw161283 #define A_TP_TX_DROP_COUNT 0x4bc
1246*d39a76e7Sxw161283 
1247*d39a76e7Sxw161283 /* RAT registers */
1248*d39a76e7Sxw161283 #define A_RAT_ROUTE_CONTROL 0x580
1249*d39a76e7Sxw161283 
1250*d39a76e7Sxw161283 #define S_USE_ROUTE_TABLE    0
1251*d39a76e7Sxw161283 #define V_USE_ROUTE_TABLE(x) ((x) << S_USE_ROUTE_TABLE)
1252*d39a76e7Sxw161283 #define F_USE_ROUTE_TABLE    V_USE_ROUTE_TABLE(1U)
1253*d39a76e7Sxw161283 
1254*d39a76e7Sxw161283 #define S_ENABLE_CSPI    1
1255*d39a76e7Sxw161283 #define V_ENABLE_CSPI(x) ((x) << S_ENABLE_CSPI)
1256*d39a76e7Sxw161283 #define F_ENABLE_CSPI    V_ENABLE_CSPI(1U)
1257*d39a76e7Sxw161283 
1258*d39a76e7Sxw161283 #define S_ENABLE_PCIX    2
1259*d39a76e7Sxw161283 #define V_ENABLE_PCIX(x) ((x) << S_ENABLE_PCIX)
1260*d39a76e7Sxw161283 #define F_ENABLE_PCIX    V_ENABLE_PCIX(1U)
1261*d39a76e7Sxw161283 
1262*d39a76e7Sxw161283 #define A_RAT_ROUTE_TABLE_INDEX 0x584
1263*d39a76e7Sxw161283 
1264*d39a76e7Sxw161283 #define S_ROUTE_TABLE_INDEX    0
1265*d39a76e7Sxw161283 #define M_ROUTE_TABLE_INDEX    0xf
1266*d39a76e7Sxw161283 #define V_ROUTE_TABLE_INDEX(x) ((x) << S_ROUTE_TABLE_INDEX)
1267*d39a76e7Sxw161283 #define G_ROUTE_TABLE_INDEX(x) (((x) >> S_ROUTE_TABLE_INDEX) & M_ROUTE_TABLE_INDEX)
1268*d39a76e7Sxw161283 
1269*d39a76e7Sxw161283 #define A_RAT_ROUTE_TABLE_DATA 0x588
1270*d39a76e7Sxw161283 #define A_RAT_NO_ROUTE 0x58c
1271*d39a76e7Sxw161283 
1272*d39a76e7Sxw161283 #define S_CPL_OPCODE    0
1273*d39a76e7Sxw161283 #define M_CPL_OPCODE    0xff
1274*d39a76e7Sxw161283 #define V_CPL_OPCODE(x) ((x) << S_CPL_OPCODE)
1275*d39a76e7Sxw161283 #define G_CPL_OPCODE(x) (((x) >> S_CPL_OPCODE) & M_CPL_OPCODE)
1276*d39a76e7Sxw161283 
1277*d39a76e7Sxw161283 #define A_RAT_INTR_ENABLE 0x590
1278*d39a76e7Sxw161283 
1279*d39a76e7Sxw161283 #define S_ZEROROUTEERROR    0
1280*d39a76e7Sxw161283 #define V_ZEROROUTEERROR(x) ((x) << S_ZEROROUTEERROR)
1281*d39a76e7Sxw161283 #define F_ZEROROUTEERROR    V_ZEROROUTEERROR(1U)
1282*d39a76e7Sxw161283 
1283*d39a76e7Sxw161283 #define S_CSPIFRAMINGERROR    1
1284*d39a76e7Sxw161283 #define V_CSPIFRAMINGERROR(x) ((x) << S_CSPIFRAMINGERROR)
1285*d39a76e7Sxw161283 #define F_CSPIFRAMINGERROR    V_CSPIFRAMINGERROR(1U)
1286*d39a76e7Sxw161283 
1287*d39a76e7Sxw161283 #define S_SGEFRAMINGERROR    2
1288*d39a76e7Sxw161283 #define V_SGEFRAMINGERROR(x) ((x) << S_SGEFRAMINGERROR)
1289*d39a76e7Sxw161283 #define F_SGEFRAMINGERROR    V_SGEFRAMINGERROR(1U)
1290*d39a76e7Sxw161283 
1291*d39a76e7Sxw161283 #define S_TPFRAMINGERROR    3
1292*d39a76e7Sxw161283 #define V_TPFRAMINGERROR(x) ((x) << S_TPFRAMINGERROR)
1293*d39a76e7Sxw161283 #define F_TPFRAMINGERROR    V_TPFRAMINGERROR(1U)
1294*d39a76e7Sxw161283 
1295*d39a76e7Sxw161283 #define A_RAT_INTR_CAUSE 0x594
1296*d39a76e7Sxw161283 
1297*d39a76e7Sxw161283 /* CSPI registers */
1298*d39a76e7Sxw161283 #define A_CSPI_RX_AE_WM 0x810
1299*d39a76e7Sxw161283 #define A_CSPI_RX_AF_WM 0x814
1300*d39a76e7Sxw161283 #define A_CSPI_CALENDAR_LEN 0x818
1301*d39a76e7Sxw161283 
1302*d39a76e7Sxw161283 #define S_CALENDARLENGTH    0
1303*d39a76e7Sxw161283 #define M_CALENDARLENGTH    0xffff
1304*d39a76e7Sxw161283 #define V_CALENDARLENGTH(x) ((x) << S_CALENDARLENGTH)
1305*d39a76e7Sxw161283 #define G_CALENDARLENGTH(x) (((x) >> S_CALENDARLENGTH) & M_CALENDARLENGTH)
1306*d39a76e7Sxw161283 
1307*d39a76e7Sxw161283 #define A_CSPI_FIFO_STATUS_ENABLE 0x820
1308*d39a76e7Sxw161283 
1309*d39a76e7Sxw161283 #define S_FIFOSTATUSENABLE    0
1310*d39a76e7Sxw161283 #define V_FIFOSTATUSENABLE(x) ((x) << S_FIFOSTATUSENABLE)
1311*d39a76e7Sxw161283 #define F_FIFOSTATUSENABLE    V_FIFOSTATUSENABLE(1U)
1312*d39a76e7Sxw161283 
1313*d39a76e7Sxw161283 #define A_CSPI_MAXBURST1_MAXBURST2 0x828
1314*d39a76e7Sxw161283 
1315*d39a76e7Sxw161283 #define S_MAXBURST1    0
1316*d39a76e7Sxw161283 #define M_MAXBURST1    0xffff
1317*d39a76e7Sxw161283 #define V_MAXBURST1(x) ((x) << S_MAXBURST1)
1318*d39a76e7Sxw161283 #define G_MAXBURST1(x) (((x) >> S_MAXBURST1) & M_MAXBURST1)
1319*d39a76e7Sxw161283 
1320*d39a76e7Sxw161283 #define S_MAXBURST2    16
1321*d39a76e7Sxw161283 #define M_MAXBURST2    0xffff
1322*d39a76e7Sxw161283 #define V_MAXBURST2(x) ((x) << S_MAXBURST2)
1323*d39a76e7Sxw161283 #define G_MAXBURST2(x) (((x) >> S_MAXBURST2) & M_MAXBURST2)
1324*d39a76e7Sxw161283 
1325*d39a76e7Sxw161283 #define A_CSPI_TRAIN 0x82c
1326*d39a76e7Sxw161283 
1327*d39a76e7Sxw161283 #define S_CSPI_TRAIN_ALPHA    0
1328*d39a76e7Sxw161283 #define M_CSPI_TRAIN_ALPHA    0xffff
1329*d39a76e7Sxw161283 #define V_CSPI_TRAIN_ALPHA(x) ((x) << S_CSPI_TRAIN_ALPHA)
1330*d39a76e7Sxw161283 #define G_CSPI_TRAIN_ALPHA(x) (((x) >> S_CSPI_TRAIN_ALPHA) & M_CSPI_TRAIN_ALPHA)
1331*d39a76e7Sxw161283 
1332*d39a76e7Sxw161283 #define S_CSPI_TRAIN_DATA_MAXT    16
1333*d39a76e7Sxw161283 #define M_CSPI_TRAIN_DATA_MAXT    0xffff
1334*d39a76e7Sxw161283 #define V_CSPI_TRAIN_DATA_MAXT(x) ((x) << S_CSPI_TRAIN_DATA_MAXT)
1335*d39a76e7Sxw161283 #define G_CSPI_TRAIN_DATA_MAXT(x) (((x) >> S_CSPI_TRAIN_DATA_MAXT) & M_CSPI_TRAIN_DATA_MAXT)
1336*d39a76e7Sxw161283 
1337*d39a76e7Sxw161283 #define A_CSPI_INTR_STATUS 0x848
1338*d39a76e7Sxw161283 
1339*d39a76e7Sxw161283 #define S_DIP4ERR    0
1340*d39a76e7Sxw161283 #define V_DIP4ERR(x) ((x) << S_DIP4ERR)
1341*d39a76e7Sxw161283 #define F_DIP4ERR    V_DIP4ERR(1U)
1342*d39a76e7Sxw161283 
1343*d39a76e7Sxw161283 #define S_RXDROP    1
1344*d39a76e7Sxw161283 #define V_RXDROP(x) ((x) << S_RXDROP)
1345*d39a76e7Sxw161283 #define F_RXDROP    V_RXDROP(1U)
1346*d39a76e7Sxw161283 
1347*d39a76e7Sxw161283 #define S_TXDROP    2
1348*d39a76e7Sxw161283 #define V_TXDROP(x) ((x) << S_TXDROP)
1349*d39a76e7Sxw161283 #define F_TXDROP    V_TXDROP(1U)
1350*d39a76e7Sxw161283 
1351*d39a76e7Sxw161283 #define S_RXOVERFLOW    3
1352*d39a76e7Sxw161283 #define V_RXOVERFLOW(x) ((x) << S_RXOVERFLOW)
1353*d39a76e7Sxw161283 #define F_RXOVERFLOW    V_RXOVERFLOW(1U)
1354*d39a76e7Sxw161283 
1355*d39a76e7Sxw161283 #define S_RAMPARITYERR    4
1356*d39a76e7Sxw161283 #define V_RAMPARITYERR(x) ((x) << S_RAMPARITYERR)
1357*d39a76e7Sxw161283 #define F_RAMPARITYERR    V_RAMPARITYERR(1U)
1358*d39a76e7Sxw161283 
1359*d39a76e7Sxw161283 #define A_CSPI_INTR_ENABLE 0x84c
1360*d39a76e7Sxw161283 
1361*d39a76e7Sxw161283 /* ESPI registers */
1362*d39a76e7Sxw161283 #define A_ESPI_SCH_TOKEN0 0x880
1363*d39a76e7Sxw161283 
1364*d39a76e7Sxw161283 #define S_SCHTOKEN0    0
1365*d39a76e7Sxw161283 #define M_SCHTOKEN0    0xffff
1366*d39a76e7Sxw161283 #define V_SCHTOKEN0(x) ((x) << S_SCHTOKEN0)
1367*d39a76e7Sxw161283 #define G_SCHTOKEN0(x) (((x) >> S_SCHTOKEN0) & M_SCHTOKEN0)
1368*d39a76e7Sxw161283 
1369*d39a76e7Sxw161283 #define A_ESPI_SCH_TOKEN1 0x884
1370*d39a76e7Sxw161283 
1371*d39a76e7Sxw161283 #define S_SCHTOKEN1    0
1372*d39a76e7Sxw161283 #define M_SCHTOKEN1    0xffff
1373*d39a76e7Sxw161283 #define V_SCHTOKEN1(x) ((x) << S_SCHTOKEN1)
1374*d39a76e7Sxw161283 #define G_SCHTOKEN1(x) (((x) >> S_SCHTOKEN1) & M_SCHTOKEN1)
1375*d39a76e7Sxw161283 
1376*d39a76e7Sxw161283 #define A_ESPI_SCH_TOKEN2 0x888
1377*d39a76e7Sxw161283 
1378*d39a76e7Sxw161283 #define S_SCHTOKEN2    0
1379*d39a76e7Sxw161283 #define M_SCHTOKEN2    0xffff
1380*d39a76e7Sxw161283 #define V_SCHTOKEN2(x) ((x) << S_SCHTOKEN2)
1381*d39a76e7Sxw161283 #define G_SCHTOKEN2(x) (((x) >> S_SCHTOKEN2) & M_SCHTOKEN2)
1382*d39a76e7Sxw161283 
1383*d39a76e7Sxw161283 #define A_ESPI_SCH_TOKEN3 0x88c
1384*d39a76e7Sxw161283 
1385*d39a76e7Sxw161283 #define S_SCHTOKEN3    0
1386*d39a76e7Sxw161283 #define M_SCHTOKEN3    0xffff
1387*d39a76e7Sxw161283 #define V_SCHTOKEN3(x) ((x) << S_SCHTOKEN3)
1388*d39a76e7Sxw161283 #define G_SCHTOKEN3(x) (((x) >> S_SCHTOKEN3) & M_SCHTOKEN3)
1389*d39a76e7Sxw161283 
1390*d39a76e7Sxw161283 #define A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK 0x890
1391*d39a76e7Sxw161283 
1392*d39a76e7Sxw161283 #define S_ALMOSTEMPTY    0
1393*d39a76e7Sxw161283 #define M_ALMOSTEMPTY    0xffff
1394*d39a76e7Sxw161283 #define V_ALMOSTEMPTY(x) ((x) << S_ALMOSTEMPTY)
1395*d39a76e7Sxw161283 #define G_ALMOSTEMPTY(x) (((x) >> S_ALMOSTEMPTY) & M_ALMOSTEMPTY)
1396*d39a76e7Sxw161283 
1397*d39a76e7Sxw161283 #define A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK 0x894
1398*d39a76e7Sxw161283 
1399*d39a76e7Sxw161283 #define S_ALMOSTFULL    0
1400*d39a76e7Sxw161283 #define M_ALMOSTFULL    0xffff
1401*d39a76e7Sxw161283 #define V_ALMOSTFULL(x) ((x) << S_ALMOSTFULL)
1402*d39a76e7Sxw161283 #define G_ALMOSTFULL(x) (((x) >> S_ALMOSTFULL) & M_ALMOSTFULL)
1403*d39a76e7Sxw161283 
1404*d39a76e7Sxw161283 #define A_ESPI_CALENDAR_LENGTH 0x898
1405*d39a76e7Sxw161283 #define A_PORT_CONFIG 0x89c
1406*d39a76e7Sxw161283 
1407*d39a76e7Sxw161283 #define S_RX_NPORTS    0
1408*d39a76e7Sxw161283 #define M_RX_NPORTS    0xff
1409*d39a76e7Sxw161283 #define V_RX_NPORTS(x) ((x) << S_RX_NPORTS)
1410*d39a76e7Sxw161283 #define G_RX_NPORTS(x) (((x) >> S_RX_NPORTS) & M_RX_NPORTS)
1411*d39a76e7Sxw161283 
1412*d39a76e7Sxw161283 #define S_TX_NPORTS    8
1413*d39a76e7Sxw161283 #define M_TX_NPORTS    0xff
1414*d39a76e7Sxw161283 #define V_TX_NPORTS(x) ((x) << S_TX_NPORTS)
1415*d39a76e7Sxw161283 #define G_TX_NPORTS(x) (((x) >> S_TX_NPORTS) & M_TX_NPORTS)
1416*d39a76e7Sxw161283 
1417*d39a76e7Sxw161283 #define A_ESPI_FIFO_STATUS_ENABLE 0x8a0
1418*d39a76e7Sxw161283 
1419*d39a76e7Sxw161283 #define S_RXSTATUSENABLE    0
1420*d39a76e7Sxw161283 #define V_RXSTATUSENABLE(x) ((x) << S_RXSTATUSENABLE)
1421*d39a76e7Sxw161283 #define F_RXSTATUSENABLE    V_RXSTATUSENABLE(1U)
1422*d39a76e7Sxw161283 
1423*d39a76e7Sxw161283 #define S_TXDROPENABLE    1
1424*d39a76e7Sxw161283 #define V_TXDROPENABLE(x) ((x) << S_TXDROPENABLE)
1425*d39a76e7Sxw161283 #define F_TXDROPENABLE    V_TXDROPENABLE(1U)
1426*d39a76e7Sxw161283 
1427*d39a76e7Sxw161283 #define S_RXENDIANMODE    2
1428*d39a76e7Sxw161283 #define V_RXENDIANMODE(x) ((x) << S_RXENDIANMODE)
1429*d39a76e7Sxw161283 #define F_RXENDIANMODE    V_RXENDIANMODE(1U)
1430*d39a76e7Sxw161283 
1431*d39a76e7Sxw161283 #define S_TXENDIANMODE    3
1432*d39a76e7Sxw161283 #define V_TXENDIANMODE(x) ((x) << S_TXENDIANMODE)
1433*d39a76e7Sxw161283 #define F_TXENDIANMODE    V_TXENDIANMODE(1U)
1434*d39a76e7Sxw161283 
1435*d39a76e7Sxw161283 #define S_INTEL1010MODE    4
1436*d39a76e7Sxw161283 #define V_INTEL1010MODE(x) ((x) << S_INTEL1010MODE)
1437*d39a76e7Sxw161283 #define F_INTEL1010MODE    V_INTEL1010MODE(1U)
1438*d39a76e7Sxw161283 
1439*d39a76e7Sxw161283 #define A_ESPI_MAXBURST1_MAXBURST2 0x8a8
1440*d39a76e7Sxw161283 #define A_ESPI_TRAIN 0x8ac
1441*d39a76e7Sxw161283 
1442*d39a76e7Sxw161283 #define S_MAXTRAINALPHA    0
1443*d39a76e7Sxw161283 #define M_MAXTRAINALPHA    0xffff
1444*d39a76e7Sxw161283 #define V_MAXTRAINALPHA(x) ((x) << S_MAXTRAINALPHA)
1445*d39a76e7Sxw161283 #define G_MAXTRAINALPHA(x) (((x) >> S_MAXTRAINALPHA) & M_MAXTRAINALPHA)
1446*d39a76e7Sxw161283 
1447*d39a76e7Sxw161283 #define S_MAXTRAINDATA    16
1448*d39a76e7Sxw161283 #define M_MAXTRAINDATA    0xffff
1449*d39a76e7Sxw161283 #define V_MAXTRAINDATA(x) ((x) << S_MAXTRAINDATA)
1450*d39a76e7Sxw161283 #define G_MAXTRAINDATA(x) (((x) >> S_MAXTRAINDATA) & M_MAXTRAINDATA)
1451*d39a76e7Sxw161283 
1452*d39a76e7Sxw161283 #define A_RAM_STATUS 0x8b0
1453*d39a76e7Sxw161283 
1454*d39a76e7Sxw161283 #define S_RXFIFOPARITYERROR    0
1455*d39a76e7Sxw161283 #define M_RXFIFOPARITYERROR    0x3ff
1456*d39a76e7Sxw161283 #define V_RXFIFOPARITYERROR(x) ((x) << S_RXFIFOPARITYERROR)
1457*d39a76e7Sxw161283 #define G_RXFIFOPARITYERROR(x) (((x) >> S_RXFIFOPARITYERROR) & M_RXFIFOPARITYERROR)
1458*d39a76e7Sxw161283 
1459*d39a76e7Sxw161283 #define S_TXFIFOPARITYERROR    10
1460*d39a76e7Sxw161283 #define M_TXFIFOPARITYERROR    0x3ff
1461*d39a76e7Sxw161283 #define V_TXFIFOPARITYERROR(x) ((x) << S_TXFIFOPARITYERROR)
1462*d39a76e7Sxw161283 #define G_TXFIFOPARITYERROR(x) (((x) >> S_TXFIFOPARITYERROR) & M_TXFIFOPARITYERROR)
1463*d39a76e7Sxw161283 
1464*d39a76e7Sxw161283 #define S_RXFIFOOVERFLOW    20
1465*d39a76e7Sxw161283 #define M_RXFIFOOVERFLOW    0x3ff
1466*d39a76e7Sxw161283 #define V_RXFIFOOVERFLOW(x) ((x) << S_RXFIFOOVERFLOW)
1467*d39a76e7Sxw161283 #define G_RXFIFOOVERFLOW(x) (((x) >> S_RXFIFOOVERFLOW) & M_RXFIFOOVERFLOW)
1468*d39a76e7Sxw161283 
1469*d39a76e7Sxw161283 #define A_TX_DROP_COUNT0 0x8b4
1470*d39a76e7Sxw161283 
1471*d39a76e7Sxw161283 #define S_TXPORT0DROPCNT    0
1472*d39a76e7Sxw161283 #define M_TXPORT0DROPCNT    0xffff
1473*d39a76e7Sxw161283 #define V_TXPORT0DROPCNT(x) ((x) << S_TXPORT0DROPCNT)
1474*d39a76e7Sxw161283 #define G_TXPORT0DROPCNT(x) (((x) >> S_TXPORT0DROPCNT) & M_TXPORT0DROPCNT)
1475*d39a76e7Sxw161283 
1476*d39a76e7Sxw161283 #define S_TXPORT1DROPCNT    16
1477*d39a76e7Sxw161283 #define M_TXPORT1DROPCNT    0xffff
1478*d39a76e7Sxw161283 #define V_TXPORT1DROPCNT(x) ((x) << S_TXPORT1DROPCNT)
1479*d39a76e7Sxw161283 #define G_TXPORT1DROPCNT(x) (((x) >> S_TXPORT1DROPCNT) & M_TXPORT1DROPCNT)
1480*d39a76e7Sxw161283 
1481*d39a76e7Sxw161283 #define A_TX_DROP_COUNT1 0x8b8
1482*d39a76e7Sxw161283 
1483*d39a76e7Sxw161283 #define S_TXPORT2DROPCNT    0
1484*d39a76e7Sxw161283 #define M_TXPORT2DROPCNT    0xffff
1485*d39a76e7Sxw161283 #define V_TXPORT2DROPCNT(x) ((x) << S_TXPORT2DROPCNT)
1486*d39a76e7Sxw161283 #define G_TXPORT2DROPCNT(x) (((x) >> S_TXPORT2DROPCNT) & M_TXPORT2DROPCNT)
1487*d39a76e7Sxw161283 
1488*d39a76e7Sxw161283 #define S_TXPORT3DROPCNT    16
1489*d39a76e7Sxw161283 #define M_TXPORT3DROPCNT    0xffff
1490*d39a76e7Sxw161283 #define V_TXPORT3DROPCNT(x) ((x) << S_TXPORT3DROPCNT)
1491*d39a76e7Sxw161283 #define G_TXPORT3DROPCNT(x) (((x) >> S_TXPORT3DROPCNT) & M_TXPORT3DROPCNT)
1492*d39a76e7Sxw161283 
1493*d39a76e7Sxw161283 #define A_RX_DROP_COUNT0 0x8bc
1494*d39a76e7Sxw161283 
1495*d39a76e7Sxw161283 #define S_RXPORT0DROPCNT    0
1496*d39a76e7Sxw161283 #define M_RXPORT0DROPCNT    0xffff
1497*d39a76e7Sxw161283 #define V_RXPORT0DROPCNT(x) ((x) << S_RXPORT0DROPCNT)
1498*d39a76e7Sxw161283 #define G_RXPORT0DROPCNT(x) (((x) >> S_RXPORT0DROPCNT) & M_RXPORT0DROPCNT)
1499*d39a76e7Sxw161283 
1500*d39a76e7Sxw161283 #define S_RXPORT1DROPCNT    16
1501*d39a76e7Sxw161283 #define M_RXPORT1DROPCNT    0xffff
1502*d39a76e7Sxw161283 #define V_RXPORT1DROPCNT(x) ((x) << S_RXPORT1DROPCNT)
1503*d39a76e7Sxw161283 #define G_RXPORT1DROPCNT(x) (((x) >> S_RXPORT1DROPCNT) & M_RXPORT1DROPCNT)
1504*d39a76e7Sxw161283 
1505*d39a76e7Sxw161283 #define A_RX_DROP_COUNT1 0x8c0
1506*d39a76e7Sxw161283 
1507*d39a76e7Sxw161283 #define S_RXPORT2DROPCNT    0
1508*d39a76e7Sxw161283 #define M_RXPORT2DROPCNT    0xffff
1509*d39a76e7Sxw161283 #define V_RXPORT2DROPCNT(x) ((x) << S_RXPORT2DROPCNT)
1510*d39a76e7Sxw161283 #define G_RXPORT2DROPCNT(x) (((x) >> S_RXPORT2DROPCNT) & M_RXPORT2DROPCNT)
1511*d39a76e7Sxw161283 
1512*d39a76e7Sxw161283 #define S_RXPORT3DROPCNT    16
1513*d39a76e7Sxw161283 #define M_RXPORT3DROPCNT    0xffff
1514*d39a76e7Sxw161283 #define V_RXPORT3DROPCNT(x) ((x) << S_RXPORT3DROPCNT)
1515*d39a76e7Sxw161283 #define G_RXPORT3DROPCNT(x) (((x) >> S_RXPORT3DROPCNT) & M_RXPORT3DROPCNT)
1516*d39a76e7Sxw161283 
1517*d39a76e7Sxw161283 #define A_DIP4_ERROR_COUNT 0x8c4
1518*d39a76e7Sxw161283 
1519*d39a76e7Sxw161283 #define S_DIP4ERRORCNT    0
1520*d39a76e7Sxw161283 #define M_DIP4ERRORCNT    0xfff
1521*d39a76e7Sxw161283 #define V_DIP4ERRORCNT(x) ((x) << S_DIP4ERRORCNT)
1522*d39a76e7Sxw161283 #define G_DIP4ERRORCNT(x) (((x) >> S_DIP4ERRORCNT) & M_DIP4ERRORCNT)
1523*d39a76e7Sxw161283 
1524*d39a76e7Sxw161283 #define S_DIP4ERRORCNTSHADOW    12
1525*d39a76e7Sxw161283 #define M_DIP4ERRORCNTSHADOW    0xfff
1526*d39a76e7Sxw161283 #define V_DIP4ERRORCNTSHADOW(x) ((x) << S_DIP4ERRORCNTSHADOW)
1527*d39a76e7Sxw161283 #define G_DIP4ERRORCNTSHADOW(x) (((x) >> S_DIP4ERRORCNTSHADOW) & M_DIP4ERRORCNTSHADOW)
1528*d39a76e7Sxw161283 
1529*d39a76e7Sxw161283 #define S_TRICN_RX_TRAIN_ERR    24
1530*d39a76e7Sxw161283 #define V_TRICN_RX_TRAIN_ERR(x) ((x) << S_TRICN_RX_TRAIN_ERR)
1531*d39a76e7Sxw161283 #define F_TRICN_RX_TRAIN_ERR    V_TRICN_RX_TRAIN_ERR(1U)
1532*d39a76e7Sxw161283 
1533*d39a76e7Sxw161283 #define S_TRICN_RX_TRAINING    25
1534*d39a76e7Sxw161283 #define V_TRICN_RX_TRAINING(x) ((x) << S_TRICN_RX_TRAINING)
1535*d39a76e7Sxw161283 #define F_TRICN_RX_TRAINING    V_TRICN_RX_TRAINING(1U)
1536*d39a76e7Sxw161283 
1537*d39a76e7Sxw161283 #define S_TRICN_RX_TRAIN_OK    26
1538*d39a76e7Sxw161283 #define V_TRICN_RX_TRAIN_OK(x) ((x) << S_TRICN_RX_TRAIN_OK)
1539*d39a76e7Sxw161283 #define F_TRICN_RX_TRAIN_OK    V_TRICN_RX_TRAIN_OK(1U)
1540*d39a76e7Sxw161283 
1541*d39a76e7Sxw161283 #define A_ESPI_INTR_STATUS 0x8c8
1542*d39a76e7Sxw161283 
1543*d39a76e7Sxw161283 #define S_DIP2PARITYERR    5
1544*d39a76e7Sxw161283 #define V_DIP2PARITYERR(x) ((x) << S_DIP2PARITYERR)
1545*d39a76e7Sxw161283 #define F_DIP2PARITYERR    V_DIP2PARITYERR(1U)
1546*d39a76e7Sxw161283 
1547*d39a76e7Sxw161283 #define A_ESPI_INTR_ENABLE 0x8cc
1548*d39a76e7Sxw161283 #define A_RX_DROP_THRESHOLD 0x8d0
1549*d39a76e7Sxw161283 #define A_ESPI_RX_RESET 0x8ec
1550*d39a76e7Sxw161283 
1551*d39a76e7Sxw161283 #define S_ESPI_RX_LNK_RST    0
1552*d39a76e7Sxw161283 #define V_ESPI_RX_LNK_RST(x) ((x) << S_ESPI_RX_LNK_RST)
1553*d39a76e7Sxw161283 #define F_ESPI_RX_LNK_RST    V_ESPI_RX_LNK_RST(1U)
1554*d39a76e7Sxw161283 
1555*d39a76e7Sxw161283 #define S_ESPI_RX_CORE_RST    1
1556*d39a76e7Sxw161283 #define V_ESPI_RX_CORE_RST(x) ((x) << S_ESPI_RX_CORE_RST)
1557*d39a76e7Sxw161283 #define F_ESPI_RX_CORE_RST    V_ESPI_RX_CORE_RST(1U)
1558*d39a76e7Sxw161283 
1559*d39a76e7Sxw161283 #define S_RX_CLK_STATUS	   2
1560*d39a76e7Sxw161283 #define V_RX_CLK_STATUS(x) ((x) << S_RX_CLK_STATUS)
1561*d39a76e7Sxw161283 #define F_RX_CLK_STATUS	   V_RX_CLK_STATUS(1U)
1562*d39a76e7Sxw161283 
1563*d39a76e7Sxw161283 #define A_ESPI_MISC_CONTROL 0x8f0
1564*d39a76e7Sxw161283 
1565*d39a76e7Sxw161283 #define S_OUT_OF_SYNC_COUNT    0
1566*d39a76e7Sxw161283 #define M_OUT_OF_SYNC_COUNT    0xf
1567*d39a76e7Sxw161283 #define V_OUT_OF_SYNC_COUNT(x) ((x) << S_OUT_OF_SYNC_COUNT)
1568*d39a76e7Sxw161283 #define G_OUT_OF_SYNC_COUNT(x) (((x) >> S_OUT_OF_SYNC_COUNT) & M_OUT_OF_SYNC_COUNT)
1569*d39a76e7Sxw161283 
1570*d39a76e7Sxw161283 #define S_DIP2_COUNT_MODE_ENABLE    4
1571*d39a76e7Sxw161283 #define V_DIP2_COUNT_MODE_ENABLE(x) ((x) << S_DIP2_COUNT_MODE_ENABLE)
1572*d39a76e7Sxw161283 #define F_DIP2_COUNT_MODE_ENABLE    V_DIP2_COUNT_MODE_ENABLE(1U)
1573*d39a76e7Sxw161283 
1574*d39a76e7Sxw161283 #define S_DIP2_PARITY_ERR_THRES    5
1575*d39a76e7Sxw161283 #define M_DIP2_PARITY_ERR_THRES    0xf
1576*d39a76e7Sxw161283 #define V_DIP2_PARITY_ERR_THRES(x) ((x) << S_DIP2_PARITY_ERR_THRES)
1577*d39a76e7Sxw161283 #define G_DIP2_PARITY_ERR_THRES(x) (((x) >> S_DIP2_PARITY_ERR_THRES) & M_DIP2_PARITY_ERR_THRES)
1578*d39a76e7Sxw161283 
1579*d39a76e7Sxw161283 #define S_DIP4_THRES    9
1580*d39a76e7Sxw161283 #define M_DIP4_THRES    0xfff
1581*d39a76e7Sxw161283 #define V_DIP4_THRES(x) ((x) << S_DIP4_THRES)
1582*d39a76e7Sxw161283 #define G_DIP4_THRES(x) (((x) >> S_DIP4_THRES) & M_DIP4_THRES)
1583*d39a76e7Sxw161283 
1584*d39a76e7Sxw161283 #define S_DIP4_THRES_ENABLE    21
1585*d39a76e7Sxw161283 #define V_DIP4_THRES_ENABLE(x) ((x) << S_DIP4_THRES_ENABLE)
1586*d39a76e7Sxw161283 #define F_DIP4_THRES_ENABLE    V_DIP4_THRES_ENABLE(1U)
1587*d39a76e7Sxw161283 
1588*d39a76e7Sxw161283 #define S_FORCE_DISABLE_STATUS    22
1589*d39a76e7Sxw161283 #define V_FORCE_DISABLE_STATUS(x) ((x) << S_FORCE_DISABLE_STATUS)
1590*d39a76e7Sxw161283 #define F_FORCE_DISABLE_STATUS    V_FORCE_DISABLE_STATUS(1U)
1591*d39a76e7Sxw161283 
1592*d39a76e7Sxw161283 #define S_DYNAMIC_DESKEW    23
1593*d39a76e7Sxw161283 #define V_DYNAMIC_DESKEW(x) ((x) << S_DYNAMIC_DESKEW)
1594*d39a76e7Sxw161283 #define F_DYNAMIC_DESKEW    V_DYNAMIC_DESKEW(1U)
1595*d39a76e7Sxw161283 
1596*d39a76e7Sxw161283 #define S_MONITORED_PORT_NUM    25
1597*d39a76e7Sxw161283 #define M_MONITORED_PORT_NUM    0x3
1598*d39a76e7Sxw161283 #define V_MONITORED_PORT_NUM(x) ((x) << S_MONITORED_PORT_NUM)
1599*d39a76e7Sxw161283 #define G_MONITORED_PORT_NUM(x) (((x) >> S_MONITORED_PORT_NUM) & M_MONITORED_PORT_NUM)
1600*d39a76e7Sxw161283 
1601*d39a76e7Sxw161283 #define S_MONITORED_DIRECTION    27
1602*d39a76e7Sxw161283 #define V_MONITORED_DIRECTION(x) ((x) << S_MONITORED_DIRECTION)
1603*d39a76e7Sxw161283 #define F_MONITORED_DIRECTION    V_MONITORED_DIRECTION(1U)
1604*d39a76e7Sxw161283 
1605*d39a76e7Sxw161283 #define S_MONITORED_INTERFACE    28
1606*d39a76e7Sxw161283 #define V_MONITORED_INTERFACE(x) ((x) << S_MONITORED_INTERFACE)
1607*d39a76e7Sxw161283 #define F_MONITORED_INTERFACE    V_MONITORED_INTERFACE(1U)
1608*d39a76e7Sxw161283 
1609*d39a76e7Sxw161283 #define A_ESPI_DIP2_ERR_COUNT 0x8f4
1610*d39a76e7Sxw161283 
1611*d39a76e7Sxw161283 #define S_DIP2_ERR_CNT    0
1612*d39a76e7Sxw161283 #define M_DIP2_ERR_CNT    0xf
1613*d39a76e7Sxw161283 #define V_DIP2_ERR_CNT(x) ((x) << S_DIP2_ERR_CNT)
1614*d39a76e7Sxw161283 #define G_DIP2_ERR_CNT(x) (((x) >> S_DIP2_ERR_CNT) & M_DIP2_ERR_CNT)
1615*d39a76e7Sxw161283 
1616*d39a76e7Sxw161283 #define A_ESPI_CMD_ADDR 0x8f8
1617*d39a76e7Sxw161283 
1618*d39a76e7Sxw161283 #define S_WRITE_DATA    0
1619*d39a76e7Sxw161283 #define M_WRITE_DATA    0xff
1620*d39a76e7Sxw161283 #define V_WRITE_DATA(x) ((x) << S_WRITE_DATA)
1621*d39a76e7Sxw161283 #define G_WRITE_DATA(x) (((x) >> S_WRITE_DATA) & M_WRITE_DATA)
1622*d39a76e7Sxw161283 
1623*d39a76e7Sxw161283 #define S_REGISTER_OFFSET    8
1624*d39a76e7Sxw161283 #define M_REGISTER_OFFSET    0xf
1625*d39a76e7Sxw161283 #define V_REGISTER_OFFSET(x) ((x) << S_REGISTER_OFFSET)
1626*d39a76e7Sxw161283 #define G_REGISTER_OFFSET(x) (((x) >> S_REGISTER_OFFSET) & M_REGISTER_OFFSET)
1627*d39a76e7Sxw161283 
1628*d39a76e7Sxw161283 #define S_CHANNEL_ADDR    12
1629*d39a76e7Sxw161283 #define M_CHANNEL_ADDR    0xf
1630*d39a76e7Sxw161283 #define V_CHANNEL_ADDR(x) ((x) << S_CHANNEL_ADDR)
1631*d39a76e7Sxw161283 #define G_CHANNEL_ADDR(x) (((x) >> S_CHANNEL_ADDR) & M_CHANNEL_ADDR)
1632*d39a76e7Sxw161283 
1633*d39a76e7Sxw161283 #define S_MODULE_ADDR    16
1634*d39a76e7Sxw161283 #define M_MODULE_ADDR    0x3
1635*d39a76e7Sxw161283 #define V_MODULE_ADDR(x) ((x) << S_MODULE_ADDR)
1636*d39a76e7Sxw161283 #define G_MODULE_ADDR(x) (((x) >> S_MODULE_ADDR) & M_MODULE_ADDR)
1637*d39a76e7Sxw161283 
1638*d39a76e7Sxw161283 #define S_BUNDLE_ADDR    20
1639*d39a76e7Sxw161283 #define M_BUNDLE_ADDR    0x3
1640*d39a76e7Sxw161283 #define V_BUNDLE_ADDR(x) ((x) << S_BUNDLE_ADDR)
1641*d39a76e7Sxw161283 #define G_BUNDLE_ADDR(x) (((x) >> S_BUNDLE_ADDR) & M_BUNDLE_ADDR)
1642*d39a76e7Sxw161283 
1643*d39a76e7Sxw161283 #define S_SPI4_COMMAND    24
1644*d39a76e7Sxw161283 #define M_SPI4_COMMAND    0xff
1645*d39a76e7Sxw161283 #define V_SPI4_COMMAND(x) ((x) << S_SPI4_COMMAND)
1646*d39a76e7Sxw161283 #define G_SPI4_COMMAND(x) (((x) >> S_SPI4_COMMAND) & M_SPI4_COMMAND)
1647*d39a76e7Sxw161283 
1648*d39a76e7Sxw161283 #define A_ESPI_GOSTAT 0x8fc
1649*d39a76e7Sxw161283 
1650*d39a76e7Sxw161283 #define S_READ_DATA    0
1651*d39a76e7Sxw161283 #define M_READ_DATA    0xff
1652*d39a76e7Sxw161283 #define V_READ_DATA(x) ((x) << S_READ_DATA)
1653*d39a76e7Sxw161283 #define G_READ_DATA(x) (((x) >> S_READ_DATA) & M_READ_DATA)
1654*d39a76e7Sxw161283 
1655*d39a76e7Sxw161283 #define S_ESPI_CMD_BUSY    8
1656*d39a76e7Sxw161283 #define V_ESPI_CMD_BUSY(x) ((x) << S_ESPI_CMD_BUSY)
1657*d39a76e7Sxw161283 #define F_ESPI_CMD_BUSY    V_ESPI_CMD_BUSY(1U)
1658*d39a76e7Sxw161283 
1659*d39a76e7Sxw161283 #define S_ERROR_ACK    9
1660*d39a76e7Sxw161283 #define V_ERROR_ACK(x) ((x) << S_ERROR_ACK)
1661*d39a76e7Sxw161283 #define F_ERROR_ACK    V_ERROR_ACK(1U)
1662*d39a76e7Sxw161283 
1663*d39a76e7Sxw161283 #define S_UNMAPPED_ERR    10
1664*d39a76e7Sxw161283 #define V_UNMAPPED_ERR(x) ((x) << S_UNMAPPED_ERR)
1665*d39a76e7Sxw161283 #define F_UNMAPPED_ERR    V_UNMAPPED_ERR(1U)
1666*d39a76e7Sxw161283 
1667*d39a76e7Sxw161283 #define S_TRANSACTION_TIMER    16
1668*d39a76e7Sxw161283 #define M_TRANSACTION_TIMER    0xff
1669*d39a76e7Sxw161283 #define V_TRANSACTION_TIMER(x) ((x) << S_TRANSACTION_TIMER)
1670*d39a76e7Sxw161283 #define G_TRANSACTION_TIMER(x) (((x) >> S_TRANSACTION_TIMER) & M_TRANSACTION_TIMER)
1671*d39a76e7Sxw161283 
1672*d39a76e7Sxw161283 
1673*d39a76e7Sxw161283 /* ULP registers */
1674*d39a76e7Sxw161283 #define A_ULP_ULIMIT 0x980
1675*d39a76e7Sxw161283 #define A_ULP_TAGMASK 0x984
1676*d39a76e7Sxw161283 #define A_ULP_HREG_INDEX 0x988
1677*d39a76e7Sxw161283 #define A_ULP_HREG_DATA 0x98c
1678*d39a76e7Sxw161283 #define A_ULP_INT_ENABLE 0x990
1679*d39a76e7Sxw161283 #define A_ULP_INT_CAUSE 0x994
1680*d39a76e7Sxw161283 
1681*d39a76e7Sxw161283 #define S_HREG_PAR_ERR    0
1682*d39a76e7Sxw161283 #define V_HREG_PAR_ERR(x) ((x) << S_HREG_PAR_ERR)
1683*d39a76e7Sxw161283 #define F_HREG_PAR_ERR    V_HREG_PAR_ERR(1U)
1684*d39a76e7Sxw161283 
1685*d39a76e7Sxw161283 #define S_EGRS_DATA_PAR_ERR    1
1686*d39a76e7Sxw161283 #define V_EGRS_DATA_PAR_ERR(x) ((x) << S_EGRS_DATA_PAR_ERR)
1687*d39a76e7Sxw161283 #define F_EGRS_DATA_PAR_ERR    V_EGRS_DATA_PAR_ERR(1U)
1688*d39a76e7Sxw161283 
1689*d39a76e7Sxw161283 #define S_INGRS_DATA_PAR_ERR    2
1690*d39a76e7Sxw161283 #define V_INGRS_DATA_PAR_ERR(x) ((x) << S_INGRS_DATA_PAR_ERR)
1691*d39a76e7Sxw161283 #define F_INGRS_DATA_PAR_ERR    V_INGRS_DATA_PAR_ERR(1U)
1692*d39a76e7Sxw161283 
1693*d39a76e7Sxw161283 #define S_PM_INTR    3
1694*d39a76e7Sxw161283 #define V_PM_INTR(x) ((x) << S_PM_INTR)
1695*d39a76e7Sxw161283 #define F_PM_INTR    V_PM_INTR(1U)
1696*d39a76e7Sxw161283 
1697*d39a76e7Sxw161283 #define S_PM_E2C_SYNC_ERR    4
1698*d39a76e7Sxw161283 #define V_PM_E2C_SYNC_ERR(x) ((x) << S_PM_E2C_SYNC_ERR)
1699*d39a76e7Sxw161283 #define F_PM_E2C_SYNC_ERR    V_PM_E2C_SYNC_ERR(1U)
1700*d39a76e7Sxw161283 
1701*d39a76e7Sxw161283 #define S_PM_C2E_SYNC_ERR    5
1702*d39a76e7Sxw161283 #define V_PM_C2E_SYNC_ERR(x) ((x) << S_PM_C2E_SYNC_ERR)
1703*d39a76e7Sxw161283 #define F_PM_C2E_SYNC_ERR    V_PM_C2E_SYNC_ERR(1U)
1704*d39a76e7Sxw161283 
1705*d39a76e7Sxw161283 #define S_PM_E2C_EMPTY_ERR    6
1706*d39a76e7Sxw161283 #define V_PM_E2C_EMPTY_ERR(x) ((x) << S_PM_E2C_EMPTY_ERR)
1707*d39a76e7Sxw161283 #define F_PM_E2C_EMPTY_ERR    V_PM_E2C_EMPTY_ERR(1U)
1708*d39a76e7Sxw161283 
1709*d39a76e7Sxw161283 #define S_PM_C2E_EMPTY_ERR    7
1710*d39a76e7Sxw161283 #define V_PM_C2E_EMPTY_ERR(x) ((x) << S_PM_C2E_EMPTY_ERR)
1711*d39a76e7Sxw161283 #define F_PM_C2E_EMPTY_ERR    V_PM_C2E_EMPTY_ERR(1U)
1712*d39a76e7Sxw161283 
1713*d39a76e7Sxw161283 #define S_PM_PAR_ERR    8
1714*d39a76e7Sxw161283 #define M_PM_PAR_ERR    0xffff
1715*d39a76e7Sxw161283 #define V_PM_PAR_ERR(x) ((x) << S_PM_PAR_ERR)
1716*d39a76e7Sxw161283 #define G_PM_PAR_ERR(x) (((x) >> S_PM_PAR_ERR) & M_PM_PAR_ERR)
1717*d39a76e7Sxw161283 
1718*d39a76e7Sxw161283 #define S_PM_E2C_WRT_FULL    24
1719*d39a76e7Sxw161283 #define V_PM_E2C_WRT_FULL(x) ((x) << S_PM_E2C_WRT_FULL)
1720*d39a76e7Sxw161283 #define F_PM_E2C_WRT_FULL    V_PM_E2C_WRT_FULL(1U)
1721*d39a76e7Sxw161283 
1722*d39a76e7Sxw161283 #define S_PM_C2E_WRT_FULL    25
1723*d39a76e7Sxw161283 #define V_PM_C2E_WRT_FULL(x) ((x) << S_PM_C2E_WRT_FULL)
1724*d39a76e7Sxw161283 #define F_PM_C2E_WRT_FULL    V_PM_C2E_WRT_FULL(1U)
1725*d39a76e7Sxw161283 
1726*d39a76e7Sxw161283 #define A_ULP_PIO_CTRL 0x998
1727*d39a76e7Sxw161283 
1728*d39a76e7Sxw161283 /* PL registers */
1729*d39a76e7Sxw161283 #define A_PL_ENABLE 0xa00
1730*d39a76e7Sxw161283 
1731*d39a76e7Sxw161283 #define S_PL_INTR_SGE_ERR    0
1732*d39a76e7Sxw161283 #define V_PL_INTR_SGE_ERR(x) ((x) << S_PL_INTR_SGE_ERR)
1733*d39a76e7Sxw161283 #define F_PL_INTR_SGE_ERR    V_PL_INTR_SGE_ERR(1U)
1734*d39a76e7Sxw161283 
1735*d39a76e7Sxw161283 #define S_PL_INTR_SGE_DATA    1
1736*d39a76e7Sxw161283 #define V_PL_INTR_SGE_DATA(x) ((x) << S_PL_INTR_SGE_DATA)
1737*d39a76e7Sxw161283 #define F_PL_INTR_SGE_DATA    V_PL_INTR_SGE_DATA(1U)
1738*d39a76e7Sxw161283 
1739*d39a76e7Sxw161283 #define S_PL_INTR_MC3    2
1740*d39a76e7Sxw161283 #define V_PL_INTR_MC3(x) ((x) << S_PL_INTR_MC3)
1741*d39a76e7Sxw161283 #define F_PL_INTR_MC3    V_PL_INTR_MC3(1U)
1742*d39a76e7Sxw161283 
1743*d39a76e7Sxw161283 #define S_PL_INTR_MC4    3
1744*d39a76e7Sxw161283 #define V_PL_INTR_MC4(x) ((x) << S_PL_INTR_MC4)
1745*d39a76e7Sxw161283 #define F_PL_INTR_MC4    V_PL_INTR_MC4(1U)
1746*d39a76e7Sxw161283 
1747*d39a76e7Sxw161283 #define S_PL_INTR_MC5    4
1748*d39a76e7Sxw161283 #define V_PL_INTR_MC5(x) ((x) << S_PL_INTR_MC5)
1749*d39a76e7Sxw161283 #define F_PL_INTR_MC5    V_PL_INTR_MC5(1U)
1750*d39a76e7Sxw161283 
1751*d39a76e7Sxw161283 #define S_PL_INTR_RAT    5
1752*d39a76e7Sxw161283 #define V_PL_INTR_RAT(x) ((x) << S_PL_INTR_RAT)
1753*d39a76e7Sxw161283 #define F_PL_INTR_RAT    V_PL_INTR_RAT(1U)
1754*d39a76e7Sxw161283 
1755*d39a76e7Sxw161283 #define S_PL_INTR_TP    6
1756*d39a76e7Sxw161283 #define V_PL_INTR_TP(x) ((x) << S_PL_INTR_TP)
1757*d39a76e7Sxw161283 #define F_PL_INTR_TP    V_PL_INTR_TP(1U)
1758*d39a76e7Sxw161283 
1759*d39a76e7Sxw161283 #define S_PL_INTR_ULP    7
1760*d39a76e7Sxw161283 #define V_PL_INTR_ULP(x) ((x) << S_PL_INTR_ULP)
1761*d39a76e7Sxw161283 #define F_PL_INTR_ULP    V_PL_INTR_ULP(1U)
1762*d39a76e7Sxw161283 
1763*d39a76e7Sxw161283 #define S_PL_INTR_ESPI    8
1764*d39a76e7Sxw161283 #define V_PL_INTR_ESPI(x) ((x) << S_PL_INTR_ESPI)
1765*d39a76e7Sxw161283 #define F_PL_INTR_ESPI    V_PL_INTR_ESPI(1U)
1766*d39a76e7Sxw161283 
1767*d39a76e7Sxw161283 #define S_PL_INTR_CSPI    9
1768*d39a76e7Sxw161283 #define V_PL_INTR_CSPI(x) ((x) << S_PL_INTR_CSPI)
1769*d39a76e7Sxw161283 #define F_PL_INTR_CSPI    V_PL_INTR_CSPI(1U)
1770*d39a76e7Sxw161283 
1771*d39a76e7Sxw161283 #define S_PL_INTR_PCIX    10
1772*d39a76e7Sxw161283 #define V_PL_INTR_PCIX(x) ((x) << S_PL_INTR_PCIX)
1773*d39a76e7Sxw161283 #define F_PL_INTR_PCIX    V_PL_INTR_PCIX(1U)
1774*d39a76e7Sxw161283 
1775*d39a76e7Sxw161283 #define S_PL_INTR_EXT    11
1776*d39a76e7Sxw161283 #define V_PL_INTR_EXT(x) ((x) << S_PL_INTR_EXT)
1777*d39a76e7Sxw161283 #define F_PL_INTR_EXT    V_PL_INTR_EXT(1U)
1778*d39a76e7Sxw161283 
1779*d39a76e7Sxw161283 #define A_PL_CAUSE 0xa04
1780*d39a76e7Sxw161283 
1781*d39a76e7Sxw161283 /* MC5 registers */
1782*d39a76e7Sxw161283 #define A_MC5_CONFIG 0xc04
1783*d39a76e7Sxw161283 
1784*d39a76e7Sxw161283 #define S_MODE    0
1785*d39a76e7Sxw161283 #define V_MODE(x) ((x) << S_MODE)
1786*d39a76e7Sxw161283 #define F_MODE    V_MODE(1U)
1787*d39a76e7Sxw161283 
1788*d39a76e7Sxw161283 #define S_TCAM_RESET    1
1789*d39a76e7Sxw161283 #define V_TCAM_RESET(x) ((x) << S_TCAM_RESET)
1790*d39a76e7Sxw161283 #define F_TCAM_RESET    V_TCAM_RESET(1U)
1791*d39a76e7Sxw161283 
1792*d39a76e7Sxw161283 #define S_TCAM_READY    2
1793*d39a76e7Sxw161283 #define V_TCAM_READY(x) ((x) << S_TCAM_READY)
1794*d39a76e7Sxw161283 #define F_TCAM_READY    V_TCAM_READY(1U)
1795*d39a76e7Sxw161283 
1796*d39a76e7Sxw161283 #define S_DBGI_ENABLE    4
1797*d39a76e7Sxw161283 #define V_DBGI_ENABLE(x) ((x) << S_DBGI_ENABLE)
1798*d39a76e7Sxw161283 #define F_DBGI_ENABLE    V_DBGI_ENABLE(1U)
1799*d39a76e7Sxw161283 
1800*d39a76e7Sxw161283 #define S_M_BUS_ENABLE    5
1801*d39a76e7Sxw161283 #define V_M_BUS_ENABLE(x) ((x) << S_M_BUS_ENABLE)
1802*d39a76e7Sxw161283 #define F_M_BUS_ENABLE    V_M_BUS_ENABLE(1U)
1803*d39a76e7Sxw161283 
1804*d39a76e7Sxw161283 #define S_PARITY_ENABLE    6
1805*d39a76e7Sxw161283 #define V_PARITY_ENABLE(x) ((x) << S_PARITY_ENABLE)
1806*d39a76e7Sxw161283 #define F_PARITY_ENABLE    V_PARITY_ENABLE(1U)
1807*d39a76e7Sxw161283 
1808*d39a76e7Sxw161283 #define S_SYN_ISSUE_MODE    7
1809*d39a76e7Sxw161283 #define M_SYN_ISSUE_MODE    0x3
1810*d39a76e7Sxw161283 #define V_SYN_ISSUE_MODE(x) ((x) << S_SYN_ISSUE_MODE)
1811*d39a76e7Sxw161283 #define G_SYN_ISSUE_MODE(x) (((x) >> S_SYN_ISSUE_MODE) & M_SYN_ISSUE_MODE)
1812*d39a76e7Sxw161283 
1813*d39a76e7Sxw161283 #define S_BUILD    16
1814*d39a76e7Sxw161283 #define V_BUILD(x) ((x) << S_BUILD)
1815*d39a76e7Sxw161283 #define F_BUILD    V_BUILD(1U)
1816*d39a76e7Sxw161283 
1817*d39a76e7Sxw161283 #define S_COMPRESSION_ENABLE    17
1818*d39a76e7Sxw161283 #define V_COMPRESSION_ENABLE(x) ((x) << S_COMPRESSION_ENABLE)
1819*d39a76e7Sxw161283 #define F_COMPRESSION_ENABLE    V_COMPRESSION_ENABLE(1U)
1820*d39a76e7Sxw161283 
1821*d39a76e7Sxw161283 #define S_NUM_LIP    18
1822*d39a76e7Sxw161283 #define M_NUM_LIP    0x3f
1823*d39a76e7Sxw161283 #define V_NUM_LIP(x) ((x) << S_NUM_LIP)
1824*d39a76e7Sxw161283 #define G_NUM_LIP(x) (((x) >> S_NUM_LIP) & M_NUM_LIP)
1825*d39a76e7Sxw161283 
1826*d39a76e7Sxw161283 #define S_TCAM_PART_CNT    24
1827*d39a76e7Sxw161283 #define M_TCAM_PART_CNT    0x3
1828*d39a76e7Sxw161283 #define V_TCAM_PART_CNT(x) ((x) << S_TCAM_PART_CNT)
1829*d39a76e7Sxw161283 #define G_TCAM_PART_CNT(x) (((x) >> S_TCAM_PART_CNT) & M_TCAM_PART_CNT)
1830*d39a76e7Sxw161283 
1831*d39a76e7Sxw161283 #define S_TCAM_PART_TYPE    26
1832*d39a76e7Sxw161283 #define M_TCAM_PART_TYPE    0x3
1833*d39a76e7Sxw161283 #define V_TCAM_PART_TYPE(x) ((x) << S_TCAM_PART_TYPE)
1834*d39a76e7Sxw161283 #define G_TCAM_PART_TYPE(x) (((x) >> S_TCAM_PART_TYPE) & M_TCAM_PART_TYPE)
1835*d39a76e7Sxw161283 
1836*d39a76e7Sxw161283 #define S_TCAM_PART_SIZE    28
1837*d39a76e7Sxw161283 #define M_TCAM_PART_SIZE    0x3
1838*d39a76e7Sxw161283 #define V_TCAM_PART_SIZE(x) ((x) << S_TCAM_PART_SIZE)
1839*d39a76e7Sxw161283 #define G_TCAM_PART_SIZE(x) (((x) >> S_TCAM_PART_SIZE) & M_TCAM_PART_SIZE)
1840*d39a76e7Sxw161283 
1841*d39a76e7Sxw161283 #define S_TCAM_PART_TYPE_HI    30
1842*d39a76e7Sxw161283 #define V_TCAM_PART_TYPE_HI(x) ((x) << S_TCAM_PART_TYPE_HI)
1843*d39a76e7Sxw161283 #define F_TCAM_PART_TYPE_HI    V_TCAM_PART_TYPE_HI(1U)
1844*d39a76e7Sxw161283 
1845*d39a76e7Sxw161283 #define A_MC5_SIZE 0xc08
1846*d39a76e7Sxw161283 
1847*d39a76e7Sxw161283 #define S_SIZE    0
1848*d39a76e7Sxw161283 #define M_SIZE    0x3fffff
1849*d39a76e7Sxw161283 #define V_SIZE(x) ((x) << S_SIZE)
1850*d39a76e7Sxw161283 #define G_SIZE(x) (((x) >> S_SIZE) & M_SIZE)
1851*d39a76e7Sxw161283 
1852*d39a76e7Sxw161283 #define A_MC5_ROUTING_TABLE_INDEX 0xc0c
1853*d39a76e7Sxw161283 
1854*d39a76e7Sxw161283 #define S_START_OF_ROUTING_TABLE    0
1855*d39a76e7Sxw161283 #define M_START_OF_ROUTING_TABLE    0x3fffff
1856*d39a76e7Sxw161283 #define V_START_OF_ROUTING_TABLE(x) ((x) << S_START_OF_ROUTING_TABLE)
1857*d39a76e7Sxw161283 #define G_START_OF_ROUTING_TABLE(x) (((x) >> S_START_OF_ROUTING_TABLE) & M_START_OF_ROUTING_TABLE)
1858*d39a76e7Sxw161283 
1859*d39a76e7Sxw161283 #define A_MC5_SERVER_INDEX 0xc14
1860*d39a76e7Sxw161283 
1861*d39a76e7Sxw161283 #define S_START_OF_SERVER_INDEX    0
1862*d39a76e7Sxw161283 #define M_START_OF_SERVER_INDEX    0x3fffff
1863*d39a76e7Sxw161283 #define V_START_OF_SERVER_INDEX(x) ((x) << S_START_OF_SERVER_INDEX)
1864*d39a76e7Sxw161283 #define G_START_OF_SERVER_INDEX(x) (((x) >> S_START_OF_SERVER_INDEX) & M_START_OF_SERVER_INDEX)
1865*d39a76e7Sxw161283 
1866*d39a76e7Sxw161283 #define A_MC5_LIP_RAM_ADDR 0xc18
1867*d39a76e7Sxw161283 
1868*d39a76e7Sxw161283 #define S_LOCAL_IP_RAM_ADDR    0
1869*d39a76e7Sxw161283 #define M_LOCAL_IP_RAM_ADDR    0x3f
1870*d39a76e7Sxw161283 #define V_LOCAL_IP_RAM_ADDR(x) ((x) << S_LOCAL_IP_RAM_ADDR)
1871*d39a76e7Sxw161283 #define G_LOCAL_IP_RAM_ADDR(x) (((x) >> S_LOCAL_IP_RAM_ADDR) & M_LOCAL_IP_RAM_ADDR)
1872*d39a76e7Sxw161283 
1873*d39a76e7Sxw161283 #define S_RAM_WRITE_ENABLE    8
1874*d39a76e7Sxw161283 #define V_RAM_WRITE_ENABLE(x) ((x) << S_RAM_WRITE_ENABLE)
1875*d39a76e7Sxw161283 #define F_RAM_WRITE_ENABLE    V_RAM_WRITE_ENABLE(1U)
1876*d39a76e7Sxw161283 
1877*d39a76e7Sxw161283 #define A_MC5_LIP_RAM_DATA 0xc1c
1878*d39a76e7Sxw161283 #define A_MC5_RSP_LATENCY 0xc20
1879*d39a76e7Sxw161283 
1880*d39a76e7Sxw161283 #define S_SEARCH_RESPONSE_LATENCY    0
1881*d39a76e7Sxw161283 #define M_SEARCH_RESPONSE_LATENCY    0x1f
1882*d39a76e7Sxw161283 #define V_SEARCH_RESPONSE_LATENCY(x) ((x) << S_SEARCH_RESPONSE_LATENCY)
1883*d39a76e7Sxw161283 #define G_SEARCH_RESPONSE_LATENCY(x) (((x) >> S_SEARCH_RESPONSE_LATENCY) & M_SEARCH_RESPONSE_LATENCY)
1884*d39a76e7Sxw161283 
1885*d39a76e7Sxw161283 #define S_LEARN_RESPONSE_LATENCY    8
1886*d39a76e7Sxw161283 #define M_LEARN_RESPONSE_LATENCY    0x1f
1887*d39a76e7Sxw161283 #define V_LEARN_RESPONSE_LATENCY(x) ((x) << S_LEARN_RESPONSE_LATENCY)
1888*d39a76e7Sxw161283 #define G_LEARN_RESPONSE_LATENCY(x) (((x) >> S_LEARN_RESPONSE_LATENCY) & M_LEARN_RESPONSE_LATENCY)
1889*d39a76e7Sxw161283 
1890*d39a76e7Sxw161283 #define A_MC5_PARITY_LATENCY 0xc24
1891*d39a76e7Sxw161283 
1892*d39a76e7Sxw161283 #define S_SRCHLAT    0
1893*d39a76e7Sxw161283 #define M_SRCHLAT    0x1f
1894*d39a76e7Sxw161283 #define V_SRCHLAT(x) ((x) << S_SRCHLAT)
1895*d39a76e7Sxw161283 #define G_SRCHLAT(x) (((x) >> S_SRCHLAT) & M_SRCHLAT)
1896*d39a76e7Sxw161283 
1897*d39a76e7Sxw161283 #define S_PARLAT    8
1898*d39a76e7Sxw161283 #define M_PARLAT    0x1f
1899*d39a76e7Sxw161283 #define V_PARLAT(x) ((x) << S_PARLAT)
1900*d39a76e7Sxw161283 #define G_PARLAT(x) (((x) >> S_PARLAT) & M_PARLAT)
1901*d39a76e7Sxw161283 
1902*d39a76e7Sxw161283 #define A_MC5_WR_LRN_VERIFY 0xc28
1903*d39a76e7Sxw161283 
1904*d39a76e7Sxw161283 #define S_POVEREN    0
1905*d39a76e7Sxw161283 #define V_POVEREN(x) ((x) << S_POVEREN)
1906*d39a76e7Sxw161283 #define F_POVEREN    V_POVEREN(1U)
1907*d39a76e7Sxw161283 
1908*d39a76e7Sxw161283 #define S_LRNVEREN    1
1909*d39a76e7Sxw161283 #define V_LRNVEREN(x) ((x) << S_LRNVEREN)
1910*d39a76e7Sxw161283 #define F_LRNVEREN    V_LRNVEREN(1U)
1911*d39a76e7Sxw161283 
1912*d39a76e7Sxw161283 #define S_VWVEREN    2
1913*d39a76e7Sxw161283 #define V_VWVEREN(x) ((x) << S_VWVEREN)
1914*d39a76e7Sxw161283 #define F_VWVEREN    V_VWVEREN(1U)
1915*d39a76e7Sxw161283 
1916*d39a76e7Sxw161283 #define A_MC5_PART_ID_INDEX 0xc2c
1917*d39a76e7Sxw161283 
1918*d39a76e7Sxw161283 #define S_IDINDEX    0
1919*d39a76e7Sxw161283 #define M_IDINDEX    0xf
1920*d39a76e7Sxw161283 #define V_IDINDEX(x) ((x) << S_IDINDEX)
1921*d39a76e7Sxw161283 #define G_IDINDEX(x) (((x) >> S_IDINDEX) & M_IDINDEX)
1922*d39a76e7Sxw161283 
1923*d39a76e7Sxw161283 #define A_MC5_RESET_MAX 0xc30
1924*d39a76e7Sxw161283 
1925*d39a76e7Sxw161283 #define S_RSTMAX    0
1926*d39a76e7Sxw161283 #define M_RSTMAX    0x1ff
1927*d39a76e7Sxw161283 #define V_RSTMAX(x) ((x) << S_RSTMAX)
1928*d39a76e7Sxw161283 #define G_RSTMAX(x) (((x) >> S_RSTMAX) & M_RSTMAX)
1929*d39a76e7Sxw161283 
1930*d39a76e7Sxw161283 #define A_MC5_INT_ENABLE 0xc40
1931*d39a76e7Sxw161283 
1932*d39a76e7Sxw161283 #define S_MC5_INT_HIT_OUT_ACTIVE_REGION_ERR    0
1933*d39a76e7Sxw161283 #define V_MC5_INT_HIT_OUT_ACTIVE_REGION_ERR(x) ((x) << S_MC5_INT_HIT_OUT_ACTIVE_REGION_ERR)
1934*d39a76e7Sxw161283 #define F_MC5_INT_HIT_OUT_ACTIVE_REGION_ERR    V_MC5_INT_HIT_OUT_ACTIVE_REGION_ERR(1U)
1935*d39a76e7Sxw161283 
1936*d39a76e7Sxw161283 #define S_MC5_INT_HIT_IN_ACTIVE_REGION_ERR    1
1937*d39a76e7Sxw161283 #define V_MC5_INT_HIT_IN_ACTIVE_REGION_ERR(x) ((x) << S_MC5_INT_HIT_IN_ACTIVE_REGION_ERR)
1938*d39a76e7Sxw161283 #define F_MC5_INT_HIT_IN_ACTIVE_REGION_ERR    V_MC5_INT_HIT_IN_ACTIVE_REGION_ERR(1U)
1939*d39a76e7Sxw161283 
1940*d39a76e7Sxw161283 #define S_MC5_INT_HIT_IN_RT_REGION_ERR    2
1941*d39a76e7Sxw161283 #define V_MC5_INT_HIT_IN_RT_REGION_ERR(x) ((x) << S_MC5_INT_HIT_IN_RT_REGION_ERR)
1942*d39a76e7Sxw161283 #define F_MC5_INT_HIT_IN_RT_REGION_ERR    V_MC5_INT_HIT_IN_RT_REGION_ERR(1U)
1943*d39a76e7Sxw161283 
1944*d39a76e7Sxw161283 #define S_MC5_INT_MISS_ERR    3
1945*d39a76e7Sxw161283 #define V_MC5_INT_MISS_ERR(x) ((x) << S_MC5_INT_MISS_ERR)
1946*d39a76e7Sxw161283 #define F_MC5_INT_MISS_ERR    V_MC5_INT_MISS_ERR(1U)
1947*d39a76e7Sxw161283 
1948*d39a76e7Sxw161283 #define S_MC5_INT_LIP0_ERR    4
1949*d39a76e7Sxw161283 #define V_MC5_INT_LIP0_ERR(x) ((x) << S_MC5_INT_LIP0_ERR)
1950*d39a76e7Sxw161283 #define F_MC5_INT_LIP0_ERR    V_MC5_INT_LIP0_ERR(1U)
1951*d39a76e7Sxw161283 
1952*d39a76e7Sxw161283 #define S_MC5_INT_LIP_MISS_ERR    5
1953*d39a76e7Sxw161283 #define V_MC5_INT_LIP_MISS_ERR(x) ((x) << S_MC5_INT_LIP_MISS_ERR)
1954*d39a76e7Sxw161283 #define F_MC5_INT_LIP_MISS_ERR    V_MC5_INT_LIP_MISS_ERR(1U)
1955*d39a76e7Sxw161283 
1956*d39a76e7Sxw161283 #define S_MC5_INT_PARITY_ERR    6
1957*d39a76e7Sxw161283 #define V_MC5_INT_PARITY_ERR(x) ((x) << S_MC5_INT_PARITY_ERR)
1958*d39a76e7Sxw161283 #define F_MC5_INT_PARITY_ERR    V_MC5_INT_PARITY_ERR(1U)
1959*d39a76e7Sxw161283 
1960*d39a76e7Sxw161283 #define S_MC5_INT_ACTIVE_REGION_FULL    7
1961*d39a76e7Sxw161283 #define V_MC5_INT_ACTIVE_REGION_FULL(x) ((x) << S_MC5_INT_ACTIVE_REGION_FULL)
1962*d39a76e7Sxw161283 #define F_MC5_INT_ACTIVE_REGION_FULL    V_MC5_INT_ACTIVE_REGION_FULL(1U)
1963*d39a76e7Sxw161283 
1964*d39a76e7Sxw161283 #define S_MC5_INT_NFA_SRCH_ERR    8
1965*d39a76e7Sxw161283 #define V_MC5_INT_NFA_SRCH_ERR(x) ((x) << S_MC5_INT_NFA_SRCH_ERR)
1966*d39a76e7Sxw161283 #define F_MC5_INT_NFA_SRCH_ERR    V_MC5_INT_NFA_SRCH_ERR(1U)
1967*d39a76e7Sxw161283 
1968*d39a76e7Sxw161283 #define S_MC5_INT_SYN_COOKIE    9
1969*d39a76e7Sxw161283 #define V_MC5_INT_SYN_COOKIE(x) ((x) << S_MC5_INT_SYN_COOKIE)
1970*d39a76e7Sxw161283 #define F_MC5_INT_SYN_COOKIE    V_MC5_INT_SYN_COOKIE(1U)
1971*d39a76e7Sxw161283 
1972*d39a76e7Sxw161283 #define S_MC5_INT_SYN_COOKIE_BAD    10
1973*d39a76e7Sxw161283 #define V_MC5_INT_SYN_COOKIE_BAD(x) ((x) << S_MC5_INT_SYN_COOKIE_BAD)
1974*d39a76e7Sxw161283 #define F_MC5_INT_SYN_COOKIE_BAD    V_MC5_INT_SYN_COOKIE_BAD(1U)
1975*d39a76e7Sxw161283 
1976*d39a76e7Sxw161283 #define S_MC5_INT_SYN_COOKIE_OFF    11
1977*d39a76e7Sxw161283 #define V_MC5_INT_SYN_COOKIE_OFF(x) ((x) << S_MC5_INT_SYN_COOKIE_OFF)
1978*d39a76e7Sxw161283 #define F_MC5_INT_SYN_COOKIE_OFF    V_MC5_INT_SYN_COOKIE_OFF(1U)
1979*d39a76e7Sxw161283 
1980*d39a76e7Sxw161283 #define S_MC5_INT_UNKNOWN_CMD    15
1981*d39a76e7Sxw161283 #define V_MC5_INT_UNKNOWN_CMD(x) ((x) << S_MC5_INT_UNKNOWN_CMD)
1982*d39a76e7Sxw161283 #define F_MC5_INT_UNKNOWN_CMD    V_MC5_INT_UNKNOWN_CMD(1U)
1983*d39a76e7Sxw161283 
1984*d39a76e7Sxw161283 #define S_MC5_INT_REQUESTQ_PARITY_ERR    16
1985*d39a76e7Sxw161283 #define V_MC5_INT_REQUESTQ_PARITY_ERR(x) ((x) << S_MC5_INT_REQUESTQ_PARITY_ERR)
1986*d39a76e7Sxw161283 #define F_MC5_INT_REQUESTQ_PARITY_ERR    V_MC5_INT_REQUESTQ_PARITY_ERR(1U)
1987*d39a76e7Sxw161283 
1988*d39a76e7Sxw161283 #define S_MC5_INT_DISPATCHQ_PARITY_ERR    17
1989*d39a76e7Sxw161283 #define V_MC5_INT_DISPATCHQ_PARITY_ERR(x) ((x) << S_MC5_INT_DISPATCHQ_PARITY_ERR)
1990*d39a76e7Sxw161283 #define F_MC5_INT_DISPATCHQ_PARITY_ERR    V_MC5_INT_DISPATCHQ_PARITY_ERR(1U)
1991*d39a76e7Sxw161283 
1992*d39a76e7Sxw161283 #define S_MC5_INT_DEL_ACT_EMPTY    18
1993*d39a76e7Sxw161283 #define V_MC5_INT_DEL_ACT_EMPTY(x) ((x) << S_MC5_INT_DEL_ACT_EMPTY)
1994*d39a76e7Sxw161283 #define F_MC5_INT_DEL_ACT_EMPTY    V_MC5_INT_DEL_ACT_EMPTY(1U)
1995*d39a76e7Sxw161283 
1996*d39a76e7Sxw161283 #define A_MC5_INT_CAUSE 0xc44
1997*d39a76e7Sxw161283 #define A_MC5_INT_TID 0xc48
1998*d39a76e7Sxw161283 #define A_MC5_INT_PTID 0xc4c
1999*d39a76e7Sxw161283 #define A_MC5_DBGI_CONFIG 0xc74
2000*d39a76e7Sxw161283 #define A_MC5_DBGI_REQ_CMD 0xc78
2001*d39a76e7Sxw161283 
2002*d39a76e7Sxw161283 #define S_CMDMODE    0
2003*d39a76e7Sxw161283 #define M_CMDMODE    0x7
2004*d39a76e7Sxw161283 #define V_CMDMODE(x) ((x) << S_CMDMODE)
2005*d39a76e7Sxw161283 #define G_CMDMODE(x) (((x) >> S_CMDMODE) & M_CMDMODE)
2006*d39a76e7Sxw161283 
2007*d39a76e7Sxw161283 #define S_SADRSEL    4
2008*d39a76e7Sxw161283 #define V_SADRSEL(x) ((x) << S_SADRSEL)
2009*d39a76e7Sxw161283 #define F_SADRSEL    V_SADRSEL(1U)
2010*d39a76e7Sxw161283 
2011*d39a76e7Sxw161283 #define S_WRITE_BURST_SIZE    22
2012*d39a76e7Sxw161283 #define M_WRITE_BURST_SIZE    0x3ff
2013*d39a76e7Sxw161283 #define V_WRITE_BURST_SIZE(x) ((x) << S_WRITE_BURST_SIZE)
2014*d39a76e7Sxw161283 #define G_WRITE_BURST_SIZE(x) (((x) >> S_WRITE_BURST_SIZE) & M_WRITE_BURST_SIZE)
2015*d39a76e7Sxw161283 
2016*d39a76e7Sxw161283 #define A_MC5_DBGI_REQ_ADDR0 0xc7c
2017*d39a76e7Sxw161283 #define A_MC5_DBGI_REQ_ADDR1 0xc80
2018*d39a76e7Sxw161283 #define A_MC5_DBGI_REQ_ADDR2 0xc84
2019*d39a76e7Sxw161283 #define A_MC5_DBGI_REQ_DATA0 0xc88
2020*d39a76e7Sxw161283 #define A_MC5_DBGI_REQ_DATA1 0xc8c
2021*d39a76e7Sxw161283 #define A_MC5_DBGI_REQ_DATA2 0xc90
2022*d39a76e7Sxw161283 #define A_MC5_DBGI_REQ_DATA3 0xc94
2023*d39a76e7Sxw161283 #define A_MC5_DBGI_REQ_DATA4 0xc98
2024*d39a76e7Sxw161283 #define A_MC5_DBGI_REQ_MASK0 0xc9c
2025*d39a76e7Sxw161283 #define A_MC5_DBGI_REQ_MASK1 0xca0
2026*d39a76e7Sxw161283 #define A_MC5_DBGI_REQ_MASK2 0xca4
2027*d39a76e7Sxw161283 #define A_MC5_DBGI_REQ_MASK3 0xca8
2028*d39a76e7Sxw161283 #define A_MC5_DBGI_REQ_MASK4 0xcac
2029*d39a76e7Sxw161283 #define A_MC5_DBGI_RSP_STATUS 0xcb0
2030*d39a76e7Sxw161283 
2031*d39a76e7Sxw161283 #define S_DBGI_RSP_VALID    0
2032*d39a76e7Sxw161283 #define V_DBGI_RSP_VALID(x) ((x) << S_DBGI_RSP_VALID)
2033*d39a76e7Sxw161283 #define F_DBGI_RSP_VALID    V_DBGI_RSP_VALID(1U)
2034*d39a76e7Sxw161283 
2035*d39a76e7Sxw161283 #define S_DBGI_RSP_HIT    1
2036*d39a76e7Sxw161283 #define V_DBGI_RSP_HIT(x) ((x) << S_DBGI_RSP_HIT)
2037*d39a76e7Sxw161283 #define F_DBGI_RSP_HIT    V_DBGI_RSP_HIT(1U)
2038*d39a76e7Sxw161283 
2039*d39a76e7Sxw161283 #define S_DBGI_RSP_ERR    2
2040*d39a76e7Sxw161283 #define V_DBGI_RSP_ERR(x) ((x) << S_DBGI_RSP_ERR)
2041*d39a76e7Sxw161283 #define F_DBGI_RSP_ERR    V_DBGI_RSP_ERR(1U)
2042*d39a76e7Sxw161283 
2043*d39a76e7Sxw161283 #define S_DBGI_RSP_ERR_REASON    8
2044*d39a76e7Sxw161283 #define M_DBGI_RSP_ERR_REASON    0x7
2045*d39a76e7Sxw161283 #define V_DBGI_RSP_ERR_REASON(x) ((x) << S_DBGI_RSP_ERR_REASON)
2046*d39a76e7Sxw161283 #define G_DBGI_RSP_ERR_REASON(x) (((x) >> S_DBGI_RSP_ERR_REASON) & M_DBGI_RSP_ERR_REASON)
2047*d39a76e7Sxw161283 
2048*d39a76e7Sxw161283 #define A_MC5_DBGI_RSP_DATA0 0xcb4
2049*d39a76e7Sxw161283 #define A_MC5_DBGI_RSP_DATA1 0xcb8
2050*d39a76e7Sxw161283 #define A_MC5_DBGI_RSP_DATA2 0xcbc
2051*d39a76e7Sxw161283 #define A_MC5_DBGI_RSP_DATA3 0xcc0
2052*d39a76e7Sxw161283 #define A_MC5_DBGI_RSP_DATA4 0xcc4
2053*d39a76e7Sxw161283 #define A_MC5_DBGI_RSP_LAST_CMD 0xcc8
2054*d39a76e7Sxw161283 #define A_MC5_POPEN_DATA_WR_CMD 0xccc
2055*d39a76e7Sxw161283 #define A_MC5_POPEN_MASK_WR_CMD 0xcd0
2056*d39a76e7Sxw161283 #define A_MC5_AOPEN_SRCH_CMD 0xcd4
2057*d39a76e7Sxw161283 #define A_MC5_AOPEN_LRN_CMD 0xcd8
2058*d39a76e7Sxw161283 #define A_MC5_SYN_SRCH_CMD 0xcdc
2059*d39a76e7Sxw161283 #define A_MC5_SYN_LRN_CMD 0xce0
2060*d39a76e7Sxw161283 #define A_MC5_ACK_SRCH_CMD 0xce4
2061*d39a76e7Sxw161283 #define A_MC5_ACK_LRN_CMD 0xce8
2062*d39a76e7Sxw161283 #define A_MC5_ILOOKUP_CMD 0xcec
2063*d39a76e7Sxw161283 #define A_MC5_ELOOKUP_CMD 0xcf0
2064*d39a76e7Sxw161283 #define A_MC5_DATA_WRITE_CMD 0xcf4
2065*d39a76e7Sxw161283 #define A_MC5_DATA_READ_CMD 0xcf8
2066*d39a76e7Sxw161283 #define A_MC5_MASK_WRITE_CMD 0xcfc
2067*d39a76e7Sxw161283 
2068*d39a76e7Sxw161283 /* PCICFG registers */
2069*d39a76e7Sxw161283 #define A_PCICFG_PM_CSR 0x44
2070*d39a76e7Sxw161283 #define A_PCICFG_VPD_ADDR 0x4a
2071*d39a76e7Sxw161283 
2072*d39a76e7Sxw161283 #define S_VPD_ADDR    0
2073*d39a76e7Sxw161283 #define M_VPD_ADDR    0x7fff
2074*d39a76e7Sxw161283 #define V_VPD_ADDR(x) ((x) << S_VPD_ADDR)
2075*d39a76e7Sxw161283 #define G_VPD_ADDR(x) (((x) >> S_VPD_ADDR) & M_VPD_ADDR)
2076*d39a76e7Sxw161283 
2077*d39a76e7Sxw161283 #define S_VPD_OP_FLAG    15
2078*d39a76e7Sxw161283 #define V_VPD_OP_FLAG(x) ((x) << S_VPD_OP_FLAG)
2079*d39a76e7Sxw161283 #define F_VPD_OP_FLAG    V_VPD_OP_FLAG(1U)
2080*d39a76e7Sxw161283 
2081*d39a76e7Sxw161283 #define A_PCICFG_VPD_DATA 0x4c
2082*d39a76e7Sxw161283 #define A_PCICFG_PCIX_CMD 0x60
2083*d39a76e7Sxw161283 #define A_PCICFG_INTR_ENABLE 0xf4
2084*d39a76e7Sxw161283 
2085*d39a76e7Sxw161283 #define S_MASTER_PARITY_ERR    0
2086*d39a76e7Sxw161283 #define V_MASTER_PARITY_ERR(x) ((x) << S_MASTER_PARITY_ERR)
2087*d39a76e7Sxw161283 #define F_MASTER_PARITY_ERR    V_MASTER_PARITY_ERR(1U)
2088*d39a76e7Sxw161283 
2089*d39a76e7Sxw161283 #define S_SIG_TARGET_ABORT    1
2090*d39a76e7Sxw161283 #define V_SIG_TARGET_ABORT(x) ((x) << S_SIG_TARGET_ABORT)
2091*d39a76e7Sxw161283 #define F_SIG_TARGET_ABORT    V_SIG_TARGET_ABORT(1U)
2092*d39a76e7Sxw161283 
2093*d39a76e7Sxw161283 #define S_RCV_TARGET_ABORT    2
2094*d39a76e7Sxw161283 #define V_RCV_TARGET_ABORT(x) ((x) << S_RCV_TARGET_ABORT)
2095*d39a76e7Sxw161283 #define F_RCV_TARGET_ABORT    V_RCV_TARGET_ABORT(1U)
2096*d39a76e7Sxw161283 
2097*d39a76e7Sxw161283 #define S_RCV_MASTER_ABORT    3
2098*d39a76e7Sxw161283 #define V_RCV_MASTER_ABORT(x) ((x) << S_RCV_MASTER_ABORT)
2099*d39a76e7Sxw161283 #define F_RCV_MASTER_ABORT    V_RCV_MASTER_ABORT(1U)
2100*d39a76e7Sxw161283 
2101*d39a76e7Sxw161283 #define S_SIG_SYS_ERR    4
2102*d39a76e7Sxw161283 #define V_SIG_SYS_ERR(x) ((x) << S_SIG_SYS_ERR)
2103*d39a76e7Sxw161283 #define F_SIG_SYS_ERR    V_SIG_SYS_ERR(1U)
2104*d39a76e7Sxw161283 
2105*d39a76e7Sxw161283 #define S_DET_PARITY_ERR    5
2106*d39a76e7Sxw161283 #define V_DET_PARITY_ERR(x) ((x) << S_DET_PARITY_ERR)
2107*d39a76e7Sxw161283 #define F_DET_PARITY_ERR    V_DET_PARITY_ERR(1U)
2108*d39a76e7Sxw161283 
2109*d39a76e7Sxw161283 #define S_PIO_PARITY_ERR    6
2110*d39a76e7Sxw161283 #define V_PIO_PARITY_ERR(x) ((x) << S_PIO_PARITY_ERR)
2111*d39a76e7Sxw161283 #define F_PIO_PARITY_ERR    V_PIO_PARITY_ERR(1U)
2112*d39a76e7Sxw161283 
2113*d39a76e7Sxw161283 #define S_WF_PARITY_ERR    7
2114*d39a76e7Sxw161283 #define V_WF_PARITY_ERR(x) ((x) << S_WF_PARITY_ERR)
2115*d39a76e7Sxw161283 #define F_WF_PARITY_ERR    V_WF_PARITY_ERR(1U)
2116*d39a76e7Sxw161283 
2117*d39a76e7Sxw161283 #define S_RF_PARITY_ERR    8
2118*d39a76e7Sxw161283 #define M_RF_PARITY_ERR    0x3
2119*d39a76e7Sxw161283 #define V_RF_PARITY_ERR(x) ((x) << S_RF_PARITY_ERR)
2120*d39a76e7Sxw161283 #define G_RF_PARITY_ERR(x) (((x) >> S_RF_PARITY_ERR) & M_RF_PARITY_ERR)
2121*d39a76e7Sxw161283 
2122*d39a76e7Sxw161283 #define S_CF_PARITY_ERR    10
2123*d39a76e7Sxw161283 #define M_CF_PARITY_ERR    0x3
2124*d39a76e7Sxw161283 #define V_CF_PARITY_ERR(x) ((x) << S_CF_PARITY_ERR)
2125*d39a76e7Sxw161283 #define G_CF_PARITY_ERR(x) (((x) >> S_CF_PARITY_ERR) & M_CF_PARITY_ERR)
2126*d39a76e7Sxw161283 
2127*d39a76e7Sxw161283 #define A_PCICFG_INTR_CAUSE 0xf8
2128*d39a76e7Sxw161283 #define A_PCICFG_MODE 0xfc
2129*d39a76e7Sxw161283 
2130*d39a76e7Sxw161283 #define S_PCI_MODE_64BIT    0
2131*d39a76e7Sxw161283 #define V_PCI_MODE_64BIT(x) ((x) << S_PCI_MODE_64BIT)
2132*d39a76e7Sxw161283 #define F_PCI_MODE_64BIT    V_PCI_MODE_64BIT(1U)
2133*d39a76e7Sxw161283 
2134*d39a76e7Sxw161283 #define S_PCI_MODE_66MHZ    1
2135*d39a76e7Sxw161283 #define V_PCI_MODE_66MHZ(x) ((x) << S_PCI_MODE_66MHZ)
2136*d39a76e7Sxw161283 #define F_PCI_MODE_66MHZ    V_PCI_MODE_66MHZ(1U)
2137*d39a76e7Sxw161283 
2138*d39a76e7Sxw161283 #define S_PCI_MODE_PCIX_INITPAT    2
2139*d39a76e7Sxw161283 #define M_PCI_MODE_PCIX_INITPAT    0x7
2140*d39a76e7Sxw161283 #define V_PCI_MODE_PCIX_INITPAT(x) ((x) << S_PCI_MODE_PCIX_INITPAT)
2141*d39a76e7Sxw161283 #define G_PCI_MODE_PCIX_INITPAT(x) (((x) >> S_PCI_MODE_PCIX_INITPAT) & M_PCI_MODE_PCIX_INITPAT)
2142*d39a76e7Sxw161283 
2143*d39a76e7Sxw161283 #define S_PCI_MODE_PCIX    5
2144*d39a76e7Sxw161283 #define V_PCI_MODE_PCIX(x) ((x) << S_PCI_MODE_PCIX)
2145*d39a76e7Sxw161283 #define F_PCI_MODE_PCIX    V_PCI_MODE_PCIX(1U)
2146*d39a76e7Sxw161283 
2147*d39a76e7Sxw161283 #define S_PCI_MODE_CLK    6
2148*d39a76e7Sxw161283 #define M_PCI_MODE_CLK    0x3
2149*d39a76e7Sxw161283 #define V_PCI_MODE_CLK(x) ((x) << S_PCI_MODE_CLK)
2150*d39a76e7Sxw161283 #define G_PCI_MODE_CLK(x) (((x) >> S_PCI_MODE_CLK) & M_PCI_MODE_CLK)
2151*d39a76e7Sxw161283 
2152