blob: 18a86284ebcc4b4b32ceb0f275c5b2792e51152d [file] [log] [blame]
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001/* bnx2x_reg.h: Broadcom Everest network driver.
2 *
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00003 * Copyright (c) 2007-2010 Broadcom Corporation
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation.
8 *
Eilon Greenstein33471622008-08-13 15:59:08 -07009 * The registers description starts with the register Access type followed
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +020010 * by size in bits. For example [RW 32]. The access types are:
11 * R - Read only
12 * RC - Clear on read
13 * RW - Read/Write
14 * ST - Statistics register (clear on read)
15 * W - Write only
16 * WB - Wide bus register - the size is over 32 bits and it should be
17 * read/write in consecutive 32 bits accesses
18 * WR - Write Clear (write 1 to clear the bit)
19 *
20 */
21
Dmitry Kravkovf2e08992010-10-06 03:28:26 +000022#define ATC_ATC_INT_STS_REG_ADDRESS_ERROR (0x1<<0)
23#define ATC_ATC_INT_STS_REG_ATC_GPA_MULTIPLE_HITS (0x1<<2)
24#define ATC_ATC_INT_STS_REG_ATC_IREQ_LESS_THAN_STU (0x1<<5)
25#define ATC_ATC_INT_STS_REG_ATC_RCPL_TO_EMPTY_CNT (0x1<<3)
26#define ATC_ATC_INT_STS_REG_ATC_TCPL_ERROR (0x1<<4)
27#define ATC_ATC_INT_STS_REG_ATC_TCPL_TO_NOT_PEND (0x1<<1)
28/* [RW 1] Initiate the ATC array - reset all the valid bits */
29#define ATC_REG_ATC_INIT_ARRAY 0x1100b8
30/* [R 1] ATC initalization done */
31#define ATC_REG_ATC_INIT_DONE 0x1100bc
32/* [RC 6] Interrupt register #0 read clear */
33#define ATC_REG_ATC_INT_STS_CLR 0x1101c0
34/* [RW 19] Interrupt mask register #0 read/write */
35#define BRB1_REG_BRB1_INT_MASK 0x60128
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +020036/* [R 19] Interrupt register #0 read */
37#define BRB1_REG_BRB1_INT_STS 0x6011c
38/* [RW 4] Parity mask register #0 read/write */
39#define BRB1_REG_BRB1_PRTY_MASK 0x60138
Eliezer Tamirf1410642008-02-28 11:51:50 -080040/* [R 4] Parity register #0 read */
41#define BRB1_REG_BRB1_PRTY_STS 0x6012c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +020042/* [RW 10] At address BRB1_IND_FREE_LIST_PRS_CRDT initialize free head. At
Dmitry Kravkovf2e08992010-10-06 03:28:26 +000043 * address BRB1_IND_FREE_LIST_PRS_CRDT+1 initialize free tail. At address
44 * BRB1_IND_FREE_LIST_PRS_CRDT+2 initialize parser initial credit. Warning -
45 * following reset the first rbc access to this reg must be write; there can
46 * be no more rbc writes after the first one; there can be any number of rbc
47 * read following the first write; rbc access not following these rules will
48 * result in hang condition. */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +020049#define BRB1_REG_FREE_LIST_PRS_CRDT 0x60200
Dmitry Kravkovf2e08992010-10-06 03:28:26 +000050/* [RW 10] The number of free blocks below which the full signal to class 0
51 * is asserted */
52#define BRB1_REG_FULL_0_XOFF_THRESHOLD_0 0x601d0
53/* [RW 10] The number of free blocks above which the full signal to class 0
54 * is de-asserted */
55#define BRB1_REG_FULL_0_XON_THRESHOLD_0 0x601d4
56/* [RW 10] The number of free blocks below which the full signal to class 1
57 * is asserted */
58#define BRB1_REG_FULL_1_XOFF_THRESHOLD_0 0x601d8
59/* [RW 10] The number of free blocks above which the full signal to class 1
60 * is de-asserted */
61#define BRB1_REG_FULL_1_XON_THRESHOLD_0 0x601dc
62/* [RW 10] The number of free blocks below which the full signal to the LB
63 * port is asserted */
64#define BRB1_REG_FULL_LB_XOFF_THRESHOLD 0x601e0
65/* [RW 10] The number of free blocks above which the full signal to the LB
66 * port is de-asserted */
67#define BRB1_REG_FULL_LB_XON_THRESHOLD 0x601e4
Eilon Greenstein1c063282009-02-12 08:36:43 +000068/* [RW 10] The number of free blocks above which the High_llfc signal to
69 interface #n is de-asserted. */
70#define BRB1_REG_HIGH_LLFC_HIGH_THRESHOLD_0 0x6014c
71/* [RW 10] The number of free blocks below which the High_llfc signal to
72 interface #n is asserted. */
73#define BRB1_REG_HIGH_LLFC_LOW_THRESHOLD_0 0x6013c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +020074/* [RW 23] LL RAM data. */
75#define BRB1_REG_LL_RAM 0x61000
Eilon Greenstein1c063282009-02-12 08:36:43 +000076/* [RW 10] The number of free blocks above which the Low_llfc signal to
77 interface #n is de-asserted. */
78#define BRB1_REG_LOW_LLFC_HIGH_THRESHOLD_0 0x6016c
79/* [RW 10] The number of free blocks below which the Low_llfc signal to
80 interface #n is asserted. */
81#define BRB1_REG_LOW_LLFC_LOW_THRESHOLD_0 0x6015c
Dmitry Kravkovf2e08992010-10-06 03:28:26 +000082/* [RW 10] The number of blocks guarantied for the MAC port */
83#define BRB1_REG_MAC_GUARANTIED_0 0x601e8
84#define BRB1_REG_MAC_GUARANTIED_1 0x60240
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +020085/* [R 24] The number of full blocks. */
86#define BRB1_REG_NUM_OF_FULL_BLOCKS 0x60090
87/* [ST 32] The number of cycles that the write_full signal towards MAC #0
88 was asserted. */
89#define BRB1_REG_NUM_OF_FULL_CYCLES_0 0x600c8
90#define BRB1_REG_NUM_OF_FULL_CYCLES_1 0x600cc
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +020091#define BRB1_REG_NUM_OF_FULL_CYCLES_4 0x600d8
92/* [ST 32] The number of cycles that the pause signal towards MAC #0 was
93 asserted. */
94#define BRB1_REG_NUM_OF_PAUSE_CYCLES_0 0x600b8
95#define BRB1_REG_NUM_OF_PAUSE_CYCLES_1 0x600bc
Dmitry Kravkovf2e08992010-10-06 03:28:26 +000096/* [RW 10] The number of free blocks below which the pause signal to class 0
97 * is asserted */
98#define BRB1_REG_PAUSE_0_XOFF_THRESHOLD_0 0x601c0
99/* [RW 10] The number of free blocks above which the pause signal to class 0
100 * is de-asserted */
101#define BRB1_REG_PAUSE_0_XON_THRESHOLD_0 0x601c4
102/* [RW 10] The number of free blocks below which the pause signal to class 1
103 * is asserted */
104#define BRB1_REG_PAUSE_1_XOFF_THRESHOLD_0 0x601c8
105/* [RW 10] The number of free blocks above which the pause signal to class 1
106 * is de-asserted */
107#define BRB1_REG_PAUSE_1_XON_THRESHOLD_0 0x601cc
108/* [RW 10] Write client 0: De-assert pause threshold. Not Functional */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200109#define BRB1_REG_PAUSE_HIGH_THRESHOLD_0 0x60078
110#define BRB1_REG_PAUSE_HIGH_THRESHOLD_1 0x6007c
111/* [RW 10] Write client 0: Assert pause threshold. */
112#define BRB1_REG_PAUSE_LOW_THRESHOLD_0 0x60068
113#define BRB1_REG_PAUSE_LOW_THRESHOLD_1 0x6006c
Eilon Greenstein33471622008-08-13 15:59:08 -0700114/* [R 24] The number of full blocks occupied by port. */
Eilon Greenstein34f80b02008-06-23 20:33:01 -0700115#define BRB1_REG_PORT_NUM_OCC_BLOCKS_0 0x60094
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200116/* [RW 1] Reset the design by software. */
117#define BRB1_REG_SOFT_RESET 0x600dc
118/* [R 5] Used to read the value of the XX protection CAM occupancy counter. */
119#define CCM_REG_CAM_OCCUP 0xd0188
120/* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded;
121 acknowledge output is deasserted; all other signals are treated as usual;
122 if 1 - normal activity. */
123#define CCM_REG_CCM_CFC_IFEN 0xd003c
124/* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is
125 disregarded; valid is deasserted; all other signals are treated as usual;
126 if 1 - normal activity. */
127#define CCM_REG_CCM_CQM_IFEN 0xd000c
128/* [RW 1] If set the Q index; received from the QM is inserted to event ID.
129 Otherwise 0 is inserted. */
130#define CCM_REG_CCM_CQM_USE_Q 0xd00c0
131/* [RW 11] Interrupt mask register #0 read/write */
132#define CCM_REG_CCM_INT_MASK 0xd01e4
133/* [R 11] Interrupt register #0 read */
134#define CCM_REG_CCM_INT_STS 0xd01d8
Yaniv Rosnerc18487e2008-06-23 20:27:52 -0700135/* [R 27] Parity register #0 read */
136#define CCM_REG_CCM_PRTY_STS 0xd01e8
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200137/* [RW 3] The size of AG context region 0 in REG-pairs. Designates the MS
138 REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5).
139 Is used to determine the number of the AG context REG-pairs written back;
140 when the input message Reg1WbFlg isn't set. */
141#define CCM_REG_CCM_REG0_SZ 0xd00c4
142/* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is
143 disregarded; valid is deasserted; all other signals are treated as usual;
144 if 1 - normal activity. */
145#define CCM_REG_CCM_STORM0_IFEN 0xd0004
146/* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is
147 disregarded; valid is deasserted; all other signals are treated as usual;
148 if 1 - normal activity. */
149#define CCM_REG_CCM_STORM1_IFEN 0xd0008
150/* [RW 1] CDU AG read Interface enable. If 0 - the request input is
151 disregarded; valid output is deasserted; all other signals are treated as
152 usual; if 1 - normal activity. */
153#define CCM_REG_CDU_AG_RD_IFEN 0xd0030
154/* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input
155 are disregarded; all other signals are treated as usual; if 1 - normal
156 activity. */
157#define CCM_REG_CDU_AG_WR_IFEN 0xd002c
158/* [RW 1] CDU STORM read Interface enable. If 0 - the request input is
159 disregarded; valid output is deasserted; all other signals are treated as
160 usual; if 1 - normal activity. */
161#define CCM_REG_CDU_SM_RD_IFEN 0xd0038
162/* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid
163 input is disregarded; all other signals are treated as usual; if 1 -
164 normal activity. */
165#define CCM_REG_CDU_SM_WR_IFEN 0xd0034
166/* [RW 4] CFC output initial credit. Max credit available - 15.Write writes
167 the initial credit value; read returns the current value of the credit
168 counter. Must be initialized to 1 at start-up. */
169#define CCM_REG_CFC_INIT_CRD 0xd0204
170/* [RW 2] Auxillary counter flag Q number 1. */
171#define CCM_REG_CNT_AUX1_Q 0xd00c8
172/* [RW 2] Auxillary counter flag Q number 2. */
173#define CCM_REG_CNT_AUX2_Q 0xd00cc
174/* [RW 28] The CM header value for QM request (primary). */
175#define CCM_REG_CQM_CCM_HDR_P 0xd008c
176/* [RW 28] The CM header value for QM request (secondary). */
177#define CCM_REG_CQM_CCM_HDR_S 0xd0090
178/* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded;
179 acknowledge output is deasserted; all other signals are treated as usual;
180 if 1 - normal activity. */
181#define CCM_REG_CQM_CCM_IFEN 0xd0014
182/* [RW 6] QM output initial credit. Max credit available - 32. Write writes
183 the initial credit value; read returns the current value of the credit
184 counter. Must be initialized to 32 at start-up. */
185#define CCM_REG_CQM_INIT_CRD 0xd020c
186/* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0
187 stands for weight 8 (the most prioritised); 1 stands for weight 1(least
188 prioritised); 2 stands for weight 2; tc. */
189#define CCM_REG_CQM_P_WEIGHT 0xd00b8
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -0800190/* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0
191 stands for weight 8 (the most prioritised); 1 stands for weight 1(least
192 prioritised); 2 stands for weight 2; tc. */
193#define CCM_REG_CQM_S_WEIGHT 0xd00bc
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200194/* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded;
195 acknowledge output is deasserted; all other signals are treated as usual;
196 if 1 - normal activity. */
197#define CCM_REG_CSDM_IFEN 0xd0018
198/* [RC 1] Set when the message length mismatch (relative to last indication)
199 at the SDM interface is detected. */
200#define CCM_REG_CSDM_LENGTH_MIS 0xd0170
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -0800201/* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for
202 weight 8 (the most prioritised); 1 stands for weight 1(least
203 prioritised); 2 stands for weight 2; tc. */
204#define CCM_REG_CSDM_WEIGHT 0xd00b4
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200205/* [RW 28] The CM header for QM formatting in case of an error in the QM
206 inputs. */
207#define CCM_REG_ERR_CCM_HDR 0xd0094
208/* [RW 8] The Event ID in case the input message ErrorFlg is set. */
209#define CCM_REG_ERR_EVNT_ID 0xd0098
210/* [RW 8] FIC0 output initial credit. Max credit available - 255. Write
211 writes the initial credit value; read returns the current value of the
212 credit counter. Must be initialized to 64 at start-up. */
213#define CCM_REG_FIC0_INIT_CRD 0xd0210
214/* [RW 8] FIC1 output initial credit. Max credit available - 255.Write
215 writes the initial credit value; read returns the current value of the
216 credit counter. Must be initialized to 64 at start-up. */
217#define CCM_REG_FIC1_INIT_CRD 0xd0214
218/* [RW 1] Arbitration between Input Arbiter groups: 0 - fair Round-Robin; 1
219 - strict priority defined by ~ccm_registers_gr_ag_pr.gr_ag_pr;
220 ~ccm_registers_gr_ld0_pr.gr_ld0_pr and
221 ~ccm_registers_gr_ld1_pr.gr_ld1_pr. Groups are according to channels and
222 outputs to STORM: aggregation; load FIC0; load FIC1 and store. */
223#define CCM_REG_GR_ARB_TYPE 0xd015c
224/* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the
225 highest priority is 3. It is supposed; that the Store channel priority is
226 the compliment to 4 of the rest priorities - Aggregation channel; Load
227 (FIC0) channel and Load (FIC1). */
228#define CCM_REG_GR_LD0_PR 0xd0164
229/* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the
230 highest priority is 3. It is supposed; that the Store channel priority is
231 the compliment to 4 of the rest priorities - Aggregation channel; Load
232 (FIC0) channel and Load (FIC1). */
233#define CCM_REG_GR_LD1_PR 0xd0168
234/* [RW 2] General flags index. */
235#define CCM_REG_INV_DONE_Q 0xd0108
236/* [RW 4] The number of double REG-pairs(128 bits); loaded from the STORM
237 context and sent to STORM; for a specific connection type. The double
238 REG-pairs are used in order to align to STORM context row size of 128
239 bits. The offset of these data in the STORM context is always 0. Index
240 _(0..15) stands for the connection type (one of 16). */
241#define CCM_REG_N_SM_CTX_LD_0 0xd004c
242#define CCM_REG_N_SM_CTX_LD_1 0xd0050
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200243#define CCM_REG_N_SM_CTX_LD_2 0xd0054
244#define CCM_REG_N_SM_CTX_LD_3 0xd0058
245#define CCM_REG_N_SM_CTX_LD_4 0xd005c
246/* [RW 1] Input pbf Interface enable. If 0 - the valid input is disregarded;
247 acknowledge output is deasserted; all other signals are treated as usual;
248 if 1 - normal activity. */
249#define CCM_REG_PBF_IFEN 0xd0028
250/* [RC 1] Set when the message length mismatch (relative to last indication)
251 at the pbf interface is detected. */
252#define CCM_REG_PBF_LENGTH_MIS 0xd0180
253/* [RW 3] The weight of the input pbf in the WRR mechanism. 0 stands for
254 weight 8 (the most prioritised); 1 stands for weight 1(least
255 prioritised); 2 stands for weight 2; tc. */
256#define CCM_REG_PBF_WEIGHT 0xd00ac
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200257#define CCM_REG_PHYS_QNUM1_0 0xd0134
258#define CCM_REG_PHYS_QNUM1_1 0xd0138
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200259#define CCM_REG_PHYS_QNUM2_0 0xd013c
260#define CCM_REG_PHYS_QNUM2_1 0xd0140
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200261#define CCM_REG_PHYS_QNUM3_0 0xd0144
Yaniv Rosnerc18487e2008-06-23 20:27:52 -0700262#define CCM_REG_PHYS_QNUM3_1 0xd0148
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200263#define CCM_REG_QOS_PHYS_QNUM0_0 0xd0114
264#define CCM_REG_QOS_PHYS_QNUM0_1 0xd0118
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200265#define CCM_REG_QOS_PHYS_QNUM1_0 0xd011c
266#define CCM_REG_QOS_PHYS_QNUM1_1 0xd0120
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200267#define CCM_REG_QOS_PHYS_QNUM2_0 0xd0124
Yaniv Rosnerc18487e2008-06-23 20:27:52 -0700268#define CCM_REG_QOS_PHYS_QNUM2_1 0xd0128
269#define CCM_REG_QOS_PHYS_QNUM3_0 0xd012c
270#define CCM_REG_QOS_PHYS_QNUM3_1 0xd0130
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200271/* [RW 1] STORM - CM Interface enable. If 0 - the valid input is
272 disregarded; acknowledge output is deasserted; all other signals are
273 treated as usual; if 1 - normal activity. */
274#define CCM_REG_STORM_CCM_IFEN 0xd0010
275/* [RC 1] Set when the message length mismatch (relative to last indication)
276 at the STORM interface is detected. */
277#define CCM_REG_STORM_LENGTH_MIS 0xd016c
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -0800278/* [RW 3] The weight of the STORM input in the WRR (Weighted Round robin)
279 mechanism. 0 stands for weight 8 (the most prioritised); 1 stands for
280 weight 1(least prioritised); 2 stands for weight 2 (more prioritised);
281 tc. */
282#define CCM_REG_STORM_WEIGHT 0xd009c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200283/* [RW 1] Input tsem Interface enable. If 0 - the valid input is
284 disregarded; acknowledge output is deasserted; all other signals are
285 treated as usual; if 1 - normal activity. */
286#define CCM_REG_TSEM_IFEN 0xd001c
287/* [RC 1] Set when the message length mismatch (relative to last indication)
288 at the tsem interface is detected. */
289#define CCM_REG_TSEM_LENGTH_MIS 0xd0174
290/* [RW 3] The weight of the input tsem in the WRR mechanism. 0 stands for
291 weight 8 (the most prioritised); 1 stands for weight 1(least
292 prioritised); 2 stands for weight 2; tc. */
293#define CCM_REG_TSEM_WEIGHT 0xd00a0
294/* [RW 1] Input usem Interface enable. If 0 - the valid input is
295 disregarded; acknowledge output is deasserted; all other signals are
296 treated as usual; if 1 - normal activity. */
297#define CCM_REG_USEM_IFEN 0xd0024
298/* [RC 1] Set when message length mismatch (relative to last indication) at
299 the usem interface is detected. */
300#define CCM_REG_USEM_LENGTH_MIS 0xd017c
301/* [RW 3] The weight of the input usem in the WRR mechanism. 0 stands for
302 weight 8 (the most prioritised); 1 stands for weight 1(least
303 prioritised); 2 stands for weight 2; tc. */
304#define CCM_REG_USEM_WEIGHT 0xd00a8
305/* [RW 1] Input xsem Interface enable. If 0 - the valid input is
306 disregarded; acknowledge output is deasserted; all other signals are
307 treated as usual; if 1 - normal activity. */
308#define CCM_REG_XSEM_IFEN 0xd0020
309/* [RC 1] Set when the message length mismatch (relative to last indication)
310 at the xsem interface is detected. */
311#define CCM_REG_XSEM_LENGTH_MIS 0xd0178
312/* [RW 3] The weight of the input xsem in the WRR mechanism. 0 stands for
313 weight 8 (the most prioritised); 1 stands for weight 1(least
314 prioritised); 2 stands for weight 2; tc. */
315#define CCM_REG_XSEM_WEIGHT 0xd00a4
316/* [RW 19] Indirect access to the descriptor table of the XX protection
317 mechanism. The fields are: [5:0] - message length; [12:6] - message
318 pointer; 18:13] - next pointer. */
319#define CCM_REG_XX_DESCR_TABLE 0xd0300
Yaniv Rosnerc18487e2008-06-23 20:27:52 -0700320#define CCM_REG_XX_DESCR_TABLE_SIZE 36
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200321/* [R 7] Used to read the value of XX protection Free counter. */
322#define CCM_REG_XX_FREE 0xd0184
323/* [RW 6] Initial value for the credit counter; responsible for fulfilling
324 of the Input Stage XX protection buffer by the XX protection pending
325 messages. Max credit available - 127. Write writes the initial credit
326 value; read returns the current value of the credit counter. Must be
327 initialized to maximum XX protected message size - 2 at start-up. */
328#define CCM_REG_XX_INIT_CRD 0xd0220
329/* [RW 7] The maximum number of pending messages; which may be stored in XX
330 protection. At read the ~ccm_registers_xx_free.xx_free counter is read.
331 At write comprises the start value of the ~ccm_registers_xx_free.xx_free
332 counter. */
333#define CCM_REG_XX_MSG_NUM 0xd0224
334/* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */
335#define CCM_REG_XX_OVFL_EVNT_ID 0xd0044
336/* [RW 18] Indirect access to the XX table of the XX protection mechanism.
337 The fields are: [5:0] - tail pointer; 11:6] - Link List size; 17:12] -
338 header pointer. */
339#define CCM_REG_XX_TABLE 0xd0280
340#define CDU_REG_CDU_CHK_MASK0 0x101000
341#define CDU_REG_CDU_CHK_MASK1 0x101004
342#define CDU_REG_CDU_CONTROL0 0x101008
343#define CDU_REG_CDU_DEBUG 0x101010
344#define CDU_REG_CDU_GLOBAL_PARAMS 0x101020
345/* [RW 7] Interrupt mask register #0 read/write */
346#define CDU_REG_CDU_INT_MASK 0x10103c
347/* [R 7] Interrupt register #0 read */
348#define CDU_REG_CDU_INT_STS 0x101030
349/* [RW 5] Parity mask register #0 read/write */
350#define CDU_REG_CDU_PRTY_MASK 0x10104c
Eliezer Tamirf1410642008-02-28 11:51:50 -0800351/* [R 5] Parity register #0 read */
352#define CDU_REG_CDU_PRTY_STS 0x101040
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200353/* [RC 32] logging of error data in case of a CDU load error:
354 {expected_cid[15:0]; xpected_type[2:0]; xpected_region[2:0]; ctive_error;
355 ype_error; ctual_active; ctual_compressed_context}; */
356#define CDU_REG_ERROR_DATA 0x101014
357/* [WB 216] L1TT ram access. each entry has the following format :
358 {mrege_regions[7:0]; ffset12[5:0]...offset0[5:0];
359 ength12[5:0]...length0[5:0]; d12[3:0]...id0[3:0]} */
360#define CDU_REG_L1TT 0x101800
361/* [WB 24] MATT ram access. each entry has the following
362 format:{RegionLength[11:0]; egionOffset[11:0]} */
363#define CDU_REG_MATT 0x101100
Yaniv Rosnerc18487e2008-06-23 20:27:52 -0700364/* [RW 1] when this bit is set the CDU operates in e1hmf mode */
365#define CDU_REG_MF_MODE 0x101050
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200366/* [R 1] indication the initializing the activity counter by the hardware
367 was done. */
368#define CFC_REG_AC_INIT_DONE 0x104078
369/* [RW 13] activity counter ram access */
370#define CFC_REG_ACTIVITY_COUNTER 0x104400
371#define CFC_REG_ACTIVITY_COUNTER_SIZE 256
372/* [R 1] indication the initializing the cams by the hardware was done. */
373#define CFC_REG_CAM_INIT_DONE 0x10407c
374/* [RW 2] Interrupt mask register #0 read/write */
375#define CFC_REG_CFC_INT_MASK 0x104108
376/* [R 2] Interrupt register #0 read */
377#define CFC_REG_CFC_INT_STS 0x1040fc
378/* [RC 2] Interrupt register #0 read clear */
379#define CFC_REG_CFC_INT_STS_CLR 0x104100
380/* [RW 4] Parity mask register #0 read/write */
381#define CFC_REG_CFC_PRTY_MASK 0x104118
Eliezer Tamirf1410642008-02-28 11:51:50 -0800382/* [R 4] Parity register #0 read */
383#define CFC_REG_CFC_PRTY_STS 0x10410c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200384/* [RW 21] CID cam access (21:1 - Data; alid - 0) */
385#define CFC_REG_CID_CAM 0x104800
386#define CFC_REG_CONTROL0 0x104028
387#define CFC_REG_DEBUG0 0x104050
388/* [RW 14] indicates per error (in #cfc_registers_cfc_error_vector.cfc_error
389 vector) whether the cfc should be disabled upon it */
390#define CFC_REG_DISABLE_ON_ERROR 0x104044
391/* [RC 14] CFC error vector. when the CFC detects an internal error it will
392 set one of these bits. the bit description can be found in CFC
393 specifications */
394#define CFC_REG_ERROR_VECTOR 0x10403c
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -0800395/* [WB 93] LCID info ram access */
396#define CFC_REG_INFO_RAM 0x105000
397#define CFC_REG_INFO_RAM_SIZE 1024
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200398#define CFC_REG_INIT_REG 0x10404c
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -0800399#define CFC_REG_INTERFACES 0x104058
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200400/* [RW 24] {weight_load_client7[2:0] to weight_load_client0[2:0]}. this
401 field allows changing the priorities of the weighted-round-robin arbiter
402 which selects which CFC load client should be served next */
403#define CFC_REG_LCREQ_WEIGHTS 0x104084
Yaniv Rosnerc18487e2008-06-23 20:27:52 -0700404/* [RW 16] Link List ram access; data = {prev_lcid; ext_lcid} */
405#define CFC_REG_LINK_LIST 0x104c00
406#define CFC_REG_LINK_LIST_SIZE 256
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200407/* [R 1] indication the initializing the link list by the hardware was done. */
408#define CFC_REG_LL_INIT_DONE 0x104074
409/* [R 9] Number of allocated LCIDs which are at empty state */
410#define CFC_REG_NUM_LCIDS_ALLOC 0x104020
411/* [R 9] Number of Arriving LCIDs in Link List Block */
412#define CFC_REG_NUM_LCIDS_ARRIVING 0x104004
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200413/* [R 9] Number of Leaving LCIDs in Link List Block */
414#define CFC_REG_NUM_LCIDS_LEAVING 0x104018
Dmitry Kravkovf2e08992010-10-06 03:28:26 +0000415#define CFC_REG_WEAK_ENABLE_PF 0x104124
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200416/* [RW 8] The event id for aggregated interrupt 0 */
417#define CSDM_REG_AGG_INT_EVENT_0 0xc2038
Yaniv Rosnerc18487e2008-06-23 20:27:52 -0700418#define CSDM_REG_AGG_INT_EVENT_10 0xc2060
419#define CSDM_REG_AGG_INT_EVENT_11 0xc2064
420#define CSDM_REG_AGG_INT_EVENT_12 0xc2068
421#define CSDM_REG_AGG_INT_EVENT_13 0xc206c
422#define CSDM_REG_AGG_INT_EVENT_14 0xc2070
423#define CSDM_REG_AGG_INT_EVENT_15 0xc2074
424#define CSDM_REG_AGG_INT_EVENT_16 0xc2078
Yaniv Rosnerc18487e2008-06-23 20:27:52 -0700425#define CSDM_REG_AGG_INT_EVENT_2 0xc2040
Yaniv Rosnerc18487e2008-06-23 20:27:52 -0700426#define CSDM_REG_AGG_INT_EVENT_3 0xc2044
Yaniv Rosnerc18487e2008-06-23 20:27:52 -0700427#define CSDM_REG_AGG_INT_EVENT_4 0xc2048
Eilon Greensteinca003922009-08-12 22:53:28 -0700428#define CSDM_REG_AGG_INT_EVENT_5 0xc204c
429#define CSDM_REG_AGG_INT_EVENT_6 0xc2050
430#define CSDM_REG_AGG_INT_EVENT_7 0xc2054
431#define CSDM_REG_AGG_INT_EVENT_8 0xc2058
432#define CSDM_REG_AGG_INT_EVENT_9 0xc205c
433/* [RW 1] For each aggregated interrupt index whether the mode is normal (0)
434 or auto-mask-mode (1) */
435#define CSDM_REG_AGG_INT_MODE_10 0xc21e0
436#define CSDM_REG_AGG_INT_MODE_11 0xc21e4
437#define CSDM_REG_AGG_INT_MODE_12 0xc21e8
438#define CSDM_REG_AGG_INT_MODE_13 0xc21ec
439#define CSDM_REG_AGG_INT_MODE_14 0xc21f0
440#define CSDM_REG_AGG_INT_MODE_15 0xc21f4
441#define CSDM_REG_AGG_INT_MODE_16 0xc21f8
442#define CSDM_REG_AGG_INT_MODE_6 0xc21d0
443#define CSDM_REG_AGG_INT_MODE_7 0xc21d4
444#define CSDM_REG_AGG_INT_MODE_8 0xc21d8
445#define CSDM_REG_AGG_INT_MODE_9 0xc21dc
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200446/* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */
447#define CSDM_REG_CFC_RSP_START_ADDR 0xc2008
448/* [RW 16] The maximum value of the competion counter #0 */
449#define CSDM_REG_CMP_COUNTER_MAX0 0xc201c
450/* [RW 16] The maximum value of the competion counter #1 */
451#define CSDM_REG_CMP_COUNTER_MAX1 0xc2020
452/* [RW 16] The maximum value of the competion counter #2 */
453#define CSDM_REG_CMP_COUNTER_MAX2 0xc2024
454/* [RW 16] The maximum value of the competion counter #3 */
455#define CSDM_REG_CMP_COUNTER_MAX3 0xc2028
456/* [RW 13] The start address in the internal RAM for the completion
457 counters. */
458#define CSDM_REG_CMP_COUNTER_START_ADDR 0xc200c
459/* [RW 32] Interrupt mask register #0 read/write */
460#define CSDM_REG_CSDM_INT_MASK_0 0xc229c
461#define CSDM_REG_CSDM_INT_MASK_1 0xc22ac
Yaniv Rosnerc18487e2008-06-23 20:27:52 -0700462/* [R 32] Interrupt register #0 read */
463#define CSDM_REG_CSDM_INT_STS_0 0xc2290
464#define CSDM_REG_CSDM_INT_STS_1 0xc22a0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200465/* [RW 11] Parity mask register #0 read/write */
466#define CSDM_REG_CSDM_PRTY_MASK 0xc22bc
Eliezer Tamirf1410642008-02-28 11:51:50 -0800467/* [R 11] Parity register #0 read */
468#define CSDM_REG_CSDM_PRTY_STS 0xc22b0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200469#define CSDM_REG_ENABLE_IN1 0xc2238
470#define CSDM_REG_ENABLE_IN2 0xc223c
471#define CSDM_REG_ENABLE_OUT1 0xc2240
472#define CSDM_REG_ENABLE_OUT2 0xc2244
473/* [RW 4] The initial number of messages that can be sent to the pxp control
474 interface without receiving any ACK. */
475#define CSDM_REG_INIT_CREDIT_PXP_CTRL 0xc24bc
476/* [ST 32] The number of ACK after placement messages received */
477#define CSDM_REG_NUM_OF_ACK_AFTER_PLACE 0xc227c
478/* [ST 32] The number of packet end messages received from the parser */
479#define CSDM_REG_NUM_OF_PKT_END_MSG 0xc2274
480/* [ST 32] The number of requests received from the pxp async if */
481#define CSDM_REG_NUM_OF_PXP_ASYNC_REQ 0xc2278
482/* [ST 32] The number of commands received in queue 0 */
483#define CSDM_REG_NUM_OF_Q0_CMD 0xc2248
484/* [ST 32] The number of commands received in queue 10 */
485#define CSDM_REG_NUM_OF_Q10_CMD 0xc226c
486/* [ST 32] The number of commands received in queue 11 */
487#define CSDM_REG_NUM_OF_Q11_CMD 0xc2270
488/* [ST 32] The number of commands received in queue 1 */
489#define CSDM_REG_NUM_OF_Q1_CMD 0xc224c
490/* [ST 32] The number of commands received in queue 3 */
491#define CSDM_REG_NUM_OF_Q3_CMD 0xc2250
492/* [ST 32] The number of commands received in queue 4 */
493#define CSDM_REG_NUM_OF_Q4_CMD 0xc2254
494/* [ST 32] The number of commands received in queue 5 */
495#define CSDM_REG_NUM_OF_Q5_CMD 0xc2258
496/* [ST 32] The number of commands received in queue 6 */
497#define CSDM_REG_NUM_OF_Q6_CMD 0xc225c
498/* [ST 32] The number of commands received in queue 7 */
499#define CSDM_REG_NUM_OF_Q7_CMD 0xc2260
500/* [ST 32] The number of commands received in queue 8 */
501#define CSDM_REG_NUM_OF_Q8_CMD 0xc2264
502/* [ST 32] The number of commands received in queue 9 */
503#define CSDM_REG_NUM_OF_Q9_CMD 0xc2268
504/* [RW 13] The start address in the internal RAM for queue counters */
505#define CSDM_REG_Q_COUNTER_START_ADDR 0xc2010
506/* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */
507#define CSDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0xc2548
508/* [R 1] parser fifo empty in sdm_sync block */
509#define CSDM_REG_SYNC_PARSER_EMPTY 0xc2550
510/* [R 1] parser serial fifo empty in sdm_sync block */
511#define CSDM_REG_SYNC_SYNC_EMPTY 0xc2558
512/* [RW 32] Tick for timer counter. Applicable only when
513 ~csdm_registers_timer_tick_enable.timer_tick_enable =1 */
514#define CSDM_REG_TIMER_TICK 0xc2000
515/* [RW 5] The number of time_slots in the arbitration cycle */
516#define CSEM_REG_ARB_CYCLE_SIZE 0x200034
517/* [RW 3] The source that is associated with arbitration element 0. Source
518 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
519 sleeping thread with priority 1; 4- sleeping thread with priority 2 */
520#define CSEM_REG_ARB_ELEMENT0 0x200020
521/* [RW 3] The source that is associated with arbitration element 1. Source
522 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
523 sleeping thread with priority 1; 4- sleeping thread with priority 2.
524 Could not be equal to register ~csem_registers_arb_element0.arb_element0 */
525#define CSEM_REG_ARB_ELEMENT1 0x200024
526/* [RW 3] The source that is associated with arbitration element 2. Source
527 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
528 sleeping thread with priority 1; 4- sleeping thread with priority 2.
529 Could not be equal to register ~csem_registers_arb_element0.arb_element0
530 and ~csem_registers_arb_element1.arb_element1 */
531#define CSEM_REG_ARB_ELEMENT2 0x200028
532/* [RW 3] The source that is associated with arbitration element 3. Source
533 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
534 sleeping thread with priority 1; 4- sleeping thread with priority 2.Could
535 not be equal to register ~csem_registers_arb_element0.arb_element0 and
536 ~csem_registers_arb_element1.arb_element1 and
537 ~csem_registers_arb_element2.arb_element2 */
538#define CSEM_REG_ARB_ELEMENT3 0x20002c
539/* [RW 3] The source that is associated with arbitration element 4. Source
540 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
541 sleeping thread with priority 1; 4- sleeping thread with priority 2.
542 Could not be equal to register ~csem_registers_arb_element0.arb_element0
543 and ~csem_registers_arb_element1.arb_element1 and
544 ~csem_registers_arb_element2.arb_element2 and
545 ~csem_registers_arb_element3.arb_element3 */
546#define CSEM_REG_ARB_ELEMENT4 0x200030
547/* [RW 32] Interrupt mask register #0 read/write */
548#define CSEM_REG_CSEM_INT_MASK_0 0x200110
549#define CSEM_REG_CSEM_INT_MASK_1 0x200120
Yaniv Rosnerc18487e2008-06-23 20:27:52 -0700550/* [R 32] Interrupt register #0 read */
551#define CSEM_REG_CSEM_INT_STS_0 0x200104
552#define CSEM_REG_CSEM_INT_STS_1 0x200114
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200553/* [RW 32] Parity mask register #0 read/write */
554#define CSEM_REG_CSEM_PRTY_MASK_0 0x200130
555#define CSEM_REG_CSEM_PRTY_MASK_1 0x200140
Eliezer Tamirf1410642008-02-28 11:51:50 -0800556/* [R 32] Parity register #0 read */
557#define CSEM_REG_CSEM_PRTY_STS_0 0x200124
558#define CSEM_REG_CSEM_PRTY_STS_1 0x200134
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200559#define CSEM_REG_ENABLE_IN 0x2000a4
560#define CSEM_REG_ENABLE_OUT 0x2000a8
561/* [RW 32] This address space contains all registers and memories that are
562 placed in SEM_FAST block. The SEM_FAST registers are described in
Yaniv Rosnerc18487e2008-06-23 20:27:52 -0700563 appendix B. In order to access the sem_fast registers the base address
564 ~fast_memory.fast_memory should be added to eachsem_fast register offset. */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200565#define CSEM_REG_FAST_MEMORY 0x220000
566/* [RW 1] Disables input messages from FIC0 May be updated during run_time
567 by the microcode */
568#define CSEM_REG_FIC0_DISABLE 0x200224
569/* [RW 1] Disables input messages from FIC1 May be updated during run_time
570 by the microcode */
571#define CSEM_REG_FIC1_DISABLE 0x200234
572/* [RW 15] Interrupt table Read and write access to it is not possible in
573 the middle of the work */
574#define CSEM_REG_INT_TABLE 0x200400
575/* [ST 24] Statistics register. The number of messages that entered through
576 FIC0 */
577#define CSEM_REG_MSG_NUM_FIC0 0x200000
578/* [ST 24] Statistics register. The number of messages that entered through
579 FIC1 */
580#define CSEM_REG_MSG_NUM_FIC1 0x200004
581/* [ST 24] Statistics register. The number of messages that were sent to
582 FOC0 */
583#define CSEM_REG_MSG_NUM_FOC0 0x200008
584/* [ST 24] Statistics register. The number of messages that were sent to
585 FOC1 */
586#define CSEM_REG_MSG_NUM_FOC1 0x20000c
587/* [ST 24] Statistics register. The number of messages that were sent to
588 FOC2 */
589#define CSEM_REG_MSG_NUM_FOC2 0x200010
590/* [ST 24] Statistics register. The number of messages that were sent to
591 FOC3 */
592#define CSEM_REG_MSG_NUM_FOC3 0x200014
593/* [RW 1] Disables input messages from the passive buffer May be updated
594 during run_time by the microcode */
595#define CSEM_REG_PAS_DISABLE 0x20024c
596/* [WB 128] Debug only. Passive buffer memory */
597#define CSEM_REG_PASSIVE_BUFFER 0x202000
598/* [WB 46] pram memory. B45 is parity; b[44:0] - data. */
599#define CSEM_REG_PRAM 0x240000
600/* [R 16] Valid sleeping threads indication have bit per thread */
601#define CSEM_REG_SLEEP_THREADS_VALID 0x20026c
602/* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */
603#define CSEM_REG_SLOW_EXT_STORE_EMPTY 0x2002a0
604/* [RW 16] List of free threads . There is a bit per thread. */
605#define CSEM_REG_THREADS_LIST 0x2002e4
606/* [RW 3] The arbitration scheme of time_slot 0 */
607#define CSEM_REG_TS_0_AS 0x200038
608/* [RW 3] The arbitration scheme of time_slot 10 */
609#define CSEM_REG_TS_10_AS 0x200060
610/* [RW 3] The arbitration scheme of time_slot 11 */
611#define CSEM_REG_TS_11_AS 0x200064
612/* [RW 3] The arbitration scheme of time_slot 12 */
613#define CSEM_REG_TS_12_AS 0x200068
614/* [RW 3] The arbitration scheme of time_slot 13 */
615#define CSEM_REG_TS_13_AS 0x20006c
616/* [RW 3] The arbitration scheme of time_slot 14 */
617#define CSEM_REG_TS_14_AS 0x200070
618/* [RW 3] The arbitration scheme of time_slot 15 */
619#define CSEM_REG_TS_15_AS 0x200074
620/* [RW 3] The arbitration scheme of time_slot 16 */
621#define CSEM_REG_TS_16_AS 0x200078
622/* [RW 3] The arbitration scheme of time_slot 17 */
623#define CSEM_REG_TS_17_AS 0x20007c
624/* [RW 3] The arbitration scheme of time_slot 18 */
625#define CSEM_REG_TS_18_AS 0x200080
626/* [RW 3] The arbitration scheme of time_slot 1 */
627#define CSEM_REG_TS_1_AS 0x20003c
628/* [RW 3] The arbitration scheme of time_slot 2 */
629#define CSEM_REG_TS_2_AS 0x200040
630/* [RW 3] The arbitration scheme of time_slot 3 */
631#define CSEM_REG_TS_3_AS 0x200044
632/* [RW 3] The arbitration scheme of time_slot 4 */
633#define CSEM_REG_TS_4_AS 0x200048
634/* [RW 3] The arbitration scheme of time_slot 5 */
635#define CSEM_REG_TS_5_AS 0x20004c
636/* [RW 3] The arbitration scheme of time_slot 6 */
637#define CSEM_REG_TS_6_AS 0x200050
638/* [RW 3] The arbitration scheme of time_slot 7 */
639#define CSEM_REG_TS_7_AS 0x200054
640/* [RW 3] The arbitration scheme of time_slot 8 */
641#define CSEM_REG_TS_8_AS 0x200058
642/* [RW 3] The arbitration scheme of time_slot 9 */
643#define CSEM_REG_TS_9_AS 0x20005c
Dmitry Kravkovf2e08992010-10-06 03:28:26 +0000644/* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64
645 * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */
646#define CSEM_REG_VFPF_ERR_NUM 0x200380
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200647/* [RW 1] Parity mask register #0 read/write */
648#define DBG_REG_DBG_PRTY_MASK 0xc0a8
Eliezer Tamirf1410642008-02-28 11:51:50 -0800649/* [R 1] Parity register #0 read */
650#define DBG_REG_DBG_PRTY_STS 0xc09c
Dmitry Kravkovf2e08992010-10-06 03:28:26 +0000651/* [RW 1] When set the DMAE will process the commands as in E1.5. 1.The
652 * function that is used is always SRC-PCI; 2.VF_Valid = 0; 3.VFID=0;
653 * 4.Completion function=0; 5.Error handling=0 */
654#define DMAE_REG_BACKWARD_COMP_EN 0x10207c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200655/* [RW 32] Commands memory. The address to command X; row Y is to calculated
656 as 14*X+Y. */
657#define DMAE_REG_CMD_MEM 0x102400
Eilon Greenstein34f80b02008-06-23 20:33:01 -0700658#define DMAE_REG_CMD_MEM_SIZE 224
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200659/* [RW 1] If 0 - the CRC-16c initial value is all zeroes; if 1 - the CRC-16c
660 initial value is all ones. */
661#define DMAE_REG_CRC16C_INIT 0x10201c
662/* [RW 1] If 0 - the CRC-16 T10 initial value is all zeroes; if 1 - the
663 CRC-16 T10 initial value is all ones. */
664#define DMAE_REG_CRC16T10_INIT 0x102020
665/* [RW 2] Interrupt mask register #0 read/write */
666#define DMAE_REG_DMAE_INT_MASK 0x102054
667/* [RW 4] Parity mask register #0 read/write */
668#define DMAE_REG_DMAE_PRTY_MASK 0x102064
Eliezer Tamirf1410642008-02-28 11:51:50 -0800669/* [R 4] Parity register #0 read */
670#define DMAE_REG_DMAE_PRTY_STS 0x102058
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200671/* [RW 1] Command 0 go. */
672#define DMAE_REG_GO_C0 0x102080
673/* [RW 1] Command 1 go. */
674#define DMAE_REG_GO_C1 0x102084
675/* [RW 1] Command 10 go. */
676#define DMAE_REG_GO_C10 0x102088
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200677/* [RW 1] Command 11 go. */
678#define DMAE_REG_GO_C11 0x10208c
679/* [RW 1] Command 12 go. */
680#define DMAE_REG_GO_C12 0x102090
681/* [RW 1] Command 13 go. */
682#define DMAE_REG_GO_C13 0x102094
683/* [RW 1] Command 14 go. */
684#define DMAE_REG_GO_C14 0x102098
685/* [RW 1] Command 15 go. */
686#define DMAE_REG_GO_C15 0x10209c
687/* [RW 1] Command 2 go. */
688#define DMAE_REG_GO_C2 0x1020a0
689/* [RW 1] Command 3 go. */
690#define DMAE_REG_GO_C3 0x1020a4
691/* [RW 1] Command 4 go. */
692#define DMAE_REG_GO_C4 0x1020a8
693/* [RW 1] Command 5 go. */
694#define DMAE_REG_GO_C5 0x1020ac
695/* [RW 1] Command 6 go. */
696#define DMAE_REG_GO_C6 0x1020b0
697/* [RW 1] Command 7 go. */
698#define DMAE_REG_GO_C7 0x1020b4
699/* [RW 1] Command 8 go. */
700#define DMAE_REG_GO_C8 0x1020b8
701/* [RW 1] Command 9 go. */
702#define DMAE_REG_GO_C9 0x1020bc
703/* [RW 1] DMAE GRC Interface (Target; aster) enable. If 0 - the acknowledge
704 input is disregarded; valid is deasserted; all other signals are treated
705 as usual; if 1 - normal activity. */
706#define DMAE_REG_GRC_IFEN 0x102008
707/* [RW 1] DMAE PCI Interface (Request; ead; rite) enable. If 0 - the
708 acknowledge input is disregarded; valid is deasserted; full is asserted;
709 all other signals are treated as usual; if 1 - normal activity. */
710#define DMAE_REG_PCI_IFEN 0x102004
711/* [RW 4] DMAE- PCI Request Interface initial credit. Write writes the
712 initial value to the credit counter; related to the address. Read returns
713 the current value of the counter. */
714#define DMAE_REG_PXP_REQ_INIT_CRD 0x1020c0
715/* [RW 8] Aggregation command. */
716#define DORQ_REG_AGG_CMD0 0x170060
717/* [RW 8] Aggregation command. */
718#define DORQ_REG_AGG_CMD1 0x170064
719/* [RW 8] Aggregation command. */
720#define DORQ_REG_AGG_CMD2 0x170068
721/* [RW 8] Aggregation command. */
722#define DORQ_REG_AGG_CMD3 0x17006c
723/* [RW 28] UCM Header. */
724#define DORQ_REG_CMHEAD_RX 0x170050
Yaniv Rosnerc18487e2008-06-23 20:27:52 -0700725/* [RW 32] Doorbell address for RBC doorbells (function 0). */
726#define DORQ_REG_DB_ADDR0 0x17008c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200727/* [RW 5] Interrupt mask register #0 read/write */
728#define DORQ_REG_DORQ_INT_MASK 0x170180
729/* [R 5] Interrupt register #0 read */
730#define DORQ_REG_DORQ_INT_STS 0x170174
731/* [RC 5] Interrupt register #0 read clear */
732#define DORQ_REG_DORQ_INT_STS_CLR 0x170178
733/* [RW 2] Parity mask register #0 read/write */
734#define DORQ_REG_DORQ_PRTY_MASK 0x170190
Eliezer Tamirf1410642008-02-28 11:51:50 -0800735/* [R 2] Parity register #0 read */
736#define DORQ_REG_DORQ_PRTY_STS 0x170184
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200737/* [RW 8] The address to write the DPM CID to STORM. */
738#define DORQ_REG_DPM_CID_ADDR 0x170044
739/* [RW 5] The DPM mode CID extraction offset. */
740#define DORQ_REG_DPM_CID_OFST 0x170030
741/* [RW 12] The threshold of the DQ FIFO to send the almost full interrupt. */
742#define DORQ_REG_DQ_FIFO_AFULL_TH 0x17007c
743/* [RW 12] The threshold of the DQ FIFO to send the full interrupt. */
744#define DORQ_REG_DQ_FIFO_FULL_TH 0x170078
745/* [R 13] Current value of the DQ FIFO fill level according to following
746 pointer. The range is 0 - 256 FIFO rows; where each row stands for the
747 doorbell. */
748#define DORQ_REG_DQ_FILL_LVLF 0x1700a4
749/* [R 1] DQ FIFO full status. Is set; when FIFO filling level is more or
750 equal to full threshold; reset on full clear. */
751#define DORQ_REG_DQ_FULL_ST 0x1700c0
752/* [RW 28] The value sent to CM header in the case of CFC load error. */
753#define DORQ_REG_ERR_CMHEAD 0x170058
754#define DORQ_REG_IF_EN 0x170004
755#define DORQ_REG_MODE_ACT 0x170008
756/* [RW 5] The normal mode CID extraction offset. */
757#define DORQ_REG_NORM_CID_OFST 0x17002c
758/* [RW 28] TCM Header when only TCP context is loaded. */
759#define DORQ_REG_NORM_CMHEAD_TX 0x17004c
760/* [RW 3] The number of simultaneous outstanding requests to Context Fetch
761 Interface. */
762#define DORQ_REG_OUTST_REQ 0x17003c
763#define DORQ_REG_REGN 0x170038
764/* [R 4] Current value of response A counter credit. Initial credit is
765 configured through write to ~dorq_registers_rsp_init_crd.rsp_init_crd
766 register. */
767#define DORQ_REG_RSPA_CRD_CNT 0x1700ac
768/* [R 4] Current value of response B counter credit. Initial credit is
769 configured through write to ~dorq_registers_rsp_init_crd.rsp_init_crd
770 register. */
771#define DORQ_REG_RSPB_CRD_CNT 0x1700b0
772/* [RW 4] The initial credit at the Doorbell Response Interface. The write
773 writes the same initial credit to the rspa_crd_cnt and rspb_crd_cnt. The
774 read reads this written value. */
775#define DORQ_REG_RSP_INIT_CRD 0x170048
776/* [RW 4] Initial activity counter value on the load request; when the
777 shortcut is done. */
778#define DORQ_REG_SHRT_ACT_CNT 0x170070
779/* [RW 28] TCM Header when both ULP and TCP context is loaded. */
780#define DORQ_REG_SHRT_CMHEAD 0x170054
781#define HC_CONFIG_0_REG_ATTN_BIT_EN_0 (0x1<<4)
782#define HC_CONFIG_0_REG_INT_LINE_EN_0 (0x1<<3)
Eilon Greenstein8badd272009-02-12 08:36:15 +0000783#define HC_CONFIG_0_REG_MSI_ATTN_EN_0 (0x1<<7)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200784#define HC_CONFIG_0_REG_MSI_MSIX_INT_EN_0 (0x1<<2)
785#define HC_CONFIG_0_REG_SINGLE_ISR_EN_0 (0x1<<1)
786#define HC_REG_AGG_INT_0 0x108050
787#define HC_REG_AGG_INT_1 0x108054
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200788#define HC_REG_ATTN_BIT 0x108120
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200789#define HC_REG_ATTN_IDX 0x108100
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200790#define HC_REG_ATTN_MSG0_ADDR_L 0x108018
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200791#define HC_REG_ATTN_MSG1_ADDR_L 0x108020
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200792#define HC_REG_ATTN_NUM_P0 0x108038
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200793#define HC_REG_ATTN_NUM_P1 0x10803c
Eilon Greenstein5c862842008-08-13 15:51:48 -0700794#define HC_REG_COMMAND_REG 0x108180
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200795#define HC_REG_CONFIG_0 0x108000
796#define HC_REG_CONFIG_1 0x108004
Yaniv Rosnerc18487e2008-06-23 20:27:52 -0700797#define HC_REG_FUNC_NUM_P0 0x1080ac
798#define HC_REG_FUNC_NUM_P1 0x1080b0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200799/* [RW 3] Parity mask register #0 read/write */
800#define HC_REG_HC_PRTY_MASK 0x1080a0
Eliezer Tamirf1410642008-02-28 11:51:50 -0800801/* [R 3] Parity register #0 read */
802#define HC_REG_HC_PRTY_STS 0x108094
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200803#define HC_REG_INT_MASK 0x108108
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200804#define HC_REG_LEADING_EDGE_0 0x108040
805#define HC_REG_LEADING_EDGE_1 0x108048
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200806#define HC_REG_P0_PROD_CONS 0x108200
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200807#define HC_REG_P1_PROD_CONS 0x108400
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200808#define HC_REG_PBA_COMMAND 0x108140
809#define HC_REG_PCI_CONFIG_0 0x108010
810#define HC_REG_PCI_CONFIG_1 0x108014
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200811#define HC_REG_STATISTIC_COUNTERS 0x109000
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200812#define HC_REG_TRAILING_EDGE_0 0x108044
813#define HC_REG_TRAILING_EDGE_1 0x10804c
814#define HC_REG_UC_RAM_ADDR_0 0x108028
815#define HC_REG_UC_RAM_ADDR_1 0x108030
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200816#define HC_REG_USTORM_ADDR_FOR_COALESCE 0x108068
817#define HC_REG_VQID_0 0x108008
818#define HC_REG_VQID_1 0x10800c
Dmitry Kravkovf2e08992010-10-06 03:28:26 +0000819#define IGU_BLOCK_CONFIGURATION_REG_BACKWARD_COMP_EN (0x1<<1)
820#define IGU_REG_ATTENTION_ACK_BITS 0x130108
821/* [R 4] Debug: attn_fsm */
822#define IGU_REG_ATTN_FSM 0x130054
823#define IGU_REG_ATTN_MSG_ADDR_H 0x13011c
824#define IGU_REG_ATTN_MSG_ADDR_L 0x130120
825/* [R 4] Debug: [3] - attention write done message is pending (0-no pending;
826 * 1-pending). [2:0] = PFID. Pending means attention message was sent; but
827 * write done didnt receive. */
828#define IGU_REG_ATTN_WRITE_DONE_PENDING 0x130030
829#define IGU_REG_BLOCK_CONFIGURATION 0x130000
830#define IGU_REG_COMMAND_REG_32LSB_DATA 0x130124
831#define IGU_REG_COMMAND_REG_CTRL 0x13012c
832/* [WB_R 32] Cleanup bit status per SB. 1 = cleanup is set. 0 = cleanup bit
833 * is clear. The bits in this registers are set and clear via the producer
834 * command. Data valid only in addresses 0-4. all the rest are zero. */
835#define IGU_REG_CSTORM_TYPE_0_SB_CLEANUP 0x130200
836/* [R 5] Debug: ctrl_fsm */
837#define IGU_REG_CTRL_FSM 0x130064
838/* [R 1] data availble for error memory. If this bit is clear do not red
839 * from error_handling_memory. */
840#define IGU_REG_ERROR_HANDLING_DATA_VALID 0x130130
841/* [R 11] Parity register #0 read */
842#define IGU_REG_IGU_PRTY_STS 0x13009c
843/* [R 4] Debug: int_handle_fsm */
844#define IGU_REG_INT_HANDLE_FSM 0x130050
845#define IGU_REG_LEADING_EDGE_LATCH 0x130134
846/* [RW 14] mapping CAM; relevant for E2 operating mode only. [0] - valid.
847 * [6:1] - vector number; [13:7] - FID (if VF - [13] = 0; [12:7] = VF
848 * number; if PF - [13] = 1; [12:10] = 0; [9:7] = PF number); */
849#define IGU_REG_MAPPING_MEMORY 0x131000
850#define IGU_REG_MAPPING_MEMORY_SIZE 136
851#define IGU_REG_PBA_STATUS_LSB 0x130138
852#define IGU_REG_PBA_STATUS_MSB 0x13013c
853#define IGU_REG_PCI_PF_MSI_EN 0x130140
854#define IGU_REG_PCI_PF_MSIX_EN 0x130144
855#define IGU_REG_PCI_PF_MSIX_FUNC_MASK 0x130148
856/* [WB_R 32] Each bit represent the pending bits status for that SB. 0 = no
857 * pending; 1 = pending. Pendings means interrupt was asserted; and write
858 * done was not received. Data valid only in addresses 0-4. all the rest are
859 * zero. */
860#define IGU_REG_PENDING_BITS_STATUS 0x130300
861#define IGU_REG_PF_CONFIGURATION 0x130154
862/* [RW 20] producers only. E2 mode: address 0-135 match to the mapping
863 * memory; 136 - PF0 default prod; 137 PF1 default prod; 138 - PF2 default
864 * prod; 139 PF3 default prod; 140 - PF0 - ATTN prod; 141 - PF1 - ATTN prod;
865 * 142 - PF2 - ATTN prod; 143 - PF3 - ATTN prod; 144-147 reserved. E1.5 mode
866 * - In backward compatible mode; for non default SB; each even line in the
867 * memory holds the U producer and each odd line hold the C producer. The
868 * first 128 producer are for NDSB (PF0 - 0-31; PF1 - 32-63 and so on). The
869 * last 20 producers are for the DSB for each PF. each PF has five segments
870 * (the order inside each segment is PF0; PF1; PF2; PF3) - 128-131 U prods;
871 * 132-135 C prods; 136-139 X prods; 140-143 T prods; 144-147 ATTN prods; */
872#define IGU_REG_PROD_CONS_MEMORY 0x132000
873/* [R 3] Debug: pxp_arb_fsm */
874#define IGU_REG_PXP_ARB_FSM 0x130068
875/* [RW 6] Write one for each bit will reset the appropriate memory. When the
876 * memory reset finished the appropriate bit will be clear. Bit 0 - mapping
877 * memory; Bit 1 - SB memory; Bit 2 - SB interrupt and mask register; Bit 3
878 * - MSIX memory; Bit 4 - PBA memory; Bit 5 - statistics; */
879#define IGU_REG_RESET_MEMORIES 0x130158
880/* [R 4] Debug: sb_ctrl_fsm */
881#define IGU_REG_SB_CTRL_FSM 0x13004c
882#define IGU_REG_SB_INT_BEFORE_MASK_LSB 0x13015c
883#define IGU_REG_SB_INT_BEFORE_MASK_MSB 0x130160
884#define IGU_REG_SB_MASK_LSB 0x130164
885#define IGU_REG_SB_MASK_MSB 0x130168
886/* [RW 16] Number of command that were dropped without causing an interrupt
887 * due to: read access for WO BAR address; or write access for RO BAR
888 * address or any access for reserved address or PCI function error is set
889 * and address is not MSIX; PBA or cleanup */
890#define IGU_REG_SILENT_DROP 0x13016c
891/* [RW 10] Number of MSI/MSIX/ATTN messages sent for the function: 0-63 -
892 * number of MSIX messages per VF; 64-67 - number of MSI/MSIX messages per
893 * PF; 68-71 number of ATTN messages per PF */
894#define IGU_REG_STATISTIC_NUM_MESSAGE_SENT 0x130800
895/* [RW 32] Number of cycles the timer mask masking the IGU interrupt when a
896 * timer mask command arrives. Value must be bigger than 100. */
897#define IGU_REG_TIMER_MASKING_VALUE 0x13003c
898#define IGU_REG_TRAILING_EDGE_LATCH 0x130104
899#define IGU_REG_VF_CONFIGURATION 0x130170
900/* [WB_R 32] Each bit represent write done pending bits status for that SB
901 * (MSI/MSIX message was sent and write done was not received yet). 0 =
902 * clear; 1 = set. Data valid only in addresses 0-4. all the rest are zero. */
903#define IGU_REG_WRITE_DONE_PENDING 0x130480
904#define MCP_A_REG_MCPR_SCRATCH 0x3a0000
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200905#define MCP_REG_MCPR_NVM_ACCESS_ENABLE 0x86424
906#define MCP_REG_MCPR_NVM_ADDR 0x8640c
907#define MCP_REG_MCPR_NVM_CFG4 0x8642c
908#define MCP_REG_MCPR_NVM_COMMAND 0x86400
909#define MCP_REG_MCPR_NVM_READ 0x86410
910#define MCP_REG_MCPR_NVM_SW_ARB 0x86420
911#define MCP_REG_MCPR_NVM_WRITE 0x86408
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200912#define MCP_REG_MCPR_SCRATCH 0xa0000
Vladislav Zolotarov72fd0712010-04-19 01:13:12 +0000913#define MISC_AEU_GENERAL_MASK_REG_AEU_NIG_CLOSE_MASK (0x1<<1)
914#define MISC_AEU_GENERAL_MASK_REG_AEU_PXP_CLOSE_MASK (0x1<<0)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +0200915/* [R 32] read first 32 bit after inversion of function 0. mapped as
916 follows: [0] NIG attention for function0; [1] NIG attention for
917 function1; [2] GPIO1 mcp; [3] GPIO2 mcp; [4] GPIO3 mcp; [5] GPIO4 mcp;
918 [6] GPIO1 function 1; [7] GPIO2 function 1; [8] GPIO3 function 1; [9]
919 GPIO4 function 1; [10] PCIE glue/PXP VPD event function0; [11] PCIE
920 glue/PXP VPD event function1; [12] PCIE glue/PXP Expansion ROM event0;
921 [13] PCIE glue/PXP Expansion ROM event1; [14] SPIO4; [15] SPIO5; [16]
922 MSI/X indication for mcp; [17] MSI/X indication for function 1; [18] BRB
923 Parity error; [19] BRB Hw interrupt; [20] PRS Parity error; [21] PRS Hw
924 interrupt; [22] SRC Parity error; [23] SRC Hw interrupt; [24] TSDM Parity
925 error; [25] TSDM Hw interrupt; [26] TCM Parity error; [27] TCM Hw
926 interrupt; [28] TSEMI Parity error; [29] TSEMI Hw interrupt; [30] PBF
927 Parity error; [31] PBF Hw interrupt; */
928#define MISC_REG_AEU_AFTER_INVERT_1_FUNC_0 0xa42c
929#define MISC_REG_AEU_AFTER_INVERT_1_FUNC_1 0xa430
930/* [R 32] read first 32 bit after inversion of mcp. mapped as follows: [0]
931 NIG attention for function0; [1] NIG attention for function1; [2] GPIO1
932 mcp; [3] GPIO2 mcp; [4] GPIO3 mcp; [5] GPIO4 mcp; [6] GPIO1 function 1;
933 [7] GPIO2 function 1; [8] GPIO3 function 1; [9] GPIO4 function 1; [10]
934 PCIE glue/PXP VPD event function0; [11] PCIE glue/PXP VPD event
935 function1; [12] PCIE glue/PXP Expansion ROM event0; [13] PCIE glue/PXP
936 Expansion ROM event1; [14] SPIO4; [15] SPIO5; [16] MSI/X indication for
937 mcp; [17] MSI/X indication for function 1; [18] BRB Parity error; [19]
938 BRB Hw interrupt; [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC
939 Parity error; [23] SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw
940 interrupt; [26] TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI
941 Parity error; [29] TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw
942 interrupt; */
943#define MISC_REG_AEU_AFTER_INVERT_1_MCP 0xa434
944/* [R 32] read second 32 bit after inversion of function 0. mapped as
945 follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
946 Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
947 interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
948 error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
949 interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
950 NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
951 [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
952 interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
953 Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
954 Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
955 Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
956 interrupt; */
957#define MISC_REG_AEU_AFTER_INVERT_2_FUNC_0 0xa438
958#define MISC_REG_AEU_AFTER_INVERT_2_FUNC_1 0xa43c
959/* [R 32] read second 32 bit after inversion of mcp. mapped as follows: [0]
960 PBClient Parity error; [1] PBClient Hw interrupt; [2] QM Parity error;
961 [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw interrupt;
962 [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity error; [9]
963 XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw interrupt; [12]
964 DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14] NIG Parity
965 error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error; [17] Vaux
966 PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw interrupt;
967 [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM Parity error;
968 [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI Hw interrupt;
969 [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM Parity error;
970 [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw interrupt; */
971#define MISC_REG_AEU_AFTER_INVERT_2_MCP 0xa440
972/* [R 32] read third 32 bit after inversion of function 0. mapped as
973 follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP Parity
974 error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error; [5]
975 PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
976 interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
977 error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
978 Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
979 pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
980 MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
981 SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
982 timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
983 func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
984 attn1; */
985#define MISC_REG_AEU_AFTER_INVERT_3_FUNC_0 0xa444
986#define MISC_REG_AEU_AFTER_INVERT_3_FUNC_1 0xa448
987/* [R 32] read third 32 bit after inversion of mcp. mapped as follows: [0]
988 CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP Parity error; [3] PXP
989 Hw interrupt; [4] PXPpciClockClient Parity error; [5] PXPpciClockClient
990 Hw interrupt; [6] CFC Parity error; [7] CFC Hw interrupt; [8] CDU Parity
991 error; [9] CDU Hw interrupt; [10] DMAE Parity error; [11] DMAE Hw
992 interrupt; [12] IGU (HC) Parity error; [13] IGU (HC) Hw interrupt; [14]
993 MISC Parity error; [15] MISC Hw interrupt; [16] pxp_misc_mps_attn; [17]
994 Flash event; [18] SMB event; [19] MCP attn0; [20] MCP attn1; [21] SW
995 timers attn_1 func0; [22] SW timers attn_2 func0; [23] SW timers attn_3
996 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW timers attn_1
997 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3 func1; [29] SW
998 timers attn_4 func1; [30] General attn0; [31] General attn1; */
999#define MISC_REG_AEU_AFTER_INVERT_3_MCP 0xa44c
1000/* [R 32] read fourth 32 bit after inversion of function 0. mapped as
1001 follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
1002 General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
1003 [7] General attn9; [8] General attn10; [9] General attn11; [10] General
1004 attn12; [11] General attn13; [12] General attn14; [13] General attn15;
1005 [14] General attn16; [15] General attn17; [16] General attn18; [17]
1006 General attn19; [18] General attn20; [19] General attn21; [20] Main power
1007 interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
1008 Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
1009 Latched timeout attention; [27] GRC Latched reserved access attention;
1010 [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
1011 Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
1012#define MISC_REG_AEU_AFTER_INVERT_4_FUNC_0 0xa450
1013#define MISC_REG_AEU_AFTER_INVERT_4_FUNC_1 0xa454
1014/* [R 32] read fourth 32 bit after inversion of mcp. mapped as follows: [0]
1015 General attn2; [1] General attn3; [2] General attn4; [3] General attn5;
1016 [4] General attn6; [5] General attn7; [6] General attn8; [7] General
1017 attn9; [8] General attn10; [9] General attn11; [10] General attn12; [11]
1018 General attn13; [12] General attn14; [13] General attn15; [14] General
1019 attn16; [15] General attn17; [16] General attn18; [17] General attn19;
1020 [18] General attn20; [19] General attn21; [20] Main power interrupt; [21]
1021 RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN Latched attn; [24]
1022 RBCU Latched attn; [25] RBCP Latched attn; [26] GRC Latched timeout
1023 attention; [27] GRC Latched reserved access attention; [28] MCP Latched
1024 rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP Latched
1025 ump_tx_parity; [31] MCP Latched scpad_parity; */
1026#define MISC_REG_AEU_AFTER_INVERT_4_MCP 0xa458
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00001027/* [R 32] Read fifth 32 bit after inversion of function 0. Mapped as
1028 * follows: [0] PGLUE config_space; [1] PGLUE misc_flr; [2] PGLUE B RBC
1029 * attention [3] PGLUE B RBC parity; [4] ATC attention; [5] ATC parity; [6]
1030 * CNIG attention (reserved); [7] CNIG parity (reserved); [31-8] Reserved; */
1031#define MISC_REG_AEU_AFTER_INVERT_5_FUNC_0 0xa700
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001032/* [W 14] write to this register results with the clear of the latched
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001033 signals; one in d0 clears RBCR latch; one in d1 clears RBCT latch; one in
1034 d2 clears RBCN latch; one in d3 clears RBCU latch; one in d4 clears RBCP
1035 latch; one in d5 clears GRC Latched timeout attention; one in d6 clears
1036 GRC Latched reserved access attention; one in d7 clears Latched
1037 rom_parity; one in d8 clears Latched ump_rx_parity; one in d9 clears
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001038 Latched ump_tx_parity; one in d10 clears Latched scpad_parity (both
1039 ports); one in d11 clears pxpv_misc_mps_attn; one in d12 clears
1040 pxp_misc_exp_rom_attn0; one in d13 clears pxp_misc_exp_rom_attn1; read
1041 from this register return zero */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001042#define MISC_REG_AEU_CLR_LATCH_SIGNAL 0xa45c
1043/* [RW 32] first 32b for enabling the output for function 0 output0. mapped
1044 as follows: [0] NIG attention for function0; [1] NIG attention for
1045 function1; [2] GPIO1 function 0; [3] GPIO2 function 0; [4] GPIO3 function
1046 0; [5] GPIO4 function 0; [6] GPIO1 function 1; [7] GPIO2 function 1; [8]
1047 GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
1048 function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
1049 Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
1050 SPIO4; [15] SPIO5; [16] MSI/X indication for function 0; [17] MSI/X
1051 indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt;
1052 [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23]
1053 SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26]
1054 TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29]
1055 TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
1056#define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_0 0xa06c
1057#define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_1 0xa07c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001058#define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_2 0xa08c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001059#define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_3 0xa09c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001060#define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_5 0xa0bc
1061#define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_6 0xa0cc
1062#define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_7 0xa0dc
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001063/* [RW 32] first 32b for enabling the output for function 1 output0. mapped
1064 as follows: [0] NIG attention for function0; [1] NIG attention for
1065 function1; [2] GPIO1 function 1; [3] GPIO2 function 1; [4] GPIO3 function
1066 1; [5] GPIO4 function 1; [6] GPIO1 function 1; [7] GPIO2 function 1; [8]
1067 GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
1068 function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
1069 Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
1070 SPIO4; [15] SPIO5; [16] MSI/X indication for function 1; [17] MSI/X
1071 indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt;
1072 [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23]
1073 SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26]
1074 TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29]
1075 TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
1076#define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_0 0xa10c
1077#define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_1 0xa11c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001078#define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_2 0xa12c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001079#define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_3 0xa13c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001080#define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_5 0xa15c
1081#define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_6 0xa16c
1082#define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_7 0xa17c
1083/* [RW 32] first 32b for enabling the output for close the gate nig. mapped
1084 as follows: [0] NIG attention for function0; [1] NIG attention for
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001085 function1; [2] GPIO1 function 0; [3] GPIO2 function 0; [4] GPIO3 function
1086 0; [5] GPIO4 function 0; [6] GPIO1 function 1; [7] GPIO2 function 1; [8]
1087 GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
1088 function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
1089 Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
1090 SPIO4; [15] SPIO5; [16] MSI/X indication for function 0; [17] MSI/X
1091 indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt;
1092 [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23]
1093 SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26]
1094 TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29]
1095 TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
1096#define MISC_REG_AEU_ENABLE1_NIG_0 0xa0ec
1097#define MISC_REG_AEU_ENABLE1_NIG_1 0xa18c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001098/* [RW 32] first 32b for enabling the output for close the gate pxp. mapped
1099 as follows: [0] NIG attention for function0; [1] NIG attention for
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001100 function1; [2] GPIO1 function 0; [3] GPIO2 function 0; [4] GPIO3 function
1101 0; [5] GPIO4 function 0; [6] GPIO1 function 1; [7] GPIO2 function 1; [8]
1102 GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
1103 function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
1104 Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
1105 SPIO4; [15] SPIO5; [16] MSI/X indication for function 0; [17] MSI/X
1106 indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt;
1107 [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23]
1108 SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26]
1109 TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29]
1110 TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
1111#define MISC_REG_AEU_ENABLE1_PXP_0 0xa0fc
1112#define MISC_REG_AEU_ENABLE1_PXP_1 0xa19c
1113/* [RW 32] second 32b for enabling the output for function 0 output0. mapped
1114 as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
1115 Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
1116 interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
1117 error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
1118 interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
1119 NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
1120 [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
1121 interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
1122 Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
1123 Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
1124 Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
1125 interrupt; */
1126#define MISC_REG_AEU_ENABLE2_FUNC_0_OUT_0 0xa070
1127#define MISC_REG_AEU_ENABLE2_FUNC_0_OUT_1 0xa080
1128/* [RW 32] second 32b for enabling the output for function 1 output0. mapped
1129 as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
1130 Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
1131 interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
1132 error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
1133 interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
1134 NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
1135 [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
1136 interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
1137 Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
1138 Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
1139 Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
1140 interrupt; */
1141#define MISC_REG_AEU_ENABLE2_FUNC_1_OUT_0 0xa110
1142#define MISC_REG_AEU_ENABLE2_FUNC_1_OUT_1 0xa120
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001143/* [RW 32] second 32b for enabling the output for close the gate nig. mapped
1144 as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
1145 Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
1146 interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
1147 error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
1148 interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
1149 NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
1150 [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
1151 interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
1152 Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
1153 Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
1154 Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
1155 interrupt; */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001156#define MISC_REG_AEU_ENABLE2_NIG_0 0xa0f0
1157#define MISC_REG_AEU_ENABLE2_NIG_1 0xa190
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001158/* [RW 32] second 32b for enabling the output for close the gate pxp. mapped
1159 as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
1160 Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
1161 interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
1162 error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
1163 interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
1164 NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
1165 [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
1166 interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
1167 Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
1168 Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
1169 Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
1170 interrupt; */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001171#define MISC_REG_AEU_ENABLE2_PXP_0 0xa100
1172#define MISC_REG_AEU_ENABLE2_PXP_1 0xa1a0
1173/* [RW 32] third 32b for enabling the output for function 0 output0. mapped
1174 as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP
1175 Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error;
1176 [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
1177 interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
1178 error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
1179 Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
1180 pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
1181 MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
1182 SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
1183 timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
1184 func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
1185 attn1; */
1186#define MISC_REG_AEU_ENABLE3_FUNC_0_OUT_0 0xa074
1187#define MISC_REG_AEU_ENABLE3_FUNC_0_OUT_1 0xa084
1188/* [RW 32] third 32b for enabling the output for function 1 output0. mapped
1189 as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP
1190 Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error;
1191 [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
1192 interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
1193 error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
1194 Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
1195 pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
1196 MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
1197 SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
1198 timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
1199 func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
1200 attn1; */
1201#define MISC_REG_AEU_ENABLE3_FUNC_1_OUT_0 0xa114
1202#define MISC_REG_AEU_ENABLE3_FUNC_1_OUT_1 0xa124
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001203/* [RW 32] third 32b for enabling the output for close the gate nig. mapped
1204 as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP
1205 Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error;
1206 [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
1207 interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
1208 error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
1209 Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
1210 pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
1211 MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
1212 SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
1213 timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
1214 func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
1215 attn1; */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001216#define MISC_REG_AEU_ENABLE3_NIG_0 0xa0f4
1217#define MISC_REG_AEU_ENABLE3_NIG_1 0xa194
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001218/* [RW 32] third 32b for enabling the output for close the gate pxp. mapped
1219 as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP
1220 Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error;
1221 [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
1222 interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
1223 error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
1224 Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
1225 pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
1226 MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
1227 SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
1228 timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
1229 func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
1230 attn1; */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001231#define MISC_REG_AEU_ENABLE3_PXP_0 0xa104
1232#define MISC_REG_AEU_ENABLE3_PXP_1 0xa1a4
1233/* [RW 32] fourth 32b for enabling the output for function 0 output0.mapped
1234 as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
1235 General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
1236 [7] General attn9; [8] General attn10; [9] General attn11; [10] General
1237 attn12; [11] General attn13; [12] General attn14; [13] General attn15;
1238 [14] General attn16; [15] General attn17; [16] General attn18; [17]
1239 General attn19; [18] General attn20; [19] General attn21; [20] Main power
1240 interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
1241 Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
1242 Latched timeout attention; [27] GRC Latched reserved access attention;
1243 [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
1244 Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
1245#define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_0 0xa078
1246#define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_2 0xa098
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001247#define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_4 0xa0b8
1248#define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_5 0xa0c8
1249#define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_6 0xa0d8
1250#define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_7 0xa0e8
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001251/* [RW 32] fourth 32b for enabling the output for function 1 output0.mapped
1252 as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
1253 General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
1254 [7] General attn9; [8] General attn10; [9] General attn11; [10] General
1255 attn12; [11] General attn13; [12] General attn14; [13] General attn15;
1256 [14] General attn16; [15] General attn17; [16] General attn18; [17]
1257 General attn19; [18] General attn20; [19] General attn21; [20] Main power
1258 interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
1259 Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
1260 Latched timeout attention; [27] GRC Latched reserved access attention;
1261 [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
1262 Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
1263#define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_0 0xa118
1264#define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_2 0xa138
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001265#define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_4 0xa158
1266#define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_5 0xa168
1267#define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_6 0xa178
1268#define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_7 0xa188
1269/* [RW 32] fourth 32b for enabling the output for close the gate nig.mapped
1270 as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
1271 General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
1272 [7] General attn9; [8] General attn10; [9] General attn11; [10] General
1273 attn12; [11] General attn13; [12] General attn14; [13] General attn15;
1274 [14] General attn16; [15] General attn17; [16] General attn18; [17]
1275 General attn19; [18] General attn20; [19] General attn21; [20] Main power
1276 interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
1277 Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
1278 Latched timeout attention; [27] GRC Latched reserved access attention;
1279 [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
1280 Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001281#define MISC_REG_AEU_ENABLE4_NIG_0 0xa0f8
1282#define MISC_REG_AEU_ENABLE4_NIG_1 0xa198
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001283/* [RW 32] fourth 32b for enabling the output for close the gate pxp.mapped
1284 as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
1285 General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
1286 [7] General attn9; [8] General attn10; [9] General attn11; [10] General
1287 attn12; [11] General attn13; [12] General attn14; [13] General attn15;
1288 [14] General attn16; [15] General attn17; [16] General attn18; [17]
1289 General attn19; [18] General attn20; [19] General attn21; [20] Main power
1290 interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
1291 Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
1292 Latched timeout attention; [27] GRC Latched reserved access attention;
1293 [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
1294 Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001295#define MISC_REG_AEU_ENABLE4_PXP_0 0xa108
1296#define MISC_REG_AEU_ENABLE4_PXP_1 0xa1a8
1297/* [RW 1] set/clr general attention 0; this will set/clr bit 94 in the aeu
1298 128 bit vector */
1299#define MISC_REG_AEU_GENERAL_ATTN_0 0xa000
1300#define MISC_REG_AEU_GENERAL_ATTN_1 0xa004
1301#define MISC_REG_AEU_GENERAL_ATTN_10 0xa028
1302#define MISC_REG_AEU_GENERAL_ATTN_11 0xa02c
1303#define MISC_REG_AEU_GENERAL_ATTN_12 0xa030
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001304#define MISC_REG_AEU_GENERAL_ATTN_2 0xa008
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001305#define MISC_REG_AEU_GENERAL_ATTN_3 0xa00c
1306#define MISC_REG_AEU_GENERAL_ATTN_4 0xa010
1307#define MISC_REG_AEU_GENERAL_ATTN_5 0xa014
1308#define MISC_REG_AEU_GENERAL_ATTN_6 0xa018
Eliezer Tamirf1410642008-02-28 11:51:50 -08001309#define MISC_REG_AEU_GENERAL_ATTN_7 0xa01c
1310#define MISC_REG_AEU_GENERAL_ATTN_8 0xa020
1311#define MISC_REG_AEU_GENERAL_ATTN_9 0xa024
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001312#define MISC_REG_AEU_GENERAL_MASK 0xa61c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001313/* [RW 32] first 32b for inverting the input for function 0; for each bit:
1314 0= do not invert; 1= invert; mapped as follows: [0] NIG attention for
1315 function0; [1] NIG attention for function1; [2] GPIO1 mcp; [3] GPIO2 mcp;
1316 [4] GPIO3 mcp; [5] GPIO4 mcp; [6] GPIO1 function 1; [7] GPIO2 function 1;
1317 [8] GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
1318 function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
1319 Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
1320 SPIO4; [15] SPIO5; [16] MSI/X indication for mcp; [17] MSI/X indication
1321 for function 1; [18] BRB Parity error; [19] BRB Hw interrupt; [20] PRS
1322 Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23] SRC Hw
1323 interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26] TCM
1324 Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29] TSEMI
1325 Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
1326#define MISC_REG_AEU_INVERTER_1_FUNC_0 0xa22c
1327#define MISC_REG_AEU_INVERTER_1_FUNC_1 0xa23c
1328/* [RW 32] second 32b for inverting the input for function 0; for each bit:
1329 0= do not invert; 1= invert. mapped as follows: [0] PBClient Parity
1330 error; [1] PBClient Hw interrupt; [2] QM Parity error; [3] QM Hw
1331 interrupt; [4] Timers Parity error; [5] Timers Hw interrupt; [6] XSDM
1332 Parity error; [7] XSDM Hw interrupt; [8] XCM Parity error; [9] XCM Hw
1333 interrupt; [10] XSEMI Parity error; [11] XSEMI Hw interrupt; [12]
1334 DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14] NIG Parity
1335 error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error; [17] Vaux
1336 PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw interrupt;
1337 [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM Parity error;
1338 [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI Hw interrupt;
1339 [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM Parity error;
1340 [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw interrupt; */
1341#define MISC_REG_AEU_INVERTER_2_FUNC_0 0xa230
1342#define MISC_REG_AEU_INVERTER_2_FUNC_1 0xa240
1343/* [RW 10] [7:0] = mask 8 attention output signals toward IGU function0;
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001344 [9:8] = raserved. Zero = mask; one = unmask */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001345#define MISC_REG_AEU_MASK_ATTN_FUNC_0 0xa060
1346#define MISC_REG_AEU_MASK_ATTN_FUNC_1 0xa064
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001347/* [RW 1] If set a system kill occurred */
1348#define MISC_REG_AEU_SYS_KILL_OCCURRED 0xa610
1349/* [RW 32] Represent the status of the input vector to the AEU when a system
1350 kill occurred. The register is reset in por reset. Mapped as follows: [0]
1351 NIG attention for function0; [1] NIG attention for function1; [2] GPIO1
1352 mcp; [3] GPIO2 mcp; [4] GPIO3 mcp; [5] GPIO4 mcp; [6] GPIO1 function 1;
1353 [7] GPIO2 function 1; [8] GPIO3 function 1; [9] GPIO4 function 1; [10]
1354 PCIE glue/PXP VPD event function0; [11] PCIE glue/PXP VPD event
1355 function1; [12] PCIE glue/PXP Expansion ROM event0; [13] PCIE glue/PXP
1356 Expansion ROM event1; [14] SPIO4; [15] SPIO5; [16] MSI/X indication for
1357 mcp; [17] MSI/X indication for function 1; [18] BRB Parity error; [19]
1358 BRB Hw interrupt; [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC
1359 Parity error; [23] SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw
1360 interrupt; [26] TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI
1361 Parity error; [29] TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw
1362 interrupt; */
1363#define MISC_REG_AEU_SYS_KILL_STATUS_0 0xa600
1364#define MISC_REG_AEU_SYS_KILL_STATUS_1 0xa604
1365#define MISC_REG_AEU_SYS_KILL_STATUS_2 0xa608
1366#define MISC_REG_AEU_SYS_KILL_STATUS_3 0xa60c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001367/* [R 4] This field indicates the type of the device. '0' - 2 Ports; '1' - 1
1368 Port. */
1369#define MISC_REG_BOND_ID 0xa400
1370/* [R 8] These bits indicate the metal revision of the chip. This value
1371 starts at 0x00 for each all-layer tape-out and increments by one for each
1372 tape-out. */
1373#define MISC_REG_CHIP_METAL 0xa404
1374/* [R 16] These bits indicate the part number for the chip. */
1375#define MISC_REG_CHIP_NUM 0xa408
1376/* [R 4] These bits indicate the base revision of the chip. This value
1377 starts at 0x0 for the A0 tape-out and increments by one for each
1378 all-layer tape-out. */
1379#define MISC_REG_CHIP_REV 0xa40c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001380/* [RW 32] The following driver registers(1...16) represent 16 drivers and
1381 32 clients. Each client can be controlled by one driver only. One in each
1382 bit represent that this driver control the appropriate client (Ex: bit 5
1383 is set means this driver control client number 5). addr1 = set; addr0 =
1384 clear; read from both addresses will give the same result = status. write
1385 to address 1 will set a request to control all the clients that their
1386 appropriate bit (in the write command) is set. if the client is free (the
1387 appropriate bit in all the other drivers is clear) one will be written to
1388 that driver register; if the client isn't free the bit will remain zero.
1389 if the appropriate bit is set (the driver request to gain control on a
1390 client it already controls the ~MISC_REGISTERS_INT_STS.GENERIC_SW
1391 interrupt will be asserted). write to address 0 will set a request to
1392 free all the clients that their appropriate bit (in the write command) is
1393 set. if the appropriate bit is clear (the driver request to free a client
1394 it doesn't controls the ~MISC_REGISTERS_INT_STS.GENERIC_SW interrupt will
1395 be asserted). */
Eliezer Tamirf1410642008-02-28 11:51:50 -08001396#define MISC_REG_DRIVER_CONTROL_1 0xa510
Yitchak Gertner4a37fb62008-08-13 15:50:23 -07001397#define MISC_REG_DRIVER_CONTROL_7 0xa3c8
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001398/* [RW 1] e1hmf for WOL. If clr WOL signal o the PXP will be send on bit 0
1399 only. */
1400#define MISC_REG_E1HMF_MODE 0xa5f8
Eilon Greensteinca003922009-08-12 22:53:28 -07001401/* [RW 32] Debug only: spare RW register reset by core reset */
1402#define MISC_REG_GENERIC_CR_0 0xa460
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00001403#define MISC_REG_GENERIC_CR_1 0xa464
Vladislav Zolotarov72fd0712010-04-19 01:13:12 +00001404/* [RW 32] Debug only: spare RW register reset by por reset */
1405#define MISC_REG_GENERIC_POR_1 0xa474
Eliezer Tamirf1410642008-02-28 11:51:50 -08001406/* [RW 32] GPIO. [31-28] FLOAT port 0; [27-24] FLOAT port 0; When any of
1407 these bits is written as a '1'; the corresponding SPIO bit will turn off
1408 it's drivers and become an input. This is the reset state of all GPIO
1409 pins. The read value of these bits will be a '1' if that last command
1410 (#SET; #CLR; or #FLOAT) for this bit was a #FLOAT. (reset value 0xff).
1411 [23-20] CLR port 1; 19-16] CLR port 0; When any of these bits is written
1412 as a '1'; the corresponding GPIO bit will drive low. The read value of
1413 these bits will be a '1' if that last command (#SET; #CLR; or #FLOAT) for
1414 this bit was a #CLR. (reset value 0). [15-12] SET port 1; 11-8] port 0;
1415 SET When any of these bits is written as a '1'; the corresponding GPIO
1416 bit will drive high (if it has that capability). The read value of these
1417 bits will be a '1' if that last command (#SET; #CLR; or #FLOAT) for this
1418 bit was a #SET. (reset value 0). [7-4] VALUE port 1; [3-0] VALUE port 0;
1419 RO; These bits indicate the read value of each of the eight GPIO pins.
1420 This is the result value of the pin; not the drive value. Writing these
1421 bits will have not effect. */
1422#define MISC_REG_GPIO 0xa490
Eilon Greenstein4acac6a2009-02-12 08:36:52 +00001423/* [RW 8] These bits enable the GPIO_INTs to signals event to the
1424 IGU/MCP.according to the following map: [0] p0_gpio_0; [1] p0_gpio_1; [2]
1425 p0_gpio_2; [3] p0_gpio_3; [4] p1_gpio_0; [5] p1_gpio_1; [6] p1_gpio_2;
1426 [7] p1_gpio_3; */
1427#define MISC_REG_GPIO_EVENT_EN 0xa2bc
1428/* [RW 32] GPIO INT. [31-28] OLD_CLR port1; [27-24] OLD_CLR port0; Writing a
1429 '1' to these bit clears the corresponding bit in the #OLD_VALUE register.
1430 This will acknowledge an interrupt on the falling edge of corresponding
1431 GPIO input (reset value 0). [23-16] OLD_SET [23-16] port1; OLD_SET port0;
1432 Writing a '1' to these bit sets the corresponding bit in the #OLD_VALUE
1433 register. This will acknowledge an interrupt on the rising edge of
1434 corresponding SPIO input (reset value 0). [15-12] OLD_VALUE [11-8] port1;
1435 OLD_VALUE port0; RO; These bits indicate the old value of the GPIO input
1436 value. When the ~INT_STATE bit is set; this bit indicates the OLD value
1437 of the pin such that if ~INT_STATE is set and this bit is '0'; then the
1438 interrupt is due to a low to high edge. If ~INT_STATE is set and this bit
1439 is '1'; then the interrupt is due to a high to low edge (reset value 0).
1440 [7-4] INT_STATE port1; [3-0] INT_STATE RO port0; These bits indicate the
1441 current GPIO interrupt state for each GPIO pin. This bit is cleared when
1442 the appropriate #OLD_SET or #OLD_CLR command bit is written. This bit is
1443 set when the GPIO input does not match the current value in #OLD_VALUE
1444 (reset value 0). */
1445#define MISC_REG_GPIO_INT 0xa494
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001446/* [R 28] this field hold the last information that caused reserved
1447 attention. bits [19:0] - address; [22:20] function; [23] reserved;
Eilon Greenstein33471622008-08-13 15:59:08 -07001448 [27:24] the master that caused the attention - according to the following
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001449 encodeing:1 = pxp; 2 = mcp; 3 = usdm; 4 = tsdm; 5 = xsdm; 6 = csdm; 7 =
1450 dbu; 8 = dmae */
1451#define MISC_REG_GRC_RSV_ATTN 0xa3c0
1452/* [R 28] this field hold the last information that caused timeout
1453 attention. bits [19:0] - address; [22:20] function; [23] reserved;
Eilon Greenstein33471622008-08-13 15:59:08 -07001454 [27:24] the master that caused the attention - according to the following
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001455 encodeing:1 = pxp; 2 = mcp; 3 = usdm; 4 = tsdm; 5 = xsdm; 6 = csdm; 7 =
1456 dbu; 8 = dmae */
1457#define MISC_REG_GRC_TIMEOUT_ATTN 0xa3c4
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001458/* [RW 1] Setting this bit enables a timer in the GRC block to timeout any
1459 access that does not finish within
1460 ~misc_registers_grc_timout_val.grc_timeout_val cycles. When this bit is
1461 cleared; this timeout is disabled. If this timeout occurs; the GRC shall
1462 assert it attention output. */
1463#define MISC_REG_GRC_TIMEOUT_EN 0xa280
1464/* [RW 28] 28 LSB of LCPLL first register; reset val = 521. inside order of
1465 the bits is: [2:0] OAC reset value 001) CML output buffer bias control;
1466 111 for +40%; 011 for +20%; 001 for 0%; 000 for -20%. [5:3] Icp_ctrl
1467 (reset value 001) Charge pump current control; 111 for 720u; 011 for
1468 600u; 001 for 480u and 000 for 360u. [7:6] Bias_ctrl (reset value 00)
1469 Global bias control; When bit 7 is high bias current will be 10 0gh; When
1470 bit 6 is high bias will be 100w; Valid values are 00; 10; 01. [10:8]
1471 Pll_observe (reset value 010) Bits to control observability. bit 10 is
1472 for test bias; bit 9 is for test CK; bit 8 is test Vc. [12:11] Vth_ctrl
1473 (reset value 00) Comparator threshold control. 00 for 0.6V; 01 for 0.54V
1474 and 10 for 0.66V. [13] pllSeqStart (reset value 0) Enables VCO tuning
1475 sequencer: 1= sequencer disabled; 0= sequencer enabled (inverted
1476 internally). [14] reserved (reset value 0) Reset for VCO sequencer is
1477 connected to RESET input directly. [15] capRetry_en (reset value 0)
1478 enable retry on cap search failure (inverted). [16] freqMonitor_e (reset
1479 value 0) bit to continuously monitor vco freq (inverted). [17]
1480 freqDetRestart_en (reset value 0) bit to enable restart when not freq
1481 locked (inverted). [18] freqDetRetry_en (reset value 0) bit to enable
1482 retry on freq det failure(inverted). [19] pllForceFdone_en (reset value
1483 0) bit to enable pllForceFdone & pllForceFpass into pllSeq. [20]
1484 pllForceFdone (reset value 0) bit to force freqDone. [21] pllForceFpass
1485 (reset value 0) bit to force freqPass. [22] pllForceDone_en (reset value
1486 0) bit to enable pllForceCapDone. [23] pllForceCapDone (reset value 0)
1487 bit to force capDone. [24] pllForceCapPass_en (reset value 0) bit to
1488 enable pllForceCapPass. [25] pllForceCapPass (reset value 0) bit to force
1489 capPass. [26] capRestart (reset value 0) bit to force cap sequencer to
1490 restart. [27] capSelectM_en (reset value 0) bit to enable cap select
1491 register bits. */
1492#define MISC_REG_LCPLL_CTRL_1 0xa2a4
1493#define MISC_REG_LCPLL_CTRL_REG_2 0xa2a8
1494/* [RW 4] Interrupt mask register #0 read/write */
1495#define MISC_REG_MISC_INT_MASK 0xa388
1496/* [RW 1] Parity mask register #0 read/write */
1497#define MISC_REG_MISC_PRTY_MASK 0xa398
Eliezer Tamirf1410642008-02-28 11:51:50 -08001498/* [R 1] Parity register #0 read */
1499#define MISC_REG_MISC_PRTY_STS 0xa38c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001500#define MISC_REG_NIG_WOL_P0 0xa270
1501#define MISC_REG_NIG_WOL_P1 0xa274
1502/* [R 1] If set indicate that the pcie_rst_b was asserted without perst
1503 assertion */
1504#define MISC_REG_PCIE_HOT_RESET 0xa618
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001505/* [RW 32] 32 LSB of storm PLL first register; reset val = 0x 071d2911.
1506 inside order of the bits is: [0] P1 divider[0] (reset value 1); [1] P1
1507 divider[1] (reset value 0); [2] P1 divider[2] (reset value 0); [3] P1
1508 divider[3] (reset value 0); [4] P2 divider[0] (reset value 1); [5] P2
1509 divider[1] (reset value 0); [6] P2 divider[2] (reset value 0); [7] P2
1510 divider[3] (reset value 0); [8] ph_det_dis (reset value 1); [9]
1511 freq_det_dis (reset value 0); [10] Icpx[0] (reset value 0); [11] Icpx[1]
1512 (reset value 1); [12] Icpx[2] (reset value 0); [13] Icpx[3] (reset value
1513 1); [14] Icpx[4] (reset value 0); [15] Icpx[5] (reset value 0); [16]
1514 Rx[0] (reset value 1); [17] Rx[1] (reset value 0); [18] vc_en (reset
1515 value 1); [19] vco_rng[0] (reset value 1); [20] vco_rng[1] (reset value
1516 1); [21] Kvco_xf[0] (reset value 0); [22] Kvco_xf[1] (reset value 0);
1517 [23] Kvco_xf[2] (reset value 0); [24] Kvco_xs[0] (reset value 1); [25]
1518 Kvco_xs[1] (reset value 1); [26] Kvco_xs[2] (reset value 1); [27]
1519 testd_en (reset value 0); [28] testd_sel[0] (reset value 0); [29]
1520 testd_sel[1] (reset value 0); [30] testd_sel[2] (reset value 0); [31]
1521 testa_en (reset value 0); */
1522#define MISC_REG_PLL_STORM_CTRL_1 0xa294
1523#define MISC_REG_PLL_STORM_CTRL_2 0xa298
1524#define MISC_REG_PLL_STORM_CTRL_3 0xa29c
1525#define MISC_REG_PLL_STORM_CTRL_4 0xa2a0
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00001526/* [R 1] Status of 4 port mode enable input pin. */
1527#define MISC_REG_PORT4MODE_EN 0xa750
1528/* [RW 2] 4 port mode enable overwrite.[0] - Overwrite control; if it is 0 -
1529 * the port4mode_en output is equal to 4 port mode input pin; if it is 1 -
1530 * the port4mode_en output is equal to bit[1] of this register; [1] -
1531 * Overwrite value. If bit[0] of this register is 1 this is the value that
1532 * receives the port4mode_en output . */
1533#define MISC_REG_PORT4MODE_EN_OVWR 0xa720
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001534/* [RW 32] reset reg#2; rite/read one = the specific block is out of reset;
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001535 write/read zero = the specific block is in reset; addr 0-wr- the write
1536 value will be written to the register; addr 1-set - one will be written
1537 to all the bits that have the value of one in the data written (bits that
1538 have the value of zero will not be change) ; addr 2-clear - zero will be
1539 written to all the bits that have the value of one in the data written
1540 (bits that have the value of zero will not be change); addr 3-ignore;
1541 read ignore from all addr except addr 00; inside order of the bits is:
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001542 [0] rst_bmac0; [1] rst_bmac1; [2] rst_emac0; [3] rst_emac1; [4] rst_grc;
1543 [5] rst_mcp_n_reset_reg_hard_core; [6] rst_ mcp_n_hard_core_rst_b; [7]
1544 rst_ mcp_n_reset_cmn_cpu; [8] rst_ mcp_n_reset_cmn_core; [9] rst_rbcn;
1545 [10] rst_dbg; [11] rst_misc_core; [12] rst_dbue (UART); [13]
1546 Pci_resetmdio_n; [14] rst_emac0_hard_core; [15] rst_emac1_hard_core; 16]
1547 rst_pxp_rq_rd_wr; 31:17] reserved */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001548#define MISC_REG_RESET_REG_2 0xa590
1549/* [RW 20] 20 bit GRC address where the scratch-pad of the MCP that is
1550 shared with the driver resides */
1551#define MISC_REG_SHARED_MEM_ADDR 0xa2b4
Eliezer Tamirf1410642008-02-28 11:51:50 -08001552/* [RW 32] SPIO. [31-24] FLOAT When any of these bits is written as a '1';
1553 the corresponding SPIO bit will turn off it's drivers and become an
1554 input. This is the reset state of all SPIO pins. The read value of these
1555 bits will be a '1' if that last command (#SET; #CL; or #FLOAT) for this
1556 bit was a #FLOAT. (reset value 0xff). [23-16] CLR When any of these bits
1557 is written as a '1'; the corresponding SPIO bit will drive low. The read
1558 value of these bits will be a '1' if that last command (#SET; #CLR; or
1559#FLOAT) for this bit was a #CLR. (reset value 0). [15-8] SET When any of
1560 these bits is written as a '1'; the corresponding SPIO bit will drive
1561 high (if it has that capability). The read value of these bits will be a
1562 '1' if that last command (#SET; #CLR; or #FLOAT) for this bit was a #SET.
1563 (reset value 0). [7-0] VALUE RO; These bits indicate the read value of
1564 each of the eight SPIO pins. This is the result value of the pin; not the
1565 drive value. Writing these bits will have not effect. Each 8 bits field
1566 is divided as follows: [0] VAUX Enable; when pulsed low; enables supply
1567 from VAUX. (This is an output pin only; the FLOAT field is not applicable
1568 for this pin); [1] VAUX Disable; when pulsed low; disables supply form
1569 VAUX. (This is an output pin only; FLOAT field is not applicable for this
1570 pin); [2] SEL_VAUX_B - Control to power switching logic. Drive low to
1571 select VAUX supply. (This is an output pin only; it is not controlled by
1572 the SET and CLR fields; it is controlled by the Main Power SM; the FLOAT
1573 field is not applicable for this pin; only the VALUE fields is relevant -
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001574 it reflects the output value); [3] port swap [4] spio_4; [5] spio_5; [6]
Eliezer Tamirf1410642008-02-28 11:51:50 -08001575 Bit 0 of UMP device ID select; read by UMP firmware; [7] Bit 1 of UMP
1576 device ID select; read by UMP firmware. */
1577#define MISC_REG_SPIO 0xa4fc
1578/* [RW 8] These bits enable the SPIO_INTs to signals event to the IGU/MC.
1579 according to the following map: [3:0] reserved; [4] spio_4 [5] spio_5;
1580 [7:0] reserved */
1581#define MISC_REG_SPIO_EVENT_EN 0xa2b8
1582/* [RW 32] SPIO INT. [31-24] OLD_CLR Writing a '1' to these bit clears the
1583 corresponding bit in the #OLD_VALUE register. This will acknowledge an
1584 interrupt on the falling edge of corresponding SPIO input (reset value
1585 0). [23-16] OLD_SET Writing a '1' to these bit sets the corresponding bit
1586 in the #OLD_VALUE register. This will acknowledge an interrupt on the
1587 rising edge of corresponding SPIO input (reset value 0). [15-8] OLD_VALUE
1588 RO; These bits indicate the old value of the SPIO input value. When the
1589 ~INT_STATE bit is set; this bit indicates the OLD value of the pin such
1590 that if ~INT_STATE is set and this bit is '0'; then the interrupt is due
1591 to a low to high edge. If ~INT_STATE is set and this bit is '1'; then the
1592 interrupt is due to a high to low edge (reset value 0). [7-0] INT_STATE
1593 RO; These bits indicate the current SPIO interrupt state for each SPIO
1594 pin. This bit is cleared when the appropriate #OLD_SET or #OLD_CLR
1595 command bit is written. This bit is set when the SPIO input does not
1596 match the current value in #OLD_VALUE (reset value 0). */
1597#define MISC_REG_SPIO_INT 0xa500
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08001598/* [RW 32] reload value for counter 4 if reload; the value will be reload if
1599 the counter reached zero and the reload bit
1600 (~misc_registers_sw_timer_cfg_4.sw_timer_cfg_4[1] ) is set */
1601#define MISC_REG_SW_TIMER_RELOAD_VAL_4 0xa2fc
1602/* [RW 32] the value of the counter for sw timers1-8. there are 8 addresses
Vladislav Zolotarov72fd0712010-04-19 01:13:12 +00001603 in this register. addres 0 - timer 1; address 1 - timer 2, ... address 7 -
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08001604 timer 8 */
1605#define MISC_REG_SW_TIMER_VAL 0xa5c0
Eliezer Tamirf1410642008-02-28 11:51:50 -08001606/* [RW 1] Set by the MCP to remember if one or more of the drivers is/are
1607 loaded; 0-prepare; -unprepare */
1608#define MISC_REG_UNPREPARED 0xa424
Eilon Greenstein581ce432009-07-29 00:20:04 +00001609#define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_BRCST (0x1<<0)
1610#define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_MLCST (0x1<<1)
1611#define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_NO_VLAN (0x1<<4)
1612#define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_UNCST (0x1<<2)
1613#define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_VLAN (0x1<<3)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001614#define NIG_MASK_INTERRUPT_PORT0_REG_MASK_EMAC0_MISC_MI_INT (0x1<<0)
1615#define NIG_MASK_INTERRUPT_PORT0_REG_MASK_SERDES0_LINK_STATUS (0x1<<9)
1616#define NIG_MASK_INTERRUPT_PORT0_REG_MASK_XGXS0_LINK10G (0x1<<15)
1617#define NIG_MASK_INTERRUPT_PORT0_REG_MASK_XGXS0_LINK_STATUS (0xf<<18)
1618/* [RW 1] Input enable for RX_BMAC0 IF */
1619#define NIG_REG_BMAC0_IN_EN 0x100ac
1620/* [RW 1] output enable for TX_BMAC0 IF */
1621#define NIG_REG_BMAC0_OUT_EN 0x100e0
1622/* [RW 1] output enable for TX BMAC pause port 0 IF */
1623#define NIG_REG_BMAC0_PAUSE_OUT_EN 0x10110
1624/* [RW 1] output enable for RX_BMAC0_REGS IF */
1625#define NIG_REG_BMAC0_REGS_OUT_EN 0x100e8
1626/* [RW 1] output enable for RX BRB1 port0 IF */
1627#define NIG_REG_BRB0_OUT_EN 0x100f8
1628/* [RW 1] Input enable for TX BRB1 pause port 0 IF */
1629#define NIG_REG_BRB0_PAUSE_IN_EN 0x100c4
1630/* [RW 1] output enable for RX BRB1 port1 IF */
1631#define NIG_REG_BRB1_OUT_EN 0x100fc
1632/* [RW 1] Input enable for TX BRB1 pause port 1 IF */
1633#define NIG_REG_BRB1_PAUSE_IN_EN 0x100c8
1634/* [RW 1] output enable for RX BRB1 LP IF */
1635#define NIG_REG_BRB_LB_OUT_EN 0x10100
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001636/* [WB_W 82] Debug packet to LP from RBC; Data spelling:[63:0] data; 64]
1637 error; [67:65]eop_bvalid; [68]eop; [69]sop; [70]port_id; 71]flush;
1638 72:73]-vnic_num; 81:74]-sideband_info */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001639#define NIG_REG_DEBUG_PACKET_LB 0x10800
1640/* [RW 1] Input enable for TX Debug packet */
1641#define NIG_REG_EGRESS_DEBUG_IN_EN 0x100dc
1642/* [RW 1] If 1 - egress drain mode for port0 is active. In this mode all
1643 packets from PBFare not forwarded to the MAC and just deleted from FIFO.
1644 First packet may be deleted from the middle. And last packet will be
1645 always deleted till the end. */
1646#define NIG_REG_EGRESS_DRAIN0_MODE 0x10060
1647/* [RW 1] Output enable to EMAC0 */
1648#define NIG_REG_EGRESS_EMAC0_OUT_EN 0x10120
1649/* [RW 1] MAC configuration for packets of port0. If 1 - all packet outputs
1650 to emac for port0; other way to bmac for port0 */
1651#define NIG_REG_EGRESS_EMAC0_PORT 0x10058
1652/* [RW 1] Input enable for TX PBF user packet port0 IF */
1653#define NIG_REG_EGRESS_PBF0_IN_EN 0x100cc
1654/* [RW 1] Input enable for TX PBF user packet port1 IF */
1655#define NIG_REG_EGRESS_PBF1_IN_EN 0x100d0
Eilon Greenstein279abdf2009-07-21 05:47:22 +00001656/* [RW 1] Input enable for TX UMP management packet port0 IF */
1657#define NIG_REG_EGRESS_UMP0_IN_EN 0x100d4
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001658/* [RW 1] Input enable for RX_EMAC0 IF */
1659#define NIG_REG_EMAC0_IN_EN 0x100a4
1660/* [RW 1] output enable for TX EMAC pause port 0 IF */
1661#define NIG_REG_EMAC0_PAUSE_OUT_EN 0x10118
1662/* [R 1] status from emac0. This bit is set when MDINT from either the
1663 EXT_MDINT pin or from the Copper PHY is driven low. This condition must
1664 be cleared in the attached PHY device that is driving the MINT pin. */
1665#define NIG_REG_EMAC0_STATUS_MISC_MI_INT 0x10494
1666/* [WB 48] This address space contains BMAC0 registers. The BMAC registers
1667 are described in appendix A. In order to access the BMAC0 registers; the
1668 base address; NIG_REGISTERS_INGRESS_BMAC0_MEM; Offset: 0x10c00; should be
1669 added to each BMAC register offset */
1670#define NIG_REG_INGRESS_BMAC0_MEM 0x10c00
1671/* [WB 48] This address space contains BMAC1 registers. The BMAC registers
1672 are described in appendix A. In order to access the BMAC0 registers; the
1673 base address; NIG_REGISTERS_INGRESS_BMAC1_MEM; Offset: 0x11000; should be
1674 added to each BMAC register offset */
1675#define NIG_REG_INGRESS_BMAC1_MEM 0x11000
1676/* [R 1] FIFO empty in EOP descriptor FIFO of LP in NIG_RX_EOP */
1677#define NIG_REG_INGRESS_EOP_LB_EMPTY 0x104e0
1678/* [RW 17] Debug only. RX_EOP_DSCR_lb_FIFO in NIG_RX_EOP. Data
1679 packet_length[13:0]; mac_error[14]; trunc_error[15]; parity[16] */
1680#define NIG_REG_INGRESS_EOP_LB_FIFO 0x104e4
Eilon Greenstein2f904462009-08-12 08:22:16 +00001681/* [RW 27] 0 - must be active for Everest A0; 1- for Everest B0 when latch
1682 logic for interrupts must be used. Enable per bit of interrupt of
1683 ~latch_status.latch_status */
1684#define NIG_REG_LATCH_BC_0 0x16210
1685/* [RW 27] Latch for each interrupt from Unicore.b[0]
1686 status_emac0_misc_mi_int; b[1] status_emac0_misc_mi_complete;
1687 b[2]status_emac0_misc_cfg_change; b[3]status_emac0_misc_link_status;
1688 b[4]status_emac0_misc_link_change; b[5]status_emac0_misc_attn;
1689 b[6]status_serdes0_mac_crs; b[7]status_serdes0_autoneg_complete;
1690 b[8]status_serdes0_fiber_rxact; b[9]status_serdes0_link_status;
1691 b[10]status_serdes0_mr_page_rx; b[11]status_serdes0_cl73_an_complete;
1692 b[12]status_serdes0_cl73_mr_page_rx; b[13]status_serdes0_rx_sigdet;
1693 b[14]status_xgxs0_remotemdioreq; b[15]status_xgxs0_link10g;
1694 b[16]status_xgxs0_autoneg_complete; b[17]status_xgxs0_fiber_rxact;
1695 b[21:18]status_xgxs0_link_status; b[22]status_xgxs0_mr_page_rx;
1696 b[23]status_xgxs0_cl73_an_complete; b[24]status_xgxs0_cl73_mr_page_rx;
1697 b[25]status_xgxs0_rx_sigdet; b[26]status_xgxs0_mac_crs */
1698#define NIG_REG_LATCH_STATUS_0 0x18000
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001699/* [RW 1] led 10g for port 0 */
1700#define NIG_REG_LED_10G_P0 0x10320
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001701/* [RW 1] led 10g for port 1 */
1702#define NIG_REG_LED_10G_P1 0x10324
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001703/* [RW 1] Port0: This bit is set to enable the use of the
1704 ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 field
1705 defined below. If this bit is cleared; then the blink rate will be about
1706 8Hz. */
1707#define NIG_REG_LED_CONTROL_BLINK_RATE_ENA_P0 0x10318
1708/* [RW 12] Port0: Specifies the period of each blink cycle (on + off) for
1709 Traffic LED in milliseconds. Must be a non-zero value. This 12-bit field
1710 is reset to 0x080; giving a default blink period of approximately 8Hz. */
1711#define NIG_REG_LED_CONTROL_BLINK_RATE_P0 0x10310
1712/* [RW 1] Port0: If set along with the
Eilon Greenstein34f80b02008-06-23 20:33:01 -07001713 ~nig_registers_led_control_override_traffic_p0.led_control_override_traffic_p0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001714 bit and ~nig_registers_led_control_traffic_p0.led_control_traffic_p0 LED
1715 bit; the Traffic LED will blink with the blink rate specified in
1716 ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 and
1717 ~nig_registers_led_control_blink_rate_ena_p0.led_control_blink_rate_ena_p0
1718 fields. */
1719#define NIG_REG_LED_CONTROL_BLINK_TRAFFIC_P0 0x10308
1720/* [RW 1] Port0: If set overrides hardware control of the Traffic LED. The
1721 Traffic LED will then be controlled via bit ~nig_registers_
1722 led_control_traffic_p0.led_control_traffic_p0 and bit
1723 ~nig_registers_led_control_blink_traffic_p0.led_control_blink_traffic_p0 */
1724#define NIG_REG_LED_CONTROL_OVERRIDE_TRAFFIC_P0 0x102f8
1725/* [RW 1] Port0: If set along with the led_control_override_trafic_p0 bit;
1726 turns on the Traffic LED. If the led_control_blink_traffic_p0 bit is also
1727 set; the LED will blink with blink rate specified in
1728 ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 and
1729 ~nig_regsters_led_control_blink_rate_ena_p0.led_control_blink_rate_ena_p0
1730 fields. */
1731#define NIG_REG_LED_CONTROL_TRAFFIC_P0 0x10300
1732/* [RW 4] led mode for port0: 0 MAC; 1-3 PHY1; 4 MAC2; 5-7 PHY4; 8-MAC3;
1733 9-11PHY7; 12 MAC4; 13-15 PHY10; */
1734#define NIG_REG_LED_MODE_P0 0x102f0
Eilon Greenstein1c063282009-02-12 08:36:43 +00001735/* [RW 3] for port0 enable for llfc ppp and pause. b0 - brb1 enable; b1-
1736 tsdm enable; b2- usdm enable */
1737#define NIG_REG_LLFC_EGRESS_SRC_ENABLE_0 0x16070
Eilon Greensteinca003922009-08-12 22:53:28 -07001738#define NIG_REG_LLFC_EGRESS_SRC_ENABLE_1 0x16074
Eilon Greenstein1c063282009-02-12 08:36:43 +00001739/* [RW 1] SAFC enable for port0. This register may get 1 only when
1740 ~ppp_enable.ppp_enable = 0 and pause_enable.pause_enable =0 for the same
1741 port */
1742#define NIG_REG_LLFC_ENABLE_0 0x16208
1743/* [RW 16] classes are high-priority for port0 */
1744#define NIG_REG_LLFC_HIGH_PRIORITY_CLASSES_0 0x16058
1745/* [RW 16] classes are low-priority for port0 */
1746#define NIG_REG_LLFC_LOW_PRIORITY_CLASSES_0 0x16060
1747/* [RW 1] Output enable of message to LLFC BMAC IF for port0 */
1748#define NIG_REG_LLFC_OUT_EN_0 0x160c8
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001749#define NIG_REG_LLH0_ACPI_PAT_0_CRC 0x1015c
1750#define NIG_REG_LLH0_ACPI_PAT_6_LEN 0x10154
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001751#define NIG_REG_LLH0_BRB1_DRV_MASK 0x10244
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001752#define NIG_REG_LLH0_BRB1_DRV_MASK_MF 0x16048
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001753/* [RW 1] send to BRB1 if no match on any of RMP rules. */
1754#define NIG_REG_LLH0_BRB1_NOT_MCP 0x1025c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001755/* [RW 2] Determine the classification participants. 0: no classification.1:
1756 classification upon VLAN id. 2: classification upon MAC address. 3:
1757 classification upon both VLAN id & MAC addr. */
1758#define NIG_REG_LLH0_CLS_TYPE 0x16080
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001759/* [RW 32] cm header for llh0 */
1760#define NIG_REG_LLH0_CM_HEADER 0x1007c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001761#define NIG_REG_LLH0_DEST_IP_0_1 0x101dc
1762#define NIG_REG_LLH0_DEST_MAC_0_0 0x101c0
1763/* [RW 16] destination TCP address 1. The LLH will look for this address in
1764 all incoming packets. */
1765#define NIG_REG_LLH0_DEST_TCP_0 0x10220
1766/* [RW 16] destination UDP address 1 The LLH will look for this address in
1767 all incoming packets. */
1768#define NIG_REG_LLH0_DEST_UDP_0 0x10214
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001769#define NIG_REG_LLH0_ERROR_MASK 0x1008c
1770/* [RW 8] event id for llh0 */
1771#define NIG_REG_LLH0_EVENT_ID 0x10084
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001772#define NIG_REG_LLH0_FUNC_EN 0x160fc
1773#define NIG_REG_LLH0_FUNC_VLAN_ID 0x16100
1774/* [RW 1] Determine the IP version to look for in
1775 ~nig_registers_llh0_dest_ip_0.llh0_dest_ip_0. 0 - IPv6; 1-IPv4 */
1776#define NIG_REG_LLH0_IPV4_IPV6_0 0x10208
1777/* [RW 1] t bit for llh0 */
1778#define NIG_REG_LLH0_T_BIT 0x10074
1779/* [RW 12] VLAN ID 1. In case of VLAN packet the LLH will look for this ID. */
1780#define NIG_REG_LLH0_VLAN_ID_0 0x1022c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001781/* [RW 8] init credit counter for port0 in LLH */
1782#define NIG_REG_LLH0_XCM_INIT_CREDIT 0x10554
1783#define NIG_REG_LLH0_XCM_MASK 0x10130
Vladislav Zolotarovda5a6622008-08-13 15:50:00 -07001784#define NIG_REG_LLH1_BRB1_DRV_MASK 0x10248
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001785/* [RW 1] send to BRB1 if no match on any of RMP rules. */
1786#define NIG_REG_LLH1_BRB1_NOT_MCP 0x102dc
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001787/* [RW 2] Determine the classification participants. 0: no classification.1:
1788 classification upon VLAN id. 2: classification upon MAC address. 3:
1789 classification upon both VLAN id & MAC addr. */
1790#define NIG_REG_LLH1_CLS_TYPE 0x16084
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001791/* [RW 32] cm header for llh1 */
1792#define NIG_REG_LLH1_CM_HEADER 0x10080
1793#define NIG_REG_LLH1_ERROR_MASK 0x10090
1794/* [RW 8] event id for llh1 */
1795#define NIG_REG_LLH1_EVENT_ID 0x10088
1796/* [RW 8] init credit counter for port1 in LLH */
1797#define NIG_REG_LLH1_XCM_INIT_CREDIT 0x10564
1798#define NIG_REG_LLH1_XCM_MASK 0x10134
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001799/* [RW 1] When this bit is set; the LLH will expect all packets to be with
1800 e1hov */
1801#define NIG_REG_LLH_E1HOV_MODE 0x160d8
1802/* [RW 1] When this bit is set; the LLH will classify the packet before
1803 sending it to the BRB or calculating WoL on it. */
1804#define NIG_REG_LLH_MF_MODE 0x16024
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001805#define NIG_REG_MASK_INTERRUPT_PORT0 0x10330
1806#define NIG_REG_MASK_INTERRUPT_PORT1 0x10334
1807/* [RW 1] Output signal from NIG to EMAC0. When set enables the EMAC0 block. */
1808#define NIG_REG_NIG_EMAC0_EN 0x1003c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001809/* [RW 1] Output signal from NIG to EMAC1. When set enables the EMAC1 block. */
1810#define NIG_REG_NIG_EMAC1_EN 0x10040
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001811/* [RW 1] Output signal from NIG to TX_EMAC0. When set indicates to the
1812 EMAC0 to strip the CRC from the ingress packets. */
1813#define NIG_REG_NIG_INGRESS_EMAC0_NO_CRC 0x10044
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001814/* [R 32] Interrupt register #0 read */
1815#define NIG_REG_NIG_INT_STS_0 0x103b0
1816#define NIG_REG_NIG_INT_STS_1 0x103c0
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00001817/* [R 32] Legacy E1 and E1H location for parity error status register. */
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001818#define NIG_REG_NIG_PRTY_STS 0x103d0
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00001819/* [R 32] Parity register #0 read */
1820#define NIG_REG_NIG_PRTY_STS_0 0x183bc
1821#define NIG_REG_NIG_PRTY_STS_1 0x183cc
1822/* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic
1823 * Ethernet header. */
1824#define NIG_REG_P0_HDRS_AFTER_BASIC 0x18038
1825/* [RW 1] HW PFC enable bit. Set this bit to enable the PFC functionality in
1826 * the NIG. Other flow control modes such as PAUSE and SAFC/LLFC should be
1827 * disabled when this bit is set. */
1828#define NIG_REG_P0_HWPFC_ENABLE 0x18078
1829#define NIG_REG_P0_LLH_FUNC_MEM2 0x18480
1830#define NIG_REG_P0_LLH_FUNC_MEM2_ENABLE 0x18440
1831/* [RW 32] Eight 4-bit configurations for specifying which COS (0-15 for
1832 * future expansion) each priorty is to be mapped to. Bits 3:0 specify the
1833 * COS for priority 0. Bits 31:28 specify the COS for priority 7. The 3-bit
1834 * priority field is extracted from the outer-most VLAN in receive packet.
1835 * Only COS 0 and COS 1 are supported in E2. */
1836#define NIG_REG_P0_PKT_PRIORITY_TO_COS 0x18054
1837/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 0. A
1838 * priority is mapped to COS 0 when the corresponding mask bit is 1. More
1839 * than one bit may be set; allowing multiple priorities to be mapped to one
1840 * COS. */
1841#define NIG_REG_P0_RX_COS0_PRIORITY_MASK 0x18058
1842/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 1. A
1843 * priority is mapped to COS 1 when the corresponding mask bit is 1. More
1844 * than one bit may be set; allowing multiple priorities to be mapped to one
1845 * COS. */
1846#define NIG_REG_P0_RX_COS1_PRIORITY_MASK 0x1805c
1847/* [RW 15] Specify which of the credit registers the client is to be mapped
1848 * to. Bits[2:0] are for client 0; bits [14:12] are for client 4. For
1849 * clients that are not subject to WFQ credit blocking - their
1850 * specifications here are not used. */
1851#define NIG_REG_P0_TX_ARB_CLIENT_CREDIT_MAP 0x180f0
1852/* [RW 5] Specify whether the client competes directly in the strict
1853 * priority arbiter. The bits are mapped according to client ID (client IDs
1854 * are defined in tx_arb_priority_client). Default value is set to enable
1855 * strict priorities for clients 0-2 -- management and debug traffic. */
1856#define NIG_REG_P0_TX_ARB_CLIENT_IS_STRICT 0x180e8
1857/* [RW 5] Specify whether the client is subject to WFQ credit blocking. The
1858 * bits are mapped according to client ID (client IDs are defined in
1859 * tx_arb_priority_client). Default value is 0 for not using WFQ credit
1860 * blocking. */
1861#define NIG_REG_P0_TX_ARB_CLIENT_IS_SUBJECT2WFQ 0x180ec
1862/* [RW 32] Specify the upper bound that credit register 0 is allowed to
1863 * reach. */
1864#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_0 0x1810c
1865#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_1 0x18110
1866/* [RW 32] Specify the weight (in bytes) to be added to credit register 0
1867 * when it is time to increment. */
1868#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0 0x180f8
1869#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1 0x180fc
1870/* [RW 12] Specify the number of strict priority arbitration slots between
1871 * two round-robin arbitration slots to avoid starvation. A value of 0 means
1872 * no strict priority cycles - the strict priority with anti-starvation
1873 * arbiter becomes a round-robin arbiter. */
1874#define NIG_REG_P0_TX_ARB_NUM_STRICT_ARB_SLOTS 0x180f4
1875/* [RW 15] Specify the client number to be assigned to each priority of the
1876 * strict priority arbiter. Priority 0 is the highest priority. Bits [2:0]
1877 * are for priority 0 client; bits [14:12] are for priority 4 client. The
1878 * clients are assigned the following IDs: 0-management; 1-debug traffic
1879 * from this port; 2-debug traffic from other port; 3-COS0 traffic; 4-COS1
1880 * traffic. The reset value[14:0] is set to 0x4688 (15'b100_011_010_001_000)
1881 * for management at priority 0; debug traffic at priorities 1 and 2; COS0
1882 * traffic at priority 3; and COS1 traffic at priority 4. */
1883#define NIG_REG_P0_TX_ARB_PRIORITY_CLIENT 0x180e4
1884#define NIG_REG_P1_LLH_FUNC_MEM2 0x184c0
1885#define NIG_REG_P1_LLH_FUNC_MEM2_ENABLE 0x18460
1886/* [RW 32] Eight 4-bit configurations for specifying which COS (0-15 for
1887 * future expansion) each priorty is to be mapped to. Bits 3:0 specify the
1888 * COS for priority 0. Bits 31:28 specify the COS for priority 7. The 3-bit
1889 * priority field is extracted from the outer-most VLAN in receive packet.
1890 * Only COS 0 and COS 1 are supported in E2. */
1891#define NIG_REG_P1_PKT_PRIORITY_TO_COS 0x181a8
1892/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 0. A
1893 * priority is mapped to COS 0 when the corresponding mask bit is 1. More
1894 * than one bit may be set; allowing multiple priorities to be mapped to one
1895 * COS. */
1896#define NIG_REG_P1_RX_COS0_PRIORITY_MASK 0x181ac
1897/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 1. A
1898 * priority is mapped to COS 1 when the corresponding mask bit is 1. More
1899 * than one bit may be set; allowing multiple priorities to be mapped to one
1900 * COS. */
1901#define NIG_REG_P1_RX_COS1_PRIORITY_MASK 0x181b0
Eilon Greenstein1c063282009-02-12 08:36:43 +00001902/* [RW 1] Pause enable for port0. This register may get 1 only when
1903 ~safc_enable.safc_enable = 0 and ppp_enable.ppp_enable =0 for the same
1904 port */
1905#define NIG_REG_PAUSE_ENABLE_0 0x160c0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001906/* [RW 1] Input enable for RX PBF LP IF */
1907#define NIG_REG_PBF_LB_IN_EN 0x100b4
Eliezer Tamirf1410642008-02-28 11:51:50 -08001908/* [RW 1] Value of this register will be transmitted to port swap when
1909 ~nig_registers_strap_override.strap_override =1 */
1910#define NIG_REG_PORT_SWAP 0x10394
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001911/* [RW 1] output enable for RX parser descriptor IF */
1912#define NIG_REG_PRS_EOP_OUT_EN 0x10104
1913/* [RW 1] Input enable for RX parser request IF */
1914#define NIG_REG_PRS_REQ_IN_EN 0x100b8
Eilon Greensteinc1b73992009-02-12 08:37:07 +00001915/* [RW 5] control to serdes - CL45 DEVAD */
1916#define NIG_REG_SERDES0_CTRL_MD_DEVAD 0x10370
1917/* [RW 1] control to serdes; 0 - clause 45; 1 - clause 22 */
1918#define NIG_REG_SERDES0_CTRL_MD_ST 0x1036c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001919/* [RW 5] control to serdes - CL22 PHY_ADD and CL45 PRTAD */
1920#define NIG_REG_SERDES0_CTRL_PHY_ADDR 0x10374
1921/* [R 1] status from serdes0 that inputs to interrupt logic of link status */
1922#define NIG_REG_SERDES0_STATUS_LINK_STATUS 0x10578
1923/* [R 32] Rx statistics : In user packets discarded due to BRB backpressure
1924 for port0 */
1925#define NIG_REG_STAT0_BRB_DISCARD 0x105f0
Yitchak Gertner66e855f2008-08-13 15:49:05 -07001926/* [R 32] Rx statistics : In user packets truncated due to BRB backpressure
1927 for port0 */
1928#define NIG_REG_STAT0_BRB_TRUNCATE 0x105f8
Eilon Greenstein34f80b02008-06-23 20:33:01 -07001929/* [WB_R 36] Tx statistics : Number of packets from emac0 or bmac0 that
1930 between 1024 and 1522 bytes for port0 */
1931#define NIG_REG_STAT0_EGRESS_MAC_PKT0 0x10750
1932/* [WB_R 36] Tx statistics : Number of packets from emac0 or bmac0 that
1933 between 1523 bytes and above for port0 */
1934#define NIG_REG_STAT0_EGRESS_MAC_PKT1 0x10760
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001935/* [R 32] Rx statistics : In user packets discarded due to BRB backpressure
1936 for port1 */
1937#define NIG_REG_STAT1_BRB_DISCARD 0x10628
Eilon Greenstein34f80b02008-06-23 20:33:01 -07001938/* [WB_R 36] Tx statistics : Number of packets from emac1 or bmac1 that
1939 between 1024 and 1522 bytes for port1 */
1940#define NIG_REG_STAT1_EGRESS_MAC_PKT0 0x107a0
1941/* [WB_R 36] Tx statistics : Number of packets from emac1 or bmac1 that
1942 between 1523 bytes and above for port1 */
1943#define NIG_REG_STAT1_EGRESS_MAC_PKT1 0x107b0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001944/* [WB_R 64] Rx statistics : User octets received for LP */
1945#define NIG_REG_STAT2_BRB_OCTET 0x107e0
1946#define NIG_REG_STATUS_INTERRUPT_PORT0 0x10328
1947#define NIG_REG_STATUS_INTERRUPT_PORT1 0x1032c
Eliezer Tamirf1410642008-02-28 11:51:50 -08001948/* [RW 1] port swap mux selection. If this register equal to 0 then port
1949 swap is equal to SPIO pin that inputs from ifmux_serdes_swap. If 1 then
1950 ort swap is equal to ~nig_registers_port_swap.port_swap */
1951#define NIG_REG_STRAP_OVERRIDE 0x10398
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001952/* [RW 1] output enable for RX_XCM0 IF */
1953#define NIG_REG_XCM0_OUT_EN 0x100f0
1954/* [RW 1] output enable for RX_XCM1 IF */
1955#define NIG_REG_XCM1_OUT_EN 0x100f4
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001956/* [RW 1] control to xgxs - remote PHY in-band MDIO */
1957#define NIG_REG_XGXS0_CTRL_EXTREMOTEMDIOST 0x10348
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001958/* [RW 5] control to xgxs - CL45 DEVAD */
1959#define NIG_REG_XGXS0_CTRL_MD_DEVAD 0x1033c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07001960/* [RW 1] control to xgxs; 0 - clause 45; 1 - clause 22 */
1961#define NIG_REG_XGXS0_CTRL_MD_ST 0x10338
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001962/* [RW 5] control to xgxs - CL22 PHY_ADD and CL45 PRTAD */
1963#define NIG_REG_XGXS0_CTRL_PHY_ADDR 0x10340
1964/* [R 1] status from xgxs0 that inputs to interrupt logic of link10g. */
1965#define NIG_REG_XGXS0_STATUS_LINK10G 0x10680
1966/* [R 4] status from xgxs0 that inputs to interrupt logic of link status */
1967#define NIG_REG_XGXS0_STATUS_LINK_STATUS 0x10684
1968/* [RW 2] selection for XGXS lane of port 0 in NIG_MUX block */
1969#define NIG_REG_XGXS_LANE_SEL_P0 0x102e8
1970/* [RW 1] selection for port0 for NIG_MUX block : 0 = SerDes; 1 = XGXS */
1971#define NIG_REG_XGXS_SERDES0_MODE_SEL 0x102e0
Eilon Greenstein2f904462009-08-12 08:22:16 +00001972#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_EMAC0_MISC_MI_INT (0x1<<0)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001973#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_SERDES0_LINK_STATUS (0x1<<9)
1974#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK10G (0x1<<15)
1975#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK_STATUS (0xf<<18)
1976#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK_STATUS_SIZE 18
1977/* [RW 1] Disable processing further tasks from port 0 (after ending the
1978 current task in process). */
1979#define PBF_REG_DISABLE_NEW_TASK_PROC_P0 0x14005c
1980/* [RW 1] Disable processing further tasks from port 1 (after ending the
1981 current task in process). */
1982#define PBF_REG_DISABLE_NEW_TASK_PROC_P1 0x140060
1983/* [RW 1] Disable processing further tasks from port 4 (after ending the
1984 current task in process). */
1985#define PBF_REG_DISABLE_NEW_TASK_PROC_P4 0x14006c
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00001986#define PBF_REG_DISABLE_PF 0x1402e8
1987/* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic
1988 * Ethernet header. */
1989#define PBF_REG_HDRS_AFTER_BASIC 0x15c0a8
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02001990#define PBF_REG_IF_ENABLE_REG 0x140044
1991/* [RW 1] Init bit. When set the initial credits are copied to the credit
1992 registers (except the port credits). Should be set and then reset after
1993 the configuration of the block has ended. */
1994#define PBF_REG_INIT 0x140000
1995/* [RW 1] Init bit for port 0. When set the initial credit of port 0 is
1996 copied to the credit register. Should be set and then reset after the
1997 configuration of the port has ended. */
1998#define PBF_REG_INIT_P0 0x140004
1999/* [RW 1] Init bit for port 1. When set the initial credit of port 1 is
2000 copied to the credit register. Should be set and then reset after the
2001 configuration of the port has ended. */
2002#define PBF_REG_INIT_P1 0x140008
2003/* [RW 1] Init bit for port 4. When set the initial credit of port 4 is
2004 copied to the credit register. Should be set and then reset after the
2005 configuration of the port has ended. */
2006#define PBF_REG_INIT_P4 0x14000c
2007/* [RW 1] Enable for mac interface 0. */
2008#define PBF_REG_MAC_IF0_ENABLE 0x140030
2009/* [RW 1] Enable for mac interface 1. */
2010#define PBF_REG_MAC_IF1_ENABLE 0x140034
2011/* [RW 1] Enable for the loopback interface. */
2012#define PBF_REG_MAC_LB_ENABLE 0x140040
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00002013/* [RW 6] Bit-map indicating which headers must appear in the packet */
2014#define PBF_REG_MUST_HAVE_HDRS 0x15c0c4
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002015/* [RW 10] Port 0 threshold used by arbiter in 16 byte lines used when pause
2016 not suppoterd. */
2017#define PBF_REG_P0_ARB_THRSH 0x1400e4
2018/* [R 11] Current credit for port 0 in the tx port buffers in 16 byte lines. */
2019#define PBF_REG_P0_CREDIT 0x140200
2020/* [RW 11] Initial credit for port 0 in the tx port buffers in 16 byte
2021 lines. */
2022#define PBF_REG_P0_INIT_CRD 0x1400d0
2023/* [RW 1] Indication that pause is enabled for port 0. */
2024#define PBF_REG_P0_PAUSE_ENABLE 0x140014
2025/* [R 8] Number of tasks in port 0 task queue. */
2026#define PBF_REG_P0_TASK_CNT 0x140204
2027/* [R 11] Current credit for port 1 in the tx port buffers in 16 byte lines. */
2028#define PBF_REG_P1_CREDIT 0x140208
2029/* [RW 11] Initial credit for port 1 in the tx port buffers in 16 byte
2030 lines. */
2031#define PBF_REG_P1_INIT_CRD 0x1400d4
2032/* [R 8] Number of tasks in port 1 task queue. */
2033#define PBF_REG_P1_TASK_CNT 0x14020c
2034/* [R 11] Current credit for port 4 in the tx port buffers in 16 byte lines. */
2035#define PBF_REG_P4_CREDIT 0x140210
2036/* [RW 11] Initial credit for port 4 in the tx port buffers in 16 byte
2037 lines. */
2038#define PBF_REG_P4_INIT_CRD 0x1400e0
2039/* [R 8] Number of tasks in port 4 task queue. */
2040#define PBF_REG_P4_TASK_CNT 0x140214
2041/* [RW 5] Interrupt mask register #0 read/write */
2042#define PBF_REG_PBF_INT_MASK 0x1401d4
2043/* [R 5] Interrupt register #0 read */
2044#define PBF_REG_PBF_INT_STS 0x1401c8
2045#define PB_REG_CONTROL 0
2046/* [RW 2] Interrupt mask register #0 read/write */
2047#define PB_REG_PB_INT_MASK 0x28
2048/* [R 2] Interrupt register #0 read */
2049#define PB_REG_PB_INT_STS 0x1c
2050/* [RW 4] Parity mask register #0 read/write */
2051#define PB_REG_PB_PRTY_MASK 0x38
Eliezer Tamirf1410642008-02-28 11:51:50 -08002052/* [R 4] Parity register #0 read */
2053#define PB_REG_PB_PRTY_STS 0x2c
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00002054#define PGLUE_B_PGLUE_B_INT_STS_REG_ADDRESS_ERROR (0x1<<0)
2055#define PGLUE_B_PGLUE_B_INT_STS_REG_CSSNOOP_FIFO_OVERFLOW (0x1<<8)
2056#define PGLUE_B_PGLUE_B_INT_STS_REG_INCORRECT_RCV_BEHAVIOR (0x1<<1)
2057#define PGLUE_B_PGLUE_B_INT_STS_REG_TCPL_ERROR_ATTN (0x1<<6)
2058#define PGLUE_B_PGLUE_B_INT_STS_REG_TCPL_IN_TWO_RCBS_ATTN (0x1<<7)
2059#define PGLUE_B_PGLUE_B_INT_STS_REG_VF_GRC_SPACE_VIOLATION_ATTN (0x1<<4)
2060#define PGLUE_B_PGLUE_B_INT_STS_REG_VF_LENGTH_VIOLATION_ATTN (0x1<<3)
2061#define PGLUE_B_PGLUE_B_INT_STS_REG_VF_MSIX_BAR_VIOLATION_ATTN (0x1<<5)
2062#define PGLUE_B_PGLUE_B_INT_STS_REG_WAS_ERROR_ATTN (0x1<<2)
2063/* [R 8] Config space A attention dirty bits. Each bit indicates that the
2064 * corresponding PF generates config space A attention. Set by PXP. Reset by
2065 * MCP writing 1 to icfg_space_a_request_clr. Note: register contains bits
2066 * from both paths. */
2067#define PGLUE_B_REG_CFG_SPACE_A_REQUEST 0x9010
2068/* [R 8] Config space B attention dirty bits. Each bit indicates that the
2069 * corresponding PF generates config space B attention. Set by PXP. Reset by
2070 * MCP writing 1 to icfg_space_b_request_clr. Note: register contains bits
2071 * from both paths. */
2072#define PGLUE_B_REG_CFG_SPACE_B_REQUEST 0x9014
2073/* [RW 1] Type A PF enable inbound interrupt table for CSDM. 0 - disable; 1
2074 * - enable. */
2075#define PGLUE_B_REG_CSDM_INB_INT_A_PF_ENABLE 0x9194
2076/* [RW 18] Type B VF inbound interrupt table for CSDM: bits[17:9]-mask;
2077 * its[8:0]-address. Bits [1:0] must be zero (DW resolution address). */
2078#define PGLUE_B_REG_CSDM_INB_INT_B_VF 0x916c
2079/* [RW 1] Type B VF enable inbound interrupt table for CSDM. 0 - disable; 1
2080 * - enable. */
2081#define PGLUE_B_REG_CSDM_INB_INT_B_VF_ENABLE 0x919c
2082/* [RW 16] Start offset of CSDM zone A (queue zone) in the internal RAM */
2083#define PGLUE_B_REG_CSDM_START_OFFSET_A 0x9100
2084/* [RW 16] Start offset of CSDM zone B (legacy zone) in the internal RAM */
2085#define PGLUE_B_REG_CSDM_START_OFFSET_B 0x9108
2086/* [RW 5] VF Shift of CSDM zone B (legacy zone) in the internal RAM */
2087#define PGLUE_B_REG_CSDM_VF_SHIFT_B 0x9110
2088/* [RW 1] 0 - Zone A size is 136x32B; 1 - Zone A size is 152x32B. */
2089#define PGLUE_B_REG_CSDM_ZONE_A_SIZE_PF 0x91ac
2090/* [R 8] FLR request attention dirty bits for PFs 0 to 7. Each bit indicates
2091 * that the FLR register of the corresponding PF was set. Set by PXP. Reset
2092 * by MCP writing 1 to flr_request_pf_7_0_clr. Note: register contains bits
2093 * from both paths. */
2094#define PGLUE_B_REG_FLR_REQUEST_PF_7_0 0x9028
2095/* [W 8] FLR request attention dirty bits clear for PFs 0 to 7. MCP writes 1
2096 * to a bit in this register in order to clear the corresponding bit in
2097 * flr_request_pf_7_0 register. Note: register contains bits from both
2098 * paths. */
2099#define PGLUE_B_REG_FLR_REQUEST_PF_7_0_CLR 0x9418
2100/* [R 32] FLR request attention dirty bits for VFs 96 to 127. Each bit
2101 * indicates that the FLR register of the corresponding VF was set. Set by
2102 * PXP. Reset by MCP writing 1 to flr_request_vf_127_96_clr. */
2103#define PGLUE_B_REG_FLR_REQUEST_VF_127_96 0x9024
2104/* [R 32] FLR request attention dirty bits for VFs 0 to 31. Each bit
2105 * indicates that the FLR register of the corresponding VF was set. Set by
2106 * PXP. Reset by MCP writing 1 to flr_request_vf_31_0_clr. */
2107#define PGLUE_B_REG_FLR_REQUEST_VF_31_0 0x9018
2108/* [R 32] FLR request attention dirty bits for VFs 32 to 63. Each bit
2109 * indicates that the FLR register of the corresponding VF was set. Set by
2110 * PXP. Reset by MCP writing 1 to flr_request_vf_63_32_clr. */
2111#define PGLUE_B_REG_FLR_REQUEST_VF_63_32 0x901c
2112/* [R 32] FLR request attention dirty bits for VFs 64 to 95. Each bit
2113 * indicates that the FLR register of the corresponding VF was set. Set by
2114 * PXP. Reset by MCP writing 1 to flr_request_vf_95_64_clr. */
2115#define PGLUE_B_REG_FLR_REQUEST_VF_95_64 0x9020
2116/* [R 8] Each bit indicates an incorrect behavior in user RX interface. Bit
2117 * 0 - Target memory read arrived with a correctable error. Bit 1 - Target
2118 * memory read arrived with an uncorrectable error. Bit 2 - Configuration RW
2119 * arrived with a correctable error. Bit 3 - Configuration RW arrived with
2120 * an uncorrectable error. Bit 4 - Completion with Configuration Request
2121 * Retry Status. Bit 5 - Expansion ROM access received with a write request.
2122 * Bit 6 - Completion with pcie_rx_err of 0000; CMPL_STATUS of non-zero; and
2123 * pcie_rx_last not asserted. Bit 7 - Completion with pcie_rx_err of 1010;
2124 * and pcie_rx_last not asserted. */
2125#define PGLUE_B_REG_INCORRECT_RCV_DETAILS 0x9068
2126#define PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER 0x942c
2127#define PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ 0x9430
2128#define PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_WRITE 0x9434
2129#define PGLUE_B_REG_INTERNAL_VFID_ENABLE 0x9438
2130/* [R 9] Interrupt register #0 read */
2131#define PGLUE_B_REG_PGLUE_B_INT_STS 0x9298
2132/* [RC 9] Interrupt register #0 read clear */
2133#define PGLUE_B_REG_PGLUE_B_INT_STS_CLR 0x929c
2134/* [R 2] Parity register #0 read */
2135#define PGLUE_B_REG_PGLUE_B_PRTY_STS 0x92a8
2136/* [R 13] Details of first request received with error. [2:0] - PFID. [3] -
2137 * VF_VALID. [9:4] - VFID. [11:10] - Error Code - 0 - Indicates Completion
2138 * Timeout of a User Tx non-posted request. 1 - unsupported request. 2 -
2139 * completer abort. 3 - Illegal value for this field. [12] valid - indicates
2140 * if there was a completion error since the last time this register was
2141 * cleared. */
2142#define PGLUE_B_REG_RX_ERR_DETAILS 0x9080
2143/* [R 18] Details of first ATS Translation Completion request received with
2144 * error. [2:0] - PFID. [3] - VF_VALID. [9:4] - VFID. [11:10] - Error Code -
2145 * 0 - Indicates Completion Timeout of a User Tx non-posted request. 1 -
2146 * unsupported request. 2 - completer abort. 3 - Illegal value for this
2147 * field. [16:12] - ATC OTB EntryID. [17] valid - indicates if there was a
2148 * completion error since the last time this register was cleared. */
2149#define PGLUE_B_REG_RX_TCPL_ERR_DETAILS 0x9084
2150/* [W 8] Debug only - Shadow BME bits clear for PFs 0 to 7. MCP writes 1 to
2151 * a bit in this register in order to clear the corresponding bit in
2152 * shadow_bme_pf_7_0 register. MCP should never use this unless a
2153 * work-around is needed. Note: register contains bits from both paths. */
2154#define PGLUE_B_REG_SHADOW_BME_PF_7_0_CLR 0x9458
2155/* [R 8] SR IOV disabled attention dirty bits. Each bit indicates that the
2156 * VF enable register of the corresponding PF is written to 0 and was
2157 * previously 1. Set by PXP. Reset by MCP writing 1 to
2158 * sr_iov_disabled_request_clr. Note: register contains bits from both
2159 * paths. */
2160#define PGLUE_B_REG_SR_IOV_DISABLED_REQUEST 0x9030
2161/* [R 32] Indicates the status of tags 32-63. 0 - tags is used - read
2162 * completion did not return yet. 1 - tag is unused. Same functionality as
2163 * pxp2_registers_pgl_exp_rom_data2 for tags 0-31. */
2164#define PGLUE_B_REG_TAGS_63_32 0x9244
2165/* [RW 1] Type A PF enable inbound interrupt table for TSDM. 0 - disable; 1
2166 * - enable. */
2167#define PGLUE_B_REG_TSDM_INB_INT_A_PF_ENABLE 0x9170
2168/* [RW 16] Start offset of TSDM zone A (queue zone) in the internal RAM */
2169#define PGLUE_B_REG_TSDM_START_OFFSET_A 0x90c4
2170/* [RW 16] Start offset of TSDM zone B (legacy zone) in the internal RAM */
2171#define PGLUE_B_REG_TSDM_START_OFFSET_B 0x90cc
2172/* [RW 5] VF Shift of TSDM zone B (legacy zone) in the internal RAM */
2173#define PGLUE_B_REG_TSDM_VF_SHIFT_B 0x90d4
2174/* [RW 1] 0 - Zone A size is 136x32B; 1 - Zone A size is 152x32B. */
2175#define PGLUE_B_REG_TSDM_ZONE_A_SIZE_PF 0x91a0
2176/* [R 32] Address [31:0] of first read request not submitted due to error */
2177#define PGLUE_B_REG_TX_ERR_RD_ADD_31_0 0x9098
2178/* [R 32] Address [63:32] of first read request not submitted due to error */
2179#define PGLUE_B_REG_TX_ERR_RD_ADD_63_32 0x909c
2180/* [R 31] Details of first read request not submitted due to error. [4:0]
2181 * VQID. [5] TREQ. 1 - Indicates the request is a Translation Request.
2182 * [20:8] - Length in bytes. [23:21] - PFID. [24] - VF_VALID. [30:25] -
2183 * VFID. */
2184#define PGLUE_B_REG_TX_ERR_RD_DETAILS 0x90a0
2185/* [R 26] Details of first read request not submitted due to error. [15:0]
2186 * Request ID. [19:16] client ID. [20] - last SR. [24:21] - Error type -
2187 * [21] - Indicates was_error was set; [22] - Indicates BME was cleared;
2188 * [23] - Indicates FID_enable was cleared; [24] - Indicates VF with parent
2189 * PF FLR_request or IOV_disable_request dirty bit is set. [25] valid -
2190 * indicates if there was a request not submitted due to error since the
2191 * last time this register was cleared. */
2192#define PGLUE_B_REG_TX_ERR_RD_DETAILS2 0x90a4
2193/* [R 32] Address [31:0] of first write request not submitted due to error */
2194#define PGLUE_B_REG_TX_ERR_WR_ADD_31_0 0x9088
2195/* [R 32] Address [63:32] of first write request not submitted due to error */
2196#define PGLUE_B_REG_TX_ERR_WR_ADD_63_32 0x908c
2197/* [R 31] Details of first write request not submitted due to error. [4:0]
2198 * VQID. [20:8] - Length in bytes. [23:21] - PFID. [24] - VF_VALID. [30:25]
2199 * - VFID. */
2200#define PGLUE_B_REG_TX_ERR_WR_DETAILS 0x9090
2201/* [R 26] Details of first write request not submitted due to error. [15:0]
2202 * Request ID. [19:16] client ID. [20] - last SR. [24:21] - Error type -
2203 * [21] - Indicates was_error was set; [22] - Indicates BME was cleared;
2204 * [23] - Indicates FID_enable was cleared; [24] - Indicates VF with parent
2205 * PF FLR_request or IOV_disable_request dirty bit is set. [25] valid -
2206 * indicates if there was a request not submitted due to error since the
2207 * last time this register was cleared. */
2208#define PGLUE_B_REG_TX_ERR_WR_DETAILS2 0x9094
2209/* [RW 10] Type A PF/VF inbound interrupt table for USDM: bits[9:5]-mask;
2210 * its[4:0]-address relative to start_offset_a. Bits [1:0] can have any
2211 * value (Byte resolution address). */
2212#define PGLUE_B_REG_USDM_INB_INT_A_0 0x9128
2213#define PGLUE_B_REG_USDM_INB_INT_A_1 0x912c
2214#define PGLUE_B_REG_USDM_INB_INT_A_2 0x9130
2215#define PGLUE_B_REG_USDM_INB_INT_A_3 0x9134
2216#define PGLUE_B_REG_USDM_INB_INT_A_4 0x9138
2217#define PGLUE_B_REG_USDM_INB_INT_A_5 0x913c
2218#define PGLUE_B_REG_USDM_INB_INT_A_6 0x9140
2219/* [RW 1] Type A PF enable inbound interrupt table for USDM. 0 - disable; 1
2220 * - enable. */
2221#define PGLUE_B_REG_USDM_INB_INT_A_PF_ENABLE 0x917c
2222/* [RW 1] Type A VF enable inbound interrupt table for USDM. 0 - disable; 1
2223 * - enable. */
2224#define PGLUE_B_REG_USDM_INB_INT_A_VF_ENABLE 0x9180
2225/* [RW 1] Type B VF enable inbound interrupt table for USDM. 0 - disable; 1
2226 * - enable. */
2227#define PGLUE_B_REG_USDM_INB_INT_B_VF_ENABLE 0x9184
2228/* [RW 16] Start offset of USDM zone A (queue zone) in the internal RAM */
2229#define PGLUE_B_REG_USDM_START_OFFSET_A 0x90d8
2230/* [RW 16] Start offset of USDM zone B (legacy zone) in the internal RAM */
2231#define PGLUE_B_REG_USDM_START_OFFSET_B 0x90e0
2232/* [RW 5] VF Shift of USDM zone B (legacy zone) in the internal RAM */
2233#define PGLUE_B_REG_USDM_VF_SHIFT_B 0x90e8
2234/* [RW 1] 0 - Zone A size is 136x32B; 1 - Zone A size is 152x32B. */
2235#define PGLUE_B_REG_USDM_ZONE_A_SIZE_PF 0x91a4
2236/* [R 26] Details of first target VF request accessing VF GRC space that
2237 * failed permission check. [14:0] Address. [15] w_nr: 0 - Read; 1 - Write.
2238 * [21:16] VFID. [24:22] - PFID. [25] valid - indicates if there was a
2239 * request accessing VF GRC space that failed permission check since the
2240 * last time this register was cleared. Permission checks are: function
2241 * permission; R/W permission; address range permission. */
2242#define PGLUE_B_REG_VF_GRC_SPACE_VIOLATION_DETAILS 0x9234
2243/* [R 31] Details of first target VF request with length violation (too many
2244 * DWs) accessing BAR0. [12:0] Address in DWs (bits [14:2] of byte address).
2245 * [14:13] BAR. [20:15] VFID. [23:21] - PFID. [29:24] - Length in DWs. [30]
2246 * valid - indicates if there was a request with length violation since the
2247 * last time this register was cleared. Length violations: length of more
2248 * than 2DWs; length of 2DWs and address not QW aligned; window is GRC and
2249 * length is more than 1 DW. */
2250#define PGLUE_B_REG_VF_LENGTH_VIOLATION_DETAILS 0x9230
2251/* [R 8] Was_error indication dirty bits for PFs 0 to 7. Each bit indicates
2252 * that there was a completion with uncorrectable error for the
2253 * corresponding PF. Set by PXP. Reset by MCP writing 1 to
2254 * was_error_pf_7_0_clr. */
2255#define PGLUE_B_REG_WAS_ERROR_PF_7_0 0x907c
2256/* [W 8] Was_error indication dirty bits clear for PFs 0 to 7. MCP writes 1
2257 * to a bit in this register in order to clear the corresponding bit in
2258 * flr_request_pf_7_0 register. */
2259#define PGLUE_B_REG_WAS_ERROR_PF_7_0_CLR 0x9470
2260/* [R 32] Was_error indication dirty bits for VFs 96 to 127. Each bit
2261 * indicates that there was a completion with uncorrectable error for the
2262 * corresponding VF. Set by PXP. Reset by MCP writing 1 to
2263 * was_error_vf_127_96_clr. */
2264#define PGLUE_B_REG_WAS_ERROR_VF_127_96 0x9078
2265/* [W 32] Was_error indication dirty bits clear for VFs 96 to 127. MCP
2266 * writes 1 to a bit in this register in order to clear the corresponding
2267 * bit in was_error_vf_127_96 register. */
2268#define PGLUE_B_REG_WAS_ERROR_VF_127_96_CLR 0x9474
2269/* [R 32] Was_error indication dirty bits for VFs 0 to 31. Each bit
2270 * indicates that there was a completion with uncorrectable error for the
2271 * corresponding VF. Set by PXP. Reset by MCP writing 1 to
2272 * was_error_vf_31_0_clr. */
2273#define PGLUE_B_REG_WAS_ERROR_VF_31_0 0x906c
2274/* [W 32] Was_error indication dirty bits clear for VFs 0 to 31. MCP writes
2275 * 1 to a bit in this register in order to clear the corresponding bit in
2276 * was_error_vf_31_0 register. */
2277#define PGLUE_B_REG_WAS_ERROR_VF_31_0_CLR 0x9478
2278/* [R 32] Was_error indication dirty bits for VFs 32 to 63. Each bit
2279 * indicates that there was a completion with uncorrectable error for the
2280 * corresponding VF. Set by PXP. Reset by MCP writing 1 to
2281 * was_error_vf_63_32_clr. */
2282#define PGLUE_B_REG_WAS_ERROR_VF_63_32 0x9070
2283/* [W 32] Was_error indication dirty bits clear for VFs 32 to 63. MCP writes
2284 * 1 to a bit in this register in order to clear the corresponding bit in
2285 * was_error_vf_63_32 register. */
2286#define PGLUE_B_REG_WAS_ERROR_VF_63_32_CLR 0x947c
2287/* [R 32] Was_error indication dirty bits for VFs 64 to 95. Each bit
2288 * indicates that there was a completion with uncorrectable error for the
2289 * corresponding VF. Set by PXP. Reset by MCP writing 1 to
2290 * was_error_vf_95_64_clr. */
2291#define PGLUE_B_REG_WAS_ERROR_VF_95_64 0x9074
2292/* [W 32] Was_error indication dirty bits clear for VFs 64 to 95. MCP writes
2293 * 1 to a bit in this register in order to clear the corresponding bit in
2294 * was_error_vf_95_64 register. */
2295#define PGLUE_B_REG_WAS_ERROR_VF_95_64_CLR 0x9480
2296/* [RW 1] Type A PF enable inbound interrupt table for XSDM. 0 - disable; 1
2297 * - enable. */
2298#define PGLUE_B_REG_XSDM_INB_INT_A_PF_ENABLE 0x9188
2299/* [RW 16] Start offset of XSDM zone A (queue zone) in the internal RAM */
2300#define PGLUE_B_REG_XSDM_START_OFFSET_A 0x90ec
2301/* [RW 16] Start offset of XSDM zone B (legacy zone) in the internal RAM */
2302#define PGLUE_B_REG_XSDM_START_OFFSET_B 0x90f4
2303/* [RW 5] VF Shift of XSDM zone B (legacy zone) in the internal RAM */
2304#define PGLUE_B_REG_XSDM_VF_SHIFT_B 0x90fc
2305/* [RW 1] 0 - Zone A size is 136x32B; 1 - Zone A size is 152x32B. */
2306#define PGLUE_B_REG_XSDM_ZONE_A_SIZE_PF 0x91a8
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002307#define PRS_REG_A_PRSU_20 0x40134
2308/* [R 8] debug only: CFC load request current credit. Transaction based. */
2309#define PRS_REG_CFC_LD_CURRENT_CREDIT 0x40164
2310/* [R 8] debug only: CFC search request current credit. Transaction based. */
2311#define PRS_REG_CFC_SEARCH_CURRENT_CREDIT 0x40168
2312/* [RW 6] The initial credit for the search message to the CFC interface.
2313 Credit is transaction based. */
2314#define PRS_REG_CFC_SEARCH_INITIAL_CREDIT 0x4011c
2315/* [RW 24] CID for port 0 if no match */
2316#define PRS_REG_CID_PORT_0 0x400fc
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002317/* [RW 32] The CM header for flush message where 'load existed' bit in CFC
2318 load response is reset and packet type is 0. Used in packet start message
2319 to TCM. */
2320#define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_0 0x400dc
2321#define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_1 0x400e0
2322#define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_2 0x400e4
2323#define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_3 0x400e8
2324#define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_4 0x400ec
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08002325#define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_5 0x400f0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002326/* [RW 32] The CM header for flush message where 'load existed' bit in CFC
2327 load response is set and packet type is 0. Used in packet start message
2328 to TCM. */
2329#define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_0 0x400bc
2330#define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_1 0x400c0
2331#define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_2 0x400c4
2332#define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_3 0x400c8
2333#define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_4 0x400cc
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08002334#define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_5 0x400d0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002335/* [RW 32] The CM header for a match and packet type 1 for loopback port.
2336 Used in packet start message to TCM. */
2337#define PRS_REG_CM_HDR_LOOPBACK_TYPE_1 0x4009c
2338#define PRS_REG_CM_HDR_LOOPBACK_TYPE_2 0x400a0
2339#define PRS_REG_CM_HDR_LOOPBACK_TYPE_3 0x400a4
2340#define PRS_REG_CM_HDR_LOOPBACK_TYPE_4 0x400a8
2341/* [RW 32] The CM header for a match and packet type 0. Used in packet start
2342 message to TCM. */
2343#define PRS_REG_CM_HDR_TYPE_0 0x40078
2344#define PRS_REG_CM_HDR_TYPE_1 0x4007c
2345#define PRS_REG_CM_HDR_TYPE_2 0x40080
2346#define PRS_REG_CM_HDR_TYPE_3 0x40084
2347#define PRS_REG_CM_HDR_TYPE_4 0x40088
2348/* [RW 32] The CM header in case there was not a match on the connection */
2349#define PRS_REG_CM_NO_MATCH_HDR 0x400b8
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002350/* [RW 1] Indicates if in e1hov mode. 0=non-e1hov mode; 1=e1hov mode. */
2351#define PRS_REG_E1HOV_MODE 0x401c8
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002352/* [RW 8] The 8-bit event ID for a match and packet type 1. Used in packet
2353 start message to TCM. */
2354#define PRS_REG_EVENT_ID_1 0x40054
2355#define PRS_REG_EVENT_ID_2 0x40058
2356#define PRS_REG_EVENT_ID_3 0x4005c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002357/* [RW 16] The Ethernet type value for FCoE */
2358#define PRS_REG_FCOE_TYPE 0x401d0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002359/* [RW 8] Context region for flush packet with packet type 0. Used in CFC
2360 load request message. */
2361#define PRS_REG_FLUSH_REGIONS_TYPE_0 0x40004
2362#define PRS_REG_FLUSH_REGIONS_TYPE_1 0x40008
2363#define PRS_REG_FLUSH_REGIONS_TYPE_2 0x4000c
2364#define PRS_REG_FLUSH_REGIONS_TYPE_3 0x40010
2365#define PRS_REG_FLUSH_REGIONS_TYPE_4 0x40014
2366#define PRS_REG_FLUSH_REGIONS_TYPE_5 0x40018
2367#define PRS_REG_FLUSH_REGIONS_TYPE_6 0x4001c
2368#define PRS_REG_FLUSH_REGIONS_TYPE_7 0x40020
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00002369/* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic
2370 * Ethernet header. */
2371#define PRS_REG_HDRS_AFTER_BASIC 0x40238
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002372/* [RW 4] The increment value to send in the CFC load request message */
2373#define PRS_REG_INC_VALUE 0x40048
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00002374/* [RW 6] Bit-map indicating which headers must appear in the packet */
2375#define PRS_REG_MUST_HAVE_HDRS 0x40254
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002376#define PRS_REG_NIC_MODE 0x40138
2377/* [RW 8] The 8-bit event ID for cases where there is no match on the
2378 connection. Used in packet start message to TCM. */
2379#define PRS_REG_NO_MATCH_EVENT_ID 0x40070
2380/* [ST 24] The number of input CFC flush packets */
2381#define PRS_REG_NUM_OF_CFC_FLUSH_MESSAGES 0x40128
2382/* [ST 32] The number of cycles the Parser halted its operation since it
2383 could not allocate the next serial number */
2384#define PRS_REG_NUM_OF_DEAD_CYCLES 0x40130
2385/* [ST 24] The number of input packets */
2386#define PRS_REG_NUM_OF_PACKETS 0x40124
2387/* [ST 24] The number of input transparent flush packets */
2388#define PRS_REG_NUM_OF_TRANSPARENT_FLUSH_MESSAGES 0x4012c
2389/* [RW 8] Context region for received Ethernet packet with a match and
2390 packet type 0. Used in CFC load request message */
2391#define PRS_REG_PACKET_REGIONS_TYPE_0 0x40028
2392#define PRS_REG_PACKET_REGIONS_TYPE_1 0x4002c
2393#define PRS_REG_PACKET_REGIONS_TYPE_2 0x40030
2394#define PRS_REG_PACKET_REGIONS_TYPE_3 0x40034
2395#define PRS_REG_PACKET_REGIONS_TYPE_4 0x40038
2396#define PRS_REG_PACKET_REGIONS_TYPE_5 0x4003c
2397#define PRS_REG_PACKET_REGIONS_TYPE_6 0x40040
2398#define PRS_REG_PACKET_REGIONS_TYPE_7 0x40044
2399/* [R 2] debug only: Number of pending requests for CAC on port 0. */
2400#define PRS_REG_PENDING_BRB_CAC0_RQ 0x40174
2401/* [R 2] debug only: Number of pending requests for header parsing. */
2402#define PRS_REG_PENDING_BRB_PRS_RQ 0x40170
2403/* [R 1] Interrupt register #0 read */
2404#define PRS_REG_PRS_INT_STS 0x40188
2405/* [RW 8] Parity mask register #0 read/write */
2406#define PRS_REG_PRS_PRTY_MASK 0x401a4
Eliezer Tamirf1410642008-02-28 11:51:50 -08002407/* [R 8] Parity register #0 read */
2408#define PRS_REG_PRS_PRTY_STS 0x40198
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002409/* [RW 8] Context region for pure acknowledge packets. Used in CFC load
2410 request message */
2411#define PRS_REG_PURE_REGIONS 0x40024
2412/* [R 32] debug only: Serial number status lsb 32 bits. '1' indicates this
2413 serail number was released by SDM but cannot be used because a previous
2414 serial number was not released. */
2415#define PRS_REG_SERIAL_NUM_STATUS_LSB 0x40154
2416/* [R 32] debug only: Serial number status msb 32 bits. '1' indicates this
2417 serail number was released by SDM but cannot be used because a previous
2418 serial number was not released. */
2419#define PRS_REG_SERIAL_NUM_STATUS_MSB 0x40158
2420/* [R 4] debug only: SRC current credit. Transaction based. */
2421#define PRS_REG_SRC_CURRENT_CREDIT 0x4016c
2422/* [R 8] debug only: TCM current credit. Cycle based. */
2423#define PRS_REG_TCM_CURRENT_CREDIT 0x40160
2424/* [R 8] debug only: TSDM current credit. Transaction based. */
2425#define PRS_REG_TSDM_CURRENT_CREDIT 0x4015c
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00002426#define PXP2_PXP2_INT_MASK_0_REG_PGL_CPL_AFT (0x1<<19)
2427#define PXP2_PXP2_INT_MASK_0_REG_PGL_CPL_OF (0x1<<20)
2428#define PXP2_PXP2_INT_MASK_0_REG_PGL_PCIE_ATTN (0x1<<22)
2429#define PXP2_PXP2_INT_MASK_0_REG_PGL_READ_BLOCKED (0x1<<23)
2430#define PXP2_PXP2_INT_MASK_0_REG_PGL_WRITE_BLOCKED (0x1<<24)
2431#define PXP2_PXP2_INT_STS_0_REG_WR_PGLUE_EOP_ERROR (0x1<<7)
2432#define PXP2_PXP2_INT_STS_CLR_0_REG_WR_PGLUE_EOP_ERROR (0x1<<7)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002433/* [R 6] Debug only: Number of used entries in the data FIFO */
2434#define PXP2_REG_HST_DATA_FIFO_STATUS 0x12047c
2435/* [R 7] Debug only: Number of used entries in the header FIFO */
2436#define PXP2_REG_HST_HEADER_FIFO_STATUS 0x120478
Eilon Greenstein34f80b02008-06-23 20:33:01 -07002437#define PXP2_REG_PGL_ADDR_88_F0 0x120534
2438#define PXP2_REG_PGL_ADDR_8C_F0 0x120538
2439#define PXP2_REG_PGL_ADDR_90_F0 0x12053c
2440#define PXP2_REG_PGL_ADDR_94_F0 0x120540
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002441#define PXP2_REG_PGL_CONTROL0 0x120490
2442#define PXP2_REG_PGL_CONTROL1 0x120514
Eilon Greensteinca003922009-08-12 22:53:28 -07002443#define PXP2_REG_PGL_DEBUG 0x120520
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002444/* [RW 32] third dword data of expansion rom request. this register is
2445 special. reading from it provides a vector outstanding read requests. if
2446 a bit is zero it means that a read request on the corresponding tag did
2447 not finish yet (not all completions have arrived for it) */
2448#define PXP2_REG_PGL_EXP_ROM2 0x120808
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002449/* [RW 32] Inbound interrupt table for CSDM: bits[31:16]-mask;
2450 its[15:0]-address */
2451#define PXP2_REG_PGL_INT_CSDM_0 0x1204f4
2452#define PXP2_REG_PGL_INT_CSDM_1 0x1204f8
2453#define PXP2_REG_PGL_INT_CSDM_2 0x1204fc
2454#define PXP2_REG_PGL_INT_CSDM_3 0x120500
2455#define PXP2_REG_PGL_INT_CSDM_4 0x120504
2456#define PXP2_REG_PGL_INT_CSDM_5 0x120508
2457#define PXP2_REG_PGL_INT_CSDM_6 0x12050c
2458#define PXP2_REG_PGL_INT_CSDM_7 0x120510
2459/* [RW 32] Inbound interrupt table for TSDM: bits[31:16]-mask;
2460 its[15:0]-address */
2461#define PXP2_REG_PGL_INT_TSDM_0 0x120494
2462#define PXP2_REG_PGL_INT_TSDM_1 0x120498
2463#define PXP2_REG_PGL_INT_TSDM_2 0x12049c
2464#define PXP2_REG_PGL_INT_TSDM_3 0x1204a0
2465#define PXP2_REG_PGL_INT_TSDM_4 0x1204a4
2466#define PXP2_REG_PGL_INT_TSDM_5 0x1204a8
2467#define PXP2_REG_PGL_INT_TSDM_6 0x1204ac
2468#define PXP2_REG_PGL_INT_TSDM_7 0x1204b0
2469/* [RW 32] Inbound interrupt table for USDM: bits[31:16]-mask;
2470 its[15:0]-address */
2471#define PXP2_REG_PGL_INT_USDM_0 0x1204b4
2472#define PXP2_REG_PGL_INT_USDM_1 0x1204b8
2473#define PXP2_REG_PGL_INT_USDM_2 0x1204bc
2474#define PXP2_REG_PGL_INT_USDM_3 0x1204c0
2475#define PXP2_REG_PGL_INT_USDM_4 0x1204c4
2476#define PXP2_REG_PGL_INT_USDM_5 0x1204c8
2477#define PXP2_REG_PGL_INT_USDM_6 0x1204cc
2478#define PXP2_REG_PGL_INT_USDM_7 0x1204d0
2479/* [RW 32] Inbound interrupt table for XSDM: bits[31:16]-mask;
2480 its[15:0]-address */
2481#define PXP2_REG_PGL_INT_XSDM_0 0x1204d4
2482#define PXP2_REG_PGL_INT_XSDM_1 0x1204d8
2483#define PXP2_REG_PGL_INT_XSDM_2 0x1204dc
2484#define PXP2_REG_PGL_INT_XSDM_3 0x1204e0
2485#define PXP2_REG_PGL_INT_XSDM_4 0x1204e4
2486#define PXP2_REG_PGL_INT_XSDM_5 0x1204e8
2487#define PXP2_REG_PGL_INT_XSDM_6 0x1204ec
2488#define PXP2_REG_PGL_INT_XSDM_7 0x1204f0
Eilon Greensteinf1ef27e2009-02-12 08:36:23 +00002489/* [RW 3] this field allows one function to pretend being another function
2490 when accessing any BAR mapped resource within the device. the value of
2491 the field is the number of the function that will be accessed
2492 effectively. after software write to this bit it must read it in order to
2493 know that the new value is updated */
2494#define PXP2_REG_PGL_PRETEND_FUNC_F0 0x120674
2495#define PXP2_REG_PGL_PRETEND_FUNC_F1 0x120678
2496#define PXP2_REG_PGL_PRETEND_FUNC_F2 0x12067c
2497#define PXP2_REG_PGL_PRETEND_FUNC_F3 0x120680
2498#define PXP2_REG_PGL_PRETEND_FUNC_F4 0x120684
2499#define PXP2_REG_PGL_PRETEND_FUNC_F5 0x120688
2500#define PXP2_REG_PGL_PRETEND_FUNC_F6 0x12068c
2501#define PXP2_REG_PGL_PRETEND_FUNC_F7 0x120690
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002502/* [R 1] this bit indicates that a read request was blocked because of
2503 bus_master_en was deasserted */
2504#define PXP2_REG_PGL_READ_BLOCKED 0x120568
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002505#define PXP2_REG_PGL_TAGS_LIMIT 0x1205a8
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002506/* [R 18] debug only */
2507#define PXP2_REG_PGL_TXW_CDTS 0x12052c
2508/* [R 1] this bit indicates that a write request was blocked because of
2509 bus_master_en was deasserted */
2510#define PXP2_REG_PGL_WRITE_BLOCKED 0x120564
2511#define PXP2_REG_PSWRQ_BW_ADD1 0x1201c0
2512#define PXP2_REG_PSWRQ_BW_ADD10 0x1201e4
2513#define PXP2_REG_PSWRQ_BW_ADD11 0x1201e8
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002514#define PXP2_REG_PSWRQ_BW_ADD2 0x1201c4
2515#define PXP2_REG_PSWRQ_BW_ADD28 0x120228
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002516#define PXP2_REG_PSWRQ_BW_ADD3 0x1201c8
2517#define PXP2_REG_PSWRQ_BW_ADD6 0x1201d4
2518#define PXP2_REG_PSWRQ_BW_ADD7 0x1201d8
2519#define PXP2_REG_PSWRQ_BW_ADD8 0x1201dc
2520#define PXP2_REG_PSWRQ_BW_ADD9 0x1201e0
2521#define PXP2_REG_PSWRQ_BW_CREDIT 0x12032c
2522#define PXP2_REG_PSWRQ_BW_L1 0x1202b0
2523#define PXP2_REG_PSWRQ_BW_L10 0x1202d4
2524#define PXP2_REG_PSWRQ_BW_L11 0x1202d8
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002525#define PXP2_REG_PSWRQ_BW_L2 0x1202b4
2526#define PXP2_REG_PSWRQ_BW_L28 0x120318
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002527#define PXP2_REG_PSWRQ_BW_L3 0x1202b8
2528#define PXP2_REG_PSWRQ_BW_L6 0x1202c4
2529#define PXP2_REG_PSWRQ_BW_L7 0x1202c8
2530#define PXP2_REG_PSWRQ_BW_L8 0x1202cc
2531#define PXP2_REG_PSWRQ_BW_L9 0x1202d0
2532#define PXP2_REG_PSWRQ_BW_RD 0x120324
2533#define PXP2_REG_PSWRQ_BW_UB1 0x120238
2534#define PXP2_REG_PSWRQ_BW_UB10 0x12025c
2535#define PXP2_REG_PSWRQ_BW_UB11 0x120260
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002536#define PXP2_REG_PSWRQ_BW_UB2 0x12023c
2537#define PXP2_REG_PSWRQ_BW_UB28 0x1202a0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002538#define PXP2_REG_PSWRQ_BW_UB3 0x120240
2539#define PXP2_REG_PSWRQ_BW_UB6 0x12024c
2540#define PXP2_REG_PSWRQ_BW_UB7 0x120250
2541#define PXP2_REG_PSWRQ_BW_UB8 0x120254
2542#define PXP2_REG_PSWRQ_BW_UB9 0x120258
2543#define PXP2_REG_PSWRQ_BW_WR 0x120328
2544#define PXP2_REG_PSWRQ_CDU0_L2P 0x120000
2545#define PXP2_REG_PSWRQ_QM0_L2P 0x120038
2546#define PXP2_REG_PSWRQ_SRC0_L2P 0x120054
2547#define PXP2_REG_PSWRQ_TM0_L2P 0x12001c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002548#define PXP2_REG_PSWRQ_TSDM0_L2P 0x1200e0
Eilon Greenstein34f80b02008-06-23 20:33:01 -07002549/* [RW 32] Interrupt mask register #0 read/write */
2550#define PXP2_REG_PXP2_INT_MASK_0 0x120578
2551/* [R 32] Interrupt register #0 read */
2552#define PXP2_REG_PXP2_INT_STS_0 0x12056c
2553#define PXP2_REG_PXP2_INT_STS_1 0x120608
2554/* [RC 32] Interrupt register #0 read clear */
2555#define PXP2_REG_PXP2_INT_STS_CLR_0 0x120570
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002556/* [RW 32] Parity mask register #0 read/write */
2557#define PXP2_REG_PXP2_PRTY_MASK_0 0x120588
2558#define PXP2_REG_PXP2_PRTY_MASK_1 0x120598
Eliezer Tamirf1410642008-02-28 11:51:50 -08002559/* [R 32] Parity register #0 read */
2560#define PXP2_REG_PXP2_PRTY_STS_0 0x12057c
2561#define PXP2_REG_PXP2_PRTY_STS_1 0x12058c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002562/* [R 1] Debug only: The 'almost full' indication from each fifo (gives
2563 indication about backpressure) */
2564#define PXP2_REG_RD_ALMOST_FULL_0 0x120424
2565/* [R 8] Debug only: The blocks counter - number of unused block ids */
2566#define PXP2_REG_RD_BLK_CNT 0x120418
2567/* [RW 8] Debug only: Total number of available blocks in Tetris Buffer.
2568 Must be bigger than 6. Normally should not be changed. */
2569#define PXP2_REG_RD_BLK_NUM_CFG 0x12040c
2570/* [RW 2] CDU byte swapping mode configuration for master read requests */
2571#define PXP2_REG_RD_CDURD_SWAP_MODE 0x120404
2572/* [RW 1] When '1'; inputs to the PSWRD block are ignored */
2573#define PXP2_REG_RD_DISABLE_INPUTS 0x120374
2574/* [R 1] PSWRD internal memories initialization is done */
2575#define PXP2_REG_RD_INIT_DONE 0x120370
2576/* [RW 8] The maximum number of blocks in Tetris Buffer that can be
2577 allocated for vq10 */
2578#define PXP2_REG_RD_MAX_BLKS_VQ10 0x1203a0
2579/* [RW 8] The maximum number of blocks in Tetris Buffer that can be
2580 allocated for vq11 */
2581#define PXP2_REG_RD_MAX_BLKS_VQ11 0x1203a4
2582/* [RW 8] The maximum number of blocks in Tetris Buffer that can be
2583 allocated for vq17 */
2584#define PXP2_REG_RD_MAX_BLKS_VQ17 0x1203bc
2585/* [RW 8] The maximum number of blocks in Tetris Buffer that can be
2586 allocated for vq18 */
2587#define PXP2_REG_RD_MAX_BLKS_VQ18 0x1203c0
2588/* [RW 8] The maximum number of blocks in Tetris Buffer that can be
2589 allocated for vq19 */
2590#define PXP2_REG_RD_MAX_BLKS_VQ19 0x1203c4
2591/* [RW 8] The maximum number of blocks in Tetris Buffer that can be
2592 allocated for vq22 */
2593#define PXP2_REG_RD_MAX_BLKS_VQ22 0x1203d0
2594/* [RW 8] The maximum number of blocks in Tetris Buffer that can be
Eilon Greensteinca003922009-08-12 22:53:28 -07002595 allocated for vq25 */
2596#define PXP2_REG_RD_MAX_BLKS_VQ25 0x1203dc
2597/* [RW 8] The maximum number of blocks in Tetris Buffer that can be
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002598 allocated for vq6 */
2599#define PXP2_REG_RD_MAX_BLKS_VQ6 0x120390
2600/* [RW 8] The maximum number of blocks in Tetris Buffer that can be
2601 allocated for vq9 */
2602#define PXP2_REG_RD_MAX_BLKS_VQ9 0x12039c
2603/* [RW 2] PBF byte swapping mode configuration for master read requests */
2604#define PXP2_REG_RD_PBF_SWAP_MODE 0x1203f4
2605/* [R 1] Debug only: Indication if delivery ports are idle */
2606#define PXP2_REG_RD_PORT_IS_IDLE_0 0x12041c
2607#define PXP2_REG_RD_PORT_IS_IDLE_1 0x120420
2608/* [RW 2] QM byte swapping mode configuration for master read requests */
2609#define PXP2_REG_RD_QM_SWAP_MODE 0x1203f8
2610/* [R 7] Debug only: The SR counter - number of unused sub request ids */
2611#define PXP2_REG_RD_SR_CNT 0x120414
2612/* [RW 2] SRC byte swapping mode configuration for master read requests */
2613#define PXP2_REG_RD_SRC_SWAP_MODE 0x120400
2614/* [RW 7] Debug only: Total number of available PCI read sub-requests. Must
2615 be bigger than 1. Normally should not be changed. */
2616#define PXP2_REG_RD_SR_NUM_CFG 0x120408
2617/* [RW 1] Signals the PSWRD block to start initializing internal memories */
2618#define PXP2_REG_RD_START_INIT 0x12036c
2619/* [RW 2] TM byte swapping mode configuration for master read requests */
2620#define PXP2_REG_RD_TM_SWAP_MODE 0x1203fc
2621/* [RW 10] Bandwidth addition to VQ0 write requests */
2622#define PXP2_REG_RQ_BW_RD_ADD0 0x1201bc
2623/* [RW 10] Bandwidth addition to VQ12 read requests */
2624#define PXP2_REG_RQ_BW_RD_ADD12 0x1201ec
2625/* [RW 10] Bandwidth addition to VQ13 read requests */
2626#define PXP2_REG_RQ_BW_RD_ADD13 0x1201f0
2627/* [RW 10] Bandwidth addition to VQ14 read requests */
2628#define PXP2_REG_RQ_BW_RD_ADD14 0x1201f4
2629/* [RW 10] Bandwidth addition to VQ15 read requests */
2630#define PXP2_REG_RQ_BW_RD_ADD15 0x1201f8
2631/* [RW 10] Bandwidth addition to VQ16 read requests */
2632#define PXP2_REG_RQ_BW_RD_ADD16 0x1201fc
2633/* [RW 10] Bandwidth addition to VQ17 read requests */
2634#define PXP2_REG_RQ_BW_RD_ADD17 0x120200
2635/* [RW 10] Bandwidth addition to VQ18 read requests */
2636#define PXP2_REG_RQ_BW_RD_ADD18 0x120204
2637/* [RW 10] Bandwidth addition to VQ19 read requests */
2638#define PXP2_REG_RQ_BW_RD_ADD19 0x120208
2639/* [RW 10] Bandwidth addition to VQ20 read requests */
2640#define PXP2_REG_RQ_BW_RD_ADD20 0x12020c
2641/* [RW 10] Bandwidth addition to VQ22 read requests */
2642#define PXP2_REG_RQ_BW_RD_ADD22 0x120210
2643/* [RW 10] Bandwidth addition to VQ23 read requests */
2644#define PXP2_REG_RQ_BW_RD_ADD23 0x120214
2645/* [RW 10] Bandwidth addition to VQ24 read requests */
2646#define PXP2_REG_RQ_BW_RD_ADD24 0x120218
2647/* [RW 10] Bandwidth addition to VQ25 read requests */
2648#define PXP2_REG_RQ_BW_RD_ADD25 0x12021c
2649/* [RW 10] Bandwidth addition to VQ26 read requests */
2650#define PXP2_REG_RQ_BW_RD_ADD26 0x120220
2651/* [RW 10] Bandwidth addition to VQ27 read requests */
2652#define PXP2_REG_RQ_BW_RD_ADD27 0x120224
2653/* [RW 10] Bandwidth addition to VQ4 read requests */
2654#define PXP2_REG_RQ_BW_RD_ADD4 0x1201cc
2655/* [RW 10] Bandwidth addition to VQ5 read requests */
2656#define PXP2_REG_RQ_BW_RD_ADD5 0x1201d0
2657/* [RW 10] Bandwidth Typical L for VQ0 Read requests */
2658#define PXP2_REG_RQ_BW_RD_L0 0x1202ac
2659/* [RW 10] Bandwidth Typical L for VQ12 Read requests */
2660#define PXP2_REG_RQ_BW_RD_L12 0x1202dc
2661/* [RW 10] Bandwidth Typical L for VQ13 Read requests */
2662#define PXP2_REG_RQ_BW_RD_L13 0x1202e0
2663/* [RW 10] Bandwidth Typical L for VQ14 Read requests */
2664#define PXP2_REG_RQ_BW_RD_L14 0x1202e4
2665/* [RW 10] Bandwidth Typical L for VQ15 Read requests */
2666#define PXP2_REG_RQ_BW_RD_L15 0x1202e8
2667/* [RW 10] Bandwidth Typical L for VQ16 Read requests */
2668#define PXP2_REG_RQ_BW_RD_L16 0x1202ec
2669/* [RW 10] Bandwidth Typical L for VQ17 Read requests */
2670#define PXP2_REG_RQ_BW_RD_L17 0x1202f0
2671/* [RW 10] Bandwidth Typical L for VQ18 Read requests */
2672#define PXP2_REG_RQ_BW_RD_L18 0x1202f4
2673/* [RW 10] Bandwidth Typical L for VQ19 Read requests */
2674#define PXP2_REG_RQ_BW_RD_L19 0x1202f8
2675/* [RW 10] Bandwidth Typical L for VQ20 Read requests */
2676#define PXP2_REG_RQ_BW_RD_L20 0x1202fc
2677/* [RW 10] Bandwidth Typical L for VQ22 Read requests */
2678#define PXP2_REG_RQ_BW_RD_L22 0x120300
2679/* [RW 10] Bandwidth Typical L for VQ23 Read requests */
2680#define PXP2_REG_RQ_BW_RD_L23 0x120304
2681/* [RW 10] Bandwidth Typical L for VQ24 Read requests */
2682#define PXP2_REG_RQ_BW_RD_L24 0x120308
2683/* [RW 10] Bandwidth Typical L for VQ25 Read requests */
2684#define PXP2_REG_RQ_BW_RD_L25 0x12030c
2685/* [RW 10] Bandwidth Typical L for VQ26 Read requests */
2686#define PXP2_REG_RQ_BW_RD_L26 0x120310
2687/* [RW 10] Bandwidth Typical L for VQ27 Read requests */
2688#define PXP2_REG_RQ_BW_RD_L27 0x120314
2689/* [RW 10] Bandwidth Typical L for VQ4 Read requests */
2690#define PXP2_REG_RQ_BW_RD_L4 0x1202bc
2691/* [RW 10] Bandwidth Typical L for VQ5 Read- currently not used */
2692#define PXP2_REG_RQ_BW_RD_L5 0x1202c0
2693/* [RW 7] Bandwidth upper bound for VQ0 read requests */
2694#define PXP2_REG_RQ_BW_RD_UBOUND0 0x120234
2695/* [RW 7] Bandwidth upper bound for VQ12 read requests */
2696#define PXP2_REG_RQ_BW_RD_UBOUND12 0x120264
2697/* [RW 7] Bandwidth upper bound for VQ13 read requests */
2698#define PXP2_REG_RQ_BW_RD_UBOUND13 0x120268
2699/* [RW 7] Bandwidth upper bound for VQ14 read requests */
2700#define PXP2_REG_RQ_BW_RD_UBOUND14 0x12026c
2701/* [RW 7] Bandwidth upper bound for VQ15 read requests */
2702#define PXP2_REG_RQ_BW_RD_UBOUND15 0x120270
2703/* [RW 7] Bandwidth upper bound for VQ16 read requests */
2704#define PXP2_REG_RQ_BW_RD_UBOUND16 0x120274
2705/* [RW 7] Bandwidth upper bound for VQ17 read requests */
2706#define PXP2_REG_RQ_BW_RD_UBOUND17 0x120278
2707/* [RW 7] Bandwidth upper bound for VQ18 read requests */
2708#define PXP2_REG_RQ_BW_RD_UBOUND18 0x12027c
2709/* [RW 7] Bandwidth upper bound for VQ19 read requests */
2710#define PXP2_REG_RQ_BW_RD_UBOUND19 0x120280
2711/* [RW 7] Bandwidth upper bound for VQ20 read requests */
2712#define PXP2_REG_RQ_BW_RD_UBOUND20 0x120284
2713/* [RW 7] Bandwidth upper bound for VQ22 read requests */
2714#define PXP2_REG_RQ_BW_RD_UBOUND22 0x120288
2715/* [RW 7] Bandwidth upper bound for VQ23 read requests */
2716#define PXP2_REG_RQ_BW_RD_UBOUND23 0x12028c
2717/* [RW 7] Bandwidth upper bound for VQ24 read requests */
2718#define PXP2_REG_RQ_BW_RD_UBOUND24 0x120290
2719/* [RW 7] Bandwidth upper bound for VQ25 read requests */
2720#define PXP2_REG_RQ_BW_RD_UBOUND25 0x120294
2721/* [RW 7] Bandwidth upper bound for VQ26 read requests */
2722#define PXP2_REG_RQ_BW_RD_UBOUND26 0x120298
2723/* [RW 7] Bandwidth upper bound for VQ27 read requests */
2724#define PXP2_REG_RQ_BW_RD_UBOUND27 0x12029c
2725/* [RW 7] Bandwidth upper bound for VQ4 read requests */
2726#define PXP2_REG_RQ_BW_RD_UBOUND4 0x120244
2727/* [RW 7] Bandwidth upper bound for VQ5 read requests */
2728#define PXP2_REG_RQ_BW_RD_UBOUND5 0x120248
2729/* [RW 10] Bandwidth addition to VQ29 write requests */
2730#define PXP2_REG_RQ_BW_WR_ADD29 0x12022c
2731/* [RW 10] Bandwidth addition to VQ30 write requests */
2732#define PXP2_REG_RQ_BW_WR_ADD30 0x120230
2733/* [RW 10] Bandwidth Typical L for VQ29 Write requests */
2734#define PXP2_REG_RQ_BW_WR_L29 0x12031c
2735/* [RW 10] Bandwidth Typical L for VQ30 Write requests */
2736#define PXP2_REG_RQ_BW_WR_L30 0x120320
2737/* [RW 7] Bandwidth upper bound for VQ29 */
2738#define PXP2_REG_RQ_BW_WR_UBOUND29 0x1202a4
2739/* [RW 7] Bandwidth upper bound for VQ30 */
2740#define PXP2_REG_RQ_BW_WR_UBOUND30 0x1202a8
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002741/* [RW 18] external first_mem_addr field in L2P table for CDU module port 0 */
2742#define PXP2_REG_RQ_CDU0_EFIRST_MEM_ADDR 0x120008
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002743/* [RW 2] Endian mode for cdu */
2744#define PXP2_REG_RQ_CDU_ENDIAN_M 0x1201a0
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002745#define PXP2_REG_RQ_CDU_FIRST_ILT 0x12061c
2746#define PXP2_REG_RQ_CDU_LAST_ILT 0x120620
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002747/* [RW 3] page size in L2P table for CDU module; -4k; -8k; -16k; -32k; -64k;
2748 -128k */
2749#define PXP2_REG_RQ_CDU_P_SIZE 0x120018
2750/* [R 1] 1' indicates that the requester has finished its internal
2751 configuration */
2752#define PXP2_REG_RQ_CFG_DONE 0x1201b4
2753/* [RW 2] Endian mode for debug */
2754#define PXP2_REG_RQ_DBG_ENDIAN_M 0x1201a4
2755/* [RW 1] When '1'; requests will enter input buffers but wont get out
2756 towards the glue */
2757#define PXP2_REG_RQ_DISABLE_INPUTS 0x120330
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00002758/* [RW 4] Determines alignment of write SRs when a request is split into
2759 * several SRs. 0 - 8B aligned. 1 - 64B aligned. 2 - 128B aligned. 3 - 256B
2760 * aligned. 4 - 512B aligned. */
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002761#define PXP2_REG_RQ_DRAM_ALIGN 0x1205b0
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00002762/* [RW 4] Determines alignment of read SRs when a request is split into
2763 * several SRs. 0 - 8B aligned. 1 - 64B aligned. 2 - 128B aligned. 3 - 256B
2764 * aligned. 4 - 512B aligned. */
2765#define PXP2_REG_RQ_DRAM_ALIGN_RD 0x12092c
2766/* [RW 1] when set the new alignment method (E2) will be applied; when reset
2767 * the original alignment method (E1 E1H) will be applied */
2768#define PXP2_REG_RQ_DRAM_ALIGN_SEL 0x120930
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002769/* [RW 1] If 1 ILT failiue will not result in ELT access; An interrupt will
2770 be asserted */
2771#define PXP2_REG_RQ_ELT_DISABLE 0x12066c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002772/* [RW 2] Endian mode for hc */
2773#define PXP2_REG_RQ_HC_ENDIAN_M 0x1201a8
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002774/* [RW 1] when '0' ILT logic will work as in A0; otherwise B0; for back
2775 compatibility needs; Note that different registers are used per mode */
2776#define PXP2_REG_RQ_ILT_MODE 0x1205b4
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002777/* [WB 53] Onchip address table */
2778#define PXP2_REG_RQ_ONCHIP_AT 0x122000
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002779/* [WB 53] Onchip address table - B0 */
2780#define PXP2_REG_RQ_ONCHIP_AT_B0 0x128000
Eliezer Tamirf1410642008-02-28 11:51:50 -08002781/* [RW 13] Pending read limiter threshold; in Dwords */
2782#define PXP2_REG_RQ_PDR_LIMIT 0x12033c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002783/* [RW 2] Endian mode for qm */
2784#define PXP2_REG_RQ_QM_ENDIAN_M 0x120194
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002785#define PXP2_REG_RQ_QM_FIRST_ILT 0x120634
2786#define PXP2_REG_RQ_QM_LAST_ILT 0x120638
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002787/* [RW 3] page size in L2P table for QM module; -4k; -8k; -16k; -32k; -64k;
2788 -128k */
2789#define PXP2_REG_RQ_QM_P_SIZE 0x120050
Eilon Greenstein33471622008-08-13 15:59:08 -07002790/* [RW 1] 1' indicates that the RBC has finished configuring the PSWRQ */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002791#define PXP2_REG_RQ_RBC_DONE 0x1201b0
2792/* [RW 3] Max burst size filed for read requests port 0; 000 - 128B;
2793 001:256B; 010: 512B; 11:1K:100:2K; 01:4K */
2794#define PXP2_REG_RQ_RD_MBS0 0x120160
Eliezer Tamirf1410642008-02-28 11:51:50 -08002795/* [RW 3] Max burst size filed for read requests port 1; 000 - 128B;
2796 001:256B; 010: 512B; 11:1K:100:2K; 01:4K */
2797#define PXP2_REG_RQ_RD_MBS1 0x120168
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002798/* [RW 2] Endian mode for src */
2799#define PXP2_REG_RQ_SRC_ENDIAN_M 0x12019c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002800#define PXP2_REG_RQ_SRC_FIRST_ILT 0x12063c
2801#define PXP2_REG_RQ_SRC_LAST_ILT 0x120640
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002802/* [RW 3] page size in L2P table for SRC module; -4k; -8k; -16k; -32k; -64k;
2803 -128k */
2804#define PXP2_REG_RQ_SRC_P_SIZE 0x12006c
2805/* [RW 2] Endian mode for tm */
2806#define PXP2_REG_RQ_TM_ENDIAN_M 0x120198
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002807#define PXP2_REG_RQ_TM_FIRST_ILT 0x120644
2808#define PXP2_REG_RQ_TM_LAST_ILT 0x120648
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002809/* [RW 3] page size in L2P table for TM module; -4k; -8k; -16k; -32k; -64k;
2810 -128k */
2811#define PXP2_REG_RQ_TM_P_SIZE 0x120034
2812/* [R 5] Number of entries in the ufifo; his fifo has l2p completions */
2813#define PXP2_REG_RQ_UFIFO_NUM_OF_ENTRY 0x12080c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002814/* [RW 18] external first_mem_addr field in L2P table for USDM module port 0 */
2815#define PXP2_REG_RQ_USDM0_EFIRST_MEM_ADDR 0x120094
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002816/* [R 8] Number of entries occupied by vq 0 in pswrq memory */
2817#define PXP2_REG_RQ_VQ0_ENTRY_CNT 0x120810
2818/* [R 8] Number of entries occupied by vq 10 in pswrq memory */
2819#define PXP2_REG_RQ_VQ10_ENTRY_CNT 0x120818
2820/* [R 8] Number of entries occupied by vq 11 in pswrq memory */
2821#define PXP2_REG_RQ_VQ11_ENTRY_CNT 0x120820
2822/* [R 8] Number of entries occupied by vq 12 in pswrq memory */
2823#define PXP2_REG_RQ_VQ12_ENTRY_CNT 0x120828
2824/* [R 8] Number of entries occupied by vq 13 in pswrq memory */
2825#define PXP2_REG_RQ_VQ13_ENTRY_CNT 0x120830
2826/* [R 8] Number of entries occupied by vq 14 in pswrq memory */
2827#define PXP2_REG_RQ_VQ14_ENTRY_CNT 0x120838
2828/* [R 8] Number of entries occupied by vq 15 in pswrq memory */
2829#define PXP2_REG_RQ_VQ15_ENTRY_CNT 0x120840
2830/* [R 8] Number of entries occupied by vq 16 in pswrq memory */
2831#define PXP2_REG_RQ_VQ16_ENTRY_CNT 0x120848
2832/* [R 8] Number of entries occupied by vq 17 in pswrq memory */
2833#define PXP2_REG_RQ_VQ17_ENTRY_CNT 0x120850
2834/* [R 8] Number of entries occupied by vq 18 in pswrq memory */
2835#define PXP2_REG_RQ_VQ18_ENTRY_CNT 0x120858
2836/* [R 8] Number of entries occupied by vq 19 in pswrq memory */
2837#define PXP2_REG_RQ_VQ19_ENTRY_CNT 0x120860
2838/* [R 8] Number of entries occupied by vq 1 in pswrq memory */
2839#define PXP2_REG_RQ_VQ1_ENTRY_CNT 0x120868
2840/* [R 8] Number of entries occupied by vq 20 in pswrq memory */
2841#define PXP2_REG_RQ_VQ20_ENTRY_CNT 0x120870
2842/* [R 8] Number of entries occupied by vq 21 in pswrq memory */
2843#define PXP2_REG_RQ_VQ21_ENTRY_CNT 0x120878
2844/* [R 8] Number of entries occupied by vq 22 in pswrq memory */
2845#define PXP2_REG_RQ_VQ22_ENTRY_CNT 0x120880
2846/* [R 8] Number of entries occupied by vq 23 in pswrq memory */
2847#define PXP2_REG_RQ_VQ23_ENTRY_CNT 0x120888
2848/* [R 8] Number of entries occupied by vq 24 in pswrq memory */
2849#define PXP2_REG_RQ_VQ24_ENTRY_CNT 0x120890
2850/* [R 8] Number of entries occupied by vq 25 in pswrq memory */
2851#define PXP2_REG_RQ_VQ25_ENTRY_CNT 0x120898
2852/* [R 8] Number of entries occupied by vq 26 in pswrq memory */
2853#define PXP2_REG_RQ_VQ26_ENTRY_CNT 0x1208a0
2854/* [R 8] Number of entries occupied by vq 27 in pswrq memory */
2855#define PXP2_REG_RQ_VQ27_ENTRY_CNT 0x1208a8
2856/* [R 8] Number of entries occupied by vq 28 in pswrq memory */
2857#define PXP2_REG_RQ_VQ28_ENTRY_CNT 0x1208b0
2858/* [R 8] Number of entries occupied by vq 29 in pswrq memory */
2859#define PXP2_REG_RQ_VQ29_ENTRY_CNT 0x1208b8
2860/* [R 8] Number of entries occupied by vq 2 in pswrq memory */
2861#define PXP2_REG_RQ_VQ2_ENTRY_CNT 0x1208c0
2862/* [R 8] Number of entries occupied by vq 30 in pswrq memory */
2863#define PXP2_REG_RQ_VQ30_ENTRY_CNT 0x1208c8
2864/* [R 8] Number of entries occupied by vq 31 in pswrq memory */
2865#define PXP2_REG_RQ_VQ31_ENTRY_CNT 0x1208d0
2866/* [R 8] Number of entries occupied by vq 3 in pswrq memory */
2867#define PXP2_REG_RQ_VQ3_ENTRY_CNT 0x1208d8
2868/* [R 8] Number of entries occupied by vq 4 in pswrq memory */
2869#define PXP2_REG_RQ_VQ4_ENTRY_CNT 0x1208e0
2870/* [R 8] Number of entries occupied by vq 5 in pswrq memory */
2871#define PXP2_REG_RQ_VQ5_ENTRY_CNT 0x1208e8
2872/* [R 8] Number of entries occupied by vq 6 in pswrq memory */
2873#define PXP2_REG_RQ_VQ6_ENTRY_CNT 0x1208f0
2874/* [R 8] Number of entries occupied by vq 7 in pswrq memory */
2875#define PXP2_REG_RQ_VQ7_ENTRY_CNT 0x1208f8
2876/* [R 8] Number of entries occupied by vq 8 in pswrq memory */
2877#define PXP2_REG_RQ_VQ8_ENTRY_CNT 0x120900
2878/* [R 8] Number of entries occupied by vq 9 in pswrq memory */
2879#define PXP2_REG_RQ_VQ9_ENTRY_CNT 0x120908
2880/* [RW 3] Max burst size filed for write requests port 0; 000 - 128B;
2881 001:256B; 010: 512B; */
2882#define PXP2_REG_RQ_WR_MBS0 0x12015c
Eliezer Tamirf1410642008-02-28 11:51:50 -08002883/* [RW 3] Max burst size filed for write requests port 1; 000 - 128B;
2884 001:256B; 010: 512B; */
2885#define PXP2_REG_RQ_WR_MBS1 0x120164
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002886/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
2887 buffer reaches this number has_payload will be asserted */
2888#define PXP2_REG_WR_CDU_MPS 0x1205f0
2889/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
2890 buffer reaches this number has_payload will be asserted */
2891#define PXP2_REG_WR_CSDM_MPS 0x1205d0
2892/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
2893 buffer reaches this number has_payload will be asserted */
2894#define PXP2_REG_WR_DBG_MPS 0x1205e8
2895/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
2896 buffer reaches this number has_payload will be asserted */
2897#define PXP2_REG_WR_DMAE_MPS 0x1205ec
Eilon Greenstein33471622008-08-13 15:59:08 -07002898/* [RW 10] if Number of entries in dmae fifo will be higher than this
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002899 threshold then has_payload indication will be asserted; the default value
2900 should be equal to &gt; write MBS size! */
2901#define PXP2_REG_WR_DMAE_TH 0x120368
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002902/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
2903 buffer reaches this number has_payload will be asserted */
2904#define PXP2_REG_WR_HC_MPS 0x1205c8
2905/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
2906 buffer reaches this number has_payload will be asserted */
2907#define PXP2_REG_WR_QM_MPS 0x1205dc
2908/* [RW 1] 0 - working in A0 mode; - working in B0 mode */
2909#define PXP2_REG_WR_REV_MODE 0x120670
2910/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
2911 buffer reaches this number has_payload will be asserted */
2912#define PXP2_REG_WR_SRC_MPS 0x1205e4
2913/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
2914 buffer reaches this number has_payload will be asserted */
2915#define PXP2_REG_WR_TM_MPS 0x1205e0
2916/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
2917 buffer reaches this number has_payload will be asserted */
2918#define PXP2_REG_WR_TSDM_MPS 0x1205d4
Eilon Greenstein33471622008-08-13 15:59:08 -07002919/* [RW 10] if Number of entries in usdmdp fifo will be higher than this
Eliezer Tamirf1410642008-02-28 11:51:50 -08002920 threshold then has_payload indication will be asserted; the default value
2921 should be equal to &gt; write MBS size! */
2922#define PXP2_REG_WR_USDMDP_TH 0x120348
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002923/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
2924 buffer reaches this number has_payload will be asserted */
2925#define PXP2_REG_WR_USDM_MPS 0x1205cc
2926/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
2927 buffer reaches this number has_payload will be asserted */
2928#define PXP2_REG_WR_XSDM_MPS 0x1205d8
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002929/* [R 1] debug only: Indication if PSWHST arbiter is idle */
2930#define PXP_REG_HST_ARB_IS_IDLE 0x103004
2931/* [R 8] debug only: A bit mask for all PSWHST arbiter clients. '1' means
2932 this client is waiting for the arbiter. */
2933#define PXP_REG_HST_CLIENTS_WAITING_TO_ARB 0x103008
Vladislav Zolotarov72fd0712010-04-19 01:13:12 +00002934/* [RW 1] When 1; doorbells are discarded and not passed to doorbell queue
2935 block. Should be used for close the gates. */
2936#define PXP_REG_HST_DISCARD_DOORBELLS 0x1030a4
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002937/* [R 1] debug only: '1' means this PSWHST is discarding doorbells. This bit
2938 should update accoring to 'hst_discard_doorbells' register when the state
2939 machine is idle */
2940#define PXP_REG_HST_DISCARD_DOORBELLS_STATUS 0x1030a0
Vladislav Zolotarov72fd0712010-04-19 01:13:12 +00002941/* [RW 1] When 1; new internal writes arriving to the block are discarded.
2942 Should be used for close the gates. */
2943#define PXP_REG_HST_DISCARD_INTERNAL_WRITES 0x1030a8
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002944/* [R 6] debug only: A bit mask for all PSWHST internal write clients. '1'
2945 means this PSWHST is discarding inputs from this client. Each bit should
2946 update accoring to 'hst_discard_internal_writes' register when the state
2947 machine is idle. */
2948#define PXP_REG_HST_DISCARD_INTERNAL_WRITES_STATUS 0x10309c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002949/* [WB 160] Used for initialization of the inbound interrupts memory */
2950#define PXP_REG_HST_INBOUND_INT 0x103800
2951/* [RW 32] Interrupt mask register #0 read/write */
2952#define PXP_REG_PXP_INT_MASK_0 0x103074
2953#define PXP_REG_PXP_INT_MASK_1 0x103084
2954/* [R 32] Interrupt register #0 read */
2955#define PXP_REG_PXP_INT_STS_0 0x103068
2956#define PXP_REG_PXP_INT_STS_1 0x103078
2957/* [RC 32] Interrupt register #0 read clear */
2958#define PXP_REG_PXP_INT_STS_CLR_0 0x10306c
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00002959#define PXP_REG_PXP_INT_STS_CLR_1 0x10307c
2960/* [RW 27] Parity mask register #0 read/write */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002961#define PXP_REG_PXP_PRTY_MASK 0x103094
Eliezer Tamirf1410642008-02-28 11:51:50 -08002962/* [R 26] Parity register #0 read */
2963#define PXP_REG_PXP_PRTY_STS 0x103088
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002964/* [RW 4] The activity counter initial increment value sent in the load
2965 request */
2966#define QM_REG_ACTCTRINITVAL_0 0x168040
2967#define QM_REG_ACTCTRINITVAL_1 0x168044
2968#define QM_REG_ACTCTRINITVAL_2 0x168048
2969#define QM_REG_ACTCTRINITVAL_3 0x16804c
2970/* [RW 32] The base logical address (in bytes) of each physical queue. The
2971 index I represents the physical queue number. The 12 lsbs are ignore and
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002972 considered zero so practically there are only 20 bits in this register;
2973 queues 63-0 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002974#define QM_REG_BASEADDR 0x168900
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08002975/* [RW 32] The base logical address (in bytes) of each physical queue. The
2976 index I represents the physical queue number. The 12 lsbs are ignore and
2977 considered zero so practically there are only 20 bits in this register;
2978 queues 127-64 */
2979#define QM_REG_BASEADDR_EXT_A 0x16e100
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002980/* [RW 16] The byte credit cost for each task. This value is for both ports */
2981#define QM_REG_BYTECRDCOST 0x168234
2982/* [RW 16] The initial byte credit value for both ports. */
2983#define QM_REG_BYTECRDINITVAL 0x168238
2984/* [RW 32] A bit per physical queue. If the bit is cleared then the physical
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002985 queue uses port 0 else it uses port 1; queues 31-0 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002986#define QM_REG_BYTECRDPORT_LSB 0x168228
2987/* [RW 32] A bit per physical queue. If the bit is cleared then the physical
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002988 queue uses port 0 else it uses port 1; queues 95-64 */
2989#define QM_REG_BYTECRDPORT_LSB_EXT_A 0x16e520
2990/* [RW 32] A bit per physical queue. If the bit is cleared then the physical
2991 queue uses port 0 else it uses port 1; queues 63-32 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002992#define QM_REG_BYTECRDPORT_MSB 0x168224
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07002993/* [RW 32] A bit per physical queue. If the bit is cleared then the physical
2994 queue uses port 0 else it uses port 1; queues 127-96 */
2995#define QM_REG_BYTECRDPORT_MSB_EXT_A 0x16e51c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02002996/* [RW 16] The byte credit value that if above the QM is considered almost
2997 full */
2998#define QM_REG_BYTECREDITAFULLTHR 0x168094
2999/* [RW 4] The initial credit for interface */
3000#define QM_REG_CMINITCRD_0 0x1680cc
3001#define QM_REG_CMINITCRD_1 0x1680d0
3002#define QM_REG_CMINITCRD_2 0x1680d4
3003#define QM_REG_CMINITCRD_3 0x1680d8
3004#define QM_REG_CMINITCRD_4 0x1680dc
3005#define QM_REG_CMINITCRD_5 0x1680e0
3006#define QM_REG_CMINITCRD_6 0x1680e4
3007#define QM_REG_CMINITCRD_7 0x1680e8
3008/* [RW 8] A mask bit per CM interface. If this bit is 0 then this interface
3009 is masked */
3010#define QM_REG_CMINTEN 0x1680ec
3011/* [RW 12] A bit vector which indicates which one of the queues are tied to
3012 interface 0 */
3013#define QM_REG_CMINTVOQMASK_0 0x1681f4
3014#define QM_REG_CMINTVOQMASK_1 0x1681f8
3015#define QM_REG_CMINTVOQMASK_2 0x1681fc
3016#define QM_REG_CMINTVOQMASK_3 0x168200
3017#define QM_REG_CMINTVOQMASK_4 0x168204
3018#define QM_REG_CMINTVOQMASK_5 0x168208
3019#define QM_REG_CMINTVOQMASK_6 0x16820c
3020#define QM_REG_CMINTVOQMASK_7 0x168210
3021/* [RW 20] The number of connections divided by 16 which dictates the size
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003022 of each queue which belongs to even function number. */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003023#define QM_REG_CONNNUM_0 0x168020
3024/* [R 6] Keep the fill level of the fifo from write client 4 */
3025#define QM_REG_CQM_WRC_FIFOLVL 0x168018
3026/* [RW 8] The context regions sent in the CFC load request */
3027#define QM_REG_CTXREG_0 0x168030
3028#define QM_REG_CTXREG_1 0x168034
3029#define QM_REG_CTXREG_2 0x168038
3030#define QM_REG_CTXREG_3 0x16803c
3031/* [RW 12] The VOQ mask used to select the VOQs which needs to be full for
3032 bypass enable */
3033#define QM_REG_ENBYPVOQMASK 0x16823c
3034/* [RW 32] A bit mask per each physical queue. If a bit is set then the
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003035 physical queue uses the byte credit; queues 31-0 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003036#define QM_REG_ENBYTECRD_LSB 0x168220
3037/* [RW 32] A bit mask per each physical queue. If a bit is set then the
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003038 physical queue uses the byte credit; queues 95-64 */
3039#define QM_REG_ENBYTECRD_LSB_EXT_A 0x16e518
3040/* [RW 32] A bit mask per each physical queue. If a bit is set then the
3041 physical queue uses the byte credit; queues 63-32 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003042#define QM_REG_ENBYTECRD_MSB 0x16821c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003043/* [RW 32] A bit mask per each physical queue. If a bit is set then the
3044 physical queue uses the byte credit; queues 127-96 */
3045#define QM_REG_ENBYTECRD_MSB_EXT_A 0x16e514
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003046/* [RW 4] If cleared then the secondary interface will not be served by the
3047 RR arbiter */
3048#define QM_REG_ENSEC 0x1680f0
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003049/* [RW 32] NA */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003050#define QM_REG_FUNCNUMSEL_LSB 0x168230
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003051/* [RW 32] NA */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003052#define QM_REG_FUNCNUMSEL_MSB 0x16822c
3053/* [RW 32] A mask register to mask the Almost empty signals which will not
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003054 be use for the almost empty indication to the HW block; queues 31:0 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003055#define QM_REG_HWAEMPTYMASK_LSB 0x168218
3056/* [RW 32] A mask register to mask the Almost empty signals which will not
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003057 be use for the almost empty indication to the HW block; queues 95-64 */
3058#define QM_REG_HWAEMPTYMASK_LSB_EXT_A 0x16e510
3059/* [RW 32] A mask register to mask the Almost empty signals which will not
3060 be use for the almost empty indication to the HW block; queues 63:32 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003061#define QM_REG_HWAEMPTYMASK_MSB 0x168214
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003062/* [RW 32] A mask register to mask the Almost empty signals which will not
3063 be use for the almost empty indication to the HW block; queues 127-96 */
3064#define QM_REG_HWAEMPTYMASK_MSB_EXT_A 0x16e50c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003065/* [RW 4] The number of outstanding request to CFC */
3066#define QM_REG_OUTLDREQ 0x168804
3067/* [RC 1] A flag to indicate that overflow error occurred in one of the
3068 queues. */
3069#define QM_REG_OVFERROR 0x16805c
André Goddard Rosaaf901ca2009-11-14 13:09:05 -02003070/* [RC 7] the Q where the overflow occurs */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003071#define QM_REG_OVFQNUM 0x168058
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003072/* [R 16] Pause state for physical queues 15-0 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003073#define QM_REG_PAUSESTATE0 0x168410
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003074/* [R 16] Pause state for physical queues 31-16 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003075#define QM_REG_PAUSESTATE1 0x168414
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003076/* [R 16] Pause state for physical queues 47-32 */
3077#define QM_REG_PAUSESTATE2 0x16e684
3078/* [R 16] Pause state for physical queues 63-48 */
3079#define QM_REG_PAUSESTATE3 0x16e688
3080/* [R 16] Pause state for physical queues 79-64 */
3081#define QM_REG_PAUSESTATE4 0x16e68c
3082/* [R 16] Pause state for physical queues 95-80 */
3083#define QM_REG_PAUSESTATE5 0x16e690
3084/* [R 16] Pause state for physical queues 111-96 */
3085#define QM_REG_PAUSESTATE6 0x16e694
3086/* [R 16] Pause state for physical queues 127-112 */
3087#define QM_REG_PAUSESTATE7 0x16e698
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003088/* [RW 2] The PCI attributes field used in the PCI request. */
3089#define QM_REG_PCIREQAT 0x168054
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00003090#define QM_REG_PF_EN 0x16e70c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003091/* [R 16] The byte credit of port 0 */
3092#define QM_REG_PORT0BYTECRD 0x168300
3093/* [R 16] The byte credit of port 1 */
3094#define QM_REG_PORT1BYTECRD 0x168304
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003095/* [RW 3] pci function number of queues 15-0 */
3096#define QM_REG_PQ2PCIFUNC_0 0x16e6bc
3097#define QM_REG_PQ2PCIFUNC_1 0x16e6c0
3098#define QM_REG_PQ2PCIFUNC_2 0x16e6c4
3099#define QM_REG_PQ2PCIFUNC_3 0x16e6c8
3100#define QM_REG_PQ2PCIFUNC_4 0x16e6cc
3101#define QM_REG_PQ2PCIFUNC_5 0x16e6d0
3102#define QM_REG_PQ2PCIFUNC_6 0x16e6d4
3103#define QM_REG_PQ2PCIFUNC_7 0x16e6d8
3104/* [WB 54] Pointer Table Memory for queues 63-0; The mapping is as follow:
3105 ptrtbl[53:30] read pointer; ptrtbl[29:6] write pointer; ptrtbl[5:4] read
3106 bank0; ptrtbl[3:2] read bank 1; ptrtbl[1:0] write bank; */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003107#define QM_REG_PTRTBL 0x168a00
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003108/* [WB 54] Pointer Table Memory for queues 127-64; The mapping is as follow:
3109 ptrtbl[53:30] read pointer; ptrtbl[29:6] write pointer; ptrtbl[5:4] read
3110 bank0; ptrtbl[3:2] read bank 1; ptrtbl[1:0] write bank; */
3111#define QM_REG_PTRTBL_EXT_A 0x16e200
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003112/* [RW 2] Interrupt mask register #0 read/write */
3113#define QM_REG_QM_INT_MASK 0x168444
3114/* [R 2] Interrupt register #0 read */
3115#define QM_REG_QM_INT_STS 0x168438
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003116/* [RW 12] Parity mask register #0 read/write */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003117#define QM_REG_QM_PRTY_MASK 0x168454
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003118/* [R 12] Parity register #0 read */
Eliezer Tamirf1410642008-02-28 11:51:50 -08003119#define QM_REG_QM_PRTY_STS 0x168448
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003120/* [R 32] Current queues in pipeline: Queues from 32 to 63 */
3121#define QM_REG_QSTATUS_HIGH 0x16802c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003122/* [R 32] Current queues in pipeline: Queues from 96 to 127 */
3123#define QM_REG_QSTATUS_HIGH_EXT_A 0x16e408
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003124/* [R 32] Current queues in pipeline: Queues from 0 to 31 */
3125#define QM_REG_QSTATUS_LOW 0x168028
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003126/* [R 32] Current queues in pipeline: Queues from 64 to 95 */
3127#define QM_REG_QSTATUS_LOW_EXT_A 0x16e404
3128/* [R 24] The number of tasks queued for each queue; queues 63-0 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003129#define QM_REG_QTASKCTR_0 0x168308
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003130/* [R 24] The number of tasks queued for each queue; queues 127-64 */
3131#define QM_REG_QTASKCTR_EXT_A_0 0x16e584
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003132/* [RW 4] Queue tied to VOQ */
3133#define QM_REG_QVOQIDX_0 0x1680f4
3134#define QM_REG_QVOQIDX_10 0x16811c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003135#define QM_REG_QVOQIDX_100 0x16e49c
3136#define QM_REG_QVOQIDX_101 0x16e4a0
3137#define QM_REG_QVOQIDX_102 0x16e4a4
3138#define QM_REG_QVOQIDX_103 0x16e4a8
3139#define QM_REG_QVOQIDX_104 0x16e4ac
3140#define QM_REG_QVOQIDX_105 0x16e4b0
3141#define QM_REG_QVOQIDX_106 0x16e4b4
3142#define QM_REG_QVOQIDX_107 0x16e4b8
3143#define QM_REG_QVOQIDX_108 0x16e4bc
3144#define QM_REG_QVOQIDX_109 0x16e4c0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003145#define QM_REG_QVOQIDX_11 0x168120
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003146#define QM_REG_QVOQIDX_110 0x16e4c4
3147#define QM_REG_QVOQIDX_111 0x16e4c8
3148#define QM_REG_QVOQIDX_112 0x16e4cc
3149#define QM_REG_QVOQIDX_113 0x16e4d0
3150#define QM_REG_QVOQIDX_114 0x16e4d4
3151#define QM_REG_QVOQIDX_115 0x16e4d8
3152#define QM_REG_QVOQIDX_116 0x16e4dc
3153#define QM_REG_QVOQIDX_117 0x16e4e0
3154#define QM_REG_QVOQIDX_118 0x16e4e4
3155#define QM_REG_QVOQIDX_119 0x16e4e8
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003156#define QM_REG_QVOQIDX_12 0x168124
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003157#define QM_REG_QVOQIDX_120 0x16e4ec
3158#define QM_REG_QVOQIDX_121 0x16e4f0
3159#define QM_REG_QVOQIDX_122 0x16e4f4
3160#define QM_REG_QVOQIDX_123 0x16e4f8
3161#define QM_REG_QVOQIDX_124 0x16e4fc
3162#define QM_REG_QVOQIDX_125 0x16e500
3163#define QM_REG_QVOQIDX_126 0x16e504
3164#define QM_REG_QVOQIDX_127 0x16e508
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003165#define QM_REG_QVOQIDX_13 0x168128
3166#define QM_REG_QVOQIDX_14 0x16812c
3167#define QM_REG_QVOQIDX_15 0x168130
3168#define QM_REG_QVOQIDX_16 0x168134
3169#define QM_REG_QVOQIDX_17 0x168138
3170#define QM_REG_QVOQIDX_21 0x168148
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003171#define QM_REG_QVOQIDX_22 0x16814c
3172#define QM_REG_QVOQIDX_23 0x168150
3173#define QM_REG_QVOQIDX_24 0x168154
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003174#define QM_REG_QVOQIDX_25 0x168158
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003175#define QM_REG_QVOQIDX_26 0x16815c
3176#define QM_REG_QVOQIDX_27 0x168160
3177#define QM_REG_QVOQIDX_28 0x168164
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003178#define QM_REG_QVOQIDX_29 0x168168
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003179#define QM_REG_QVOQIDX_30 0x16816c
3180#define QM_REG_QVOQIDX_31 0x168170
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003181#define QM_REG_QVOQIDX_32 0x168174
3182#define QM_REG_QVOQIDX_33 0x168178
3183#define QM_REG_QVOQIDX_34 0x16817c
3184#define QM_REG_QVOQIDX_35 0x168180
3185#define QM_REG_QVOQIDX_36 0x168184
3186#define QM_REG_QVOQIDX_37 0x168188
3187#define QM_REG_QVOQIDX_38 0x16818c
3188#define QM_REG_QVOQIDX_39 0x168190
3189#define QM_REG_QVOQIDX_40 0x168194
3190#define QM_REG_QVOQIDX_41 0x168198
3191#define QM_REG_QVOQIDX_42 0x16819c
3192#define QM_REG_QVOQIDX_43 0x1681a0
3193#define QM_REG_QVOQIDX_44 0x1681a4
3194#define QM_REG_QVOQIDX_45 0x1681a8
3195#define QM_REG_QVOQIDX_46 0x1681ac
3196#define QM_REG_QVOQIDX_47 0x1681b0
3197#define QM_REG_QVOQIDX_48 0x1681b4
3198#define QM_REG_QVOQIDX_49 0x1681b8
3199#define QM_REG_QVOQIDX_5 0x168108
3200#define QM_REG_QVOQIDX_50 0x1681bc
3201#define QM_REG_QVOQIDX_51 0x1681c0
3202#define QM_REG_QVOQIDX_52 0x1681c4
3203#define QM_REG_QVOQIDX_53 0x1681c8
3204#define QM_REG_QVOQIDX_54 0x1681cc
3205#define QM_REG_QVOQIDX_55 0x1681d0
3206#define QM_REG_QVOQIDX_56 0x1681d4
3207#define QM_REG_QVOQIDX_57 0x1681d8
3208#define QM_REG_QVOQIDX_58 0x1681dc
3209#define QM_REG_QVOQIDX_59 0x1681e0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003210#define QM_REG_QVOQIDX_6 0x16810c
3211#define QM_REG_QVOQIDX_60 0x1681e4
3212#define QM_REG_QVOQIDX_61 0x1681e8
3213#define QM_REG_QVOQIDX_62 0x1681ec
3214#define QM_REG_QVOQIDX_63 0x1681f0
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003215#define QM_REG_QVOQIDX_64 0x16e40c
3216#define QM_REG_QVOQIDX_65 0x16e410
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003217#define QM_REG_QVOQIDX_69 0x16e420
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003218#define QM_REG_QVOQIDX_7 0x168110
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003219#define QM_REG_QVOQIDX_70 0x16e424
3220#define QM_REG_QVOQIDX_71 0x16e428
3221#define QM_REG_QVOQIDX_72 0x16e42c
3222#define QM_REG_QVOQIDX_73 0x16e430
3223#define QM_REG_QVOQIDX_74 0x16e434
3224#define QM_REG_QVOQIDX_75 0x16e438
3225#define QM_REG_QVOQIDX_76 0x16e43c
3226#define QM_REG_QVOQIDX_77 0x16e440
3227#define QM_REG_QVOQIDX_78 0x16e444
3228#define QM_REG_QVOQIDX_79 0x16e448
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003229#define QM_REG_QVOQIDX_8 0x168114
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003230#define QM_REG_QVOQIDX_80 0x16e44c
3231#define QM_REG_QVOQIDX_81 0x16e450
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003232#define QM_REG_QVOQIDX_85 0x16e460
3233#define QM_REG_QVOQIDX_86 0x16e464
3234#define QM_REG_QVOQIDX_87 0x16e468
3235#define QM_REG_QVOQIDX_88 0x16e46c
3236#define QM_REG_QVOQIDX_89 0x16e470
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003237#define QM_REG_QVOQIDX_9 0x168118
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003238#define QM_REG_QVOQIDX_90 0x16e474
3239#define QM_REG_QVOQIDX_91 0x16e478
3240#define QM_REG_QVOQIDX_92 0x16e47c
3241#define QM_REG_QVOQIDX_93 0x16e480
3242#define QM_REG_QVOQIDX_94 0x16e484
3243#define QM_REG_QVOQIDX_95 0x16e488
3244#define QM_REG_QVOQIDX_96 0x16e48c
3245#define QM_REG_QVOQIDX_97 0x16e490
3246#define QM_REG_QVOQIDX_98 0x16e494
3247#define QM_REG_QVOQIDX_99 0x16e498
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003248/* [RW 1] Initialization bit command */
3249#define QM_REG_SOFT_RESET 0x168428
3250/* [RW 8] The credit cost per every task in the QM. A value per each VOQ */
3251#define QM_REG_TASKCRDCOST_0 0x16809c
3252#define QM_REG_TASKCRDCOST_1 0x1680a0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003253#define QM_REG_TASKCRDCOST_2 0x1680a4
3254#define QM_REG_TASKCRDCOST_4 0x1680ac
3255#define QM_REG_TASKCRDCOST_5 0x1680b0
3256/* [R 6] Keep the fill level of the fifo from write client 3 */
3257#define QM_REG_TQM_WRC_FIFOLVL 0x168010
3258/* [R 6] Keep the fill level of the fifo from write client 2 */
3259#define QM_REG_UQM_WRC_FIFOLVL 0x168008
3260/* [RC 32] Credit update error register */
3261#define QM_REG_VOQCRDERRREG 0x168408
3262/* [R 16] The credit value for each VOQ */
3263#define QM_REG_VOQCREDIT_0 0x1682d0
3264#define QM_REG_VOQCREDIT_1 0x1682d4
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003265#define QM_REG_VOQCREDIT_4 0x1682e0
3266/* [RW 16] The credit value that if above the QM is considered almost full */
3267#define QM_REG_VOQCREDITAFULLTHR 0x168090
3268/* [RW 16] The init and maximum credit for each VoQ */
3269#define QM_REG_VOQINITCREDIT_0 0x168060
3270#define QM_REG_VOQINITCREDIT_1 0x168064
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003271#define QM_REG_VOQINITCREDIT_2 0x168068
3272#define QM_REG_VOQINITCREDIT_4 0x168070
3273#define QM_REG_VOQINITCREDIT_5 0x168074
3274/* [RW 1] The port of which VOQ belongs */
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003275#define QM_REG_VOQPORT_0 0x1682a0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003276#define QM_REG_VOQPORT_1 0x1682a4
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003277#define QM_REG_VOQPORT_2 0x1682a8
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003278/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003279#define QM_REG_VOQQMASK_0_LSB 0x168240
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003280/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
3281#define QM_REG_VOQQMASK_0_LSB_EXT_A 0x16e524
3282/* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003283#define QM_REG_VOQQMASK_0_MSB 0x168244
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003284/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
3285#define QM_REG_VOQQMASK_0_MSB_EXT_A 0x16e528
3286/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
3287#define QM_REG_VOQQMASK_10_LSB 0x168290
3288/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
3289#define QM_REG_VOQQMASK_10_LSB_EXT_A 0x16e574
3290/* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
3291#define QM_REG_VOQQMASK_10_MSB 0x168294
3292/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
3293#define QM_REG_VOQQMASK_10_MSB_EXT_A 0x16e578
3294/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
3295#define QM_REG_VOQQMASK_11_LSB 0x168298
3296/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
3297#define QM_REG_VOQQMASK_11_LSB_EXT_A 0x16e57c
3298/* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
3299#define QM_REG_VOQQMASK_11_MSB 0x16829c
3300/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
3301#define QM_REG_VOQQMASK_11_MSB_EXT_A 0x16e580
3302/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
3303#define QM_REG_VOQQMASK_1_LSB 0x168248
3304/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
3305#define QM_REG_VOQQMASK_1_LSB_EXT_A 0x16e52c
3306/* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003307#define QM_REG_VOQQMASK_1_MSB 0x16824c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003308/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
3309#define QM_REG_VOQQMASK_1_MSB_EXT_A 0x16e530
3310/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003311#define QM_REG_VOQQMASK_2_LSB 0x168250
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003312/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
3313#define QM_REG_VOQQMASK_2_LSB_EXT_A 0x16e534
3314/* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003315#define QM_REG_VOQQMASK_2_MSB 0x168254
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003316/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
3317#define QM_REG_VOQQMASK_2_MSB_EXT_A 0x16e538
3318/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003319#define QM_REG_VOQQMASK_3_LSB 0x168258
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003320/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
3321#define QM_REG_VOQQMASK_3_LSB_EXT_A 0x16e53c
3322/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
3323#define QM_REG_VOQQMASK_3_MSB_EXT_A 0x16e540
3324/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003325#define QM_REG_VOQQMASK_4_LSB 0x168260
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003326/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
3327#define QM_REG_VOQQMASK_4_LSB_EXT_A 0x16e544
3328/* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003329#define QM_REG_VOQQMASK_4_MSB 0x168264
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003330/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
3331#define QM_REG_VOQQMASK_4_MSB_EXT_A 0x16e548
3332/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003333#define QM_REG_VOQQMASK_5_LSB 0x168268
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003334/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
3335#define QM_REG_VOQQMASK_5_LSB_EXT_A 0x16e54c
3336/* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003337#define QM_REG_VOQQMASK_5_MSB 0x16826c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003338/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
3339#define QM_REG_VOQQMASK_5_MSB_EXT_A 0x16e550
3340/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003341#define QM_REG_VOQQMASK_6_LSB 0x168270
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003342/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
3343#define QM_REG_VOQQMASK_6_LSB_EXT_A 0x16e554
3344/* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003345#define QM_REG_VOQQMASK_6_MSB 0x168274
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003346/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
3347#define QM_REG_VOQQMASK_6_MSB_EXT_A 0x16e558
3348/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003349#define QM_REG_VOQQMASK_7_LSB 0x168278
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003350/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
3351#define QM_REG_VOQQMASK_7_LSB_EXT_A 0x16e55c
3352/* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003353#define QM_REG_VOQQMASK_7_MSB 0x16827c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003354/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
3355#define QM_REG_VOQQMASK_7_MSB_EXT_A 0x16e560
3356/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003357#define QM_REG_VOQQMASK_8_LSB 0x168280
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003358/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
3359#define QM_REG_VOQQMASK_8_LSB_EXT_A 0x16e564
3360/* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003361#define QM_REG_VOQQMASK_8_MSB 0x168284
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003362/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
3363#define QM_REG_VOQQMASK_8_MSB_EXT_A 0x16e568
3364/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003365#define QM_REG_VOQQMASK_9_LSB 0x168288
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003366/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
3367#define QM_REG_VOQQMASK_9_LSB_EXT_A 0x16e56c
3368/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
3369#define QM_REG_VOQQMASK_9_MSB_EXT_A 0x16e570
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003370/* [RW 32] Wrr weights */
3371#define QM_REG_WRRWEIGHTS_0 0x16880c
3372#define QM_REG_WRRWEIGHTS_1 0x168810
3373#define QM_REG_WRRWEIGHTS_10 0x168814
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003374#define QM_REG_WRRWEIGHTS_11 0x168818
3375#define QM_REG_WRRWEIGHTS_12 0x16881c
3376#define QM_REG_WRRWEIGHTS_13 0x168820
3377#define QM_REG_WRRWEIGHTS_14 0x168824
3378#define QM_REG_WRRWEIGHTS_15 0x168828
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003379#define QM_REG_WRRWEIGHTS_16 0x16e000
3380#define QM_REG_WRRWEIGHTS_17 0x16e004
3381#define QM_REG_WRRWEIGHTS_18 0x16e008
3382#define QM_REG_WRRWEIGHTS_19 0x16e00c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003383#define QM_REG_WRRWEIGHTS_2 0x16882c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003384#define QM_REG_WRRWEIGHTS_20 0x16e010
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003385#define QM_REG_WRRWEIGHTS_21 0x16e014
3386#define QM_REG_WRRWEIGHTS_22 0x16e018
3387#define QM_REG_WRRWEIGHTS_23 0x16e01c
3388#define QM_REG_WRRWEIGHTS_24 0x16e020
3389#define QM_REG_WRRWEIGHTS_25 0x16e024
3390#define QM_REG_WRRWEIGHTS_26 0x16e028
3391#define QM_REG_WRRWEIGHTS_27 0x16e02c
3392#define QM_REG_WRRWEIGHTS_28 0x16e030
3393#define QM_REG_WRRWEIGHTS_29 0x16e034
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003394#define QM_REG_WRRWEIGHTS_3 0x168830
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003395#define QM_REG_WRRWEIGHTS_30 0x16e038
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003396#define QM_REG_WRRWEIGHTS_31 0x16e03c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003397#define QM_REG_WRRWEIGHTS_4 0x168834
3398#define QM_REG_WRRWEIGHTS_5 0x168838
3399#define QM_REG_WRRWEIGHTS_6 0x16883c
3400#define QM_REG_WRRWEIGHTS_7 0x168840
3401#define QM_REG_WRRWEIGHTS_8 0x168844
3402#define QM_REG_WRRWEIGHTS_9 0x168848
3403/* [R 6] Keep the fill level of the fifo from write client 1 */
3404#define QM_REG_XQM_WRC_FIFOLVL 0x168000
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003405#define SRC_REG_COUNTFREE0 0x40500
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003406/* [RW 1] If clr the searcher is compatible to E1 A0 - support only two
3407 ports. If set the searcher support 8 functions. */
3408#define SRC_REG_E1HMF_ENABLE 0x404cc
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003409#define SRC_REG_FIRSTFREE0 0x40510
3410#define SRC_REG_KEYRSS0_0 0x40408
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003411#define SRC_REG_KEYRSS0_7 0x40424
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003412#define SRC_REG_KEYRSS1_9 0x40454
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08003413#define SRC_REG_KEYSEARCH_0 0x40458
3414#define SRC_REG_KEYSEARCH_1 0x4045c
3415#define SRC_REG_KEYSEARCH_2 0x40460
3416#define SRC_REG_KEYSEARCH_3 0x40464
3417#define SRC_REG_KEYSEARCH_4 0x40468
3418#define SRC_REG_KEYSEARCH_5 0x4046c
3419#define SRC_REG_KEYSEARCH_6 0x40470
3420#define SRC_REG_KEYSEARCH_7 0x40474
3421#define SRC_REG_KEYSEARCH_8 0x40478
3422#define SRC_REG_KEYSEARCH_9 0x4047c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003423#define SRC_REG_LASTFREE0 0x40530
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003424#define SRC_REG_NUMBER_HASH_BITS0 0x40400
3425/* [RW 1] Reset internal state machines. */
3426#define SRC_REG_SOFT_RST 0x4049c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003427/* [R 3] Interrupt register #0 read */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003428#define SRC_REG_SRC_INT_STS 0x404ac
3429/* [RW 3] Parity mask register #0 read/write */
3430#define SRC_REG_SRC_PRTY_MASK 0x404c8
Eliezer Tamirf1410642008-02-28 11:51:50 -08003431/* [R 3] Parity register #0 read */
3432#define SRC_REG_SRC_PRTY_STS 0x404bc
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003433/* [R 4] Used to read the value of the XX protection CAM occupancy counter. */
3434#define TCM_REG_CAM_OCCUP 0x5017c
3435/* [RW 1] CDU AG read Interface enable. If 0 - the request input is
3436 disregarded; valid output is deasserted; all other signals are treated as
3437 usual; if 1 - normal activity. */
3438#define TCM_REG_CDU_AG_RD_IFEN 0x50034
3439/* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input
3440 are disregarded; all other signals are treated as usual; if 1 - normal
3441 activity. */
3442#define TCM_REG_CDU_AG_WR_IFEN 0x50030
3443/* [RW 1] CDU STORM read Interface enable. If 0 - the request input is
3444 disregarded; valid output is deasserted; all other signals are treated as
3445 usual; if 1 - normal activity. */
3446#define TCM_REG_CDU_SM_RD_IFEN 0x5003c
3447/* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid
3448 input is disregarded; all other signals are treated as usual; if 1 -
3449 normal activity. */
3450#define TCM_REG_CDU_SM_WR_IFEN 0x50038
3451/* [RW 4] CFC output initial credit. Max credit available - 15.Write writes
3452 the initial credit value; read returns the current value of the credit
3453 counter. Must be initialized to 1 at start-up. */
3454#define TCM_REG_CFC_INIT_CRD 0x50204
3455/* [RW 3] The weight of the CP input in the WRR mechanism. 0 stands for
3456 weight 8 (the most prioritised); 1 stands for weight 1(least
3457 prioritised); 2 stands for weight 2; tc. */
3458#define TCM_REG_CP_WEIGHT 0x500c0
3459/* [RW 1] Input csem Interface enable. If 0 - the valid input is
3460 disregarded; acknowledge output is deasserted; all other signals are
3461 treated as usual; if 1 - normal activity. */
3462#define TCM_REG_CSEM_IFEN 0x5002c
3463/* [RC 1] Message length mismatch (relative to last indication) at the In#9
3464 interface. */
3465#define TCM_REG_CSEM_LENGTH_MIS 0x50174
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08003466/* [RW 3] The weight of the input csem in the WRR mechanism. 0 stands for
3467 weight 8 (the most prioritised); 1 stands for weight 1(least
3468 prioritised); 2 stands for weight 2; tc. */
3469#define TCM_REG_CSEM_WEIGHT 0x500bc
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003470/* [RW 8] The Event ID in case of ErrorFlg is set in the input message. */
3471#define TCM_REG_ERR_EVNT_ID 0x500a0
3472/* [RW 28] The CM erroneous header for QM and Timers formatting. */
3473#define TCM_REG_ERR_TCM_HDR 0x5009c
3474/* [RW 8] The Event ID for Timers expiration. */
3475#define TCM_REG_EXPR_EVNT_ID 0x500a4
3476/* [RW 8] FIC0 output initial credit. Max credit available - 255.Write
3477 writes the initial credit value; read returns the current value of the
3478 credit counter. Must be initialized to 64 at start-up. */
3479#define TCM_REG_FIC0_INIT_CRD 0x5020c
3480/* [RW 8] FIC1 output initial credit. Max credit available - 255.Write
3481 writes the initial credit value; read returns the current value of the
3482 credit counter. Must be initialized to 64 at start-up. */
3483#define TCM_REG_FIC1_INIT_CRD 0x50210
3484/* [RW 1] Arbitration between Input Arbiter groups: 0 - fair Round-Robin; 1
3485 - strict priority defined by ~tcm_registers_gr_ag_pr.gr_ag_pr;
3486 ~tcm_registers_gr_ld0_pr.gr_ld0_pr and
3487 ~tcm_registers_gr_ld1_pr.gr_ld1_pr. */
3488#define TCM_REG_GR_ARB_TYPE 0x50114
3489/* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the
3490 highest priority is 3. It is supposed that the Store channel is the
3491 compliment of the other 3 groups. */
3492#define TCM_REG_GR_LD0_PR 0x5011c
3493/* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the
3494 highest priority is 3. It is supposed that the Store channel is the
3495 compliment of the other 3 groups. */
3496#define TCM_REG_GR_LD1_PR 0x50120
3497/* [RW 4] The number of double REG-pairs; loaded from the STORM context and
3498 sent to STORM; for a specific connection type. The double REG-pairs are
3499 used to align to STORM context row size of 128 bits. The offset of these
3500 data in the STORM context is always 0. Index _i stands for the connection
3501 type (one of 16). */
3502#define TCM_REG_N_SM_CTX_LD_0 0x50050
3503#define TCM_REG_N_SM_CTX_LD_1 0x50054
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003504#define TCM_REG_N_SM_CTX_LD_2 0x50058
3505#define TCM_REG_N_SM_CTX_LD_3 0x5005c
3506#define TCM_REG_N_SM_CTX_LD_4 0x50060
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08003507#define TCM_REG_N_SM_CTX_LD_5 0x50064
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003508/* [RW 1] Input pbf Interface enable. If 0 - the valid input is disregarded;
3509 acknowledge output is deasserted; all other signals are treated as usual;
3510 if 1 - normal activity. */
3511#define TCM_REG_PBF_IFEN 0x50024
3512/* [RC 1] Message length mismatch (relative to last indication) at the In#7
3513 interface. */
3514#define TCM_REG_PBF_LENGTH_MIS 0x5016c
3515/* [RW 3] The weight of the input pbf in the WRR mechanism. 0 stands for
3516 weight 8 (the most prioritised); 1 stands for weight 1(least
3517 prioritised); 2 stands for weight 2; tc. */
3518#define TCM_REG_PBF_WEIGHT 0x500b4
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003519#define TCM_REG_PHYS_QNUM0_0 0x500e0
3520#define TCM_REG_PHYS_QNUM0_1 0x500e4
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003521#define TCM_REG_PHYS_QNUM1_0 0x500e8
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003522#define TCM_REG_PHYS_QNUM1_1 0x500ec
3523#define TCM_REG_PHYS_QNUM2_0 0x500f0
3524#define TCM_REG_PHYS_QNUM2_1 0x500f4
3525#define TCM_REG_PHYS_QNUM3_0 0x500f8
3526#define TCM_REG_PHYS_QNUM3_1 0x500fc
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003527/* [RW 1] Input prs Interface enable. If 0 - the valid input is disregarded;
3528 acknowledge output is deasserted; all other signals are treated as usual;
3529 if 1 - normal activity. */
3530#define TCM_REG_PRS_IFEN 0x50020
3531/* [RC 1] Message length mismatch (relative to last indication) at the In#6
3532 interface. */
3533#define TCM_REG_PRS_LENGTH_MIS 0x50168
3534/* [RW 3] The weight of the input prs in the WRR mechanism. 0 stands for
3535 weight 8 (the most prioritised); 1 stands for weight 1(least
3536 prioritised); 2 stands for weight 2; tc. */
3537#define TCM_REG_PRS_WEIGHT 0x500b0
3538/* [RW 8] The Event ID for Timers formatting in case of stop done. */
3539#define TCM_REG_STOP_EVNT_ID 0x500a8
3540/* [RC 1] Message length mismatch (relative to last indication) at the STORM
3541 interface. */
3542#define TCM_REG_STORM_LENGTH_MIS 0x50160
3543/* [RW 1] STORM - CM Interface enable. If 0 - the valid input is
3544 disregarded; acknowledge output is deasserted; all other signals are
3545 treated as usual; if 1 - normal activity. */
3546#define TCM_REG_STORM_TCM_IFEN 0x50010
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08003547/* [RW 3] The weight of the STORM input in the WRR mechanism. 0 stands for
3548 weight 8 (the most prioritised); 1 stands for weight 1(least
3549 prioritised); 2 stands for weight 2; tc. */
3550#define TCM_REG_STORM_WEIGHT 0x500ac
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003551/* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded;
3552 acknowledge output is deasserted; all other signals are treated as usual;
3553 if 1 - normal activity. */
3554#define TCM_REG_TCM_CFC_IFEN 0x50040
3555/* [RW 11] Interrupt mask register #0 read/write */
3556#define TCM_REG_TCM_INT_MASK 0x501dc
3557/* [R 11] Interrupt register #0 read */
3558#define TCM_REG_TCM_INT_STS 0x501d0
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003559/* [R 27] Parity register #0 read */
3560#define TCM_REG_TCM_PRTY_STS 0x501e0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003561/* [RW 3] The size of AG context region 0 in REG-pairs. Designates the MS
3562 REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5).
3563 Is used to determine the number of the AG context REG-pairs written back;
3564 when the input message Reg1WbFlg isn't set. */
3565#define TCM_REG_TCM_REG0_SZ 0x500d8
3566/* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is
3567 disregarded; valid is deasserted; all other signals are treated as usual;
3568 if 1 - normal activity. */
3569#define TCM_REG_TCM_STORM0_IFEN 0x50004
3570/* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is
3571 disregarded; valid is deasserted; all other signals are treated as usual;
3572 if 1 - normal activity. */
3573#define TCM_REG_TCM_STORM1_IFEN 0x50008
3574/* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is
3575 disregarded; valid is deasserted; all other signals are treated as usual;
3576 if 1 - normal activity. */
3577#define TCM_REG_TCM_TQM_IFEN 0x5000c
3578/* [RW 1] If set the Q index; received from the QM is inserted to event ID. */
3579#define TCM_REG_TCM_TQM_USE_Q 0x500d4
3580/* [RW 28] The CM header for Timers expiration command. */
3581#define TCM_REG_TM_TCM_HDR 0x50098
3582/* [RW 1] Timers - CM Interface enable. If 0 - the valid input is
3583 disregarded; acknowledge output is deasserted; all other signals are
3584 treated as usual; if 1 - normal activity. */
3585#define TCM_REG_TM_TCM_IFEN 0x5001c
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08003586/* [RW 3] The weight of the Timers input in the WRR mechanism. 0 stands for
3587 weight 8 (the most prioritised); 1 stands for weight 1(least
3588 prioritised); 2 stands for weight 2; tc. */
3589#define TCM_REG_TM_WEIGHT 0x500d0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003590/* [RW 6] QM output initial credit. Max credit available - 32.Write writes
3591 the initial credit value; read returns the current value of the credit
3592 counter. Must be initialized to 32 at start-up. */
3593#define TCM_REG_TQM_INIT_CRD 0x5021c
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08003594/* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0
3595 stands for weight 8 (the most prioritised); 1 stands for weight 1(least
3596 prioritised); 2 stands for weight 2; tc. */
3597#define TCM_REG_TQM_P_WEIGHT 0x500c8
3598/* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0
3599 stands for weight 8 (the most prioritised); 1 stands for weight 1(least
3600 prioritised); 2 stands for weight 2; tc. */
3601#define TCM_REG_TQM_S_WEIGHT 0x500cc
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003602/* [RW 28] The CM header value for QM request (primary). */
3603#define TCM_REG_TQM_TCM_HDR_P 0x50090
3604/* [RW 28] The CM header value for QM request (secondary). */
3605#define TCM_REG_TQM_TCM_HDR_S 0x50094
3606/* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded;
3607 acknowledge output is deasserted; all other signals are treated as usual;
3608 if 1 - normal activity. */
3609#define TCM_REG_TQM_TCM_IFEN 0x50014
3610/* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded;
3611 acknowledge output is deasserted; all other signals are treated as usual;
3612 if 1 - normal activity. */
3613#define TCM_REG_TSDM_IFEN 0x50018
3614/* [RC 1] Message length mismatch (relative to last indication) at the SDM
3615 interface. */
3616#define TCM_REG_TSDM_LENGTH_MIS 0x50164
3617/* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for
3618 weight 8 (the most prioritised); 1 stands for weight 1(least
3619 prioritised); 2 stands for weight 2; tc. */
3620#define TCM_REG_TSDM_WEIGHT 0x500c4
3621/* [RW 1] Input usem Interface enable. If 0 - the valid input is
3622 disregarded; acknowledge output is deasserted; all other signals are
3623 treated as usual; if 1 - normal activity. */
3624#define TCM_REG_USEM_IFEN 0x50028
3625/* [RC 1] Message length mismatch (relative to last indication) at the In#8
3626 interface. */
3627#define TCM_REG_USEM_LENGTH_MIS 0x50170
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08003628/* [RW 3] The weight of the input usem in the WRR mechanism. 0 stands for
3629 weight 8 (the most prioritised); 1 stands for weight 1(least
3630 prioritised); 2 stands for weight 2; tc. */
3631#define TCM_REG_USEM_WEIGHT 0x500b8
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003632/* [RW 21] Indirect access to the descriptor table of the XX protection
3633 mechanism. The fields are: [5:0] - length of the message; 15:6] - message
3634 pointer; 20:16] - next pointer. */
3635#define TCM_REG_XX_DESCR_TABLE 0x50280
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003636#define TCM_REG_XX_DESCR_TABLE_SIZE 32
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003637/* [R 6] Use to read the value of XX protection Free counter. */
3638#define TCM_REG_XX_FREE 0x50178
3639/* [RW 6] Initial value for the credit counter; responsible for fulfilling
3640 of the Input Stage XX protection buffer by the XX protection pending
3641 messages. Max credit available - 127.Write writes the initial credit
3642 value; read returns the current value of the credit counter. Must be
3643 initialized to 19 at start-up. */
3644#define TCM_REG_XX_INIT_CRD 0x50220
3645/* [RW 6] Maximum link list size (messages locked) per connection in the XX
3646 protection. */
3647#define TCM_REG_XX_MAX_LL_SZ 0x50044
3648/* [RW 6] The maximum number of pending messages; which may be stored in XX
3649 protection. ~tcm_registers_xx_free.xx_free is read on read. */
3650#define TCM_REG_XX_MSG_NUM 0x50224
3651/* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */
3652#define TCM_REG_XX_OVFL_EVNT_ID 0x50048
3653/* [RW 16] Indirect access to the XX table of the XX protection mechanism.
3654 The fields are:[4:0] - tail pointer; [10:5] - Link List size; 15:11] -
3655 header pointer. */
3656#define TCM_REG_XX_TABLE 0x50240
Anand Gadiyar411c9402009-07-07 15:24:23 +05303657/* [RW 4] Load value for cfc ac credit cnt. */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003658#define TM_REG_CFC_AC_CRDCNT_VAL 0x164208
3659/* [RW 4] Load value for cfc cld credit cnt. */
3660#define TM_REG_CFC_CLD_CRDCNT_VAL 0x164210
3661/* [RW 8] Client0 context region. */
3662#define TM_REG_CL0_CONT_REGION 0x164030
3663/* [RW 8] Client1 context region. */
3664#define TM_REG_CL1_CONT_REGION 0x164034
3665/* [RW 8] Client2 context region. */
3666#define TM_REG_CL2_CONT_REGION 0x164038
3667/* [RW 2] Client in High priority client number. */
3668#define TM_REG_CLIN_PRIOR0_CLIENT 0x164024
3669/* [RW 4] Load value for clout0 cred cnt. */
3670#define TM_REG_CLOUT_CRDCNT0_VAL 0x164220
3671/* [RW 4] Load value for clout1 cred cnt. */
3672#define TM_REG_CLOUT_CRDCNT1_VAL 0x164228
3673/* [RW 4] Load value for clout2 cred cnt. */
3674#define TM_REG_CLOUT_CRDCNT2_VAL 0x164230
3675/* [RW 1] Enable client0 input. */
3676#define TM_REG_EN_CL0_INPUT 0x164008
3677/* [RW 1] Enable client1 input. */
3678#define TM_REG_EN_CL1_INPUT 0x16400c
3679/* [RW 1] Enable client2 input. */
3680#define TM_REG_EN_CL2_INPUT 0x164010
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08003681#define TM_REG_EN_LINEAR0_TIMER 0x164014
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003682/* [RW 1] Enable real time counter. */
3683#define TM_REG_EN_REAL_TIME_CNT 0x1640d8
3684/* [RW 1] Enable for Timers state machines. */
3685#define TM_REG_EN_TIMERS 0x164000
3686/* [RW 4] Load value for expiration credit cnt. CFC max number of
3687 outstanding load requests for timers (expiration) context loading. */
3688#define TM_REG_EXP_CRDCNT_VAL 0x164238
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08003689/* [RW 32] Linear0 logic address. */
3690#define TM_REG_LIN0_LOGIC_ADDR 0x164240
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003691/* [RW 18] Linear0 Max active cid (in banks of 32 entries). */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003692#define TM_REG_LIN0_MAX_ACTIVE_CID 0x164048
3693/* [WB 64] Linear0 phy address. */
3694#define TM_REG_LIN0_PHY_ADDR 0x164270
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08003695/* [RW 1] Linear0 physical address valid. */
3696#define TM_REG_LIN0_PHY_ADDR_VALID 0x164248
Eilon Greensteinca003922009-08-12 22:53:28 -07003697#define TM_REG_LIN0_SCAN_ON 0x1640d0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003698/* [RW 24] Linear0 array scan timeout. */
3699#define TM_REG_LIN0_SCAN_TIME 0x16403c
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08003700/* [RW 32] Linear1 logic address. */
3701#define TM_REG_LIN1_LOGIC_ADDR 0x164250
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003702/* [WB 64] Linear1 phy address. */
3703#define TM_REG_LIN1_PHY_ADDR 0x164280
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08003704/* [RW 1] Linear1 physical address valid. */
3705#define TM_REG_LIN1_PHY_ADDR_VALID 0x164258
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003706/* [RW 6] Linear timer set_clear fifo threshold. */
3707#define TM_REG_LIN_SETCLR_FIFO_ALFULL_THR 0x164070
3708/* [RW 2] Load value for pci arbiter credit cnt. */
3709#define TM_REG_PCIARB_CRDCNT_VAL 0x164260
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003710/* [RW 20] The amount of hardware cycles for each timer tick. */
3711#define TM_REG_TIMER_TICK_SIZE 0x16401c
3712/* [RW 8] Timers Context region. */
3713#define TM_REG_TM_CONTEXT_REGION 0x164044
3714/* [RW 1] Interrupt mask register #0 read/write */
3715#define TM_REG_TM_INT_MASK 0x1640fc
3716/* [R 1] Interrupt register #0 read */
3717#define TM_REG_TM_INT_STS 0x1640f0
3718/* [RW 8] The event id for aggregated interrupt 0 */
3719#define TSDM_REG_AGG_INT_EVENT_0 0x42038
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08003720#define TSDM_REG_AGG_INT_EVENT_1 0x4203c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003721#define TSDM_REG_AGG_INT_EVENT_2 0x42040
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003722#define TSDM_REG_AGG_INT_EVENT_3 0x42044
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003723#define TSDM_REG_AGG_INT_EVENT_4 0x42048
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08003724/* [RW 1] The T bit for aggregated interrupt 0 */
3725#define TSDM_REG_AGG_INT_T_0 0x420b8
3726#define TSDM_REG_AGG_INT_T_1 0x420bc
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003727/* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */
3728#define TSDM_REG_CFC_RSP_START_ADDR 0x42008
3729/* [RW 16] The maximum value of the competion counter #0 */
3730#define TSDM_REG_CMP_COUNTER_MAX0 0x4201c
3731/* [RW 16] The maximum value of the competion counter #1 */
3732#define TSDM_REG_CMP_COUNTER_MAX1 0x42020
3733/* [RW 16] The maximum value of the competion counter #2 */
3734#define TSDM_REG_CMP_COUNTER_MAX2 0x42024
3735/* [RW 16] The maximum value of the competion counter #3 */
3736#define TSDM_REG_CMP_COUNTER_MAX3 0x42028
3737/* [RW 13] The start address in the internal RAM for the completion
3738 counters. */
3739#define TSDM_REG_CMP_COUNTER_START_ADDR 0x4200c
3740#define TSDM_REG_ENABLE_IN1 0x42238
3741#define TSDM_REG_ENABLE_IN2 0x4223c
3742#define TSDM_REG_ENABLE_OUT1 0x42240
3743#define TSDM_REG_ENABLE_OUT2 0x42244
3744/* [RW 4] The initial number of messages that can be sent to the pxp control
3745 interface without receiving any ACK. */
3746#define TSDM_REG_INIT_CREDIT_PXP_CTRL 0x424bc
3747/* [ST 32] The number of ACK after placement messages received */
3748#define TSDM_REG_NUM_OF_ACK_AFTER_PLACE 0x4227c
3749/* [ST 32] The number of packet end messages received from the parser */
3750#define TSDM_REG_NUM_OF_PKT_END_MSG 0x42274
3751/* [ST 32] The number of requests received from the pxp async if */
3752#define TSDM_REG_NUM_OF_PXP_ASYNC_REQ 0x42278
3753/* [ST 32] The number of commands received in queue 0 */
3754#define TSDM_REG_NUM_OF_Q0_CMD 0x42248
3755/* [ST 32] The number of commands received in queue 10 */
3756#define TSDM_REG_NUM_OF_Q10_CMD 0x4226c
3757/* [ST 32] The number of commands received in queue 11 */
3758#define TSDM_REG_NUM_OF_Q11_CMD 0x42270
3759/* [ST 32] The number of commands received in queue 1 */
3760#define TSDM_REG_NUM_OF_Q1_CMD 0x4224c
3761/* [ST 32] The number of commands received in queue 3 */
3762#define TSDM_REG_NUM_OF_Q3_CMD 0x42250
3763/* [ST 32] The number of commands received in queue 4 */
3764#define TSDM_REG_NUM_OF_Q4_CMD 0x42254
3765/* [ST 32] The number of commands received in queue 5 */
3766#define TSDM_REG_NUM_OF_Q5_CMD 0x42258
3767/* [ST 32] The number of commands received in queue 6 */
3768#define TSDM_REG_NUM_OF_Q6_CMD 0x4225c
3769/* [ST 32] The number of commands received in queue 7 */
3770#define TSDM_REG_NUM_OF_Q7_CMD 0x42260
3771/* [ST 32] The number of commands received in queue 8 */
3772#define TSDM_REG_NUM_OF_Q8_CMD 0x42264
3773/* [ST 32] The number of commands received in queue 9 */
3774#define TSDM_REG_NUM_OF_Q9_CMD 0x42268
3775/* [RW 13] The start address in the internal RAM for the packet end message */
3776#define TSDM_REG_PCK_END_MSG_START_ADDR 0x42014
3777/* [RW 13] The start address in the internal RAM for queue counters */
3778#define TSDM_REG_Q_COUNTER_START_ADDR 0x42010
3779/* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */
3780#define TSDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0x42548
3781/* [R 1] parser fifo empty in sdm_sync block */
3782#define TSDM_REG_SYNC_PARSER_EMPTY 0x42550
3783/* [R 1] parser serial fifo empty in sdm_sync block */
3784#define TSDM_REG_SYNC_SYNC_EMPTY 0x42558
3785/* [RW 32] Tick for timer counter. Applicable only when
3786 ~tsdm_registers_timer_tick_enable.timer_tick_enable =1 */
3787#define TSDM_REG_TIMER_TICK 0x42000
3788/* [RW 32] Interrupt mask register #0 read/write */
3789#define TSDM_REG_TSDM_INT_MASK_0 0x4229c
3790#define TSDM_REG_TSDM_INT_MASK_1 0x422ac
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003791/* [R 32] Interrupt register #0 read */
3792#define TSDM_REG_TSDM_INT_STS_0 0x42290
3793#define TSDM_REG_TSDM_INT_STS_1 0x422a0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003794/* [RW 11] Parity mask register #0 read/write */
3795#define TSDM_REG_TSDM_PRTY_MASK 0x422bc
Eliezer Tamirf1410642008-02-28 11:51:50 -08003796/* [R 11] Parity register #0 read */
3797#define TSDM_REG_TSDM_PRTY_STS 0x422b0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003798/* [RW 5] The number of time_slots in the arbitration cycle */
3799#define TSEM_REG_ARB_CYCLE_SIZE 0x180034
3800/* [RW 3] The source that is associated with arbitration element 0. Source
3801 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
3802 sleeping thread with priority 1; 4- sleeping thread with priority 2 */
3803#define TSEM_REG_ARB_ELEMENT0 0x180020
3804/* [RW 3] The source that is associated with arbitration element 1. Source
3805 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
3806 sleeping thread with priority 1; 4- sleeping thread with priority 2.
3807 Could not be equal to register ~tsem_registers_arb_element0.arb_element0 */
3808#define TSEM_REG_ARB_ELEMENT1 0x180024
3809/* [RW 3] The source that is associated with arbitration element 2. Source
3810 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
3811 sleeping thread with priority 1; 4- sleeping thread with priority 2.
3812 Could not be equal to register ~tsem_registers_arb_element0.arb_element0
3813 and ~tsem_registers_arb_element1.arb_element1 */
3814#define TSEM_REG_ARB_ELEMENT2 0x180028
3815/* [RW 3] The source that is associated with arbitration element 3. Source
3816 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
3817 sleeping thread with priority 1; 4- sleeping thread with priority 2.Could
3818 not be equal to register ~tsem_registers_arb_element0.arb_element0 and
3819 ~tsem_registers_arb_element1.arb_element1 and
3820 ~tsem_registers_arb_element2.arb_element2 */
3821#define TSEM_REG_ARB_ELEMENT3 0x18002c
3822/* [RW 3] The source that is associated with arbitration element 4. Source
3823 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
3824 sleeping thread with priority 1; 4- sleeping thread with priority 2.
3825 Could not be equal to register ~tsem_registers_arb_element0.arb_element0
3826 and ~tsem_registers_arb_element1.arb_element1 and
3827 ~tsem_registers_arb_element2.arb_element2 and
3828 ~tsem_registers_arb_element3.arb_element3 */
3829#define TSEM_REG_ARB_ELEMENT4 0x180030
3830#define TSEM_REG_ENABLE_IN 0x1800a4
3831#define TSEM_REG_ENABLE_OUT 0x1800a8
3832/* [RW 32] This address space contains all registers and memories that are
3833 placed in SEM_FAST block. The SEM_FAST registers are described in
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003834 appendix B. In order to access the sem_fast registers the base address
3835 ~fast_memory.fast_memory should be added to eachsem_fast register offset. */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003836#define TSEM_REG_FAST_MEMORY 0x1a0000
3837/* [RW 1] Disables input messages from FIC0 May be updated during run_time
3838 by the microcode */
3839#define TSEM_REG_FIC0_DISABLE 0x180224
3840/* [RW 1] Disables input messages from FIC1 May be updated during run_time
3841 by the microcode */
3842#define TSEM_REG_FIC1_DISABLE 0x180234
3843/* [RW 15] Interrupt table Read and write access to it is not possible in
3844 the middle of the work */
3845#define TSEM_REG_INT_TABLE 0x180400
3846/* [ST 24] Statistics register. The number of messages that entered through
3847 FIC0 */
3848#define TSEM_REG_MSG_NUM_FIC0 0x180000
3849/* [ST 24] Statistics register. The number of messages that entered through
3850 FIC1 */
3851#define TSEM_REG_MSG_NUM_FIC1 0x180004
3852/* [ST 24] Statistics register. The number of messages that were sent to
3853 FOC0 */
3854#define TSEM_REG_MSG_NUM_FOC0 0x180008
3855/* [ST 24] Statistics register. The number of messages that were sent to
3856 FOC1 */
3857#define TSEM_REG_MSG_NUM_FOC1 0x18000c
3858/* [ST 24] Statistics register. The number of messages that were sent to
3859 FOC2 */
3860#define TSEM_REG_MSG_NUM_FOC2 0x180010
3861/* [ST 24] Statistics register. The number of messages that were sent to
3862 FOC3 */
3863#define TSEM_REG_MSG_NUM_FOC3 0x180014
3864/* [RW 1] Disables input messages from the passive buffer May be updated
3865 during run_time by the microcode */
3866#define TSEM_REG_PAS_DISABLE 0x18024c
3867/* [WB 128] Debug only. Passive buffer memory */
3868#define TSEM_REG_PASSIVE_BUFFER 0x181000
3869/* [WB 46] pram memory. B45 is parity; b[44:0] - data. */
3870#define TSEM_REG_PRAM 0x1c0000
3871/* [R 8] Valid sleeping threads indication have bit per thread */
3872#define TSEM_REG_SLEEP_THREADS_VALID 0x18026c
3873/* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */
3874#define TSEM_REG_SLOW_EXT_STORE_EMPTY 0x1802a0
3875/* [RW 8] List of free threads . There is a bit per thread. */
3876#define TSEM_REG_THREADS_LIST 0x1802e4
3877/* [RW 3] The arbitration scheme of time_slot 0 */
3878#define TSEM_REG_TS_0_AS 0x180038
3879/* [RW 3] The arbitration scheme of time_slot 10 */
3880#define TSEM_REG_TS_10_AS 0x180060
3881/* [RW 3] The arbitration scheme of time_slot 11 */
3882#define TSEM_REG_TS_11_AS 0x180064
3883/* [RW 3] The arbitration scheme of time_slot 12 */
3884#define TSEM_REG_TS_12_AS 0x180068
3885/* [RW 3] The arbitration scheme of time_slot 13 */
3886#define TSEM_REG_TS_13_AS 0x18006c
3887/* [RW 3] The arbitration scheme of time_slot 14 */
3888#define TSEM_REG_TS_14_AS 0x180070
3889/* [RW 3] The arbitration scheme of time_slot 15 */
3890#define TSEM_REG_TS_15_AS 0x180074
3891/* [RW 3] The arbitration scheme of time_slot 16 */
3892#define TSEM_REG_TS_16_AS 0x180078
3893/* [RW 3] The arbitration scheme of time_slot 17 */
3894#define TSEM_REG_TS_17_AS 0x18007c
3895/* [RW 3] The arbitration scheme of time_slot 18 */
3896#define TSEM_REG_TS_18_AS 0x180080
3897/* [RW 3] The arbitration scheme of time_slot 1 */
3898#define TSEM_REG_TS_1_AS 0x18003c
3899/* [RW 3] The arbitration scheme of time_slot 2 */
3900#define TSEM_REG_TS_2_AS 0x180040
3901/* [RW 3] The arbitration scheme of time_slot 3 */
3902#define TSEM_REG_TS_3_AS 0x180044
3903/* [RW 3] The arbitration scheme of time_slot 4 */
3904#define TSEM_REG_TS_4_AS 0x180048
3905/* [RW 3] The arbitration scheme of time_slot 5 */
3906#define TSEM_REG_TS_5_AS 0x18004c
3907/* [RW 3] The arbitration scheme of time_slot 6 */
3908#define TSEM_REG_TS_6_AS 0x180050
3909/* [RW 3] The arbitration scheme of time_slot 7 */
3910#define TSEM_REG_TS_7_AS 0x180054
3911/* [RW 3] The arbitration scheme of time_slot 8 */
3912#define TSEM_REG_TS_8_AS 0x180058
3913/* [RW 3] The arbitration scheme of time_slot 9 */
3914#define TSEM_REG_TS_9_AS 0x18005c
3915/* [RW 32] Interrupt mask register #0 read/write */
3916#define TSEM_REG_TSEM_INT_MASK_0 0x180100
3917#define TSEM_REG_TSEM_INT_MASK_1 0x180110
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07003918/* [R 32] Interrupt register #0 read */
3919#define TSEM_REG_TSEM_INT_STS_0 0x1800f4
3920#define TSEM_REG_TSEM_INT_STS_1 0x180104
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003921/* [RW 32] Parity mask register #0 read/write */
3922#define TSEM_REG_TSEM_PRTY_MASK_0 0x180120
3923#define TSEM_REG_TSEM_PRTY_MASK_1 0x180130
Eliezer Tamirf1410642008-02-28 11:51:50 -08003924/* [R 32] Parity register #0 read */
3925#define TSEM_REG_TSEM_PRTY_STS_0 0x180114
3926#define TSEM_REG_TSEM_PRTY_STS_1 0x180124
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00003927/* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64
3928 * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */
3929#define TSEM_REG_VFPF_ERR_NUM 0x180380
3930/* [RW 32] Indirect access to AG context with 32-bits granularity. The bits
3931 * [10:8] of the address should be the offset within the accessed LCID
3932 * context; the bits [7:0] are the accessed LCID.Example: to write to REG10
3933 * LCID100. The RBC address should be 12'ha64. */
3934#define UCM_REG_AG_CTX 0xe2000
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003935/* [R 5] Used to read the XX protection CAM occupancy counter. */
3936#define UCM_REG_CAM_OCCUP 0xe0170
3937/* [RW 1] CDU AG read Interface enable. If 0 - the request input is
3938 disregarded; valid output is deasserted; all other signals are treated as
3939 usual; if 1 - normal activity. */
3940#define UCM_REG_CDU_AG_RD_IFEN 0xe0038
3941/* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input
3942 are disregarded; all other signals are treated as usual; if 1 - normal
3943 activity. */
3944#define UCM_REG_CDU_AG_WR_IFEN 0xe0034
3945/* [RW 1] CDU STORM read Interface enable. If 0 - the request input is
3946 disregarded; valid output is deasserted; all other signals are treated as
3947 usual; if 1 - normal activity. */
3948#define UCM_REG_CDU_SM_RD_IFEN 0xe0040
3949/* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid
3950 input is disregarded; all other signals are treated as usual; if 1 -
3951 normal activity. */
3952#define UCM_REG_CDU_SM_WR_IFEN 0xe003c
3953/* [RW 4] CFC output initial credit. Max credit available - 15.Write writes
3954 the initial credit value; read returns the current value of the credit
3955 counter. Must be initialized to 1 at start-up. */
3956#define UCM_REG_CFC_INIT_CRD 0xe0204
3957/* [RW 3] The weight of the CP input in the WRR mechanism. 0 stands for
3958 weight 8 (the most prioritised); 1 stands for weight 1(least
3959 prioritised); 2 stands for weight 2; tc. */
3960#define UCM_REG_CP_WEIGHT 0xe00c4
3961/* [RW 1] Input csem Interface enable. If 0 - the valid input is
3962 disregarded; acknowledge output is deasserted; all other signals are
3963 treated as usual; if 1 - normal activity. */
3964#define UCM_REG_CSEM_IFEN 0xe0028
3965/* [RC 1] Set when the message length mismatch (relative to last indication)
3966 at the csem interface is detected. */
3967#define UCM_REG_CSEM_LENGTH_MIS 0xe0160
3968/* [RW 3] The weight of the input csem in the WRR mechanism. 0 stands for
3969 weight 8 (the most prioritised); 1 stands for weight 1(least
3970 prioritised); 2 stands for weight 2; tc. */
3971#define UCM_REG_CSEM_WEIGHT 0xe00b8
3972/* [RW 1] Input dorq Interface enable. If 0 - the valid input is
3973 disregarded; acknowledge output is deasserted; all other signals are
3974 treated as usual; if 1 - normal activity. */
3975#define UCM_REG_DORQ_IFEN 0xe0030
3976/* [RC 1] Set when the message length mismatch (relative to last indication)
3977 at the dorq interface is detected. */
3978#define UCM_REG_DORQ_LENGTH_MIS 0xe0168
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08003979/* [RW 3] The weight of the input dorq in the WRR mechanism. 0 stands for
3980 weight 8 (the most prioritised); 1 stands for weight 1(least
3981 prioritised); 2 stands for weight 2; tc. */
3982#define UCM_REG_DORQ_WEIGHT 0xe00c0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02003983/* [RW 8] The Event ID in case ErrorFlg input message bit is set. */
3984#define UCM_REG_ERR_EVNT_ID 0xe00a4
3985/* [RW 28] The CM erroneous header for QM and Timers formatting. */
3986#define UCM_REG_ERR_UCM_HDR 0xe00a0
3987/* [RW 8] The Event ID for Timers expiration. */
3988#define UCM_REG_EXPR_EVNT_ID 0xe00a8
3989/* [RW 8] FIC0 output initial credit. Max credit available - 255.Write
3990 writes the initial credit value; read returns the current value of the
3991 credit counter. Must be initialized to 64 at start-up. */
3992#define UCM_REG_FIC0_INIT_CRD 0xe020c
3993/* [RW 8] FIC1 output initial credit. Max credit available - 255.Write
3994 writes the initial credit value; read returns the current value of the
3995 credit counter. Must be initialized to 64 at start-up. */
3996#define UCM_REG_FIC1_INIT_CRD 0xe0210
3997/* [RW 1] Arbitration between Input Arbiter groups: 0 - fair Round-Robin; 1
3998 - strict priority defined by ~ucm_registers_gr_ag_pr.gr_ag_pr;
3999 ~ucm_registers_gr_ld0_pr.gr_ld0_pr and
4000 ~ucm_registers_gr_ld1_pr.gr_ld1_pr. */
4001#define UCM_REG_GR_ARB_TYPE 0xe0144
4002/* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the
4003 highest priority is 3. It is supposed that the Store channel group is
4004 compliment to the others. */
4005#define UCM_REG_GR_LD0_PR 0xe014c
4006/* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the
4007 highest priority is 3. It is supposed that the Store channel group is
4008 compliment to the others. */
4009#define UCM_REG_GR_LD1_PR 0xe0150
4010/* [RW 2] The queue index for invalidate counter flag decision. */
4011#define UCM_REG_INV_CFLG_Q 0xe00e4
4012/* [RW 5] The number of double REG-pairs; loaded from the STORM context and
4013 sent to STORM; for a specific connection type. the double REG-pairs are
4014 used in order to align to STORM context row size of 128 bits. The offset
4015 of these data in the STORM context is always 0. Index _i stands for the
4016 connection type (one of 16). */
4017#define UCM_REG_N_SM_CTX_LD_0 0xe0054
4018#define UCM_REG_N_SM_CTX_LD_1 0xe0058
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004019#define UCM_REG_N_SM_CTX_LD_2 0xe005c
4020#define UCM_REG_N_SM_CTX_LD_3 0xe0060
4021#define UCM_REG_N_SM_CTX_LD_4 0xe0064
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004022#define UCM_REG_N_SM_CTX_LD_5 0xe0068
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004023#define UCM_REG_PHYS_QNUM0_0 0xe0110
4024#define UCM_REG_PHYS_QNUM0_1 0xe0114
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004025#define UCM_REG_PHYS_QNUM1_0 0xe0118
4026#define UCM_REG_PHYS_QNUM1_1 0xe011c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004027#define UCM_REG_PHYS_QNUM2_0 0xe0120
4028#define UCM_REG_PHYS_QNUM2_1 0xe0124
4029#define UCM_REG_PHYS_QNUM3_0 0xe0128
4030#define UCM_REG_PHYS_QNUM3_1 0xe012c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004031/* [RW 8] The Event ID for Timers formatting in case of stop done. */
4032#define UCM_REG_STOP_EVNT_ID 0xe00ac
4033/* [RC 1] Set when the message length mismatch (relative to last indication)
4034 at the STORM interface is detected. */
4035#define UCM_REG_STORM_LENGTH_MIS 0xe0154
4036/* [RW 1] STORM - CM Interface enable. If 0 - the valid input is
4037 disregarded; acknowledge output is deasserted; all other signals are
4038 treated as usual; if 1 - normal activity. */
4039#define UCM_REG_STORM_UCM_IFEN 0xe0010
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08004040/* [RW 3] The weight of the STORM input in the WRR mechanism. 0 stands for
4041 weight 8 (the most prioritised); 1 stands for weight 1(least
4042 prioritised); 2 stands for weight 2; tc. */
4043#define UCM_REG_STORM_WEIGHT 0xe00b0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004044/* [RW 4] Timers output initial credit. Max credit available - 15.Write
4045 writes the initial credit value; read returns the current value of the
4046 credit counter. Must be initialized to 4 at start-up. */
4047#define UCM_REG_TM_INIT_CRD 0xe021c
4048/* [RW 28] The CM header for Timers expiration command. */
4049#define UCM_REG_TM_UCM_HDR 0xe009c
4050/* [RW 1] Timers - CM Interface enable. If 0 - the valid input is
4051 disregarded; acknowledge output is deasserted; all other signals are
4052 treated as usual; if 1 - normal activity. */
4053#define UCM_REG_TM_UCM_IFEN 0xe001c
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08004054/* [RW 3] The weight of the Timers input in the WRR mechanism. 0 stands for
4055 weight 8 (the most prioritised); 1 stands for weight 1(least
4056 prioritised); 2 stands for weight 2; tc. */
4057#define UCM_REG_TM_WEIGHT 0xe00d4
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004058/* [RW 1] Input tsem Interface enable. If 0 - the valid input is
4059 disregarded; acknowledge output is deasserted; all other signals are
4060 treated as usual; if 1 - normal activity. */
4061#define UCM_REG_TSEM_IFEN 0xe0024
4062/* [RC 1] Set when the message length mismatch (relative to last indication)
4063 at the tsem interface is detected. */
4064#define UCM_REG_TSEM_LENGTH_MIS 0xe015c
4065/* [RW 3] The weight of the input tsem in the WRR mechanism. 0 stands for
4066 weight 8 (the most prioritised); 1 stands for weight 1(least
4067 prioritised); 2 stands for weight 2; tc. */
4068#define UCM_REG_TSEM_WEIGHT 0xe00b4
4069/* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded;
4070 acknowledge output is deasserted; all other signals are treated as usual;
4071 if 1 - normal activity. */
4072#define UCM_REG_UCM_CFC_IFEN 0xe0044
4073/* [RW 11] Interrupt mask register #0 read/write */
4074#define UCM_REG_UCM_INT_MASK 0xe01d4
4075/* [R 11] Interrupt register #0 read */
4076#define UCM_REG_UCM_INT_STS 0xe01c8
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004077/* [R 27] Parity register #0 read */
4078#define UCM_REG_UCM_PRTY_STS 0xe01d8
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004079/* [RW 2] The size of AG context region 0 in REG-pairs. Designates the MS
4080 REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5).
4081 Is used to determine the number of the AG context REG-pairs written back;
4082 when the Reg1WbFlg isn't set. */
4083#define UCM_REG_UCM_REG0_SZ 0xe00dc
4084/* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is
4085 disregarded; valid is deasserted; all other signals are treated as usual;
4086 if 1 - normal activity. */
4087#define UCM_REG_UCM_STORM0_IFEN 0xe0004
4088/* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is
4089 disregarded; valid is deasserted; all other signals are treated as usual;
4090 if 1 - normal activity. */
4091#define UCM_REG_UCM_STORM1_IFEN 0xe0008
4092/* [RW 1] CM - Timers Interface enable. If 0 - the valid input is
4093 disregarded; acknowledge output is deasserted; all other signals are
4094 treated as usual; if 1 - normal activity. */
4095#define UCM_REG_UCM_TM_IFEN 0xe0020
4096/* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is
4097 disregarded; valid is deasserted; all other signals are treated as usual;
4098 if 1 - normal activity. */
4099#define UCM_REG_UCM_UQM_IFEN 0xe000c
4100/* [RW 1] If set the Q index; received from the QM is inserted to event ID. */
4101#define UCM_REG_UCM_UQM_USE_Q 0xe00d8
4102/* [RW 6] QM output initial credit. Max credit available - 32.Write writes
4103 the initial credit value; read returns the current value of the credit
4104 counter. Must be initialized to 32 at start-up. */
4105#define UCM_REG_UQM_INIT_CRD 0xe0220
4106/* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0
4107 stands for weight 8 (the most prioritised); 1 stands for weight 1(least
4108 prioritised); 2 stands for weight 2; tc. */
4109#define UCM_REG_UQM_P_WEIGHT 0xe00cc
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08004110/* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0
4111 stands for weight 8 (the most prioritised); 1 stands for weight 1(least
4112 prioritised); 2 stands for weight 2; tc. */
4113#define UCM_REG_UQM_S_WEIGHT 0xe00d0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004114/* [RW 28] The CM header value for QM request (primary). */
4115#define UCM_REG_UQM_UCM_HDR_P 0xe0094
4116/* [RW 28] The CM header value for QM request (secondary). */
4117#define UCM_REG_UQM_UCM_HDR_S 0xe0098
4118/* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded;
4119 acknowledge output is deasserted; all other signals are treated as usual;
4120 if 1 - normal activity. */
4121#define UCM_REG_UQM_UCM_IFEN 0xe0014
4122/* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded;
4123 acknowledge output is deasserted; all other signals are treated as usual;
4124 if 1 - normal activity. */
4125#define UCM_REG_USDM_IFEN 0xe0018
4126/* [RC 1] Set when the message length mismatch (relative to last indication)
4127 at the SDM interface is detected. */
4128#define UCM_REG_USDM_LENGTH_MIS 0xe0158
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08004129/* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for
4130 weight 8 (the most prioritised); 1 stands for weight 1(least
4131 prioritised); 2 stands for weight 2; tc. */
4132#define UCM_REG_USDM_WEIGHT 0xe00c8
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004133/* [RW 1] Input xsem Interface enable. If 0 - the valid input is
4134 disregarded; acknowledge output is deasserted; all other signals are
4135 treated as usual; if 1 - normal activity. */
4136#define UCM_REG_XSEM_IFEN 0xe002c
4137/* [RC 1] Set when the message length mismatch (relative to last indication)
4138 at the xsem interface isdetected. */
4139#define UCM_REG_XSEM_LENGTH_MIS 0xe0164
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08004140/* [RW 3] The weight of the input xsem in the WRR mechanism. 0 stands for
4141 weight 8 (the most prioritised); 1 stands for weight 1(least
4142 prioritised); 2 stands for weight 2; tc. */
4143#define UCM_REG_XSEM_WEIGHT 0xe00bc
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004144/* [RW 20] Indirect access to the descriptor table of the XX protection
4145 mechanism. The fields are:[5:0] - message length; 14:6] - message
4146 pointer; 19:15] - next pointer. */
4147#define UCM_REG_XX_DESCR_TABLE 0xe0280
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004148#define UCM_REG_XX_DESCR_TABLE_SIZE 32
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004149/* [R 6] Use to read the XX protection Free counter. */
4150#define UCM_REG_XX_FREE 0xe016c
4151/* [RW 6] Initial value for the credit counter; responsible for fulfilling
4152 of the Input Stage XX protection buffer by the XX protection pending
4153 messages. Write writes the initial credit value; read returns the current
4154 value of the credit counter. Must be initialized to 12 at start-up. */
4155#define UCM_REG_XX_INIT_CRD 0xe0224
4156/* [RW 6] The maximum number of pending messages; which may be stored in XX
4157 protection. ~ucm_registers_xx_free.xx_free read on read. */
4158#define UCM_REG_XX_MSG_NUM 0xe0228
4159/* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */
4160#define UCM_REG_XX_OVFL_EVNT_ID 0xe004c
4161/* [RW 16] Indirect access to the XX table of the XX protection mechanism.
4162 The fields are: [4:0] - tail pointer; 10:5] - Link List size; 15:11] -
4163 header pointer. */
4164#define UCM_REG_XX_TABLE 0xe0300
4165/* [RW 8] The event id for aggregated interrupt 0 */
4166#define USDM_REG_AGG_INT_EVENT_0 0xc4038
4167#define USDM_REG_AGG_INT_EVENT_1 0xc403c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004168#define USDM_REG_AGG_INT_EVENT_2 0xc4040
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004169#define USDM_REG_AGG_INT_EVENT_4 0xc4048
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08004170#define USDM_REG_AGG_INT_EVENT_5 0xc404c
Eilon Greensteinca003922009-08-12 22:53:28 -07004171#define USDM_REG_AGG_INT_EVENT_6 0xc4050
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004172/* [RW 1] For each aggregated interrupt index whether the mode is normal (0)
4173 or auto-mask-mode (1) */
4174#define USDM_REG_AGG_INT_MODE_0 0xc41b8
4175#define USDM_REG_AGG_INT_MODE_1 0xc41bc
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08004176#define USDM_REG_AGG_INT_MODE_4 0xc41c8
4177#define USDM_REG_AGG_INT_MODE_5 0xc41cc
Eilon Greensteinca003922009-08-12 22:53:28 -07004178#define USDM_REG_AGG_INT_MODE_6 0xc41d0
4179/* [RW 1] The T bit for aggregated interrupt 5 */
4180#define USDM_REG_AGG_INT_T_5 0xc40cc
4181#define USDM_REG_AGG_INT_T_6 0xc40d0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004182/* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */
4183#define USDM_REG_CFC_RSP_START_ADDR 0xc4008
4184/* [RW 16] The maximum value of the competion counter #0 */
4185#define USDM_REG_CMP_COUNTER_MAX0 0xc401c
4186/* [RW 16] The maximum value of the competion counter #1 */
4187#define USDM_REG_CMP_COUNTER_MAX1 0xc4020
4188/* [RW 16] The maximum value of the competion counter #2 */
4189#define USDM_REG_CMP_COUNTER_MAX2 0xc4024
4190/* [RW 16] The maximum value of the competion counter #3 */
4191#define USDM_REG_CMP_COUNTER_MAX3 0xc4028
4192/* [RW 13] The start address in the internal RAM for the completion
4193 counters. */
4194#define USDM_REG_CMP_COUNTER_START_ADDR 0xc400c
4195#define USDM_REG_ENABLE_IN1 0xc4238
4196#define USDM_REG_ENABLE_IN2 0xc423c
4197#define USDM_REG_ENABLE_OUT1 0xc4240
4198#define USDM_REG_ENABLE_OUT2 0xc4244
4199/* [RW 4] The initial number of messages that can be sent to the pxp control
4200 interface without receiving any ACK. */
4201#define USDM_REG_INIT_CREDIT_PXP_CTRL 0xc44c0
4202/* [ST 32] The number of ACK after placement messages received */
4203#define USDM_REG_NUM_OF_ACK_AFTER_PLACE 0xc4280
4204/* [ST 32] The number of packet end messages received from the parser */
4205#define USDM_REG_NUM_OF_PKT_END_MSG 0xc4278
4206/* [ST 32] The number of requests received from the pxp async if */
4207#define USDM_REG_NUM_OF_PXP_ASYNC_REQ 0xc427c
4208/* [ST 32] The number of commands received in queue 0 */
4209#define USDM_REG_NUM_OF_Q0_CMD 0xc4248
4210/* [ST 32] The number of commands received in queue 10 */
4211#define USDM_REG_NUM_OF_Q10_CMD 0xc4270
4212/* [ST 32] The number of commands received in queue 11 */
4213#define USDM_REG_NUM_OF_Q11_CMD 0xc4274
4214/* [ST 32] The number of commands received in queue 1 */
4215#define USDM_REG_NUM_OF_Q1_CMD 0xc424c
4216/* [ST 32] The number of commands received in queue 2 */
4217#define USDM_REG_NUM_OF_Q2_CMD 0xc4250
4218/* [ST 32] The number of commands received in queue 3 */
4219#define USDM_REG_NUM_OF_Q3_CMD 0xc4254
4220/* [ST 32] The number of commands received in queue 4 */
4221#define USDM_REG_NUM_OF_Q4_CMD 0xc4258
4222/* [ST 32] The number of commands received in queue 5 */
4223#define USDM_REG_NUM_OF_Q5_CMD 0xc425c
4224/* [ST 32] The number of commands received in queue 6 */
4225#define USDM_REG_NUM_OF_Q6_CMD 0xc4260
4226/* [ST 32] The number of commands received in queue 7 */
4227#define USDM_REG_NUM_OF_Q7_CMD 0xc4264
4228/* [ST 32] The number of commands received in queue 8 */
4229#define USDM_REG_NUM_OF_Q8_CMD 0xc4268
4230/* [ST 32] The number of commands received in queue 9 */
4231#define USDM_REG_NUM_OF_Q9_CMD 0xc426c
4232/* [RW 13] The start address in the internal RAM for the packet end message */
4233#define USDM_REG_PCK_END_MSG_START_ADDR 0xc4014
4234/* [RW 13] The start address in the internal RAM for queue counters */
4235#define USDM_REG_Q_COUNTER_START_ADDR 0xc4010
4236/* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */
4237#define USDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0xc4550
4238/* [R 1] parser fifo empty in sdm_sync block */
4239#define USDM_REG_SYNC_PARSER_EMPTY 0xc4558
4240/* [R 1] parser serial fifo empty in sdm_sync block */
4241#define USDM_REG_SYNC_SYNC_EMPTY 0xc4560
4242/* [RW 32] Tick for timer counter. Applicable only when
4243 ~usdm_registers_timer_tick_enable.timer_tick_enable =1 */
4244#define USDM_REG_TIMER_TICK 0xc4000
4245/* [RW 32] Interrupt mask register #0 read/write */
4246#define USDM_REG_USDM_INT_MASK_0 0xc42a0
4247#define USDM_REG_USDM_INT_MASK_1 0xc42b0
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004248/* [R 32] Interrupt register #0 read */
4249#define USDM_REG_USDM_INT_STS_0 0xc4294
4250#define USDM_REG_USDM_INT_STS_1 0xc42a4
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004251/* [RW 11] Parity mask register #0 read/write */
4252#define USDM_REG_USDM_PRTY_MASK 0xc42c0
Eliezer Tamirf1410642008-02-28 11:51:50 -08004253/* [R 11] Parity register #0 read */
4254#define USDM_REG_USDM_PRTY_STS 0xc42b4
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004255/* [RW 5] The number of time_slots in the arbitration cycle */
4256#define USEM_REG_ARB_CYCLE_SIZE 0x300034
4257/* [RW 3] The source that is associated with arbitration element 0. Source
4258 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
4259 sleeping thread with priority 1; 4- sleeping thread with priority 2 */
4260#define USEM_REG_ARB_ELEMENT0 0x300020
4261/* [RW 3] The source that is associated with arbitration element 1. Source
4262 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
4263 sleeping thread with priority 1; 4- sleeping thread with priority 2.
4264 Could not be equal to register ~usem_registers_arb_element0.arb_element0 */
4265#define USEM_REG_ARB_ELEMENT1 0x300024
4266/* [RW 3] The source that is associated with arbitration element 2. Source
4267 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
4268 sleeping thread with priority 1; 4- sleeping thread with priority 2.
4269 Could not be equal to register ~usem_registers_arb_element0.arb_element0
4270 and ~usem_registers_arb_element1.arb_element1 */
4271#define USEM_REG_ARB_ELEMENT2 0x300028
4272/* [RW 3] The source that is associated with arbitration element 3. Source
4273 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
4274 sleeping thread with priority 1; 4- sleeping thread with priority 2.Could
4275 not be equal to register ~usem_registers_arb_element0.arb_element0 and
4276 ~usem_registers_arb_element1.arb_element1 and
4277 ~usem_registers_arb_element2.arb_element2 */
4278#define USEM_REG_ARB_ELEMENT3 0x30002c
4279/* [RW 3] The source that is associated with arbitration element 4. Source
4280 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
4281 sleeping thread with priority 1; 4- sleeping thread with priority 2.
4282 Could not be equal to register ~usem_registers_arb_element0.arb_element0
4283 and ~usem_registers_arb_element1.arb_element1 and
4284 ~usem_registers_arb_element2.arb_element2 and
4285 ~usem_registers_arb_element3.arb_element3 */
4286#define USEM_REG_ARB_ELEMENT4 0x300030
4287#define USEM_REG_ENABLE_IN 0x3000a4
4288#define USEM_REG_ENABLE_OUT 0x3000a8
4289/* [RW 32] This address space contains all registers and memories that are
4290 placed in SEM_FAST block. The SEM_FAST registers are described in
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004291 appendix B. In order to access the sem_fast registers the base address
4292 ~fast_memory.fast_memory should be added to eachsem_fast register offset. */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004293#define USEM_REG_FAST_MEMORY 0x320000
4294/* [RW 1] Disables input messages from FIC0 May be updated during run_time
4295 by the microcode */
4296#define USEM_REG_FIC0_DISABLE 0x300224
4297/* [RW 1] Disables input messages from FIC1 May be updated during run_time
4298 by the microcode */
4299#define USEM_REG_FIC1_DISABLE 0x300234
4300/* [RW 15] Interrupt table Read and write access to it is not possible in
4301 the middle of the work */
4302#define USEM_REG_INT_TABLE 0x300400
4303/* [ST 24] Statistics register. The number of messages that entered through
4304 FIC0 */
4305#define USEM_REG_MSG_NUM_FIC0 0x300000
4306/* [ST 24] Statistics register. The number of messages that entered through
4307 FIC1 */
4308#define USEM_REG_MSG_NUM_FIC1 0x300004
4309/* [ST 24] Statistics register. The number of messages that were sent to
4310 FOC0 */
4311#define USEM_REG_MSG_NUM_FOC0 0x300008
4312/* [ST 24] Statistics register. The number of messages that were sent to
4313 FOC1 */
4314#define USEM_REG_MSG_NUM_FOC1 0x30000c
4315/* [ST 24] Statistics register. The number of messages that were sent to
4316 FOC2 */
4317#define USEM_REG_MSG_NUM_FOC2 0x300010
4318/* [ST 24] Statistics register. The number of messages that were sent to
4319 FOC3 */
4320#define USEM_REG_MSG_NUM_FOC3 0x300014
4321/* [RW 1] Disables input messages from the passive buffer May be updated
4322 during run_time by the microcode */
4323#define USEM_REG_PAS_DISABLE 0x30024c
4324/* [WB 128] Debug only. Passive buffer memory */
4325#define USEM_REG_PASSIVE_BUFFER 0x302000
4326/* [WB 46] pram memory. B45 is parity; b[44:0] - data. */
4327#define USEM_REG_PRAM 0x340000
4328/* [R 16] Valid sleeping threads indication have bit per thread */
4329#define USEM_REG_SLEEP_THREADS_VALID 0x30026c
4330/* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */
4331#define USEM_REG_SLOW_EXT_STORE_EMPTY 0x3002a0
4332/* [RW 16] List of free threads . There is a bit per thread. */
4333#define USEM_REG_THREADS_LIST 0x3002e4
4334/* [RW 3] The arbitration scheme of time_slot 0 */
4335#define USEM_REG_TS_0_AS 0x300038
4336/* [RW 3] The arbitration scheme of time_slot 10 */
4337#define USEM_REG_TS_10_AS 0x300060
4338/* [RW 3] The arbitration scheme of time_slot 11 */
4339#define USEM_REG_TS_11_AS 0x300064
4340/* [RW 3] The arbitration scheme of time_slot 12 */
4341#define USEM_REG_TS_12_AS 0x300068
4342/* [RW 3] The arbitration scheme of time_slot 13 */
4343#define USEM_REG_TS_13_AS 0x30006c
4344/* [RW 3] The arbitration scheme of time_slot 14 */
4345#define USEM_REG_TS_14_AS 0x300070
4346/* [RW 3] The arbitration scheme of time_slot 15 */
4347#define USEM_REG_TS_15_AS 0x300074
4348/* [RW 3] The arbitration scheme of time_slot 16 */
4349#define USEM_REG_TS_16_AS 0x300078
4350/* [RW 3] The arbitration scheme of time_slot 17 */
4351#define USEM_REG_TS_17_AS 0x30007c
4352/* [RW 3] The arbitration scheme of time_slot 18 */
4353#define USEM_REG_TS_18_AS 0x300080
4354/* [RW 3] The arbitration scheme of time_slot 1 */
4355#define USEM_REG_TS_1_AS 0x30003c
4356/* [RW 3] The arbitration scheme of time_slot 2 */
4357#define USEM_REG_TS_2_AS 0x300040
4358/* [RW 3] The arbitration scheme of time_slot 3 */
4359#define USEM_REG_TS_3_AS 0x300044
4360/* [RW 3] The arbitration scheme of time_slot 4 */
4361#define USEM_REG_TS_4_AS 0x300048
4362/* [RW 3] The arbitration scheme of time_slot 5 */
4363#define USEM_REG_TS_5_AS 0x30004c
4364/* [RW 3] The arbitration scheme of time_slot 6 */
4365#define USEM_REG_TS_6_AS 0x300050
4366/* [RW 3] The arbitration scheme of time_slot 7 */
4367#define USEM_REG_TS_7_AS 0x300054
4368/* [RW 3] The arbitration scheme of time_slot 8 */
4369#define USEM_REG_TS_8_AS 0x300058
4370/* [RW 3] The arbitration scheme of time_slot 9 */
4371#define USEM_REG_TS_9_AS 0x30005c
4372/* [RW 32] Interrupt mask register #0 read/write */
4373#define USEM_REG_USEM_INT_MASK_0 0x300110
4374#define USEM_REG_USEM_INT_MASK_1 0x300120
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004375/* [R 32] Interrupt register #0 read */
4376#define USEM_REG_USEM_INT_STS_0 0x300104
4377#define USEM_REG_USEM_INT_STS_1 0x300114
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004378/* [RW 32] Parity mask register #0 read/write */
4379#define USEM_REG_USEM_PRTY_MASK_0 0x300130
4380#define USEM_REG_USEM_PRTY_MASK_1 0x300140
Eliezer Tamirf1410642008-02-28 11:51:50 -08004381/* [R 32] Parity register #0 read */
4382#define USEM_REG_USEM_PRTY_STS_0 0x300124
4383#define USEM_REG_USEM_PRTY_STS_1 0x300134
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00004384/* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64
4385 * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */
4386#define USEM_REG_VFPF_ERR_NUM 0x300380
4387#define VFC_MEMORIES_RST_REG_CAM_RST (0x1<<0)
4388#define VFC_MEMORIES_RST_REG_RAM_RST (0x1<<1)
4389#define VFC_REG_MEMORIES_RST 0x1943c
4390/* [RW 32] Indirect access to AG context with 32-bits granularity. The bits
4391 * [12:8] of the address should be the offset within the accessed LCID
4392 * context; the bits [7:0] are the accessed LCID.Example: to write to REG10
4393 * LCID100. The RBC address should be 13'ha64. */
4394#define XCM_REG_AG_CTX 0x28000
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004395/* [RW 2] The queue index for registration on Aux1 counter flag. */
4396#define XCM_REG_AUX1_Q 0x20134
4397/* [RW 2] Per each decision rule the queue index to register to. */
4398#define XCM_REG_AUX_CNT_FLG_Q_19 0x201b0
4399/* [R 5] Used to read the XX protection CAM occupancy counter. */
4400#define XCM_REG_CAM_OCCUP 0x20244
4401/* [RW 1] CDU AG read Interface enable. If 0 - the request input is
4402 disregarded; valid output is deasserted; all other signals are treated as
4403 usual; if 1 - normal activity. */
4404#define XCM_REG_CDU_AG_RD_IFEN 0x20044
4405/* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input
4406 are disregarded; all other signals are treated as usual; if 1 - normal
4407 activity. */
4408#define XCM_REG_CDU_AG_WR_IFEN 0x20040
4409/* [RW 1] CDU STORM read Interface enable. If 0 - the request input is
4410 disregarded; valid output is deasserted; all other signals are treated as
4411 usual; if 1 - normal activity. */
4412#define XCM_REG_CDU_SM_RD_IFEN 0x2004c
4413/* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid
4414 input is disregarded; all other signals are treated as usual; if 1 -
4415 normal activity. */
4416#define XCM_REG_CDU_SM_WR_IFEN 0x20048
4417/* [RW 4] CFC output initial credit. Max credit available - 15.Write writes
4418 the initial credit value; read returns the current value of the credit
4419 counter. Must be initialized to 1 at start-up. */
4420#define XCM_REG_CFC_INIT_CRD 0x20404
4421/* [RW 3] The weight of the CP input in the WRR mechanism. 0 stands for
4422 weight 8 (the most prioritised); 1 stands for weight 1(least
4423 prioritised); 2 stands for weight 2; tc. */
4424#define XCM_REG_CP_WEIGHT 0x200dc
4425/* [RW 1] Input csem Interface enable. If 0 - the valid input is
4426 disregarded; acknowledge output is deasserted; all other signals are
4427 treated as usual; if 1 - normal activity. */
4428#define XCM_REG_CSEM_IFEN 0x20028
4429/* [RC 1] Set at message length mismatch (relative to last indication) at
4430 the csem interface. */
4431#define XCM_REG_CSEM_LENGTH_MIS 0x20228
4432/* [RW 3] The weight of the input csem in the WRR mechanism. 0 stands for
4433 weight 8 (the most prioritised); 1 stands for weight 1(least
4434 prioritised); 2 stands for weight 2; tc. */
4435#define XCM_REG_CSEM_WEIGHT 0x200c4
4436/* [RW 1] Input dorq Interface enable. If 0 - the valid input is
4437 disregarded; acknowledge output is deasserted; all other signals are
4438 treated as usual; if 1 - normal activity. */
4439#define XCM_REG_DORQ_IFEN 0x20030
4440/* [RC 1] Set at message length mismatch (relative to last indication) at
4441 the dorq interface. */
4442#define XCM_REG_DORQ_LENGTH_MIS 0x20230
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08004443/* [RW 3] The weight of the input dorq in the WRR mechanism. 0 stands for
4444 weight 8 (the most prioritised); 1 stands for weight 1(least
4445 prioritised); 2 stands for weight 2; tc. */
4446#define XCM_REG_DORQ_WEIGHT 0x200cc
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004447/* [RW 8] The Event ID in case the ErrorFlg input message bit is set. */
4448#define XCM_REG_ERR_EVNT_ID 0x200b0
4449/* [RW 28] The CM erroneous header for QM and Timers formatting. */
4450#define XCM_REG_ERR_XCM_HDR 0x200ac
4451/* [RW 8] The Event ID for Timers expiration. */
4452#define XCM_REG_EXPR_EVNT_ID 0x200b4
4453/* [RW 8] FIC0 output initial credit. Max credit available - 255.Write
4454 writes the initial credit value; read returns the current value of the
4455 credit counter. Must be initialized to 64 at start-up. */
4456#define XCM_REG_FIC0_INIT_CRD 0x2040c
4457/* [RW 8] FIC1 output initial credit. Max credit available - 255.Write
4458 writes the initial credit value; read returns the current value of the
4459 credit counter. Must be initialized to 64 at start-up. */
4460#define XCM_REG_FIC1_INIT_CRD 0x20410
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004461#define XCM_REG_GLB_DEL_ACK_MAX_CNT_0 0x20118
4462#define XCM_REG_GLB_DEL_ACK_MAX_CNT_1 0x2011c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004463#define XCM_REG_GLB_DEL_ACK_TMR_VAL_0 0x20108
4464#define XCM_REG_GLB_DEL_ACK_TMR_VAL_1 0x2010c
4465/* [RW 1] Arbitratiojn between Input Arbiter groups: 0 - fair Round-Robin; 1
4466 - strict priority defined by ~xcm_registers_gr_ag_pr.gr_ag_pr;
4467 ~xcm_registers_gr_ld0_pr.gr_ld0_pr and
4468 ~xcm_registers_gr_ld1_pr.gr_ld1_pr. */
4469#define XCM_REG_GR_ARB_TYPE 0x2020c
4470/* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the
4471 highest priority is 3. It is supposed that the Channel group is the
4472 compliment of the other 3 groups. */
4473#define XCM_REG_GR_LD0_PR 0x20214
4474/* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the
4475 highest priority is 3. It is supposed that the Channel group is the
4476 compliment of the other 3 groups. */
4477#define XCM_REG_GR_LD1_PR 0x20218
4478/* [RW 1] Input nig0 Interface enable. If 0 - the valid input is
4479 disregarded; acknowledge output is deasserted; all other signals are
4480 treated as usual; if 1 - normal activity. */
4481#define XCM_REG_NIG0_IFEN 0x20038
4482/* [RC 1] Set at message length mismatch (relative to last indication) at
4483 the nig0 interface. */
4484#define XCM_REG_NIG0_LENGTH_MIS 0x20238
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08004485/* [RW 3] The weight of the input nig0 in the WRR mechanism. 0 stands for
4486 weight 8 (the most prioritised); 1 stands for weight 1(least
4487 prioritised); 2 stands for weight 2; tc. */
4488#define XCM_REG_NIG0_WEIGHT 0x200d4
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004489/* [RW 1] Input nig1 Interface enable. If 0 - the valid input is
4490 disregarded; acknowledge output is deasserted; all other signals are
4491 treated as usual; if 1 - normal activity. */
4492#define XCM_REG_NIG1_IFEN 0x2003c
4493/* [RC 1] Set at message length mismatch (relative to last indication) at
4494 the nig1 interface. */
4495#define XCM_REG_NIG1_LENGTH_MIS 0x2023c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004496/* [RW 5] The number of double REG-pairs; loaded from the STORM context and
4497 sent to STORM; for a specific connection type. The double REG-pairs are
4498 used in order to align to STORM context row size of 128 bits. The offset
4499 of these data in the STORM context is always 0. Index _i stands for the
4500 connection type (one of 16). */
4501#define XCM_REG_N_SM_CTX_LD_0 0x20060
4502#define XCM_REG_N_SM_CTX_LD_1 0x20064
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004503#define XCM_REG_N_SM_CTX_LD_2 0x20068
4504#define XCM_REG_N_SM_CTX_LD_3 0x2006c
4505#define XCM_REG_N_SM_CTX_LD_4 0x20070
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004506#define XCM_REG_N_SM_CTX_LD_5 0x20074
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004507/* [RW 1] Input pbf Interface enable. If 0 - the valid input is disregarded;
4508 acknowledge output is deasserted; all other signals are treated as usual;
4509 if 1 - normal activity. */
4510#define XCM_REG_PBF_IFEN 0x20034
4511/* [RC 1] Set at message length mismatch (relative to last indication) at
4512 the pbf interface. */
4513#define XCM_REG_PBF_LENGTH_MIS 0x20234
4514/* [RW 3] The weight of the input pbf in the WRR mechanism. 0 stands for
4515 weight 8 (the most prioritised); 1 stands for weight 1(least
4516 prioritised); 2 stands for weight 2; tc. */
4517#define XCM_REG_PBF_WEIGHT 0x200d0
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004518#define XCM_REG_PHYS_QNUM3_0 0x20100
4519#define XCM_REG_PHYS_QNUM3_1 0x20104
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004520/* [RW 8] The Event ID for Timers formatting in case of stop done. */
4521#define XCM_REG_STOP_EVNT_ID 0x200b8
4522/* [RC 1] Set at message length mismatch (relative to last indication) at
4523 the STORM interface. */
4524#define XCM_REG_STORM_LENGTH_MIS 0x2021c
4525/* [RW 3] The weight of the STORM input in the WRR mechanism. 0 stands for
4526 weight 8 (the most prioritised); 1 stands for weight 1(least
4527 prioritised); 2 stands for weight 2; tc. */
4528#define XCM_REG_STORM_WEIGHT 0x200bc
4529/* [RW 1] STORM - CM Interface enable. If 0 - the valid input is
4530 disregarded; acknowledge output is deasserted; all other signals are
4531 treated as usual; if 1 - normal activity. */
4532#define XCM_REG_STORM_XCM_IFEN 0x20010
4533/* [RW 4] Timers output initial credit. Max credit available - 15.Write
4534 writes the initial credit value; read returns the current value of the
4535 credit counter. Must be initialized to 4 at start-up. */
4536#define XCM_REG_TM_INIT_CRD 0x2041c
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08004537/* [RW 3] The weight of the Timers input in the WRR mechanism. 0 stands for
4538 weight 8 (the most prioritised); 1 stands for weight 1(least
4539 prioritised); 2 stands for weight 2; tc. */
4540#define XCM_REG_TM_WEIGHT 0x200ec
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004541/* [RW 28] The CM header for Timers expiration command. */
4542#define XCM_REG_TM_XCM_HDR 0x200a8
4543/* [RW 1] Timers - CM Interface enable. If 0 - the valid input is
4544 disregarded; acknowledge output is deasserted; all other signals are
4545 treated as usual; if 1 - normal activity. */
4546#define XCM_REG_TM_XCM_IFEN 0x2001c
4547/* [RW 1] Input tsem Interface enable. If 0 - the valid input is
4548 disregarded; acknowledge output is deasserted; all other signals are
4549 treated as usual; if 1 - normal activity. */
4550#define XCM_REG_TSEM_IFEN 0x20024
4551/* [RC 1] Set at message length mismatch (relative to last indication) at
4552 the tsem interface. */
4553#define XCM_REG_TSEM_LENGTH_MIS 0x20224
4554/* [RW 3] The weight of the input tsem in the WRR mechanism. 0 stands for
4555 weight 8 (the most prioritised); 1 stands for weight 1(least
4556 prioritised); 2 stands for weight 2; tc. */
4557#define XCM_REG_TSEM_WEIGHT 0x200c0
4558/* [RW 2] The queue index for registration on UNA greater NXT decision rule. */
4559#define XCM_REG_UNA_GT_NXT_Q 0x20120
4560/* [RW 1] Input usem Interface enable. If 0 - the valid input is
4561 disregarded; acknowledge output is deasserted; all other signals are
4562 treated as usual; if 1 - normal activity. */
4563#define XCM_REG_USEM_IFEN 0x2002c
4564/* [RC 1] Message length mismatch (relative to last indication) at the usem
4565 interface. */
4566#define XCM_REG_USEM_LENGTH_MIS 0x2022c
4567/* [RW 3] The weight of the input usem in the WRR mechanism. 0 stands for
4568 weight 8 (the most prioritised); 1 stands for weight 1(least
4569 prioritised); 2 stands for weight 2; tc. */
4570#define XCM_REG_USEM_WEIGHT 0x200c8
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004571#define XCM_REG_WU_DA_CNT_CMD00 0x201d4
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004572#define XCM_REG_WU_DA_CNT_CMD01 0x201d8
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004573#define XCM_REG_WU_DA_CNT_CMD10 0x201dc
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004574#define XCM_REG_WU_DA_CNT_CMD11 0x201e0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004575#define XCM_REG_WU_DA_CNT_UPD_VAL00 0x201e4
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004576#define XCM_REG_WU_DA_CNT_UPD_VAL01 0x201e8
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004577#define XCM_REG_WU_DA_CNT_UPD_VAL10 0x201ec
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004578#define XCM_REG_WU_DA_CNT_UPD_VAL11 0x201f0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004579#define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD00 0x201c4
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004580#define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD01 0x201c8
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004581#define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD10 0x201cc
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004582#define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD11 0x201d0
4583/* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded;
4584 acknowledge output is deasserted; all other signals are treated as usual;
4585 if 1 - normal activity. */
4586#define XCM_REG_XCM_CFC_IFEN 0x20050
4587/* [RW 14] Interrupt mask register #0 read/write */
4588#define XCM_REG_XCM_INT_MASK 0x202b4
4589/* [R 14] Interrupt register #0 read */
4590#define XCM_REG_XCM_INT_STS 0x202a8
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004591/* [R 30] Parity register #0 read */
4592#define XCM_REG_XCM_PRTY_STS 0x202b8
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004593/* [RW 4] The size of AG context region 0 in REG-pairs. Designates the MS
4594 REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5).
4595 Is used to determine the number of the AG context REG-pairs written back;
4596 when the Reg1WbFlg isn't set. */
4597#define XCM_REG_XCM_REG0_SZ 0x200f4
4598/* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is
4599 disregarded; valid is deasserted; all other signals are treated as usual;
4600 if 1 - normal activity. */
4601#define XCM_REG_XCM_STORM0_IFEN 0x20004
4602/* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is
4603 disregarded; valid is deasserted; all other signals are treated as usual;
4604 if 1 - normal activity. */
4605#define XCM_REG_XCM_STORM1_IFEN 0x20008
4606/* [RW 1] CM - Timers Interface enable. If 0 - the valid input is
4607 disregarded; acknowledge output is deasserted; all other signals are
4608 treated as usual; if 1 - normal activity. */
4609#define XCM_REG_XCM_TM_IFEN 0x20020
4610/* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is
4611 disregarded; valid is deasserted; all other signals are treated as usual;
4612 if 1 - normal activity. */
4613#define XCM_REG_XCM_XQM_IFEN 0x2000c
4614/* [RW 1] If set the Q index; received from the QM is inserted to event ID. */
4615#define XCM_REG_XCM_XQM_USE_Q 0x200f0
4616/* [RW 4] The value by which CFC updates the activity counter at QM bypass. */
4617#define XCM_REG_XQM_BYP_ACT_UPD 0x200fc
4618/* [RW 6] QM output initial credit. Max credit available - 32.Write writes
4619 the initial credit value; read returns the current value of the credit
4620 counter. Must be initialized to 32 at start-up. */
4621#define XCM_REG_XQM_INIT_CRD 0x20420
4622/* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0
4623 stands for weight 8 (the most prioritised); 1 stands for weight 1(least
4624 prioritised); 2 stands for weight 2; tc. */
4625#define XCM_REG_XQM_P_WEIGHT 0x200e4
Eilon Greenstein8d9c5f32009-02-15 23:24:08 -08004626/* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0
4627 stands for weight 8 (the most prioritised); 1 stands for weight 1(least
4628 prioritised); 2 stands for weight 2; tc. */
4629#define XCM_REG_XQM_S_WEIGHT 0x200e8
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004630/* [RW 28] The CM header value for QM request (primary). */
4631#define XCM_REG_XQM_XCM_HDR_P 0x200a0
4632/* [RW 28] The CM header value for QM request (secondary). */
4633#define XCM_REG_XQM_XCM_HDR_S 0x200a4
4634/* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded;
4635 acknowledge output is deasserted; all other signals are treated as usual;
4636 if 1 - normal activity. */
4637#define XCM_REG_XQM_XCM_IFEN 0x20014
4638/* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded;
4639 acknowledge output is deasserted; all other signals are treated as usual;
4640 if 1 - normal activity. */
4641#define XCM_REG_XSDM_IFEN 0x20018
4642/* [RC 1] Set at message length mismatch (relative to last indication) at
4643 the SDM interface. */
4644#define XCM_REG_XSDM_LENGTH_MIS 0x20220
4645/* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for
4646 weight 8 (the most prioritised); 1 stands for weight 1(least
4647 prioritised); 2 stands for weight 2; tc. */
4648#define XCM_REG_XSDM_WEIGHT 0x200e0
4649/* [RW 17] Indirect access to the descriptor table of the XX protection
4650 mechanism. The fields are: [5:0] - message length; 11:6] - message
4651 pointer; 16:12] - next pointer. */
4652#define XCM_REG_XX_DESCR_TABLE 0x20480
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004653#define XCM_REG_XX_DESCR_TABLE_SIZE 32
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004654/* [R 6] Used to read the XX protection Free counter. */
4655#define XCM_REG_XX_FREE 0x20240
4656/* [RW 6] Initial value for the credit counter; responsible for fulfilling
4657 of the Input Stage XX protection buffer by the XX protection pending
4658 messages. Max credit available - 3.Write writes the initial credit value;
4659 read returns the current value of the credit counter. Must be initialized
4660 to 2 at start-up. */
4661#define XCM_REG_XX_INIT_CRD 0x20424
4662/* [RW 6] The maximum number of pending messages; which may be stored in XX
4663 protection. ~xcm_registers_xx_free.xx_free read on read. */
4664#define XCM_REG_XX_MSG_NUM 0x20428
4665/* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */
4666#define XCM_REG_XX_OVFL_EVNT_ID 0x20058
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004667/* [RW 16] Indirect access to the XX table of the XX protection mechanism.
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004668 The fields are:[4:0] - tail pointer; 9:5] - Link List size; 14:10] -
4669 header pointer. */
4670#define XCM_REG_XX_TABLE 0x20500
4671/* [RW 8] The event id for aggregated interrupt 0 */
4672#define XSDM_REG_AGG_INT_EVENT_0 0x166038
4673#define XSDM_REG_AGG_INT_EVENT_1 0x16603c
4674#define XSDM_REG_AGG_INT_EVENT_10 0x166060
4675#define XSDM_REG_AGG_INT_EVENT_11 0x166064
4676#define XSDM_REG_AGG_INT_EVENT_12 0x166068
4677#define XSDM_REG_AGG_INT_EVENT_13 0x16606c
4678#define XSDM_REG_AGG_INT_EVENT_14 0x166070
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004679#define XSDM_REG_AGG_INT_EVENT_2 0x166040
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004680#define XSDM_REG_AGG_INT_EVENT_3 0x166044
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004681#define XSDM_REG_AGG_INT_EVENT_4 0x166048
4682#define XSDM_REG_AGG_INT_EVENT_5 0x16604c
4683#define XSDM_REG_AGG_INT_EVENT_6 0x166050
4684#define XSDM_REG_AGG_INT_EVENT_7 0x166054
4685#define XSDM_REG_AGG_INT_EVENT_8 0x166058
4686#define XSDM_REG_AGG_INT_EVENT_9 0x16605c
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004687/* [RW 1] For each aggregated interrupt index whether the mode is normal (0)
4688 or auto-mask-mode (1) */
4689#define XSDM_REG_AGG_INT_MODE_0 0x1661b8
4690#define XSDM_REG_AGG_INT_MODE_1 0x1661bc
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004691/* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */
4692#define XSDM_REG_CFC_RSP_START_ADDR 0x166008
4693/* [RW 16] The maximum value of the competion counter #0 */
4694#define XSDM_REG_CMP_COUNTER_MAX0 0x16601c
4695/* [RW 16] The maximum value of the competion counter #1 */
4696#define XSDM_REG_CMP_COUNTER_MAX1 0x166020
4697/* [RW 16] The maximum value of the competion counter #2 */
4698#define XSDM_REG_CMP_COUNTER_MAX2 0x166024
4699/* [RW 16] The maximum value of the competion counter #3 */
4700#define XSDM_REG_CMP_COUNTER_MAX3 0x166028
4701/* [RW 13] The start address in the internal RAM for the completion
4702 counters. */
4703#define XSDM_REG_CMP_COUNTER_START_ADDR 0x16600c
4704#define XSDM_REG_ENABLE_IN1 0x166238
4705#define XSDM_REG_ENABLE_IN2 0x16623c
4706#define XSDM_REG_ENABLE_OUT1 0x166240
4707#define XSDM_REG_ENABLE_OUT2 0x166244
4708/* [RW 4] The initial number of messages that can be sent to the pxp control
4709 interface without receiving any ACK. */
4710#define XSDM_REG_INIT_CREDIT_PXP_CTRL 0x1664bc
4711/* [ST 32] The number of ACK after placement messages received */
4712#define XSDM_REG_NUM_OF_ACK_AFTER_PLACE 0x16627c
4713/* [ST 32] The number of packet end messages received from the parser */
4714#define XSDM_REG_NUM_OF_PKT_END_MSG 0x166274
4715/* [ST 32] The number of requests received from the pxp async if */
4716#define XSDM_REG_NUM_OF_PXP_ASYNC_REQ 0x166278
4717/* [ST 32] The number of commands received in queue 0 */
4718#define XSDM_REG_NUM_OF_Q0_CMD 0x166248
4719/* [ST 32] The number of commands received in queue 10 */
4720#define XSDM_REG_NUM_OF_Q10_CMD 0x16626c
4721/* [ST 32] The number of commands received in queue 11 */
4722#define XSDM_REG_NUM_OF_Q11_CMD 0x166270
4723/* [ST 32] The number of commands received in queue 1 */
4724#define XSDM_REG_NUM_OF_Q1_CMD 0x16624c
4725/* [ST 32] The number of commands received in queue 3 */
4726#define XSDM_REG_NUM_OF_Q3_CMD 0x166250
4727/* [ST 32] The number of commands received in queue 4 */
4728#define XSDM_REG_NUM_OF_Q4_CMD 0x166254
4729/* [ST 32] The number of commands received in queue 5 */
4730#define XSDM_REG_NUM_OF_Q5_CMD 0x166258
4731/* [ST 32] The number of commands received in queue 6 */
4732#define XSDM_REG_NUM_OF_Q6_CMD 0x16625c
4733/* [ST 32] The number of commands received in queue 7 */
4734#define XSDM_REG_NUM_OF_Q7_CMD 0x166260
4735/* [ST 32] The number of commands received in queue 8 */
4736#define XSDM_REG_NUM_OF_Q8_CMD 0x166264
4737/* [ST 32] The number of commands received in queue 9 */
4738#define XSDM_REG_NUM_OF_Q9_CMD 0x166268
4739/* [RW 13] The start address in the internal RAM for queue counters */
4740#define XSDM_REG_Q_COUNTER_START_ADDR 0x166010
4741/* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */
4742#define XSDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0x166548
4743/* [R 1] parser fifo empty in sdm_sync block */
4744#define XSDM_REG_SYNC_PARSER_EMPTY 0x166550
4745/* [R 1] parser serial fifo empty in sdm_sync block */
4746#define XSDM_REG_SYNC_SYNC_EMPTY 0x166558
4747/* [RW 32] Tick for timer counter. Applicable only when
4748 ~xsdm_registers_timer_tick_enable.timer_tick_enable =1 */
4749#define XSDM_REG_TIMER_TICK 0x166000
4750/* [RW 32] Interrupt mask register #0 read/write */
4751#define XSDM_REG_XSDM_INT_MASK_0 0x16629c
4752#define XSDM_REG_XSDM_INT_MASK_1 0x1662ac
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004753/* [R 32] Interrupt register #0 read */
4754#define XSDM_REG_XSDM_INT_STS_0 0x166290
4755#define XSDM_REG_XSDM_INT_STS_1 0x1662a0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004756/* [RW 11] Parity mask register #0 read/write */
4757#define XSDM_REG_XSDM_PRTY_MASK 0x1662bc
Eliezer Tamirf1410642008-02-28 11:51:50 -08004758/* [R 11] Parity register #0 read */
4759#define XSDM_REG_XSDM_PRTY_STS 0x1662b0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004760/* [RW 5] The number of time_slots in the arbitration cycle */
4761#define XSEM_REG_ARB_CYCLE_SIZE 0x280034
4762/* [RW 3] The source that is associated with arbitration element 0. Source
4763 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
4764 sleeping thread with priority 1; 4- sleeping thread with priority 2 */
4765#define XSEM_REG_ARB_ELEMENT0 0x280020
4766/* [RW 3] The source that is associated with arbitration element 1. Source
4767 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
4768 sleeping thread with priority 1; 4- sleeping thread with priority 2.
4769 Could not be equal to register ~xsem_registers_arb_element0.arb_element0 */
4770#define XSEM_REG_ARB_ELEMENT1 0x280024
4771/* [RW 3] The source that is associated with arbitration element 2. Source
4772 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
4773 sleeping thread with priority 1; 4- sleeping thread with priority 2.
4774 Could not be equal to register ~xsem_registers_arb_element0.arb_element0
4775 and ~xsem_registers_arb_element1.arb_element1 */
4776#define XSEM_REG_ARB_ELEMENT2 0x280028
4777/* [RW 3] The source that is associated with arbitration element 3. Source
4778 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
4779 sleeping thread with priority 1; 4- sleeping thread with priority 2.Could
4780 not be equal to register ~xsem_registers_arb_element0.arb_element0 and
4781 ~xsem_registers_arb_element1.arb_element1 and
4782 ~xsem_registers_arb_element2.arb_element2 */
4783#define XSEM_REG_ARB_ELEMENT3 0x28002c
4784/* [RW 3] The source that is associated with arbitration element 4. Source
4785 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
4786 sleeping thread with priority 1; 4- sleeping thread with priority 2.
4787 Could not be equal to register ~xsem_registers_arb_element0.arb_element0
4788 and ~xsem_registers_arb_element1.arb_element1 and
4789 ~xsem_registers_arb_element2.arb_element2 and
4790 ~xsem_registers_arb_element3.arb_element3 */
4791#define XSEM_REG_ARB_ELEMENT4 0x280030
4792#define XSEM_REG_ENABLE_IN 0x2800a4
4793#define XSEM_REG_ENABLE_OUT 0x2800a8
4794/* [RW 32] This address space contains all registers and memories that are
4795 placed in SEM_FAST block. The SEM_FAST registers are described in
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004796 appendix B. In order to access the sem_fast registers the base address
4797 ~fast_memory.fast_memory should be added to eachsem_fast register offset. */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004798#define XSEM_REG_FAST_MEMORY 0x2a0000
4799/* [RW 1] Disables input messages from FIC0 May be updated during run_time
4800 by the microcode */
4801#define XSEM_REG_FIC0_DISABLE 0x280224
4802/* [RW 1] Disables input messages from FIC1 May be updated during run_time
4803 by the microcode */
4804#define XSEM_REG_FIC1_DISABLE 0x280234
4805/* [RW 15] Interrupt table Read and write access to it is not possible in
4806 the middle of the work */
4807#define XSEM_REG_INT_TABLE 0x280400
4808/* [ST 24] Statistics register. The number of messages that entered through
4809 FIC0 */
4810#define XSEM_REG_MSG_NUM_FIC0 0x280000
4811/* [ST 24] Statistics register. The number of messages that entered through
4812 FIC1 */
4813#define XSEM_REG_MSG_NUM_FIC1 0x280004
4814/* [ST 24] Statistics register. The number of messages that were sent to
4815 FOC0 */
4816#define XSEM_REG_MSG_NUM_FOC0 0x280008
4817/* [ST 24] Statistics register. The number of messages that were sent to
4818 FOC1 */
4819#define XSEM_REG_MSG_NUM_FOC1 0x28000c
4820/* [ST 24] Statistics register. The number of messages that were sent to
4821 FOC2 */
4822#define XSEM_REG_MSG_NUM_FOC2 0x280010
4823/* [ST 24] Statistics register. The number of messages that were sent to
4824 FOC3 */
4825#define XSEM_REG_MSG_NUM_FOC3 0x280014
4826/* [RW 1] Disables input messages from the passive buffer May be updated
4827 during run_time by the microcode */
4828#define XSEM_REG_PAS_DISABLE 0x28024c
4829/* [WB 128] Debug only. Passive buffer memory */
4830#define XSEM_REG_PASSIVE_BUFFER 0x282000
4831/* [WB 46] pram memory. B45 is parity; b[44:0] - data. */
4832#define XSEM_REG_PRAM 0x2c0000
4833/* [R 16] Valid sleeping threads indication have bit per thread */
4834#define XSEM_REG_SLEEP_THREADS_VALID 0x28026c
4835/* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */
4836#define XSEM_REG_SLOW_EXT_STORE_EMPTY 0x2802a0
4837/* [RW 16] List of free threads . There is a bit per thread. */
4838#define XSEM_REG_THREADS_LIST 0x2802e4
4839/* [RW 3] The arbitration scheme of time_slot 0 */
4840#define XSEM_REG_TS_0_AS 0x280038
4841/* [RW 3] The arbitration scheme of time_slot 10 */
4842#define XSEM_REG_TS_10_AS 0x280060
4843/* [RW 3] The arbitration scheme of time_slot 11 */
4844#define XSEM_REG_TS_11_AS 0x280064
4845/* [RW 3] The arbitration scheme of time_slot 12 */
4846#define XSEM_REG_TS_12_AS 0x280068
4847/* [RW 3] The arbitration scheme of time_slot 13 */
4848#define XSEM_REG_TS_13_AS 0x28006c
4849/* [RW 3] The arbitration scheme of time_slot 14 */
4850#define XSEM_REG_TS_14_AS 0x280070
4851/* [RW 3] The arbitration scheme of time_slot 15 */
4852#define XSEM_REG_TS_15_AS 0x280074
4853/* [RW 3] The arbitration scheme of time_slot 16 */
4854#define XSEM_REG_TS_16_AS 0x280078
4855/* [RW 3] The arbitration scheme of time_slot 17 */
4856#define XSEM_REG_TS_17_AS 0x28007c
4857/* [RW 3] The arbitration scheme of time_slot 18 */
4858#define XSEM_REG_TS_18_AS 0x280080
4859/* [RW 3] The arbitration scheme of time_slot 1 */
4860#define XSEM_REG_TS_1_AS 0x28003c
4861/* [RW 3] The arbitration scheme of time_slot 2 */
4862#define XSEM_REG_TS_2_AS 0x280040
4863/* [RW 3] The arbitration scheme of time_slot 3 */
4864#define XSEM_REG_TS_3_AS 0x280044
4865/* [RW 3] The arbitration scheme of time_slot 4 */
4866#define XSEM_REG_TS_4_AS 0x280048
4867/* [RW 3] The arbitration scheme of time_slot 5 */
4868#define XSEM_REG_TS_5_AS 0x28004c
4869/* [RW 3] The arbitration scheme of time_slot 6 */
4870#define XSEM_REG_TS_6_AS 0x280050
4871/* [RW 3] The arbitration scheme of time_slot 7 */
4872#define XSEM_REG_TS_7_AS 0x280054
4873/* [RW 3] The arbitration scheme of time_slot 8 */
4874#define XSEM_REG_TS_8_AS 0x280058
4875/* [RW 3] The arbitration scheme of time_slot 9 */
4876#define XSEM_REG_TS_9_AS 0x28005c
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00004877/* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64
4878 * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */
4879#define XSEM_REG_VFPF_ERR_NUM 0x280380
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004880/* [RW 32] Interrupt mask register #0 read/write */
4881#define XSEM_REG_XSEM_INT_MASK_0 0x280110
4882#define XSEM_REG_XSEM_INT_MASK_1 0x280120
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004883/* [R 32] Interrupt register #0 read */
4884#define XSEM_REG_XSEM_INT_STS_0 0x280104
4885#define XSEM_REG_XSEM_INT_STS_1 0x280114
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004886/* [RW 32] Parity mask register #0 read/write */
4887#define XSEM_REG_XSEM_PRTY_MASK_0 0x280130
4888#define XSEM_REG_XSEM_PRTY_MASK_1 0x280140
Eliezer Tamirf1410642008-02-28 11:51:50 -08004889/* [R 32] Parity register #0 read */
4890#define XSEM_REG_XSEM_PRTY_STS_0 0x280124
4891#define XSEM_REG_XSEM_PRTY_STS_1 0x280134
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004892#define MCPR_NVM_ACCESS_ENABLE_EN (1L<<0)
4893#define MCPR_NVM_ACCESS_ENABLE_WR_EN (1L<<1)
4894#define MCPR_NVM_ADDR_NVM_ADDR_VALUE (0xffffffL<<0)
4895#define MCPR_NVM_CFG4_FLASH_SIZE (0x7L<<0)
4896#define MCPR_NVM_COMMAND_DOIT (1L<<4)
4897#define MCPR_NVM_COMMAND_DONE (1L<<3)
4898#define MCPR_NVM_COMMAND_FIRST (1L<<7)
4899#define MCPR_NVM_COMMAND_LAST (1L<<8)
4900#define MCPR_NVM_COMMAND_WR (1L<<5)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004901#define MCPR_NVM_SW_ARB_ARB_ARB1 (1L<<9)
4902#define MCPR_NVM_SW_ARB_ARB_REQ_CLR1 (1L<<5)
4903#define MCPR_NVM_SW_ARB_ARB_REQ_SET1 (1L<<1)
4904#define BIGMAC_REGISTER_BMAC_CONTROL (0x00<<3)
4905#define BIGMAC_REGISTER_BMAC_XGXS_CONTROL (0x01<<3)
4906#define BIGMAC_REGISTER_CNT_MAX_SIZE (0x05<<3)
4907#define BIGMAC_REGISTER_RX_CONTROL (0x21<<3)
4908#define BIGMAC_REGISTER_RX_LLFC_MSG_FLDS (0x46<<3)
4909#define BIGMAC_REGISTER_RX_MAX_SIZE (0x23<<3)
4910#define BIGMAC_REGISTER_RX_STAT_GR64 (0x26<<3)
4911#define BIGMAC_REGISTER_RX_STAT_GRIPJ (0x42<<3)
4912#define BIGMAC_REGISTER_TX_CONTROL (0x07<<3)
4913#define BIGMAC_REGISTER_TX_MAX_SIZE (0x09<<3)
4914#define BIGMAC_REGISTER_TX_PAUSE_THRESHOLD (0x0A<<3)
4915#define BIGMAC_REGISTER_TX_SOURCE_ADDR (0x08<<3)
4916#define BIGMAC_REGISTER_TX_STAT_GTBYT (0x20<<3)
4917#define BIGMAC_REGISTER_TX_STAT_GTPKT (0x0C<<3)
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00004918#define BIGMAC2_REGISTER_BMAC_CONTROL (0x00<<3)
4919#define BIGMAC2_REGISTER_BMAC_XGXS_CONTROL (0x01<<3)
4920#define BIGMAC2_REGISTER_CNT_MAX_SIZE (0x05<<3)
4921#define BIGMAC2_REGISTER_PFC_CONTROL (0x06<<3)
4922#define BIGMAC2_REGISTER_RX_CONTROL (0x3A<<3)
4923#define BIGMAC2_REGISTER_RX_LLFC_MSG_FLDS (0x62<<3)
4924#define BIGMAC2_REGISTER_RX_MAX_SIZE (0x3C<<3)
4925#define BIGMAC2_REGISTER_RX_STAT_GR64 (0x40<<3)
4926#define BIGMAC2_REGISTER_RX_STAT_GRIPJ (0x5f<<3)
4927#define BIGMAC2_REGISTER_RX_STAT_GRPP (0x51<<3)
4928#define BIGMAC2_REGISTER_TX_CONTROL (0x1C<<3)
4929#define BIGMAC2_REGISTER_TX_MAX_SIZE (0x1E<<3)
4930#define BIGMAC2_REGISTER_TX_PAUSE_CONTROL (0x20<<3)
4931#define BIGMAC2_REGISTER_TX_SOURCE_ADDR (0x1D<<3)
4932#define BIGMAC2_REGISTER_TX_STAT_GTBYT (0x39<<3)
4933#define BIGMAC2_REGISTER_TX_STAT_GTPOK (0x22<<3)
4934#define BIGMAC2_REGISTER_TX_STAT_GTPP (0x24<<3)
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004935#define EMAC_LED_1000MB_OVERRIDE (1L<<1)
4936#define EMAC_LED_100MB_OVERRIDE (1L<<2)
4937#define EMAC_LED_10MB_OVERRIDE (1L<<3)
4938#define EMAC_LED_2500MB_OVERRIDE (1L<<12)
4939#define EMAC_LED_OVERRIDE (1L<<0)
4940#define EMAC_LED_TRAFFIC (1L<<6)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004941#define EMAC_MDIO_COMM_COMMAND_ADDRESS (0L<<26)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004942#define EMAC_MDIO_COMM_COMMAND_READ_45 (3L<<26)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004943#define EMAC_MDIO_COMM_COMMAND_WRITE_45 (1L<<26)
4944#define EMAC_MDIO_COMM_DATA (0xffffL<<0)
4945#define EMAC_MDIO_COMM_START_BUSY (1L<<29)
4946#define EMAC_MDIO_MODE_AUTO_POLL (1L<<4)
4947#define EMAC_MDIO_MODE_CLAUSE_45 (1L<<31)
Eliezer Tamirf1410642008-02-28 11:51:50 -08004948#define EMAC_MDIO_MODE_CLOCK_CNT (0x3fL<<16)
4949#define EMAC_MDIO_MODE_CLOCK_CNT_BITSHIFT 16
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004950#define EMAC_MODE_25G_MODE (1L<<5)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004951#define EMAC_MODE_HALF_DUPLEX (1L<<1)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004952#define EMAC_MODE_PORT_GMII (2L<<2)
4953#define EMAC_MODE_PORT_MII (1L<<2)
4954#define EMAC_MODE_PORT_MII_10M (3L<<2)
4955#define EMAC_MODE_RESET (1L<<0)
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004956#define EMAC_REG_EMAC_LED 0xc
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004957#define EMAC_REG_EMAC_MAC_MATCH 0x10
4958#define EMAC_REG_EMAC_MDIO_COMM 0xac
4959#define EMAC_REG_EMAC_MDIO_MODE 0xb4
4960#define EMAC_REG_EMAC_MODE 0x0
4961#define EMAC_REG_EMAC_RX_MODE 0xc8
4962#define EMAC_REG_EMAC_RX_MTU_SIZE 0x9c
4963#define EMAC_REG_EMAC_RX_STAT_AC 0x180
4964#define EMAC_REG_EMAC_RX_STAT_AC_28 0x1f4
4965#define EMAC_REG_EMAC_RX_STAT_AC_COUNT 23
4966#define EMAC_REG_EMAC_TX_MODE 0xbc
4967#define EMAC_REG_EMAC_TX_STAT_AC 0x280
4968#define EMAC_REG_EMAC_TX_STAT_AC_COUNT 22
4969#define EMAC_RX_MODE_FLOW_EN (1L<<2)
4970#define EMAC_RX_MODE_KEEP_VLAN_TAG (1L<<10)
4971#define EMAC_RX_MODE_PROMISCUOUS (1L<<8)
Eilon Greenstein811a2f22009-02-12 08:37:04 +00004972#define EMAC_RX_MODE_RESET (1L<<0)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004973#define EMAC_RX_MTU_SIZE_JUMBO_ENA (1L<<31)
4974#define EMAC_TX_MODE_EXT_PAUSE_EN (1L<<3)
Yaniv Rosner8c99e7b2008-08-13 15:56:17 -07004975#define EMAC_TX_MODE_FLOW_EN (1L<<4)
Eilon Greenstein811a2f22009-02-12 08:37:04 +00004976#define EMAC_TX_MODE_RESET (1L<<0)
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004977#define MISC_REGISTERS_GPIO_0 0
Eliezer Tamirf1410642008-02-28 11:51:50 -08004978#define MISC_REGISTERS_GPIO_1 1
4979#define MISC_REGISTERS_GPIO_2 2
4980#define MISC_REGISTERS_GPIO_3 3
4981#define MISC_REGISTERS_GPIO_CLR_POS 16
4982#define MISC_REGISTERS_GPIO_FLOAT (0xffL<<24)
4983#define MISC_REGISTERS_GPIO_FLOAT_POS 24
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004984#define MISC_REGISTERS_GPIO_HIGH 1
Eliezer Tamirf1410642008-02-28 11:51:50 -08004985#define MISC_REGISTERS_GPIO_INPUT_HI_Z 2
Eilon Greenstein4acac6a2009-02-12 08:36:52 +00004986#define MISC_REGISTERS_GPIO_INT_CLR_POS 24
4987#define MISC_REGISTERS_GPIO_INT_OUTPUT_CLR 0
4988#define MISC_REGISTERS_GPIO_INT_OUTPUT_SET 1
4989#define MISC_REGISTERS_GPIO_INT_SET_POS 16
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07004990#define MISC_REGISTERS_GPIO_LOW 0
Eliezer Tamirf1410642008-02-28 11:51:50 -08004991#define MISC_REGISTERS_GPIO_OUTPUT_HIGH 1
4992#define MISC_REGISTERS_GPIO_OUTPUT_LOW 0
4993#define MISC_REGISTERS_GPIO_PORT_SHIFT 4
4994#define MISC_REGISTERS_GPIO_SET_POS 8
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02004995#define MISC_REGISTERS_RESET_REG_1_CLEAR 0x588
Vladislav Zolotarov72fd0712010-04-19 01:13:12 +00004996#define MISC_REGISTERS_RESET_REG_1_RST_HC (0x1<<29)
Vladislav Zolotarovda5a6622008-08-13 15:50:00 -07004997#define MISC_REGISTERS_RESET_REG_1_RST_NIG (0x1<<7)
Vladislav Zolotarov72fd0712010-04-19 01:13:12 +00004998#define MISC_REGISTERS_RESET_REG_1_RST_PXP (0x1<<26)
4999#define MISC_REGISTERS_RESET_REG_1_RST_PXPV (0x1<<27)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005000#define MISC_REGISTERS_RESET_REG_1_SET 0x584
5001#define MISC_REGISTERS_RESET_REG_2_CLEAR 0x598
5002#define MISC_REGISTERS_RESET_REG_2_RST_BMAC0 (0x1<<0)
5003#define MISC_REGISTERS_RESET_REG_2_RST_EMAC0_HARD_CORE (0x1<<14)
Vladislav Zolotarov72fd0712010-04-19 01:13:12 +00005004#define MISC_REGISTERS_RESET_REG_2_RST_EMAC1_HARD_CORE (0x1<<15)
5005#define MISC_REGISTERS_RESET_REG_2_RST_GRC (0x1<<4)
5006#define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_HARD_CORE_RST_B (0x1<<6)
5007#define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_RESET_REG_HARD_CORE (0x1<<5)
5008#define MISC_REGISTERS_RESET_REG_2_RST_MDIO (0x1<<13)
5009#define MISC_REGISTERS_RESET_REG_2_RST_MISC_CORE (0x1<<11)
5010#define MISC_REGISTERS_RESET_REG_2_RST_RBCN (0x1<<9)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005011#define MISC_REGISTERS_RESET_REG_2_SET 0x594
5012#define MISC_REGISTERS_RESET_REG_3_CLEAR 0x5a8
5013#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_IDDQ (0x1<<1)
5014#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_PWRDWN (0x1<<2)
5015#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_PWRDWN_SD (0x1<<3)
5016#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_RSTB_HW (0x1<<0)
5017#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_IDDQ (0x1<<5)
5018#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_PWRDWN (0x1<<6)
5019#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_PWRDWN_SD (0x1<<7)
5020#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_RSTB_HW (0x1<<4)
5021#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_TXD_FIFO_RSTB (0x1<<8)
5022#define MISC_REGISTERS_RESET_REG_3_SET 0x5a4
Eliezer Tamirf1410642008-02-28 11:51:50 -08005023#define MISC_REGISTERS_SPIO_4 4
5024#define MISC_REGISTERS_SPIO_5 5
5025#define MISC_REGISTERS_SPIO_7 7
5026#define MISC_REGISTERS_SPIO_CLR_POS 16
5027#define MISC_REGISTERS_SPIO_FLOAT (0xffL<<24)
Eliezer Tamirf1410642008-02-28 11:51:50 -08005028#define MISC_REGISTERS_SPIO_FLOAT_POS 24
5029#define MISC_REGISTERS_SPIO_INPUT_HI_Z 2
5030#define MISC_REGISTERS_SPIO_INT_OLD_SET_POS 16
5031#define MISC_REGISTERS_SPIO_OUTPUT_HIGH 1
5032#define MISC_REGISTERS_SPIO_OUTPUT_LOW 0
5033#define MISC_REGISTERS_SPIO_SET_POS 8
5034#define HW_LOCK_MAX_RESOURCE_VALUE 31
Eliezer Tamirf1410642008-02-28 11:51:50 -08005035#define HW_LOCK_RESOURCE_GPIO 1
Eilon Greenstein46c6a672009-02-12 08:36:58 +00005036#define HW_LOCK_RESOURCE_MDIO 0
Eilon Greenstein3fcaf2e2008-08-13 15:50:45 -07005037#define HW_LOCK_RESOURCE_PORT0_ATT_MASK 3
Vladislav Zolotarov72fd0712010-04-19 01:13:12 +00005038#define HW_LOCK_RESOURCE_RESERVED_08 8
Eliezer Tamirf1410642008-02-28 11:51:50 -08005039#define HW_LOCK_RESOURCE_SPIO 2
Vladislav Zolotarovda5a6622008-08-13 15:50:00 -07005040#define HW_LOCK_RESOURCE_UNDI 5
Eilon Greenstein052a38e2009-02-12 08:37:16 +00005041#define PRS_FLAG_OVERETH_IPV4 1
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00005042#define AEU_INPUTS_ATTN_BITS_ATC_HW_INTERRUPT (0x1<<4)
5043#define AEU_INPUTS_ATTN_BITS_ATC_PARITY_ERROR (0x1<<5)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005044#define AEU_INPUTS_ATTN_BITS_BRB_PARITY_ERROR (1<<18)
5045#define AEU_INPUTS_ATTN_BITS_CCM_HW_INTERRUPT (1<<31)
5046#define AEU_INPUTS_ATTN_BITS_CDU_HW_INTERRUPT (1<<9)
5047#define AEU_INPUTS_ATTN_BITS_CDU_PARITY_ERROR (1<<8)
5048#define AEU_INPUTS_ATTN_BITS_CFC_HW_INTERRUPT (1<<7)
5049#define AEU_INPUTS_ATTN_BITS_CFC_PARITY_ERROR (1<<6)
5050#define AEU_INPUTS_ATTN_BITS_CSDM_HW_INTERRUPT (1<<29)
5051#define AEU_INPUTS_ATTN_BITS_CSDM_PARITY_ERROR (1<<28)
5052#define AEU_INPUTS_ATTN_BITS_CSEMI_HW_INTERRUPT (1<<1)
5053#define AEU_INPUTS_ATTN_BITS_CSEMI_PARITY_ERROR (1<<0)
5054#define AEU_INPUTS_ATTN_BITS_DEBUG_PARITY_ERROR (1<<18)
5055#define AEU_INPUTS_ATTN_BITS_DMAE_HW_INTERRUPT (1<<11)
5056#define AEU_INPUTS_ATTN_BITS_DOORBELLQ_HW_INTERRUPT (1<<13)
5057#define AEU_INPUTS_ATTN_BITS_DOORBELLQ_PARITY_ERROR (1<<12)
Eilon Greenstein4acac6a2009-02-12 08:36:52 +00005058#define AEU_INPUTS_ATTN_BITS_GPIO3_FUNCTION_0 (1<<5)
5059#define AEU_INPUTS_ATTN_BITS_GPIO3_FUNCTION_1 (1<<9)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005060#define AEU_INPUTS_ATTN_BITS_IGU_PARITY_ERROR (1<<12)
Vladislav Zolotarov72fd0712010-04-19 01:13:12 +00005061#define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_ROM_PARITY (1<<28)
5062#define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_SCPAD_PARITY (1<<31)
5063#define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_UMP_RX_PARITY (1<<29)
5064#define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_UMP_TX_PARITY (1<<30)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005065#define AEU_INPUTS_ATTN_BITS_MISC_HW_INTERRUPT (1<<15)
5066#define AEU_INPUTS_ATTN_BITS_MISC_PARITY_ERROR (1<<14)
5067#define AEU_INPUTS_ATTN_BITS_PARSER_PARITY_ERROR (1<<20)
5068#define AEU_INPUTS_ATTN_BITS_PBCLIENT_PARITY_ERROR (1<<0)
5069#define AEU_INPUTS_ATTN_BITS_PBF_HW_INTERRUPT (1<<31)
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00005070#define AEU_INPUTS_ATTN_BITS_PGLUE_HW_INTERRUPT (0x1<<2)
5071#define AEU_INPUTS_ATTN_BITS_PGLUE_PARITY_ERROR (0x1<<3)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005072#define AEU_INPUTS_ATTN_BITS_PXP_HW_INTERRUPT (1<<3)
5073#define AEU_INPUTS_ATTN_BITS_PXP_PARITY_ERROR (1<<2)
5074#define AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_HW_INTERRUPT (1<<5)
5075#define AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_PARITY_ERROR (1<<4)
5076#define AEU_INPUTS_ATTN_BITS_QM_HW_INTERRUPT (1<<3)
5077#define AEU_INPUTS_ATTN_BITS_QM_PARITY_ERROR (1<<2)
5078#define AEU_INPUTS_ATTN_BITS_SEARCHER_PARITY_ERROR (1<<22)
Eliezer Tamirf1410642008-02-28 11:51:50 -08005079#define AEU_INPUTS_ATTN_BITS_SPIO5 (1<<15)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005080#define AEU_INPUTS_ATTN_BITS_TCM_HW_INTERRUPT (1<<27)
5081#define AEU_INPUTS_ATTN_BITS_TIMERS_HW_INTERRUPT (1<<5)
5082#define AEU_INPUTS_ATTN_BITS_TSDM_HW_INTERRUPT (1<<25)
5083#define AEU_INPUTS_ATTN_BITS_TSDM_PARITY_ERROR (1<<24)
5084#define AEU_INPUTS_ATTN_BITS_TSEMI_HW_INTERRUPT (1<<29)
5085#define AEU_INPUTS_ATTN_BITS_TSEMI_PARITY_ERROR (1<<28)
5086#define AEU_INPUTS_ATTN_BITS_UCM_HW_INTERRUPT (1<<23)
5087#define AEU_INPUTS_ATTN_BITS_UPB_HW_INTERRUPT (1<<27)
5088#define AEU_INPUTS_ATTN_BITS_UPB_PARITY_ERROR (1<<26)
5089#define AEU_INPUTS_ATTN_BITS_USDM_HW_INTERRUPT (1<<21)
5090#define AEU_INPUTS_ATTN_BITS_USDM_PARITY_ERROR (1<<20)
5091#define AEU_INPUTS_ATTN_BITS_USEMI_HW_INTERRUPT (1<<25)
5092#define AEU_INPUTS_ATTN_BITS_USEMI_PARITY_ERROR (1<<24)
5093#define AEU_INPUTS_ATTN_BITS_VAUX_PCI_CORE_PARITY_ERROR (1<<16)
5094#define AEU_INPUTS_ATTN_BITS_XCM_HW_INTERRUPT (1<<9)
5095#define AEU_INPUTS_ATTN_BITS_XSDM_HW_INTERRUPT (1<<7)
5096#define AEU_INPUTS_ATTN_BITS_XSDM_PARITY_ERROR (1<<6)
5097#define AEU_INPUTS_ATTN_BITS_XSEMI_HW_INTERRUPT (1<<11)
5098#define AEU_INPUTS_ATTN_BITS_XSEMI_PARITY_ERROR (1<<10)
5099#define RESERVED_GENERAL_ATTENTION_BIT_0 0
5100
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005101#define EVEREST_GEN_ATTN_IN_USE_MASK 0x3ffe0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005102#define EVEREST_LATCHED_ATTN_IN_USE_MASK 0xffe00000
5103
5104#define RESERVED_GENERAL_ATTENTION_BIT_6 6
5105#define RESERVED_GENERAL_ATTENTION_BIT_7 7
5106#define RESERVED_GENERAL_ATTENTION_BIT_8 8
5107#define RESERVED_GENERAL_ATTENTION_BIT_9 9
5108#define RESERVED_GENERAL_ATTENTION_BIT_10 10
5109#define RESERVED_GENERAL_ATTENTION_BIT_11 11
5110#define RESERVED_GENERAL_ATTENTION_BIT_12 12
5111#define RESERVED_GENERAL_ATTENTION_BIT_13 13
5112#define RESERVED_GENERAL_ATTENTION_BIT_14 14
5113#define RESERVED_GENERAL_ATTENTION_BIT_15 15
5114#define RESERVED_GENERAL_ATTENTION_BIT_16 16
5115#define RESERVED_GENERAL_ATTENTION_BIT_17 17
5116#define RESERVED_GENERAL_ATTENTION_BIT_18 18
5117#define RESERVED_GENERAL_ATTENTION_BIT_19 19
5118#define RESERVED_GENERAL_ATTENTION_BIT_20 20
5119#define RESERVED_GENERAL_ATTENTION_BIT_21 21
5120
5121/* storm asserts attention bits */
5122#define TSTORM_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_7
5123#define USTORM_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_8
5124#define CSTORM_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_9
5125#define XSTORM_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_10
5126
5127/* mcp error attention bit */
5128#define MCP_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_11
5129
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005130/*E1H NIG status sync attention mapped to group 4-7*/
5131#define LINK_SYNC_ATTENTION_BIT_FUNC_0 RESERVED_GENERAL_ATTENTION_BIT_12
5132#define LINK_SYNC_ATTENTION_BIT_FUNC_1 RESERVED_GENERAL_ATTENTION_BIT_13
5133#define LINK_SYNC_ATTENTION_BIT_FUNC_2 RESERVED_GENERAL_ATTENTION_BIT_14
5134#define LINK_SYNC_ATTENTION_BIT_FUNC_3 RESERVED_GENERAL_ATTENTION_BIT_15
5135#define LINK_SYNC_ATTENTION_BIT_FUNC_4 RESERVED_GENERAL_ATTENTION_BIT_16
5136#define LINK_SYNC_ATTENTION_BIT_FUNC_5 RESERVED_GENERAL_ATTENTION_BIT_17
5137#define LINK_SYNC_ATTENTION_BIT_FUNC_6 RESERVED_GENERAL_ATTENTION_BIT_18
5138#define LINK_SYNC_ATTENTION_BIT_FUNC_7 RESERVED_GENERAL_ATTENTION_BIT_19
5139
5140
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005141#define LATCHED_ATTN_RBCR 23
5142#define LATCHED_ATTN_RBCT 24
5143#define LATCHED_ATTN_RBCN 25
5144#define LATCHED_ATTN_RBCU 26
5145#define LATCHED_ATTN_RBCP 27
5146#define LATCHED_ATTN_TIMEOUT_GRC 28
5147#define LATCHED_ATTN_RSVD_GRC 29
5148#define LATCHED_ATTN_ROM_PARITY_MCP 30
5149#define LATCHED_ATTN_UM_RX_PARITY_MCP 31
5150#define LATCHED_ATTN_UM_TX_PARITY_MCP 32
5151#define LATCHED_ATTN_SCPAD_PARITY_MCP 33
5152
5153#define GENERAL_ATTEN_WORD(atten_name) ((94 + atten_name) / 32)
Eilon Greensteinab6ad5a2009-08-12 08:24:29 +00005154#define GENERAL_ATTEN_OFFSET(atten_name)\
5155 (1UL << ((94 + atten_name) % 32))
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005156/*
5157 * This file defines GRC base address for every block.
5158 * This file is included by chipsim, asm microcode and cpp microcode.
5159 * These values are used in Design.xml on regBase attribute
5160 * Use the base with the generated offsets of specific registers.
5161 */
5162
5163#define GRCBASE_PXPCS 0x000000
5164#define GRCBASE_PCICONFIG 0x002000
5165#define GRCBASE_PCIREG 0x002400
5166#define GRCBASE_EMAC0 0x008000
5167#define GRCBASE_EMAC1 0x008400
5168#define GRCBASE_DBU 0x008800
5169#define GRCBASE_MISC 0x00A000
5170#define GRCBASE_DBG 0x00C000
5171#define GRCBASE_NIG 0x010000
5172#define GRCBASE_XCM 0x020000
5173#define GRCBASE_PRS 0x040000
5174#define GRCBASE_SRCH 0x040400
5175#define GRCBASE_TSDM 0x042000
5176#define GRCBASE_TCM 0x050000
5177#define GRCBASE_BRB1 0x060000
5178#define GRCBASE_MCP 0x080000
5179#define GRCBASE_UPB 0x0C1000
5180#define GRCBASE_CSDM 0x0C2000
5181#define GRCBASE_USDM 0x0C4000
5182#define GRCBASE_CCM 0x0D0000
5183#define GRCBASE_UCM 0x0E0000
5184#define GRCBASE_CDU 0x101000
5185#define GRCBASE_DMAE 0x102000
5186#define GRCBASE_PXP 0x103000
5187#define GRCBASE_CFC 0x104000
5188#define GRCBASE_HC 0x108000
5189#define GRCBASE_PXP2 0x120000
5190#define GRCBASE_PBF 0x140000
5191#define GRCBASE_XPB 0x161000
5192#define GRCBASE_TIMERS 0x164000
5193#define GRCBASE_XSDM 0x166000
5194#define GRCBASE_QM 0x168000
5195#define GRCBASE_DQ 0x170000
5196#define GRCBASE_TSEM 0x180000
5197#define GRCBASE_CSEM 0x200000
5198#define GRCBASE_XSEM 0x280000
5199#define GRCBASE_USEM 0x300000
5200#define GRCBASE_MISC_AEU GRCBASE_MISC
5201
5202
Eilon Greenstein5c862842008-08-13 15:51:48 -07005203/* offset of configuration space in the pci core register */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005204#define PCICFG_OFFSET 0x2000
5205#define PCICFG_VENDOR_ID_OFFSET 0x00
5206#define PCICFG_DEVICE_ID_OFFSET 0x02
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005207#define PCICFG_COMMAND_OFFSET 0x04
Eilon Greenstein5c862842008-08-13 15:51:48 -07005208#define PCICFG_COMMAND_IO_SPACE (1<<0)
5209#define PCICFG_COMMAND_MEM_SPACE (1<<1)
5210#define PCICFG_COMMAND_BUS_MASTER (1<<2)
5211#define PCICFG_COMMAND_SPECIAL_CYCLES (1<<3)
5212#define PCICFG_COMMAND_MWI_CYCLES (1<<4)
5213#define PCICFG_COMMAND_VGA_SNOOP (1<<5)
5214#define PCICFG_COMMAND_PERR_ENA (1<<6)
5215#define PCICFG_COMMAND_STEPPING (1<<7)
5216#define PCICFG_COMMAND_SERR_ENA (1<<8)
5217#define PCICFG_COMMAND_FAST_B2B (1<<9)
5218#define PCICFG_COMMAND_INT_DISABLE (1<<10)
5219#define PCICFG_COMMAND_RESERVED (0x1f<<11)
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005220#define PCICFG_STATUS_OFFSET 0x06
Eilon Greenstein0d1a8d22009-03-02 07:59:20 +00005221#define PCICFG_REVESION_ID_OFFSET 0x08
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005222#define PCICFG_CACHE_LINE_SIZE 0x0c
5223#define PCICFG_LATENCY_TIMER 0x0d
Eilon Greenstein5c862842008-08-13 15:51:48 -07005224#define PCICFG_BAR_1_LOW 0x10
5225#define PCICFG_BAR_1_HIGH 0x14
5226#define PCICFG_BAR_2_LOW 0x18
5227#define PCICFG_BAR_2_HIGH 0x1c
5228#define PCICFG_SUBSYSTEM_VENDOR_ID_OFFSET 0x2c
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005229#define PCICFG_SUBSYSTEM_ID_OFFSET 0x2e
Eilon Greenstein5c862842008-08-13 15:51:48 -07005230#define PCICFG_INT_LINE 0x3c
5231#define PCICFG_INT_PIN 0x3d
5232#define PCICFG_PM_CAPABILITY 0x48
5233#define PCICFG_PM_CAPABILITY_VERSION (0x3<<16)
5234#define PCICFG_PM_CAPABILITY_CLOCK (1<<19)
5235#define PCICFG_PM_CAPABILITY_RESERVED (1<<20)
5236#define PCICFG_PM_CAPABILITY_DSI (1<<21)
5237#define PCICFG_PM_CAPABILITY_AUX_CURRENT (0x7<<22)
5238#define PCICFG_PM_CAPABILITY_D1_SUPPORT (1<<25)
5239#define PCICFG_PM_CAPABILITY_D2_SUPPORT (1<<26)
5240#define PCICFG_PM_CAPABILITY_PME_IN_D0 (1<<27)
5241#define PCICFG_PM_CAPABILITY_PME_IN_D1 (1<<28)
5242#define PCICFG_PM_CAPABILITY_PME_IN_D2 (1<<29)
5243#define PCICFG_PM_CAPABILITY_PME_IN_D3_HOT (1<<30)
5244#define PCICFG_PM_CAPABILITY_PME_IN_D3_COLD (1<<31)
5245#define PCICFG_PM_CSR_OFFSET 0x4c
5246#define PCICFG_PM_CSR_STATE (0x3<<0)
5247#define PCICFG_PM_CSR_PME_ENABLE (1<<8)
5248#define PCICFG_PM_CSR_PME_STATUS (1<<15)
Eilon Greenstein0d1a8d22009-03-02 07:59:20 +00005249#define PCICFG_MSI_CAP_ID_OFFSET 0x58
Eilon Greenstein8badd272009-02-12 08:36:15 +00005250#define PCICFG_MSI_CONTROL_ENABLE (0x1<<16)
5251#define PCICFG_MSI_CONTROL_MCAP (0x7<<17)
5252#define PCICFG_MSI_CONTROL_MENA (0x7<<20)
5253#define PCICFG_MSI_CONTROL_64_BIT_ADDR_CAP (0x1<<23)
5254#define PCICFG_MSI_CONTROL_MSI_PVMASK_CAPABLE (0x1<<24)
Eilon Greenstein5c862842008-08-13 15:51:48 -07005255#define PCICFG_GRC_ADDRESS 0x78
5256#define PCICFG_GRC_DATA 0x80
Eilon Greenstein0d1a8d22009-03-02 07:59:20 +00005257#define PCICFG_MSIX_CAP_ID_OFFSET 0xa0
Eilon Greenstein8badd272009-02-12 08:36:15 +00005258#define PCICFG_MSIX_CONTROL_TABLE_SIZE (0x7ff<<16)
5259#define PCICFG_MSIX_CONTROL_RESERVED (0x7<<27)
5260#define PCICFG_MSIX_CONTROL_FUNC_MASK (0x1<<30)
5261#define PCICFG_MSIX_CONTROL_MSIX_ENABLE (0x1<<31)
5262
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005263#define PCICFG_DEVICE_CONTROL 0xb4
Eilon Greenstein8badd272009-02-12 08:36:15 +00005264#define PCICFG_DEVICE_STATUS 0xb6
5265#define PCICFG_DEVICE_STATUS_CORR_ERR_DET (1<<0)
5266#define PCICFG_DEVICE_STATUS_NON_FATAL_ERR_DET (1<<1)
5267#define PCICFG_DEVICE_STATUS_FATAL_ERR_DET (1<<2)
5268#define PCICFG_DEVICE_STATUS_UNSUP_REQ_DET (1<<3)
5269#define PCICFG_DEVICE_STATUS_AUX_PWR_DET (1<<4)
5270#define PCICFG_DEVICE_STATUS_NO_PEND (1<<5)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005271#define PCICFG_LINK_CONTROL 0xbc
5272
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005273
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005274#define BAR_USTRORM_INTMEM 0x400000
5275#define BAR_CSTRORM_INTMEM 0x410000
5276#define BAR_XSTRORM_INTMEM 0x420000
5277#define BAR_TSTRORM_INTMEM 0x430000
5278
Eilon Greenstein5c862842008-08-13 15:51:48 -07005279/* for accessing the IGU in case of status block ACK */
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005280#define BAR_IGU_INTMEM 0x440000
5281
5282#define BAR_DOORBELL_OFFSET 0x800000
5283
5284#define BAR_ME_REGISTER 0x450000
5285
Eilon Greenstein5c862842008-08-13 15:51:48 -07005286/* config_2 offset */
5287#define GRC_CONFIG_2_SIZE_REG 0x408
5288#define PCI_CONFIG_2_BAR1_SIZE (0xfL<<0)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005289#define PCI_CONFIG_2_BAR1_SIZE_DISABLED (0L<<0)
5290#define PCI_CONFIG_2_BAR1_SIZE_64K (1L<<0)
5291#define PCI_CONFIG_2_BAR1_SIZE_128K (2L<<0)
5292#define PCI_CONFIG_2_BAR1_SIZE_256K (3L<<0)
5293#define PCI_CONFIG_2_BAR1_SIZE_512K (4L<<0)
5294#define PCI_CONFIG_2_BAR1_SIZE_1M (5L<<0)
5295#define PCI_CONFIG_2_BAR1_SIZE_2M (6L<<0)
5296#define PCI_CONFIG_2_BAR1_SIZE_4M (7L<<0)
5297#define PCI_CONFIG_2_BAR1_SIZE_8M (8L<<0)
5298#define PCI_CONFIG_2_BAR1_SIZE_16M (9L<<0)
5299#define PCI_CONFIG_2_BAR1_SIZE_32M (10L<<0)
5300#define PCI_CONFIG_2_BAR1_SIZE_64M (11L<<0)
5301#define PCI_CONFIG_2_BAR1_SIZE_128M (12L<<0)
5302#define PCI_CONFIG_2_BAR1_SIZE_256M (13L<<0)
5303#define PCI_CONFIG_2_BAR1_SIZE_512M (14L<<0)
5304#define PCI_CONFIG_2_BAR1_SIZE_1G (15L<<0)
Eilon Greenstein5c862842008-08-13 15:51:48 -07005305#define PCI_CONFIG_2_BAR1_64ENA (1L<<4)
5306#define PCI_CONFIG_2_EXP_ROM_RETRY (1L<<5)
5307#define PCI_CONFIG_2_CFG_CYCLE_RETRY (1L<<6)
5308#define PCI_CONFIG_2_FIRST_CFG_DONE (1L<<7)
5309#define PCI_CONFIG_2_EXP_ROM_SIZE (0xffL<<8)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005310#define PCI_CONFIG_2_EXP_ROM_SIZE_DISABLED (0L<<8)
5311#define PCI_CONFIG_2_EXP_ROM_SIZE_2K (1L<<8)
5312#define PCI_CONFIG_2_EXP_ROM_SIZE_4K (2L<<8)
5313#define PCI_CONFIG_2_EXP_ROM_SIZE_8K (3L<<8)
5314#define PCI_CONFIG_2_EXP_ROM_SIZE_16K (4L<<8)
5315#define PCI_CONFIG_2_EXP_ROM_SIZE_32K (5L<<8)
5316#define PCI_CONFIG_2_EXP_ROM_SIZE_64K (6L<<8)
5317#define PCI_CONFIG_2_EXP_ROM_SIZE_128K (7L<<8)
5318#define PCI_CONFIG_2_EXP_ROM_SIZE_256K (8L<<8)
5319#define PCI_CONFIG_2_EXP_ROM_SIZE_512K (9L<<8)
5320#define PCI_CONFIG_2_EXP_ROM_SIZE_1M (10L<<8)
5321#define PCI_CONFIG_2_EXP_ROM_SIZE_2M (11L<<8)
5322#define PCI_CONFIG_2_EXP_ROM_SIZE_4M (12L<<8)
5323#define PCI_CONFIG_2_EXP_ROM_SIZE_8M (13L<<8)
5324#define PCI_CONFIG_2_EXP_ROM_SIZE_16M (14L<<8)
5325#define PCI_CONFIG_2_EXP_ROM_SIZE_32M (15L<<8)
Eilon Greenstein5c862842008-08-13 15:51:48 -07005326#define PCI_CONFIG_2_BAR_PREFETCH (1L<<16)
5327#define PCI_CONFIG_2_RESERVED0 (0x7fffL<<17)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005328
5329/* config_3 offset */
Eilon Greenstein5c862842008-08-13 15:51:48 -07005330#define GRC_CONFIG_3_SIZE_REG 0x40c
5331#define PCI_CONFIG_3_STICKY_BYTE (0xffL<<0)
5332#define PCI_CONFIG_3_FORCE_PME (1L<<24)
5333#define PCI_CONFIG_3_PME_STATUS (1L<<25)
5334#define PCI_CONFIG_3_PME_ENABLE (1L<<26)
5335#define PCI_CONFIG_3_PM_STATE (0x3L<<27)
5336#define PCI_CONFIG_3_VAUX_PRESET (1L<<30)
5337#define PCI_CONFIG_3_PCI_POWER (1L<<31)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005338
5339#define GRC_BAR2_CONFIG 0x4e0
Eilon Greenstein5c862842008-08-13 15:51:48 -07005340#define PCI_CONFIG_2_BAR2_SIZE (0xfL<<0)
5341#define PCI_CONFIG_2_BAR2_SIZE_DISABLED (0L<<0)
5342#define PCI_CONFIG_2_BAR2_SIZE_64K (1L<<0)
5343#define PCI_CONFIG_2_BAR2_SIZE_128K (2L<<0)
5344#define PCI_CONFIG_2_BAR2_SIZE_256K (3L<<0)
5345#define PCI_CONFIG_2_BAR2_SIZE_512K (4L<<0)
5346#define PCI_CONFIG_2_BAR2_SIZE_1M (5L<<0)
5347#define PCI_CONFIG_2_BAR2_SIZE_2M (6L<<0)
5348#define PCI_CONFIG_2_BAR2_SIZE_4M (7L<<0)
5349#define PCI_CONFIG_2_BAR2_SIZE_8M (8L<<0)
5350#define PCI_CONFIG_2_BAR2_SIZE_16M (9L<<0)
5351#define PCI_CONFIG_2_BAR2_SIZE_32M (10L<<0)
5352#define PCI_CONFIG_2_BAR2_SIZE_64M (11L<<0)
5353#define PCI_CONFIG_2_BAR2_SIZE_128M (12L<<0)
5354#define PCI_CONFIG_2_BAR2_SIZE_256M (13L<<0)
5355#define PCI_CONFIG_2_BAR2_SIZE_512M (14L<<0)
5356#define PCI_CONFIG_2_BAR2_SIZE_1G (15L<<0)
5357#define PCI_CONFIG_2_BAR2_64ENA (1L<<4)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005358
Eilon Greenstein5c862842008-08-13 15:51:48 -07005359#define PCI_PM_DATA_A 0x410
5360#define PCI_PM_DATA_B 0x414
5361#define PCI_ID_VAL1 0x434
5362#define PCI_ID_VAL2 0x438
5363
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00005364#define PXPCS_TL_CONTROL_5 0x814
5365#define PXPCS_TL_CONTROL_5_UNKNOWNTYPE_ERR_ATTN (1 << 29) /*WC*/
5366#define PXPCS_TL_CONTROL_5_BOUNDARY4K_ERR_ATTN (1 << 28) /*WC*/
5367#define PXPCS_TL_CONTROL_5_MRRS_ERR_ATTN (1 << 27) /*WC*/
5368#define PXPCS_TL_CONTROL_5_MPS_ERR_ATTN (1 << 26) /*WC*/
5369#define PXPCS_TL_CONTROL_5_TTX_BRIDGE_FORWARD_ERR (1 << 25) /*WC*/
5370#define PXPCS_TL_CONTROL_5_TTX_TXINTF_OVERFLOW (1 << 24) /*WC*/
5371#define PXPCS_TL_CONTROL_5_PHY_ERR_ATTN (1 << 23) /*RO*/
5372#define PXPCS_TL_CONTROL_5_DL_ERR_ATTN (1 << 22) /*RO*/
5373#define PXPCS_TL_CONTROL_5_TTX_ERR_NP_TAG_IN_USE (1 << 21) /*WC*/
5374#define PXPCS_TL_CONTROL_5_TRX_ERR_UNEXP_RTAG (1 << 20) /*WC*/
5375#define PXPCS_TL_CONTROL_5_PRI_SIG_TARGET_ABORT1 (1 << 19) /*WC*/
5376#define PXPCS_TL_CONTROL_5_ERR_UNSPPORT1 (1 << 18) /*WC*/
5377#define PXPCS_TL_CONTROL_5_ERR_ECRC1 (1 << 17) /*WC*/
5378#define PXPCS_TL_CONTROL_5_ERR_MALF_TLP1 (1 << 16) /*WC*/
5379#define PXPCS_TL_CONTROL_5_ERR_RX_OFLOW1 (1 << 15) /*WC*/
5380#define PXPCS_TL_CONTROL_5_ERR_UNEXP_CPL1 (1 << 14) /*WC*/
5381#define PXPCS_TL_CONTROL_5_ERR_MASTER_ABRT1 (1 << 13) /*WC*/
5382#define PXPCS_TL_CONTROL_5_ERR_CPL_TIMEOUT1 (1 << 12) /*WC*/
5383#define PXPCS_TL_CONTROL_5_ERR_FC_PRTL1 (1 << 11) /*WC*/
5384#define PXPCS_TL_CONTROL_5_ERR_PSND_TLP1 (1 << 10) /*WC*/
5385#define PXPCS_TL_CONTROL_5_PRI_SIG_TARGET_ABORT (1 << 9) /*WC*/
5386#define PXPCS_TL_CONTROL_5_ERR_UNSPPORT (1 << 8) /*WC*/
5387#define PXPCS_TL_CONTROL_5_ERR_ECRC (1 << 7) /*WC*/
5388#define PXPCS_TL_CONTROL_5_ERR_MALF_TLP (1 << 6) /*WC*/
5389#define PXPCS_TL_CONTROL_5_ERR_RX_OFLOW (1 << 5) /*WC*/
5390#define PXPCS_TL_CONTROL_5_ERR_UNEXP_CPL (1 << 4) /*WC*/
5391#define PXPCS_TL_CONTROL_5_ERR_MASTER_ABRT (1 << 3) /*WC*/
5392#define PXPCS_TL_CONTROL_5_ERR_CPL_TIMEOUT (1 << 2) /*WC*/
5393#define PXPCS_TL_CONTROL_5_ERR_FC_PRTL (1 << 1) /*WC*/
5394#define PXPCS_TL_CONTROL_5_ERR_PSND_TLP (1 << 0) /*WC*/
5395
5396
5397#define PXPCS_TL_FUNC345_STAT 0x854
5398#define PXPCS_TL_FUNC345_STAT_PRI_SIG_TARGET_ABORT4 (1 << 29) /* WC */
5399#define PXPCS_TL_FUNC345_STAT_ERR_UNSPPORT4\
5400 (1 << 28) /* Unsupported Request Error Status in function4, if \
5401 set, generate pcie_err_attn output when this error is seen. WC */
5402#define PXPCS_TL_FUNC345_STAT_ERR_ECRC4\
5403 (1 << 27) /* ECRC Error TLP Status Status in function 4, if set, \
5404 generate pcie_err_attn output when this error is seen.. WC */
5405#define PXPCS_TL_FUNC345_STAT_ERR_MALF_TLP4\
5406 (1 << 26) /* Malformed TLP Status Status in function 4, if set, \
5407 generate pcie_err_attn output when this error is seen.. WC */
5408#define PXPCS_TL_FUNC345_STAT_ERR_RX_OFLOW4\
5409 (1 << 25) /* Receiver Overflow Status Status in function 4, if \
5410 set, generate pcie_err_attn output when this error is seen.. WC \
5411 */
5412#define PXPCS_TL_FUNC345_STAT_ERR_UNEXP_CPL4\
5413 (1 << 24) /* Unexpected Completion Status Status in function 4, \
5414 if set, generate pcie_err_attn output when this error is seen. WC \
5415 */
5416#define PXPCS_TL_FUNC345_STAT_ERR_MASTER_ABRT4\
5417 (1 << 23) /* Receive UR Statusin function 4. If set, generate \
5418 pcie_err_attn output when this error is seen. WC */
5419#define PXPCS_TL_FUNC345_STAT_ERR_CPL_TIMEOUT4\
5420 (1 << 22) /* Completer Timeout Status Status in function 4, if \
5421 set, generate pcie_err_attn output when this error is seen. WC */
5422#define PXPCS_TL_FUNC345_STAT_ERR_FC_PRTL4\
5423 (1 << 21) /* Flow Control Protocol Error Status Status in \
5424 function 4, if set, generate pcie_err_attn output when this error \
5425 is seen. WC */
5426#define PXPCS_TL_FUNC345_STAT_ERR_PSND_TLP4\
5427 (1 << 20) /* Poisoned Error Status Status in function 4, if set, \
5428 generate pcie_err_attn output when this error is seen.. WC */
5429#define PXPCS_TL_FUNC345_STAT_PRI_SIG_TARGET_ABORT3 (1 << 19) /* WC */
5430#define PXPCS_TL_FUNC345_STAT_ERR_UNSPPORT3\
5431 (1 << 18) /* Unsupported Request Error Status in function3, if \
5432 set, generate pcie_err_attn output when this error is seen. WC */
5433#define PXPCS_TL_FUNC345_STAT_ERR_ECRC3\
5434 (1 << 17) /* ECRC Error TLP Status Status in function 3, if set, \
5435 generate pcie_err_attn output when this error is seen.. WC */
5436#define PXPCS_TL_FUNC345_STAT_ERR_MALF_TLP3\
5437 (1 << 16) /* Malformed TLP Status Status in function 3, if set, \
5438 generate pcie_err_attn output when this error is seen.. WC */
5439#define PXPCS_TL_FUNC345_STAT_ERR_RX_OFLOW3\
5440 (1 << 15) /* Receiver Overflow Status Status in function 3, if \
5441 set, generate pcie_err_attn output when this error is seen.. WC \
5442 */
5443#define PXPCS_TL_FUNC345_STAT_ERR_UNEXP_CPL3\
5444 (1 << 14) /* Unexpected Completion Status Status in function 3, \
5445 if set, generate pcie_err_attn output when this error is seen. WC \
5446 */
5447#define PXPCS_TL_FUNC345_STAT_ERR_MASTER_ABRT3\
5448 (1 << 13) /* Receive UR Statusin function 3. If set, generate \
5449 pcie_err_attn output when this error is seen. WC */
5450#define PXPCS_TL_FUNC345_STAT_ERR_CPL_TIMEOUT3\
5451 (1 << 12) /* Completer Timeout Status Status in function 3, if \
5452 set, generate pcie_err_attn output when this error is seen. WC */
5453#define PXPCS_TL_FUNC345_STAT_ERR_FC_PRTL3\
5454 (1 << 11) /* Flow Control Protocol Error Status Status in \
5455 function 3, if set, generate pcie_err_attn output when this error \
5456 is seen. WC */
5457#define PXPCS_TL_FUNC345_STAT_ERR_PSND_TLP3\
5458 (1 << 10) /* Poisoned Error Status Status in function 3, if set, \
5459 generate pcie_err_attn output when this error is seen.. WC */
5460#define PXPCS_TL_FUNC345_STAT_PRI_SIG_TARGET_ABORT2 (1 << 9) /* WC */
5461#define PXPCS_TL_FUNC345_STAT_ERR_UNSPPORT2\
5462 (1 << 8) /* Unsupported Request Error Status for Function 2, if \
5463 set, generate pcie_err_attn output when this error is seen. WC */
5464#define PXPCS_TL_FUNC345_STAT_ERR_ECRC2\
5465 (1 << 7) /* ECRC Error TLP Status Status for Function 2, if set, \
5466 generate pcie_err_attn output when this error is seen.. WC */
5467#define PXPCS_TL_FUNC345_STAT_ERR_MALF_TLP2\
5468 (1 << 6) /* Malformed TLP Status Status for Function 2, if set, \
5469 generate pcie_err_attn output when this error is seen.. WC */
5470#define PXPCS_TL_FUNC345_STAT_ERR_RX_OFLOW2\
5471 (1 << 5) /* Receiver Overflow Status Status for Function 2, if \
5472 set, generate pcie_err_attn output when this error is seen.. WC \
5473 */
5474#define PXPCS_TL_FUNC345_STAT_ERR_UNEXP_CPL2\
5475 (1 << 4) /* Unexpected Completion Status Status for Function 2, \
5476 if set, generate pcie_err_attn output when this error is seen. WC \
5477 */
5478#define PXPCS_TL_FUNC345_STAT_ERR_MASTER_ABRT2\
5479 (1 << 3) /* Receive UR Statusfor Function 2. If set, generate \
5480 pcie_err_attn output when this error is seen. WC */
5481#define PXPCS_TL_FUNC345_STAT_ERR_CPL_TIMEOUT2\
5482 (1 << 2) /* Completer Timeout Status Status for Function 2, if \
5483 set, generate pcie_err_attn output when this error is seen. WC */
5484#define PXPCS_TL_FUNC345_STAT_ERR_FC_PRTL2\
5485 (1 << 1) /* Flow Control Protocol Error Status Status for \
5486 Function 2, if set, generate pcie_err_attn output when this error \
5487 is seen. WC */
5488#define PXPCS_TL_FUNC345_STAT_ERR_PSND_TLP2\
5489 (1 << 0) /* Poisoned Error Status Status for Function 2, if set, \
5490 generate pcie_err_attn output when this error is seen.. WC */
5491
5492
5493#define PXPCS_TL_FUNC678_STAT 0x85C
5494#define PXPCS_TL_FUNC678_STAT_PRI_SIG_TARGET_ABORT7 (1 << 29) /* WC */
5495#define PXPCS_TL_FUNC678_STAT_ERR_UNSPPORT7\
5496 (1 << 28) /* Unsupported Request Error Status in function7, if \
5497 set, generate pcie_err_attn output when this error is seen. WC */
5498#define PXPCS_TL_FUNC678_STAT_ERR_ECRC7\
5499 (1 << 27) /* ECRC Error TLP Status Status in function 7, if set, \
5500 generate pcie_err_attn output when this error is seen.. WC */
5501#define PXPCS_TL_FUNC678_STAT_ERR_MALF_TLP7\
5502 (1 << 26) /* Malformed TLP Status Status in function 7, if set, \
5503 generate pcie_err_attn output when this error is seen.. WC */
5504#define PXPCS_TL_FUNC678_STAT_ERR_RX_OFLOW7\
5505 (1 << 25) /* Receiver Overflow Status Status in function 7, if \
5506 set, generate pcie_err_attn output when this error is seen.. WC \
5507 */
5508#define PXPCS_TL_FUNC678_STAT_ERR_UNEXP_CPL7\
5509 (1 << 24) /* Unexpected Completion Status Status in function 7, \
5510 if set, generate pcie_err_attn output when this error is seen. WC \
5511 */
5512#define PXPCS_TL_FUNC678_STAT_ERR_MASTER_ABRT7\
5513 (1 << 23) /* Receive UR Statusin function 7. If set, generate \
5514 pcie_err_attn output when this error is seen. WC */
5515#define PXPCS_TL_FUNC678_STAT_ERR_CPL_TIMEOUT7\
5516 (1 << 22) /* Completer Timeout Status Status in function 7, if \
5517 set, generate pcie_err_attn output when this error is seen. WC */
5518#define PXPCS_TL_FUNC678_STAT_ERR_FC_PRTL7\
5519 (1 << 21) /* Flow Control Protocol Error Status Status in \
5520 function 7, if set, generate pcie_err_attn output when this error \
5521 is seen. WC */
5522#define PXPCS_TL_FUNC678_STAT_ERR_PSND_TLP7\
5523 (1 << 20) /* Poisoned Error Status Status in function 7, if set, \
5524 generate pcie_err_attn output when this error is seen.. WC */
5525#define PXPCS_TL_FUNC678_STAT_PRI_SIG_TARGET_ABORT6 (1 << 19) /* WC */
5526#define PXPCS_TL_FUNC678_STAT_ERR_UNSPPORT6\
5527 (1 << 18) /* Unsupported Request Error Status in function6, if \
5528 set, generate pcie_err_attn output when this error is seen. WC */
5529#define PXPCS_TL_FUNC678_STAT_ERR_ECRC6\
5530 (1 << 17) /* ECRC Error TLP Status Status in function 6, if set, \
5531 generate pcie_err_attn output when this error is seen.. WC */
5532#define PXPCS_TL_FUNC678_STAT_ERR_MALF_TLP6\
5533 (1 << 16) /* Malformed TLP Status Status in function 6, if set, \
5534 generate pcie_err_attn output when this error is seen.. WC */
5535#define PXPCS_TL_FUNC678_STAT_ERR_RX_OFLOW6\
5536 (1 << 15) /* Receiver Overflow Status Status in function 6, if \
5537 set, generate pcie_err_attn output when this error is seen.. WC \
5538 */
5539#define PXPCS_TL_FUNC678_STAT_ERR_UNEXP_CPL6\
5540 (1 << 14) /* Unexpected Completion Status Status in function 6, \
5541 if set, generate pcie_err_attn output when this error is seen. WC \
5542 */
5543#define PXPCS_TL_FUNC678_STAT_ERR_MASTER_ABRT6\
5544 (1 << 13) /* Receive UR Statusin function 6. If set, generate \
5545 pcie_err_attn output when this error is seen. WC */
5546#define PXPCS_TL_FUNC678_STAT_ERR_CPL_TIMEOUT6\
5547 (1 << 12) /* Completer Timeout Status Status in function 6, if \
5548 set, generate pcie_err_attn output when this error is seen. WC */
5549#define PXPCS_TL_FUNC678_STAT_ERR_FC_PRTL6\
5550 (1 << 11) /* Flow Control Protocol Error Status Status in \
5551 function 6, if set, generate pcie_err_attn output when this error \
5552 is seen. WC */
5553#define PXPCS_TL_FUNC678_STAT_ERR_PSND_TLP6\
5554 (1 << 10) /* Poisoned Error Status Status in function 6, if set, \
5555 generate pcie_err_attn output when this error is seen.. WC */
5556#define PXPCS_TL_FUNC678_STAT_PRI_SIG_TARGET_ABORT5 (1 << 9) /* WC */
5557#define PXPCS_TL_FUNC678_STAT_ERR_UNSPPORT5\
5558 (1 << 8) /* Unsupported Request Error Status for Function 5, if \
5559 set, generate pcie_err_attn output when this error is seen. WC */
5560#define PXPCS_TL_FUNC678_STAT_ERR_ECRC5\
5561 (1 << 7) /* ECRC Error TLP Status Status for Function 5, if set, \
5562 generate pcie_err_attn output when this error is seen.. WC */
5563#define PXPCS_TL_FUNC678_STAT_ERR_MALF_TLP5\
5564 (1 << 6) /* Malformed TLP Status Status for Function 5, if set, \
5565 generate pcie_err_attn output when this error is seen.. WC */
5566#define PXPCS_TL_FUNC678_STAT_ERR_RX_OFLOW5\
5567 (1 << 5) /* Receiver Overflow Status Status for Function 5, if \
5568 set, generate pcie_err_attn output when this error is seen.. WC \
5569 */
5570#define PXPCS_TL_FUNC678_STAT_ERR_UNEXP_CPL5\
5571 (1 << 4) /* Unexpected Completion Status Status for Function 5, \
5572 if set, generate pcie_err_attn output when this error is seen. WC \
5573 */
5574#define PXPCS_TL_FUNC678_STAT_ERR_MASTER_ABRT5\
5575 (1 << 3) /* Receive UR Statusfor Function 5. If set, generate \
5576 pcie_err_attn output when this error is seen. WC */
5577#define PXPCS_TL_FUNC678_STAT_ERR_CPL_TIMEOUT5\
5578 (1 << 2) /* Completer Timeout Status Status for Function 5, if \
5579 set, generate pcie_err_attn output when this error is seen. WC */
5580#define PXPCS_TL_FUNC678_STAT_ERR_FC_PRTL5\
5581 (1 << 1) /* Flow Control Protocol Error Status Status for \
5582 Function 5, if set, generate pcie_err_attn output when this error \
5583 is seen. WC */
5584#define PXPCS_TL_FUNC678_STAT_ERR_PSND_TLP5\
5585 (1 << 0) /* Poisoned Error Status Status for Function 5, if set, \
5586 generate pcie_err_attn output when this error is seen.. WC */
5587
5588
5589#define BAR_USTRORM_INTMEM 0x400000
5590#define BAR_CSTRORM_INTMEM 0x410000
5591#define BAR_XSTRORM_INTMEM 0x420000
5592#define BAR_TSTRORM_INTMEM 0x430000
5593
5594/* for accessing the IGU in case of status block ACK */
5595#define BAR_IGU_INTMEM 0x440000
5596
5597#define BAR_DOORBELL_OFFSET 0x800000
5598
5599#define BAR_ME_REGISTER 0x450000
5600#define ME_REG_PF_NUM_SHIFT 0
5601#define ME_REG_PF_NUM\
5602 (7L<<ME_REG_PF_NUM_SHIFT) /* Relative PF Num */
5603#define ME_REG_VF_VALID (1<<8)
5604#define ME_REG_VF_NUM_SHIFT 9
5605#define ME_REG_VF_NUM_MASK (0x3f<<ME_REG_VF_NUM_SHIFT)
5606#define ME_REG_VF_ERR (0x1<<3)
5607#define ME_REG_ABS_PF_NUM_SHIFT 16
5608#define ME_REG_ABS_PF_NUM\
5609 (7L<<ME_REG_ABS_PF_NUM_SHIFT) /* Absolute PF Num */
5610
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005611
Yaniv Rosner7846e472009-11-05 19:18:07 +02005612#define MDIO_REG_BANK_CL73_IEEEB0 0x0
5613#define MDIO_CL73_IEEEB0_CL73_AN_CONTROL 0x0
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005614#define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_RESTART_AN 0x0200
5615#define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_AN_EN 0x1000
5616#define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_MAIN_RST 0x8000
5617
Yaniv Rosner7846e472009-11-05 19:18:07 +02005618#define MDIO_REG_BANK_CL73_IEEEB1 0x10
5619#define MDIO_CL73_IEEEB1_AN_ADV1 0x00
5620#define MDIO_CL73_IEEEB1_AN_ADV1_PAUSE 0x0400
5621#define MDIO_CL73_IEEEB1_AN_ADV1_ASYMMETRIC 0x0800
5622#define MDIO_CL73_IEEEB1_AN_ADV1_PAUSE_BOTH 0x0C00
5623#define MDIO_CL73_IEEEB1_AN_ADV1_PAUSE_MASK 0x0C00
5624#define MDIO_CL73_IEEEB1_AN_ADV2 0x01
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005625#define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_1000M 0x0000
5626#define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_1000M_KX 0x0020
5627#define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_10G_KX4 0x0040
5628#define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_10G_KR 0x0080
Yaniv Rosner7846e472009-11-05 19:18:07 +02005629#define MDIO_CL73_IEEEB1_AN_LP_ADV1 0x03
5630#define MDIO_CL73_IEEEB1_AN_LP_ADV1_PAUSE 0x0400
5631#define MDIO_CL73_IEEEB1_AN_LP_ADV1_ASYMMETRIC 0x0800
5632#define MDIO_CL73_IEEEB1_AN_LP_ADV1_PAUSE_BOTH 0x0C00
5633#define MDIO_CL73_IEEEB1_AN_LP_ADV1_PAUSE_MASK 0x0C00
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005634
5635#define MDIO_REG_BANK_RX0 0x80b0
Eilon Greenstein239d6862009-08-12 08:23:04 +00005636#define MDIO_RX0_RX_STATUS 0x10
5637#define MDIO_RX0_RX_STATUS_SIGDET 0x8000
5638#define MDIO_RX0_RX_STATUS_RX_SEQ_DONE 0x1000
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005639#define MDIO_RX0_RX_EQ_BOOST 0x1c
5640#define MDIO_RX0_RX_EQ_BOOST_EQUALIZER_CTRL_MASK 0x7
5641#define MDIO_RX0_RX_EQ_BOOST_OFFSET_CTRL 0x10
5642
5643#define MDIO_REG_BANK_RX1 0x80c0
5644#define MDIO_RX1_RX_EQ_BOOST 0x1c
5645#define MDIO_RX1_RX_EQ_BOOST_EQUALIZER_CTRL_MASK 0x7
5646#define MDIO_RX1_RX_EQ_BOOST_OFFSET_CTRL 0x10
5647
5648#define MDIO_REG_BANK_RX2 0x80d0
5649#define MDIO_RX2_RX_EQ_BOOST 0x1c
5650#define MDIO_RX2_RX_EQ_BOOST_EQUALIZER_CTRL_MASK 0x7
5651#define MDIO_RX2_RX_EQ_BOOST_OFFSET_CTRL 0x10
5652
5653#define MDIO_REG_BANK_RX3 0x80e0
5654#define MDIO_RX3_RX_EQ_BOOST 0x1c
5655#define MDIO_RX3_RX_EQ_BOOST_EQUALIZER_CTRL_MASK 0x7
5656#define MDIO_RX3_RX_EQ_BOOST_OFFSET_CTRL 0x10
5657
5658#define MDIO_REG_BANK_RX_ALL 0x80f0
5659#define MDIO_RX_ALL_RX_EQ_BOOST 0x1c
5660#define MDIO_RX_ALL_RX_EQ_BOOST_EQUALIZER_CTRL_MASK 0x7
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005661#define MDIO_RX_ALL_RX_EQ_BOOST_OFFSET_CTRL 0x10
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005662
5663#define MDIO_REG_BANK_TX0 0x8060
5664#define MDIO_TX0_TX_DRIVER 0x17
5665#define MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK 0xf000
5666#define MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT 12
5667#define MDIO_TX0_TX_DRIVER_IDRIVER_MASK 0x0f00
5668#define MDIO_TX0_TX_DRIVER_IDRIVER_SHIFT 8
5669#define MDIO_TX0_TX_DRIVER_IPREDRIVER_MASK 0x00f0
5670#define MDIO_TX0_TX_DRIVER_IPREDRIVER_SHIFT 4
5671#define MDIO_TX0_TX_DRIVER_IFULLSPD_MASK 0x000e
5672#define MDIO_TX0_TX_DRIVER_IFULLSPD_SHIFT 1
5673#define MDIO_TX0_TX_DRIVER_ICBUF1T 1
5674
Eilon Greensteinc2c8b032009-02-12 08:37:14 +00005675#define MDIO_REG_BANK_TX1 0x8070
5676#define MDIO_TX1_TX_DRIVER 0x17
5677#define MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK 0xf000
5678#define MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT 12
5679#define MDIO_TX0_TX_DRIVER_IDRIVER_MASK 0x0f00
5680#define MDIO_TX0_TX_DRIVER_IDRIVER_SHIFT 8
5681#define MDIO_TX0_TX_DRIVER_IPREDRIVER_MASK 0x00f0
5682#define MDIO_TX0_TX_DRIVER_IPREDRIVER_SHIFT 4
5683#define MDIO_TX0_TX_DRIVER_IFULLSPD_MASK 0x000e
5684#define MDIO_TX0_TX_DRIVER_IFULLSPD_SHIFT 1
5685#define MDIO_TX0_TX_DRIVER_ICBUF1T 1
5686
5687#define MDIO_REG_BANK_TX2 0x8080
5688#define MDIO_TX2_TX_DRIVER 0x17
5689#define MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK 0xf000
5690#define MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT 12
5691#define MDIO_TX0_TX_DRIVER_IDRIVER_MASK 0x0f00
5692#define MDIO_TX0_TX_DRIVER_IDRIVER_SHIFT 8
5693#define MDIO_TX0_TX_DRIVER_IPREDRIVER_MASK 0x00f0
5694#define MDIO_TX0_TX_DRIVER_IPREDRIVER_SHIFT 4
5695#define MDIO_TX0_TX_DRIVER_IFULLSPD_MASK 0x000e
5696#define MDIO_TX0_TX_DRIVER_IFULLSPD_SHIFT 1
5697#define MDIO_TX0_TX_DRIVER_ICBUF1T 1
5698
5699#define MDIO_REG_BANK_TX3 0x8090
5700#define MDIO_TX3_TX_DRIVER 0x17
5701#define MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK 0xf000
5702#define MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT 12
5703#define MDIO_TX0_TX_DRIVER_IDRIVER_MASK 0x0f00
5704#define MDIO_TX0_TX_DRIVER_IDRIVER_SHIFT 8
5705#define MDIO_TX0_TX_DRIVER_IPREDRIVER_MASK 0x00f0
5706#define MDIO_TX0_TX_DRIVER_IPREDRIVER_SHIFT 4
5707#define MDIO_TX0_TX_DRIVER_IFULLSPD_MASK 0x000e
5708#define MDIO_TX0_TX_DRIVER_IFULLSPD_SHIFT 1
5709#define MDIO_TX0_TX_DRIVER_ICBUF1T 1
5710
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005711#define MDIO_REG_BANK_XGXS_BLOCK0 0x8000
5712#define MDIO_BLOCK0_XGXS_CONTROL 0x10
5713
5714#define MDIO_REG_BANK_XGXS_BLOCK1 0x8010
5715#define MDIO_BLOCK1_LANE_CTRL0 0x15
5716#define MDIO_BLOCK1_LANE_CTRL1 0x16
5717#define MDIO_BLOCK1_LANE_CTRL2 0x17
5718#define MDIO_BLOCK1_LANE_PRBS 0x19
5719
5720#define MDIO_REG_BANK_XGXS_BLOCK2 0x8100
5721#define MDIO_XGXS_BLOCK2_RX_LN_SWAP 0x10
5722#define MDIO_XGXS_BLOCK2_RX_LN_SWAP_ENABLE 0x8000
5723#define MDIO_XGXS_BLOCK2_RX_LN_SWAP_FORCE_ENABLE 0x4000
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005724#define MDIO_XGXS_BLOCK2_TX_LN_SWAP 0x11
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005725#define MDIO_XGXS_BLOCK2_TX_LN_SWAP_ENABLE 0x8000
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005726#define MDIO_XGXS_BLOCK2_UNICORE_MODE_10G 0x14
Eliezer Tamirf1410642008-02-28 11:51:50 -08005727#define MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_CX4_XGXS 0x0001
5728#define MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_HIGIG_XGXS 0x0010
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005729#define MDIO_XGXS_BLOCK2_TEST_MODE_LANE 0x15
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005730
5731#define MDIO_REG_BANK_GP_STATUS 0x8120
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005732#define MDIO_GP_STATUS_TOP_AN_STATUS1 0x1B
5733#define MDIO_GP_STATUS_TOP_AN_STATUS1_CL73_AUTONEG_COMPLETE 0x0001
5734#define MDIO_GP_STATUS_TOP_AN_STATUS1_CL37_AUTONEG_COMPLETE 0x0002
5735#define MDIO_GP_STATUS_TOP_AN_STATUS1_LINK_STATUS 0x0004
5736#define MDIO_GP_STATUS_TOP_AN_STATUS1_DUPLEX_STATUS 0x0008
5737#define MDIO_GP_STATUS_TOP_AN_STATUS1_CL73_MR_LP_NP_AN_ABLE 0x0010
5738#define MDIO_GP_STATUS_TOP_AN_STATUS1_CL73_LP_NP_BAM_ABLE 0x0020
5739#define MDIO_GP_STATUS_TOP_AN_STATUS1_PAUSE_RSOLUTION_TXSIDE 0x0040
5740#define MDIO_GP_STATUS_TOP_AN_STATUS1_PAUSE_RSOLUTION_RXSIDE 0x0080
5741#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_MASK 0x3f00
5742#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10M 0x0000
5743#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_100M 0x0100
5744#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_1G 0x0200
5745#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_2_5G 0x0300
5746#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_5G 0x0400
5747#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_6G 0x0500
5748#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10G_HIG 0x0600
5749#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10G_CX4 0x0700
5750#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_12G_HIG 0x0800
5751#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_12_5G 0x0900
5752#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_13G 0x0A00
5753#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_15G 0x0B00
5754#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_16G 0x0C00
5755#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_1G_KX 0x0D00
5756#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10G_KX4 0x0E00
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005757
5758
5759#define MDIO_REG_BANK_10G_PARALLEL_DETECT 0x8130
Yaniv Rosner15ddd2d2009-11-05 19:18:12 +02005760#define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_STATUS 0x10
5761#define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_STATUS_PD_LINK 0x8000
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005762#define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL 0x11
5763#define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL_PARDET10G_EN 0x1
5764#define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK 0x13
5765#define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK_CNT (0xb71<<1)
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005766
5767#define MDIO_REG_BANK_SERDES_DIGITAL 0x8300
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005768#define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1 0x10
5769#define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_FIBER_MODE 0x0001
5770#define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_TBI_IF 0x0002
5771#define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_SIGNAL_DETECT_EN 0x0004
5772#define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_INVERT_SIGNAL_DETECT 0x0008
5773#define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_AUTODET 0x0010
5774#define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_MSTR_MODE 0x0020
5775#define MDIO_SERDES_DIGITAL_A_1000X_CONTROL2 0x11
5776#define MDIO_SERDES_DIGITAL_A_1000X_CONTROL2_PRL_DT_EN 0x0001
5777#define MDIO_SERDES_DIGITAL_A_1000X_CONTROL2_AN_FST_TMR 0x0040
5778#define MDIO_SERDES_DIGITAL_A_1000X_STATUS1 0x14
Yaniv Rosnera22f0782010-09-07 11:41:20 +00005779#define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SGMII 0x0001
5780#define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_LINK 0x0002
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005781#define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_DUPLEX 0x0004
5782#define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_MASK 0x0018
5783#define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_SHIFT 3
5784#define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_2_5G 0x0018
5785#define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_1G 0x0010
5786#define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_100M 0x0008
5787#define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_10M 0x0000
Yaniv Rosner15ddd2d2009-11-05 19:18:12 +02005788#define MDIO_SERDES_DIGITAL_A_1000X_STATUS2 0x15
5789#define MDIO_SERDES_DIGITAL_A_1000X_STATUS2_AN_DISABLED 0x0002
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005790#define MDIO_SERDES_DIGITAL_MISC1 0x18
5791#define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_MASK 0xE000
5792#define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_25M 0x0000
5793#define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_100M 0x2000
5794#define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_125M 0x4000
5795#define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_156_25M 0x6000
5796#define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_187_5M 0x8000
5797#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_SEL 0x0010
5798#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_MASK 0x000f
5799#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_2_5G 0x0000
5800#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_5G 0x0001
5801#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_6G 0x0002
5802#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_10G_HIG 0x0003
5803#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_10G_CX4 0x0004
5804#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_12G 0x0005
5805#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_12_5G 0x0006
5806#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_13G 0x0007
5807#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_15G 0x0008
5808#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_16G 0x0009
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005809
5810#define MDIO_REG_BANK_OVER_1G 0x8320
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005811#define MDIO_OVER_1G_DIGCTL_3_4 0x14
5812#define MDIO_OVER_1G_DIGCTL_3_4_MP_ID_MASK 0xffe0
5813#define MDIO_OVER_1G_DIGCTL_3_4_MP_ID_SHIFT 5
5814#define MDIO_OVER_1G_UP1 0x19
5815#define MDIO_OVER_1G_UP1_2_5G 0x0001
5816#define MDIO_OVER_1G_UP1_5G 0x0002
5817#define MDIO_OVER_1G_UP1_6G 0x0004
5818#define MDIO_OVER_1G_UP1_10G 0x0010
5819#define MDIO_OVER_1G_UP1_10GH 0x0008
5820#define MDIO_OVER_1G_UP1_12G 0x0020
5821#define MDIO_OVER_1G_UP1_12_5G 0x0040
5822#define MDIO_OVER_1G_UP1_13G 0x0080
5823#define MDIO_OVER_1G_UP1_15G 0x0100
5824#define MDIO_OVER_1G_UP1_16G 0x0200
5825#define MDIO_OVER_1G_UP2 0x1A
5826#define MDIO_OVER_1G_UP2_IPREDRIVER_MASK 0x0007
5827#define MDIO_OVER_1G_UP2_IDRIVER_MASK 0x0038
5828#define MDIO_OVER_1G_UP2_PREEMPHASIS_MASK 0x03C0
5829#define MDIO_OVER_1G_UP3 0x1B
5830#define MDIO_OVER_1G_UP3_HIGIG2 0x0001
5831#define MDIO_OVER_1G_LP_UP1 0x1C
5832#define MDIO_OVER_1G_LP_UP2 0x1D
5833#define MDIO_OVER_1G_LP_UP2_MR_ADV_OVER_1G_MASK 0x03ff
5834#define MDIO_OVER_1G_LP_UP2_PREEMPHASIS_MASK 0x0780
5835#define MDIO_OVER_1G_LP_UP2_PREEMPHASIS_SHIFT 7
5836#define MDIO_OVER_1G_LP_UP3 0x1E
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005837
Eilon Greenstein239d6862009-08-12 08:23:04 +00005838#define MDIO_REG_BANK_REMOTE_PHY 0x8330
5839#define MDIO_REMOTE_PHY_MISC_RX_STATUS 0x10
5840#define MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_OVER1G_MSG 0x0010
5841#define MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_BRCM_OUI_MSG 0x0600
5842
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005843#define MDIO_REG_BANK_BAM_NEXT_PAGE 0x8350
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005844#define MDIO_BAM_NEXT_PAGE_MP5_NEXT_PAGE_CTRL 0x10
5845#define MDIO_BAM_NEXT_PAGE_MP5_NEXT_PAGE_CTRL_BAM_MODE 0x0001
5846#define MDIO_BAM_NEXT_PAGE_MP5_NEXT_PAGE_CTRL_TETON_AN 0x0002
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005847
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005848#define MDIO_REG_BANK_CL73_USERB0 0x8370
Eilon Greenstein239d6862009-08-12 08:23:04 +00005849#define MDIO_CL73_USERB0_CL73_UCTRL 0x10
5850#define MDIO_CL73_USERB0_CL73_UCTRL_USTAT1_MUXSEL 0x0002
5851#define MDIO_CL73_USERB0_CL73_USTAT1 0x11
5852#define MDIO_CL73_USERB0_CL73_USTAT1_LINK_STATUS_CHECK 0x0100
5853#define MDIO_CL73_USERB0_CL73_USTAT1_AN_GOOD_CHECK_BAM37 0x0400
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005854#define MDIO_CL73_USERB0_CL73_BAM_CTRL1 0x12
5855#define MDIO_CL73_USERB0_CL73_BAM_CTRL1_BAM_EN 0x8000
5856#define MDIO_CL73_USERB0_CL73_BAM_CTRL1_BAM_STATION_MNGR_EN 0x4000
5857#define MDIO_CL73_USERB0_CL73_BAM_CTRL1_BAM_NP_AFTER_BP_EN 0x2000
5858#define MDIO_CL73_USERB0_CL73_BAM_CTRL3 0x14
5859#define MDIO_CL73_USERB0_CL73_BAM_CTRL3_USE_CL73_HCD_MR 0x0001
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005860
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005861#define MDIO_REG_BANK_AER_BLOCK 0xFFD0
5862#define MDIO_AER_BLOCK_AER_REG 0x1E
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005863
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005864#define MDIO_REG_BANK_COMBO_IEEE0 0xFFE0
5865#define MDIO_COMBO_IEEE0_MII_CONTROL 0x10
5866#define MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_MASK 0x2040
5867#define MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_10 0x0000
5868#define MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_100 0x2000
5869#define MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_1000 0x0040
5870#define MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX 0x0100
5871#define MDIO_COMBO_IEEO_MII_CONTROL_RESTART_AN 0x0200
5872#define MDIO_COMBO_IEEO_MII_CONTROL_AN_EN 0x1000
5873#define MDIO_COMBO_IEEO_MII_CONTROL_LOOPBACK 0x4000
5874#define MDIO_COMBO_IEEO_MII_CONTROL_RESET 0x8000
5875#define MDIO_COMBO_IEEE0_MII_STATUS 0x11
5876#define MDIO_COMBO_IEEE0_MII_STATUS_LINK_PASS 0x0004
5877#define MDIO_COMBO_IEEE0_MII_STATUS_AUTONEG_COMPLETE 0x0020
5878#define MDIO_COMBO_IEEE0_AUTO_NEG_ADV 0x14
5879#define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_FULL_DUPLEX 0x0020
5880#define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_HALF_DUPLEX 0x0040
5881#define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK 0x0180
5882#define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_NONE 0x0000
5883#define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_SYMMETRIC 0x0080
5884#define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_ASYMMETRIC 0x0100
5885#define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH 0x0180
5886#define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_NEXT_PAGE 0x8000
5887#define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1 0x15
5888#define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_NEXT_PAGE 0x8000
5889#define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_ACK 0x4000
5890#define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_PAUSE_MASK 0x0180
5891#define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_PAUSE_NONE 0x0000
5892#define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_PAUSE_BOTH 0x0180
5893#define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_HALF_DUP_CAP 0x0040
5894#define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_FULL_DUP_CAP 0x0020
5895/*WhenthelinkpartnerisinSGMIImode(bit0=1),then
5896bit15=link,bit12=duplex,bits11:10=speed,bit14=acknowledge.
5897Theotherbitsarereservedandshouldbezero*/
5898#define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_SGMII_MODE 0x0001
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005899
5900
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005901#define MDIO_PMA_DEVAD 0x1
5902/*ieee*/
5903#define MDIO_PMA_REG_CTRL 0x0
5904#define MDIO_PMA_REG_STATUS 0x1
5905#define MDIO_PMA_REG_10G_CTRL2 0x7
5906#define MDIO_PMA_REG_RX_SD 0xa
5907/*bcm*/
5908#define MDIO_PMA_REG_BCM_CTRL 0x0096
5909#define MDIO_PMA_REG_FEC_CTRL 0x00ab
5910#define MDIO_PMA_REG_RX_ALARM_CTRL 0x9000
5911#define MDIO_PMA_REG_LASI_CTRL 0x9002
5912#define MDIO_PMA_REG_RX_ALARM 0x9003
5913#define MDIO_PMA_REG_TX_ALARM 0x9004
5914#define MDIO_PMA_REG_LASI_STATUS 0x9005
5915#define MDIO_PMA_REG_PHY_IDENTIFIER 0xc800
5916#define MDIO_PMA_REG_DIGITAL_CTRL 0xc808
5917#define MDIO_PMA_REG_DIGITAL_STATUS 0xc809
5918#define MDIO_PMA_REG_TX_POWER_DOWN 0xca02
5919#define MDIO_PMA_REG_CMU_PLL_BYPASS 0xca09
5920#define MDIO_PMA_REG_MISC_CTRL 0xca0a
5921#define MDIO_PMA_REG_GEN_CTRL 0xca10
5922#define MDIO_PMA_REG_GEN_CTRL_ROM_RESET_INTERNAL_MP 0x0188
5923#define MDIO_PMA_REG_GEN_CTRL_ROM_MICRO_RESET 0x018a
Yaniv Rosner57963ed2008-08-13 15:55:28 -07005924#define MDIO_PMA_REG_M8051_MSGIN_REG 0xca12
5925#define MDIO_PMA_REG_M8051_MSGOUT_REG 0xca13
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005926#define MDIO_PMA_REG_ROM_VER1 0xca19
5927#define MDIO_PMA_REG_ROM_VER2 0xca1a
5928#define MDIO_PMA_REG_EDC_FFE_MAIN 0xca1b
5929#define MDIO_PMA_REG_PLL_BANDWIDTH 0xca1d
Eilon Greenstein4d295db2009-07-21 05:47:47 +00005930#define MDIO_PMA_REG_PLL_CTRL 0xca1e
Eilon Greenstein589abe32009-02-12 08:36:55 +00005931#define MDIO_PMA_REG_MISC_CTRL0 0xca23
5932#define MDIO_PMA_REG_LRM_MODE 0xca3f
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005933#define MDIO_PMA_REG_CDR_BANDWIDTH 0xca46
5934#define MDIO_PMA_REG_MISC_CTRL1 0xca85
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02005935
Eilon Greenstein4d295db2009-07-21 05:47:47 +00005936#define MDIO_PMA_REG_SFP_TWO_WIRE_CTRL 0x8000
5937#define MDIO_PMA_REG_SFP_TWO_WIRE_CTRL_STATUS_MASK 0x000c
5938#define MDIO_PMA_REG_SFP_TWO_WIRE_STATUS_IDLE 0x0000
5939#define MDIO_PMA_REG_SFP_TWO_WIRE_STATUS_COMPLETE 0x0004
5940#define MDIO_PMA_REG_SFP_TWO_WIRE_STATUS_IN_PROGRESS 0x0008
5941#define MDIO_PMA_REG_SFP_TWO_WIRE_STATUS_FAILED 0x000c
5942#define MDIO_PMA_REG_SFP_TWO_WIRE_BYTE_CNT 0x8002
5943#define MDIO_PMA_REG_SFP_TWO_WIRE_MEM_ADDR 0x8003
Eilon Greenstein589abe32009-02-12 08:36:55 +00005944#define MDIO_PMA_REG_8726_TWO_WIRE_DATA_BUF 0xc820
5945#define MDIO_PMA_REG_8726_TWO_WIRE_DATA_MASK 0xff
5946#define MDIO_PMA_REG_8726_TX_CTRL1 0xca01
5947#define MDIO_PMA_REG_8726_TX_CTRL2 0xca05
5948
Eilon Greenstein4d295db2009-07-21 05:47:47 +00005949#define MDIO_PMA_REG_8727_TWO_WIRE_SLAVE_ADDR 0x8005
5950#define MDIO_PMA_REG_8727_TWO_WIRE_DATA_BUF 0x8007
5951#define MDIO_PMA_REG_8727_TWO_WIRE_DATA_MASK 0xff
Eilon Greenstein4d295db2009-07-21 05:47:47 +00005952#define MDIO_PMA_REG_8727_TX_CTRL1 0xca02
5953#define MDIO_PMA_REG_8727_TX_CTRL2 0xca05
5954#define MDIO_PMA_REG_8727_PCS_OPT_CTRL 0xc808
5955#define MDIO_PMA_REG_8727_GPIO_CTRL 0xc80e
Yaniv Rosnere10bc842010-09-07 11:40:50 +00005956#define MDIO_PMA_REG_8727_PCS_GP 0xc842
5957
5958#define MDIO_AN_REG_8727_MISC_CTRL 0x8309
Eilon Greenstein589abe32009-02-12 08:36:55 +00005959
Eilon Greenstein052a38e2009-02-12 08:37:16 +00005960#define MDIO_PMA_REG_8073_CHIP_REV 0xc801
5961#define MDIO_PMA_REG_8073_SPEED_LINK_STATUS 0xc820
5962#define MDIO_PMA_REG_8073_XAUI_WA 0xc841
Yaniv Rosnere10bc842010-09-07 11:40:50 +00005963#define MDIO_PMA_REG_8073_OPT_DIGITAL_CTRL 0xcd08
Eilon Greenstein052a38e2009-02-12 08:37:16 +00005964
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005965#define MDIO_PMA_REG_7101_RESET 0xc000
5966#define MDIO_PMA_REG_7107_LED_CNTL 0xc007
Yaniv Rosnere10bc842010-09-07 11:40:50 +00005967#define MDIO_PMA_REG_7107_LINK_LED_CNTL 0xc009
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005968#define MDIO_PMA_REG_7101_VER1 0xc026
5969#define MDIO_PMA_REG_7101_VER2 0xc027
Eliezer Tamirf1410642008-02-28 11:51:50 -08005970
Yaniv Rosner7f02c4a2010-09-07 11:41:23 +00005971#define MDIO_PMA_REG_8481_PMD_SIGNAL 0xa811
5972#define MDIO_PMA_REG_8481_LED1_MASK 0xa82c
5973#define MDIO_PMA_REG_8481_LED2_MASK 0xa82f
5974#define MDIO_PMA_REG_8481_LED3_MASK 0xa832
5975#define MDIO_PMA_REG_8481_LED3_BLINK 0xa834
5976#define MDIO_PMA_REG_8481_LED5_MASK 0xa838
5977#define MDIO_PMA_REG_8481_SIGNAL_MASK 0xa835
5978#define MDIO_PMA_REG_8481_LINK_SIGNAL 0xa83b
5979#define MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_MASK 0x800
5980#define MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_SHIFT 11
Eilon Greenstein2f904462009-08-12 08:22:16 +00005981
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07005982
5983#define MDIO_WIS_DEVAD 0x2
5984/*bcm*/
5985#define MDIO_WIS_REG_LASI_CNTL 0x9002
5986#define MDIO_WIS_REG_LASI_STATUS 0x9005
5987
5988#define MDIO_PCS_DEVAD 0x3
5989#define MDIO_PCS_REG_STATUS 0x0020
5990#define MDIO_PCS_REG_LASI_STATUS 0x9005
5991#define MDIO_PCS_REG_7101_DSP_ACCESS 0xD000
5992#define MDIO_PCS_REG_7101_SPI_MUX 0xD008
5993#define MDIO_PCS_REG_7101_SPI_CTRL_ADDR 0xE12A
5994#define MDIO_PCS_REG_7101_SPI_RESET_BIT (5)
5995#define MDIO_PCS_REG_7101_SPI_FIFO_ADDR 0xE02A
5996#define MDIO_PCS_REG_7101_SPI_FIFO_ADDR_WRITE_ENABLE_CMD (6)
5997#define MDIO_PCS_REG_7101_SPI_FIFO_ADDR_BULK_ERASE_CMD (0xC7)
5998#define MDIO_PCS_REG_7101_SPI_FIFO_ADDR_PAGE_PROGRAM_CMD (2)
5999#define MDIO_PCS_REG_7101_SPI_BYTES_TO_TRANSFER_ADDR 0xE028
6000
6001
6002#define MDIO_XS_DEVAD 0x4
6003#define MDIO_XS_PLL_SEQUENCER 0x8000
6004#define MDIO_XS_SFX7101_XGXS_TEST1 0xc00a
6005
Eilon Greenstein589abe32009-02-12 08:36:55 +00006006#define MDIO_XS_8706_REG_BANK_RX0 0x80bc
6007#define MDIO_XS_8706_REG_BANK_RX1 0x80cc
6008#define MDIO_XS_8706_REG_BANK_RX2 0x80dc
6009#define MDIO_XS_8706_REG_BANK_RX3 0x80ec
6010#define MDIO_XS_8706_REG_BANK_RXA 0x80fc
6011
Yaniv Rosnera22f0782010-09-07 11:41:20 +00006012#define MDIO_XS_REG_8073_RX_CTRL_PCIE 0x80FA
6013
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07006014#define MDIO_AN_DEVAD 0x7
6015/*ieee*/
6016#define MDIO_AN_REG_CTRL 0x0000
6017#define MDIO_AN_REG_STATUS 0x0001
6018#define MDIO_AN_REG_STATUS_AN_COMPLETE 0x0020
6019#define MDIO_AN_REG_ADV_PAUSE 0x0010
6020#define MDIO_AN_REG_ADV_PAUSE_PAUSE 0x0400
6021#define MDIO_AN_REG_ADV_PAUSE_ASYMMETRIC 0x0800
6022#define MDIO_AN_REG_ADV_PAUSE_BOTH 0x0C00
6023#define MDIO_AN_REG_ADV_PAUSE_MASK 0x0C00
6024#define MDIO_AN_REG_ADV 0x0011
6025#define MDIO_AN_REG_ADV2 0x0012
6026#define MDIO_AN_REG_LP_AUTO_NEG 0x0013
6027#define MDIO_AN_REG_MASTER_STATUS 0x0021
6028/*bcm*/
6029#define MDIO_AN_REG_LINK_STATUS 0x8304
6030#define MDIO_AN_REG_CL37_CL73 0x8370
6031#define MDIO_AN_REG_CL37_AN 0xffe0
Yaniv Rosner8c99e7b2008-08-13 15:56:17 -07006032#define MDIO_AN_REG_CL37_FC_LD 0xffe4
6033#define MDIO_AN_REG_CL37_FC_LP 0xffe5
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07006034
Eilon Greenstein052a38e2009-02-12 08:37:16 +00006035#define MDIO_AN_REG_8073_2_5G 0x8329
Yaniv Rosnere10bc842010-09-07 11:40:50 +00006036#define MDIO_AN_REG_8073_BAM 0x8350
Eilon Greenstein052a38e2009-02-12 08:37:16 +00006037
Yaniv Rosnerac4d9442010-09-01 09:51:25 +00006038#define MDIO_AN_REG_8481_10GBASE_T_AN_CTRL 0x0020
Eilon Greenstein2f904462009-08-12 08:22:16 +00006039#define MDIO_AN_REG_8481_LEGACY_MII_CTRL 0xffe0
Yaniv Rosnere10bc842010-09-07 11:40:50 +00006040#define MDIO_AN_REG_8481_LEGACY_MII_STATUS 0xffe1
Eilon Greenstein2f904462009-08-12 08:22:16 +00006041#define MDIO_AN_REG_8481_LEGACY_AN_ADV 0xffe4
Yaniv Rosnere10bc842010-09-07 11:40:50 +00006042#define MDIO_AN_REG_8481_LEGACY_AN_EXPANSION 0xffe6
Eilon Greenstein2f904462009-08-12 08:22:16 +00006043#define MDIO_AN_REG_8481_1000T_CTRL 0xffe9
6044#define MDIO_AN_REG_8481_EXPANSION_REG_RD_RW 0xfff5
6045#define MDIO_AN_REG_8481_EXPANSION_REG_ACCESS 0xfff7
Yaniv Rosnerac4d9442010-09-01 09:51:25 +00006046#define MDIO_AN_REG_8481_AUX_CTRL 0xfff8
Eilon Greenstein2f904462009-08-12 08:22:16 +00006047#define MDIO_AN_REG_8481_LEGACY_SHADOW 0xfffc
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07006048
Yaniv Rosnera22f0782010-09-07 11:41:20 +00006049/* BCM84823 only */
6050#define MDIO_CTL_DEVAD 0x1e
6051#define MDIO_CTL_REG_84823_MEDIA 0x401a
6052#define MDIO_CTL_REG_84823_MEDIA_MAC_MASK 0x0018
6053 /* These pins configure the BCM84823 interface to MAC after reset. */
6054#define MDIO_CTL_REG_84823_CTRL_MAC_XFI 0x0008
6055#define MDIO_CTL_REG_84823_MEDIA_MAC_XAUI_M 0x0010
6056 /* These pins configure the BCM84823 interface to Line after reset. */
6057#define MDIO_CTL_REG_84823_MEDIA_LINE_MASK 0x0060
6058#define MDIO_CTL_REG_84823_MEDIA_LINE_XAUI_L 0x0020
6059#define MDIO_CTL_REG_84823_MEDIA_LINE_XFI 0x0040
6060 /* When this pin is active high during reset, 10GBASE-T core is power
6061 * down, When it is active low the 10GBASE-T is power up
6062 */
6063#define MDIO_CTL_REG_84823_MEDIA_COPPER_CORE_DOWN 0x0080
6064#define MDIO_CTL_REG_84823_MEDIA_PRIORITY_MASK 0x0100
6065#define MDIO_CTL_REG_84823_MEDIA_PRIORITY_COPPER 0x0000
6066#define MDIO_CTL_REG_84823_MEDIA_PRIORITY_FIBER 0x0100
6067#define MDIO_CTL_REG_84823_MEDIA_FIBER_1G 0x1000
6068
6069
Yaniv Rosnerc18487e2008-06-23 20:27:52 -07006070#define IGU_FUNC_BASE 0x0400
6071
6072#define IGU_ADDR_MSIX 0x0000
6073#define IGU_ADDR_INT_ACK 0x0200
6074#define IGU_ADDR_PROD_UPD 0x0201
6075#define IGU_ADDR_ATTN_BITS_UPD 0x0202
6076#define IGU_ADDR_ATTN_BITS_SET 0x0203
6077#define IGU_ADDR_ATTN_BITS_CLR 0x0204
6078#define IGU_ADDR_COALESCE_NOW 0x0205
6079#define IGU_ADDR_SIMD_MASK 0x0206
6080#define IGU_ADDR_SIMD_NOMASK 0x0207
6081#define IGU_ADDR_MSI_CTL 0x0210
6082#define IGU_ADDR_MSI_ADDR_LO 0x0211
6083#define IGU_ADDR_MSI_ADDR_HI 0x0212
6084#define IGU_ADDR_MSI_DATA 0x0213
6085
6086#define IGU_INT_ENABLE 0
6087#define IGU_INT_DISABLE 1
6088#define IGU_INT_NOP 2
6089#define IGU_INT_NOP2 3
6090
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00006091#define IGU_USE_REGISTER_ustorm_type_0_sb_cleanup 0
6092#define IGU_USE_REGISTER_ustorm_type_1_sb_cleanup 1
6093#define IGU_USE_REGISTER_cstorm_type_0_sb_cleanup 2
6094#define IGU_USE_REGISTER_cstorm_type_1_sb_cleanup 3
6095
Eilon Greenstein5c862842008-08-13 15:51:48 -07006096#define COMMAND_REG_INT_ACK 0x0
6097#define COMMAND_REG_PROD_UPD 0x4
6098#define COMMAND_REG_ATTN_BITS_UPD 0x8
6099#define COMMAND_REG_ATTN_BITS_SET 0xc
6100#define COMMAND_REG_ATTN_BITS_CLR 0x10
6101#define COMMAND_REG_COALESCE_NOW 0x14
6102#define COMMAND_REG_SIMD_MASK 0x18
6103#define COMMAND_REG_SIMD_NOMASK 0x1c
6104
Eliezer Tamira2fbb9e2007-11-15 20:09:02 +02006105
Eilon Greenstein573f2032009-08-12 08:24:14 +00006106#define IGU_MEM_BASE 0x0000
6107
6108#define IGU_MEM_MSIX_BASE 0x0000
6109#define IGU_MEM_MSIX_UPPER 0x007f
6110#define IGU_MEM_MSIX_RESERVED_UPPER 0x01ff
6111
6112#define IGU_MEM_PBA_MSIX_BASE 0x0200
6113#define IGU_MEM_PBA_MSIX_UPPER 0x0200
6114
6115#define IGU_CMD_BACKWARD_COMP_PROD_UPD 0x0201
6116#define IGU_MEM_PBA_MSIX_RESERVED_UPPER 0x03ff
6117
6118#define IGU_CMD_INT_ACK_BASE 0x0400
6119#define IGU_CMD_INT_ACK_UPPER\
6120 (IGU_CMD_INT_ACK_BASE + MAX_SB_PER_PORT * NUM_OF_PORTS_PER_PATH - 1)
6121#define IGU_CMD_INT_ACK_RESERVED_UPPER 0x04ff
6122
6123#define IGU_CMD_E2_PROD_UPD_BASE 0x0500
6124#define IGU_CMD_E2_PROD_UPD_UPPER\
6125 (IGU_CMD_E2_PROD_UPD_BASE + MAX_SB_PER_PORT * NUM_OF_PORTS_PER_PATH - 1)
6126#define IGU_CMD_E2_PROD_UPD_RESERVED_UPPER 0x059f
6127
6128#define IGU_CMD_ATTN_BIT_UPD_UPPER 0x05a0
6129#define IGU_CMD_ATTN_BIT_SET_UPPER 0x05a1
6130#define IGU_CMD_ATTN_BIT_CLR_UPPER 0x05a2
6131
6132#define IGU_REG_SISR_MDPC_WMASK_UPPER 0x05a3
6133#define IGU_REG_SISR_MDPC_WMASK_LSB_UPPER 0x05a4
6134#define IGU_REG_SISR_MDPC_WMASK_MSB_UPPER 0x05a5
6135#define IGU_REG_SISR_MDPC_WOMASK_UPPER 0x05a6
6136
6137#define IGU_REG_RESERVED_UPPER 0x05ff
Dmitry Kravkovf2e08992010-10-06 03:28:26 +00006138/* Fields of IGU PF CONFIGRATION REGISTER */
6139#define IGU_PF_CONF_FUNC_EN (0x1<<0) /* function enable */
6140#define IGU_PF_CONF_MSI_MSIX_EN (0x1<<1) /* MSI/MSIX enable */
6141#define IGU_PF_CONF_INT_LINE_EN (0x1<<2) /* INT enable */
6142#define IGU_PF_CONF_ATTN_BIT_EN (0x1<<3) /* attention enable */
6143#define IGU_PF_CONF_SINGLE_ISR_EN (0x1<<4) /* single ISR mode enable */
6144#define IGU_PF_CONF_SIMD_MODE (0x1<<5) /* simd all ones mode */
6145
6146/* Fields of IGU VF CONFIGRATION REGISTER */
6147#define IGU_VF_CONF_FUNC_EN (0x1<<0) /* function enable */
6148#define IGU_VF_CONF_MSI_MSIX_EN (0x1<<1) /* MSI/MSIX enable */
6149#define IGU_VF_CONF_PARENT_MASK (0x3<<2) /* Parent PF */
6150#define IGU_VF_CONF_PARENT_SHIFT 2 /* Parent PF */
6151#define IGU_VF_CONF_SINGLE_ISR_EN (0x1<<4) /* single ISR mode enable */
6152
6153
6154#define IGU_BC_DSB_NUM_SEGS 5
6155#define IGU_BC_NDSB_NUM_SEGS 2
6156#define IGU_NORM_DSB_NUM_SEGS 2
6157#define IGU_NORM_NDSB_NUM_SEGS 1
6158#define IGU_BC_BASE_DSB_PROD 128
6159#define IGU_NORM_BASE_DSB_PROD 136
6160
6161#define IGU_CTRL_CMD_TYPE_WR\
6162 1
6163#define IGU_CTRL_CMD_TYPE_RD\
6164 0
6165
6166#define IGU_SEG_ACCESS_NORM 0
6167#define IGU_SEG_ACCESS_DEF 1
6168#define IGU_SEG_ACCESS_ATTN 2
6169
6170 /* FID (if VF - [6] = 0; [5:0] = VF number; if PF - [6] = 1; \
6171 [5:2] = 0; [1:0] = PF number) */
6172#define IGU_FID_ENCODE_IS_PF (0x1<<6)
6173#define IGU_FID_ENCODE_IS_PF_SHIFT 6
6174#define IGU_FID_VF_NUM_MASK (0x3f)
6175#define IGU_FID_PF_NUM_MASK (0x7)
6176
6177#define IGU_REG_MAPPING_MEMORY_VALID (1<<0)
6178#define IGU_REG_MAPPING_MEMORY_VECTOR_MASK (0x3F<<1)
6179#define IGU_REG_MAPPING_MEMORY_VECTOR_SHIFT 1
6180#define IGU_REG_MAPPING_MEMORY_FID_MASK (0x7F<<7)
6181#define IGU_REG_MAPPING_MEMORY_FID_SHIFT 7
Eilon Greenstein573f2032009-08-12 08:24:14 +00006182
6183
6184#define CDU_REGION_NUMBER_XCM_AG 2
6185#define CDU_REGION_NUMBER_UCM_AG 4
6186
6187
6188/**
6189 * String-to-compress [31:8] = CID (all 24 bits)
6190 * String-to-compress [7:4] = Region
6191 * String-to-compress [3:0] = Type
6192 */
6193#define CDU_VALID_DATA(_cid, _region, _type)\
6194 (((_cid) << 8) | (((_region)&0xf)<<4) | (((_type)&0xf)))
6195#define CDU_CRC8(_cid, _region, _type)\
6196 (calc_crc8(CDU_VALID_DATA(_cid, _region, _type), 0xff))
6197#define CDU_RSRVD_VALUE_TYPE_A(_cid, _region, _type)\
6198 (0x80 | ((CDU_CRC8(_cid, _region, _type)) & 0x7f))
6199#define CDU_RSRVD_VALUE_TYPE_B(_crc, _type)\
6200 (0x80 | ((_type)&0xf << 3) | ((CDU_CRC8(_cid, _region, _type)) & 0x7))
6201#define CDU_RSRVD_INVALIDATE_CONTEXT_VALUE(_val) ((_val) & ~0x80)
6202
6203/******************************************************************************
6204 * Description:
6205 * Calculates crc 8 on a word value: polynomial 0-1-2-8
6206 * Code was translated from Verilog.
6207 * Return:
6208 *****************************************************************************/
6209static inline u8 calc_crc8(u32 data, u8 crc)
6210{
6211 u8 D[32];
6212 u8 NewCRC[8];
6213 u8 C[8];
6214 u8 crc_res;
6215 u8 i;
6216
6217 /* split the data into 31 bits */
6218 for (i = 0; i < 32; i++) {
6219 D[i] = (u8)(data & 1);
6220 data = data >> 1;
6221 }
6222
6223 /* split the crc into 8 bits */
6224 for (i = 0; i < 8; i++) {
6225 C[i] = crc & 1;
6226 crc = crc >> 1;
6227 }
6228
6229 NewCRC[0] = D[31] ^ D[30] ^ D[28] ^ D[23] ^ D[21] ^ D[19] ^ D[18] ^
6230 D[16] ^ D[14] ^ D[12] ^ D[8] ^ D[7] ^ D[6] ^ D[0] ^ C[4] ^
6231 C[6] ^ C[7];
6232 NewCRC[1] = D[30] ^ D[29] ^ D[28] ^ D[24] ^ D[23] ^ D[22] ^ D[21] ^
6233 D[20] ^ D[18] ^ D[17] ^ D[16] ^ D[15] ^ D[14] ^ D[13] ^
6234 D[12] ^ D[9] ^ D[6] ^ D[1] ^ D[0] ^ C[0] ^ C[4] ^ C[5] ^
6235 C[6];
6236 NewCRC[2] = D[29] ^ D[28] ^ D[25] ^ D[24] ^ D[22] ^ D[17] ^ D[15] ^
6237 D[13] ^ D[12] ^ D[10] ^ D[8] ^ D[6] ^ D[2] ^ D[1] ^ D[0] ^
6238 C[0] ^ C[1] ^ C[4] ^ C[5];
6239 NewCRC[3] = D[30] ^ D[29] ^ D[26] ^ D[25] ^ D[23] ^ D[18] ^ D[16] ^
6240 D[14] ^ D[13] ^ D[11] ^ D[9] ^ D[7] ^ D[3] ^ D[2] ^ D[1] ^
6241 C[1] ^ C[2] ^ C[5] ^ C[6];
6242 NewCRC[4] = D[31] ^ D[30] ^ D[27] ^ D[26] ^ D[24] ^ D[19] ^ D[17] ^
6243 D[15] ^ D[14] ^ D[12] ^ D[10] ^ D[8] ^ D[4] ^ D[3] ^ D[2] ^
6244 C[0] ^ C[2] ^ C[3] ^ C[6] ^ C[7];
6245 NewCRC[5] = D[31] ^ D[28] ^ D[27] ^ D[25] ^ D[20] ^ D[18] ^ D[16] ^
6246 D[15] ^ D[13] ^ D[11] ^ D[9] ^ D[5] ^ D[4] ^ D[3] ^ C[1] ^
6247 C[3] ^ C[4] ^ C[7];
6248 NewCRC[6] = D[29] ^ D[28] ^ D[26] ^ D[21] ^ D[19] ^ D[17] ^ D[16] ^
6249 D[14] ^ D[12] ^ D[10] ^ D[6] ^ D[5] ^ D[4] ^ C[2] ^ C[4] ^
6250 C[5];
6251 NewCRC[7] = D[30] ^ D[29] ^ D[27] ^ D[22] ^ D[20] ^ D[18] ^ D[17] ^
6252 D[15] ^ D[13] ^ D[11] ^ D[7] ^ D[6] ^ D[5] ^ C[3] ^ C[5] ^
6253 C[6];
6254
6255 crc_res = 0;
6256 for (i = 0; i < 8; i++)
6257 crc_res |= (NewCRC[i] << i);
6258
6259 return crc_res;
6260}
6261
6262