1 /* bnx2x_reg.h: Broadcom Everest network driver.
3 * Copyright (c) 2007-2010 Broadcom Corporation
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.
9 * The registers description starts with the register Access type followed
10 * by size in bits. For example [RW 32]. The access types are:
14 * ST - Statistics register (clear on read)
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)
24 #define ATC_ATC_INT_STS_REG_ADDRESS_ERROR (0x1<<0)
25 #define ATC_ATC_INT_STS_REG_ATC_GPA_MULTIPLE_HITS (0x1<<2)
26 #define ATC_ATC_INT_STS_REG_ATC_IREQ_LESS_THAN_STU (0x1<<5)
27 #define ATC_ATC_INT_STS_REG_ATC_RCPL_TO_EMPTY_CNT (0x1<<3)
28 #define ATC_ATC_INT_STS_REG_ATC_TCPL_ERROR (0x1<<4)
29 #define ATC_ATC_INT_STS_REG_ATC_TCPL_TO_NOT_PEND (0x1<<1)
30 /* [RW 1] Initiate the ATC array - reset all the valid bits */
31 #define ATC_REG_ATC_INIT_ARRAY 0x1100b8
32 /* [R 1] ATC initalization done */
33 #define ATC_REG_ATC_INIT_DONE 0x1100bc
34 /* [RC 6] Interrupt register #0 read clear */
35 #define ATC_REG_ATC_INT_STS_CLR 0x1101c0
36 /* [RW 19] Interrupt mask register #0 read/write */
37 #define BRB1_REG_BRB1_INT_MASK 0x60128
38 /* [R 19] Interrupt register #0 read */
39 #define BRB1_REG_BRB1_INT_STS 0x6011c
40 /* [RW 4] Parity mask register #0 read/write */
41 #define BRB1_REG_BRB1_PRTY_MASK 0x60138
42 /* [R 4] Parity register #0 read */
43 #define BRB1_REG_BRB1_PRTY_STS 0x6012c
44 /* [RC 4] Parity register #0 read clear */
45 #define BRB1_REG_BRB1_PRTY_STS_CLR 0x60130
46 /* [RW 10] At address BRB1_IND_FREE_LIST_PRS_CRDT initialize free head. At
47 * address BRB1_IND_FREE_LIST_PRS_CRDT+1 initialize free tail. At address
48 * BRB1_IND_FREE_LIST_PRS_CRDT+2 initialize parser initial credit. Warning -
49 * following reset the first rbc access to this reg must be write; there can
50 * be no more rbc writes after the first one; there can be any number of rbc
51 * read following the first write; rbc access not following these rules will
52 * result in hang condition. */
53 #define BRB1_REG_FREE_LIST_PRS_CRDT 0x60200
54 /* [RW 10] The number of free blocks below which the full signal to class 0
56 #define BRB1_REG_FULL_0_XOFF_THRESHOLD_0 0x601d0
57 /* [RW 10] The number of free blocks above which the full signal to class 0
59 #define BRB1_REG_FULL_0_XON_THRESHOLD_0 0x601d4
60 /* [RW 10] The number of free blocks below which the full signal to class 1
62 #define BRB1_REG_FULL_1_XOFF_THRESHOLD_0 0x601d8
63 /* [RW 10] The number of free blocks above which the full signal to class 1
65 #define BRB1_REG_FULL_1_XON_THRESHOLD_0 0x601dc
66 /* [RW 10] The number of free blocks below which the full signal to the LB
68 #define BRB1_REG_FULL_LB_XOFF_THRESHOLD 0x601e0
69 /* [RW 10] The number of free blocks above which the full signal to the LB
70 * port is de-asserted */
71 #define BRB1_REG_FULL_LB_XON_THRESHOLD 0x601e4
72 /* [RW 10] The number of free blocks above which the High_llfc signal to
73 interface #n is de-asserted. */
74 #define BRB1_REG_HIGH_LLFC_HIGH_THRESHOLD_0 0x6014c
75 /* [RW 10] The number of free blocks below which the High_llfc signal to
76 interface #n is asserted. */
77 #define BRB1_REG_HIGH_LLFC_LOW_THRESHOLD_0 0x6013c
78 /* [RW 23] LL RAM data. */
79 #define BRB1_REG_LL_RAM 0x61000
80 /* [RW 10] The number of free blocks above which the Low_llfc signal to
81 interface #n is de-asserted. */
82 #define BRB1_REG_LOW_LLFC_HIGH_THRESHOLD_0 0x6016c
83 /* [RW 10] The number of free blocks below which the Low_llfc signal to
84 interface #n is asserted. */
85 #define BRB1_REG_LOW_LLFC_LOW_THRESHOLD_0 0x6015c
86 /* [RW 10] The number of blocks guarantied for the MAC port */
87 #define BRB1_REG_MAC_GUARANTIED_0 0x601e8
88 #define BRB1_REG_MAC_GUARANTIED_1 0x60240
89 /* [R 24] The number of full blocks. */
90 #define BRB1_REG_NUM_OF_FULL_BLOCKS 0x60090
91 /* [ST 32] The number of cycles that the write_full signal towards MAC #0
93 #define BRB1_REG_NUM_OF_FULL_CYCLES_0 0x600c8
94 #define BRB1_REG_NUM_OF_FULL_CYCLES_1 0x600cc
95 #define BRB1_REG_NUM_OF_FULL_CYCLES_4 0x600d8
96 /* [ST 32] The number of cycles that the pause signal towards MAC #0 was
98 #define BRB1_REG_NUM_OF_PAUSE_CYCLES_0 0x600b8
99 #define BRB1_REG_NUM_OF_PAUSE_CYCLES_1 0x600bc
100 /* [RW 10] The number of free blocks below which the pause signal to class 0
102 #define BRB1_REG_PAUSE_0_XOFF_THRESHOLD_0 0x601c0
103 /* [RW 10] The number of free blocks above which the pause signal to class 0
105 #define BRB1_REG_PAUSE_0_XON_THRESHOLD_0 0x601c4
106 /* [RW 10] The number of free blocks below which the pause signal to class 1
108 #define BRB1_REG_PAUSE_1_XOFF_THRESHOLD_0 0x601c8
109 /* [RW 10] The number of free blocks above which the pause signal to class 1
111 #define BRB1_REG_PAUSE_1_XON_THRESHOLD_0 0x601cc
112 /* [RW 10] Write client 0: De-assert pause threshold. Not Functional */
113 #define BRB1_REG_PAUSE_HIGH_THRESHOLD_0 0x60078
114 #define BRB1_REG_PAUSE_HIGH_THRESHOLD_1 0x6007c
115 /* [RW 10] Write client 0: Assert pause threshold. */
116 #define BRB1_REG_PAUSE_LOW_THRESHOLD_0 0x60068
117 #define BRB1_REG_PAUSE_LOW_THRESHOLD_1 0x6006c
118 /* [R 24] The number of full blocks occupied by port. */
119 #define BRB1_REG_PORT_NUM_OCC_BLOCKS_0 0x60094
120 /* [RW 1] Reset the design by software. */
121 #define BRB1_REG_SOFT_RESET 0x600dc
122 /* [R 5] Used to read the value of the XX protection CAM occupancy counter. */
123 #define CCM_REG_CAM_OCCUP 0xd0188
124 /* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded;
125 acknowledge output is deasserted; all other signals are treated as usual;
126 if 1 - normal activity. */
127 #define CCM_REG_CCM_CFC_IFEN 0xd003c
128 /* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is
129 disregarded; valid is deasserted; all other signals are treated as usual;
130 if 1 - normal activity. */
131 #define CCM_REG_CCM_CQM_IFEN 0xd000c
132 /* [RW 1] If set the Q index; received from the QM is inserted to event ID.
133 Otherwise 0 is inserted. */
134 #define CCM_REG_CCM_CQM_USE_Q 0xd00c0
135 /* [RW 11] Interrupt mask register #0 read/write */
136 #define CCM_REG_CCM_INT_MASK 0xd01e4
137 /* [R 11] Interrupt register #0 read */
138 #define CCM_REG_CCM_INT_STS 0xd01d8
139 /* [RW 27] Parity mask register #0 read/write */
140 #define CCM_REG_CCM_PRTY_MASK 0xd01f4
141 /* [R 27] Parity register #0 read */
142 #define CCM_REG_CCM_PRTY_STS 0xd01e8
143 /* [RC 27] Parity register #0 read clear */
144 #define CCM_REG_CCM_PRTY_STS_CLR 0xd01ec
145 /* [RW 3] The size of AG context region 0 in REG-pairs. Designates the MS
146 REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5).
147 Is used to determine the number of the AG context REG-pairs written back;
148 when the input message Reg1WbFlg isn't set. */
149 #define CCM_REG_CCM_REG0_SZ 0xd00c4
150 /* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is
151 disregarded; valid is deasserted; all other signals are treated as usual;
152 if 1 - normal activity. */
153 #define CCM_REG_CCM_STORM0_IFEN 0xd0004
154 /* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is
155 disregarded; valid is deasserted; all other signals are treated as usual;
156 if 1 - normal activity. */
157 #define CCM_REG_CCM_STORM1_IFEN 0xd0008
158 /* [RW 1] CDU AG 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_AG_RD_IFEN 0xd0030
162 /* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input
163 are disregarded; all other signals are treated as usual; if 1 - normal
165 #define CCM_REG_CDU_AG_WR_IFEN 0xd002c
166 /* [RW 1] CDU STORM read Interface enable. If 0 - the request input is
167 disregarded; valid output is deasserted; all other signals are treated as
168 usual; if 1 - normal activity. */
169 #define CCM_REG_CDU_SM_RD_IFEN 0xd0038
170 /* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid
171 input is disregarded; all other signals are treated as usual; if 1 -
173 #define CCM_REG_CDU_SM_WR_IFEN 0xd0034
174 /* [RW 4] CFC output initial credit. Max credit available - 15.Write writes
175 the initial credit value; read returns the current value of the credit
176 counter. Must be initialized to 1 at start-up. */
177 #define CCM_REG_CFC_INIT_CRD 0xd0204
178 /* [RW 2] Auxillary counter flag Q number 1. */
179 #define CCM_REG_CNT_AUX1_Q 0xd00c8
180 /* [RW 2] Auxillary counter flag Q number 2. */
181 #define CCM_REG_CNT_AUX2_Q 0xd00cc
182 /* [RW 28] The CM header value for QM request (primary). */
183 #define CCM_REG_CQM_CCM_HDR_P 0xd008c
184 /* [RW 28] The CM header value for QM request (secondary). */
185 #define CCM_REG_CQM_CCM_HDR_S 0xd0090
186 /* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded;
187 acknowledge output is deasserted; all other signals are treated as usual;
188 if 1 - normal activity. */
189 #define CCM_REG_CQM_CCM_IFEN 0xd0014
190 /* [RW 6] QM output initial credit. Max credit available - 32. Write writes
191 the initial credit value; read returns the current value of the credit
192 counter. Must be initialized to 32 at start-up. */
193 #define CCM_REG_CQM_INIT_CRD 0xd020c
194 /* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0
195 stands for weight 8 (the most prioritised); 1 stands for weight 1(least
196 prioritised); 2 stands for weight 2; tc. */
197 #define CCM_REG_CQM_P_WEIGHT 0xd00b8
198 /* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0
199 stands for weight 8 (the most prioritised); 1 stands for weight 1(least
200 prioritised); 2 stands for weight 2; tc. */
201 #define CCM_REG_CQM_S_WEIGHT 0xd00bc
202 /* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded;
203 acknowledge output is deasserted; all other signals are treated as usual;
204 if 1 - normal activity. */
205 #define CCM_REG_CSDM_IFEN 0xd0018
206 /* [RC 1] Set when the message length mismatch (relative to last indication)
207 at the SDM interface is detected. */
208 #define CCM_REG_CSDM_LENGTH_MIS 0xd0170
209 /* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for
210 weight 8 (the most prioritised); 1 stands for weight 1(least
211 prioritised); 2 stands for weight 2; tc. */
212 #define CCM_REG_CSDM_WEIGHT 0xd00b4
213 /* [RW 28] The CM header for QM formatting in case of an error in the QM
215 #define CCM_REG_ERR_CCM_HDR 0xd0094
216 /* [RW 8] The Event ID in case the input message ErrorFlg is set. */
217 #define CCM_REG_ERR_EVNT_ID 0xd0098
218 /* [RW 8] FIC0 output initial credit. Max credit available - 255. Write
219 writes the initial credit value; read returns the current value of the
220 credit counter. Must be initialized to 64 at start-up. */
221 #define CCM_REG_FIC0_INIT_CRD 0xd0210
222 /* [RW 8] FIC1 output initial credit. Max credit available - 255.Write
223 writes the initial credit value; read returns the current value of the
224 credit counter. Must be initialized to 64 at start-up. */
225 #define CCM_REG_FIC1_INIT_CRD 0xd0214
226 /* [RW 1] Arbitration between Input Arbiter groups: 0 - fair Round-Robin; 1
227 - strict priority defined by ~ccm_registers_gr_ag_pr.gr_ag_pr;
228 ~ccm_registers_gr_ld0_pr.gr_ld0_pr and
229 ~ccm_registers_gr_ld1_pr.gr_ld1_pr. Groups are according to channels and
230 outputs to STORM: aggregation; load FIC0; load FIC1 and store. */
231 #define CCM_REG_GR_ARB_TYPE 0xd015c
232 /* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the
233 highest priority is 3. It is supposed; that the Store channel priority is
234 the compliment to 4 of the rest priorities - Aggregation channel; Load
235 (FIC0) channel and Load (FIC1). */
236 #define CCM_REG_GR_LD0_PR 0xd0164
237 /* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the
238 highest priority is 3. It is supposed; that the Store channel priority is
239 the compliment to 4 of the rest priorities - Aggregation channel; Load
240 (FIC0) channel and Load (FIC1). */
241 #define CCM_REG_GR_LD1_PR 0xd0168
242 /* [RW 2] General flags index. */
243 #define CCM_REG_INV_DONE_Q 0xd0108
244 /* [RW 4] The number of double REG-pairs(128 bits); loaded from the STORM
245 context and sent to STORM; for a specific connection type. The double
246 REG-pairs are used in order to align to STORM context row size of 128
247 bits. The offset of these data in the STORM context is always 0. Index
248 _(0..15) stands for the connection type (one of 16). */
249 #define CCM_REG_N_SM_CTX_LD_0 0xd004c
250 #define CCM_REG_N_SM_CTX_LD_1 0xd0050
251 #define CCM_REG_N_SM_CTX_LD_2 0xd0054
252 #define CCM_REG_N_SM_CTX_LD_3 0xd0058
253 #define CCM_REG_N_SM_CTX_LD_4 0xd005c
254 /* [RW 1] Input pbf Interface enable. If 0 - the valid input is disregarded;
255 acknowledge output is deasserted; all other signals are treated as usual;
256 if 1 - normal activity. */
257 #define CCM_REG_PBF_IFEN 0xd0028
258 /* [RC 1] Set when the message length mismatch (relative to last indication)
259 at the pbf interface is detected. */
260 #define CCM_REG_PBF_LENGTH_MIS 0xd0180
261 /* [RW 3] The weight of the input pbf in the WRR mechanism. 0 stands for
262 weight 8 (the most prioritised); 1 stands for weight 1(least
263 prioritised); 2 stands for weight 2; tc. */
264 #define CCM_REG_PBF_WEIGHT 0xd00ac
265 #define CCM_REG_PHYS_QNUM1_0 0xd0134
266 #define CCM_REG_PHYS_QNUM1_1 0xd0138
267 #define CCM_REG_PHYS_QNUM2_0 0xd013c
268 #define CCM_REG_PHYS_QNUM2_1 0xd0140
269 #define CCM_REG_PHYS_QNUM3_0 0xd0144
270 #define CCM_REG_PHYS_QNUM3_1 0xd0148
271 #define CCM_REG_QOS_PHYS_QNUM0_0 0xd0114
272 #define CCM_REG_QOS_PHYS_QNUM0_1 0xd0118
273 #define CCM_REG_QOS_PHYS_QNUM1_0 0xd011c
274 #define CCM_REG_QOS_PHYS_QNUM1_1 0xd0120
275 #define CCM_REG_QOS_PHYS_QNUM2_0 0xd0124
276 #define CCM_REG_QOS_PHYS_QNUM2_1 0xd0128
277 #define CCM_REG_QOS_PHYS_QNUM3_0 0xd012c
278 #define CCM_REG_QOS_PHYS_QNUM3_1 0xd0130
279 /* [RW 1] STORM - CM Interface enable. If 0 - the valid input is
280 disregarded; acknowledge output is deasserted; all other signals are
281 treated as usual; if 1 - normal activity. */
282 #define CCM_REG_STORM_CCM_IFEN 0xd0010
283 /* [RC 1] Set when the message length mismatch (relative to last indication)
284 at the STORM interface is detected. */
285 #define CCM_REG_STORM_LENGTH_MIS 0xd016c
286 /* [RW 3] The weight of the STORM input in the WRR (Weighted Round robin)
287 mechanism. 0 stands for weight 8 (the most prioritised); 1 stands for
288 weight 1(least prioritised); 2 stands for weight 2 (more prioritised);
290 #define CCM_REG_STORM_WEIGHT 0xd009c
291 /* [RW 1] Input tsem Interface enable. If 0 - the valid input is
292 disregarded; acknowledge output is deasserted; all other signals are
293 treated as usual; if 1 - normal activity. */
294 #define CCM_REG_TSEM_IFEN 0xd001c
295 /* [RC 1] Set when the message length mismatch (relative to last indication)
296 at the tsem interface is detected. */
297 #define CCM_REG_TSEM_LENGTH_MIS 0xd0174
298 /* [RW 3] The weight of the input tsem in the WRR mechanism. 0 stands for
299 weight 8 (the most prioritised); 1 stands for weight 1(least
300 prioritised); 2 stands for weight 2; tc. */
301 #define CCM_REG_TSEM_WEIGHT 0xd00a0
302 /* [RW 1] Input usem Interface enable. If 0 - the valid input is
303 disregarded; acknowledge output is deasserted; all other signals are
304 treated as usual; if 1 - normal activity. */
305 #define CCM_REG_USEM_IFEN 0xd0024
306 /* [RC 1] Set when message length mismatch (relative to last indication) at
307 the usem interface is detected. */
308 #define CCM_REG_USEM_LENGTH_MIS 0xd017c
309 /* [RW 3] The weight of the input usem in the WRR mechanism. 0 stands for
310 weight 8 (the most prioritised); 1 stands for weight 1(least
311 prioritised); 2 stands for weight 2; tc. */
312 #define CCM_REG_USEM_WEIGHT 0xd00a8
313 /* [RW 1] Input xsem Interface enable. If 0 - the valid input is
314 disregarded; acknowledge output is deasserted; all other signals are
315 treated as usual; if 1 - normal activity. */
316 #define CCM_REG_XSEM_IFEN 0xd0020
317 /* [RC 1] Set when the message length mismatch (relative to last indication)
318 at the xsem interface is detected. */
319 #define CCM_REG_XSEM_LENGTH_MIS 0xd0178
320 /* [RW 3] The weight of the input xsem in the WRR mechanism. 0 stands for
321 weight 8 (the most prioritised); 1 stands for weight 1(least
322 prioritised); 2 stands for weight 2; tc. */
323 #define CCM_REG_XSEM_WEIGHT 0xd00a4
324 /* [RW 19] Indirect access to the descriptor table of the XX protection
325 mechanism. The fields are: [5:0] - message length; [12:6] - message
326 pointer; 18:13] - next pointer. */
327 #define CCM_REG_XX_DESCR_TABLE 0xd0300
328 #define CCM_REG_XX_DESCR_TABLE_SIZE 36
329 /* [R 7] Used to read the value of XX protection Free counter. */
330 #define CCM_REG_XX_FREE 0xd0184
331 /* [RW 6] Initial value for the credit counter; responsible for fulfilling
332 of the Input Stage XX protection buffer by the XX protection pending
333 messages. Max credit available - 127. Write writes the initial credit
334 value; read returns the current value of the credit counter. Must be
335 initialized to maximum XX protected message size - 2 at start-up. */
336 #define CCM_REG_XX_INIT_CRD 0xd0220
337 /* [RW 7] The maximum number of pending messages; which may be stored in XX
338 protection. At read the ~ccm_registers_xx_free.xx_free counter is read.
339 At write comprises the start value of the ~ccm_registers_xx_free.xx_free
341 #define CCM_REG_XX_MSG_NUM 0xd0224
342 /* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */
343 #define CCM_REG_XX_OVFL_EVNT_ID 0xd0044
344 /* [RW 18] Indirect access to the XX table of the XX protection mechanism.
345 The fields are: [5:0] - tail pointer; 11:6] - Link List size; 17:12] -
347 #define CCM_REG_XX_TABLE 0xd0280
348 #define CDU_REG_CDU_CHK_MASK0 0x101000
349 #define CDU_REG_CDU_CHK_MASK1 0x101004
350 #define CDU_REG_CDU_CONTROL0 0x101008
351 #define CDU_REG_CDU_DEBUG 0x101010
352 #define CDU_REG_CDU_GLOBAL_PARAMS 0x101020
353 /* [RW 7] Interrupt mask register #0 read/write */
354 #define CDU_REG_CDU_INT_MASK 0x10103c
355 /* [R 7] Interrupt register #0 read */
356 #define CDU_REG_CDU_INT_STS 0x101030
357 /* [RW 5] Parity mask register #0 read/write */
358 #define CDU_REG_CDU_PRTY_MASK 0x10104c
359 /* [R 5] Parity register #0 read */
360 #define CDU_REG_CDU_PRTY_STS 0x101040
361 /* [RC 5] Parity register #0 read clear */
362 #define CDU_REG_CDU_PRTY_STS_CLR 0x101044
363 /* [RC 32] logging of error data in case of a CDU load error:
364 {expected_cid[15:0]; xpected_type[2:0]; xpected_region[2:0]; ctive_error;
365 ype_error; ctual_active; ctual_compressed_context}; */
366 #define CDU_REG_ERROR_DATA 0x101014
367 /* [WB 216] L1TT ram access. each entry has the following format :
368 {mrege_regions[7:0]; ffset12[5:0]...offset0[5:0];
369 ength12[5:0]...length0[5:0]; d12[3:0]...id0[3:0]} */
370 #define CDU_REG_L1TT 0x101800
371 /* [WB 24] MATT ram access. each entry has the following
372 format:{RegionLength[11:0]; egionOffset[11:0]} */
373 #define CDU_REG_MATT 0x101100
374 /* [RW 1] when this bit is set the CDU operates in e1hmf mode */
375 #define CDU_REG_MF_MODE 0x101050
376 /* [R 1] indication the initializing the activity counter by the hardware
378 #define CFC_REG_AC_INIT_DONE 0x104078
379 /* [RW 13] activity counter ram access */
380 #define CFC_REG_ACTIVITY_COUNTER 0x104400
381 #define CFC_REG_ACTIVITY_COUNTER_SIZE 256
382 /* [R 1] indication the initializing the cams by the hardware was done. */
383 #define CFC_REG_CAM_INIT_DONE 0x10407c
384 /* [RW 2] Interrupt mask register #0 read/write */
385 #define CFC_REG_CFC_INT_MASK 0x104108
386 /* [R 2] Interrupt register #0 read */
387 #define CFC_REG_CFC_INT_STS 0x1040fc
388 /* [RC 2] Interrupt register #0 read clear */
389 #define CFC_REG_CFC_INT_STS_CLR 0x104100
390 /* [RW 4] Parity mask register #0 read/write */
391 #define CFC_REG_CFC_PRTY_MASK 0x104118
392 /* [R 4] Parity register #0 read */
393 #define CFC_REG_CFC_PRTY_STS 0x10410c
394 /* [RC 4] Parity register #0 read clear */
395 #define CFC_REG_CFC_PRTY_STS_CLR 0x104110
396 /* [RW 21] CID cam access (21:1 - Data; alid - 0) */
397 #define CFC_REG_CID_CAM 0x104800
398 #define CFC_REG_CONTROL0 0x104028
399 #define CFC_REG_DEBUG0 0x104050
400 /* [RW 14] indicates per error (in #cfc_registers_cfc_error_vector.cfc_error
401 vector) whether the cfc should be disabled upon it */
402 #define CFC_REG_DISABLE_ON_ERROR 0x104044
403 /* [RC 14] CFC error vector. when the CFC detects an internal error it will
404 set one of these bits. the bit description can be found in CFC
406 #define CFC_REG_ERROR_VECTOR 0x10403c
407 /* [WB 93] LCID info ram access */
408 #define CFC_REG_INFO_RAM 0x105000
409 #define CFC_REG_INFO_RAM_SIZE 1024
410 #define CFC_REG_INIT_REG 0x10404c
411 #define CFC_REG_INTERFACES 0x104058
412 /* [RW 24] {weight_load_client7[2:0] to weight_load_client0[2:0]}. this
413 field allows changing the priorities of the weighted-round-robin arbiter
414 which selects which CFC load client should be served next */
415 #define CFC_REG_LCREQ_WEIGHTS 0x104084
416 /* [RW 16] Link List ram access; data = {prev_lcid; ext_lcid} */
417 #define CFC_REG_LINK_LIST 0x104c00
418 #define CFC_REG_LINK_LIST_SIZE 256
419 /* [R 1] indication the initializing the link list by the hardware was done. */
420 #define CFC_REG_LL_INIT_DONE 0x104074
421 /* [R 9] Number of allocated LCIDs which are at empty state */
422 #define CFC_REG_NUM_LCIDS_ALLOC 0x104020
423 /* [R 9] Number of Arriving LCIDs in Link List Block */
424 #define CFC_REG_NUM_LCIDS_ARRIVING 0x104004
425 /* [R 9] Number of Leaving LCIDs in Link List Block */
426 #define CFC_REG_NUM_LCIDS_LEAVING 0x104018
427 #define CFC_REG_WEAK_ENABLE_PF 0x104124
428 /* [RW 8] The event id for aggregated interrupt 0 */
429 #define CSDM_REG_AGG_INT_EVENT_0 0xc2038
430 #define CSDM_REG_AGG_INT_EVENT_10 0xc2060
431 #define CSDM_REG_AGG_INT_EVENT_11 0xc2064
432 #define CSDM_REG_AGG_INT_EVENT_12 0xc2068
433 #define CSDM_REG_AGG_INT_EVENT_13 0xc206c
434 #define CSDM_REG_AGG_INT_EVENT_14 0xc2070
435 #define CSDM_REG_AGG_INT_EVENT_15 0xc2074
436 #define CSDM_REG_AGG_INT_EVENT_16 0xc2078
437 #define CSDM_REG_AGG_INT_EVENT_2 0xc2040
438 #define CSDM_REG_AGG_INT_EVENT_3 0xc2044
439 #define CSDM_REG_AGG_INT_EVENT_4 0xc2048
440 #define CSDM_REG_AGG_INT_EVENT_5 0xc204c
441 #define CSDM_REG_AGG_INT_EVENT_6 0xc2050
442 #define CSDM_REG_AGG_INT_EVENT_7 0xc2054
443 #define CSDM_REG_AGG_INT_EVENT_8 0xc2058
444 #define CSDM_REG_AGG_INT_EVENT_9 0xc205c
445 /* [RW 1] For each aggregated interrupt index whether the mode is normal (0)
446 or auto-mask-mode (1) */
447 #define CSDM_REG_AGG_INT_MODE_10 0xc21e0
448 #define CSDM_REG_AGG_INT_MODE_11 0xc21e4
449 #define CSDM_REG_AGG_INT_MODE_12 0xc21e8
450 #define CSDM_REG_AGG_INT_MODE_13 0xc21ec
451 #define CSDM_REG_AGG_INT_MODE_14 0xc21f0
452 #define CSDM_REG_AGG_INT_MODE_15 0xc21f4
453 #define CSDM_REG_AGG_INT_MODE_16 0xc21f8
454 #define CSDM_REG_AGG_INT_MODE_6 0xc21d0
455 #define CSDM_REG_AGG_INT_MODE_7 0xc21d4
456 #define CSDM_REG_AGG_INT_MODE_8 0xc21d8
457 #define CSDM_REG_AGG_INT_MODE_9 0xc21dc
458 /* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */
459 #define CSDM_REG_CFC_RSP_START_ADDR 0xc2008
460 /* [RW 16] The maximum value of the competion counter #0 */
461 #define CSDM_REG_CMP_COUNTER_MAX0 0xc201c
462 /* [RW 16] The maximum value of the competion counter #1 */
463 #define CSDM_REG_CMP_COUNTER_MAX1 0xc2020
464 /* [RW 16] The maximum value of the competion counter #2 */
465 #define CSDM_REG_CMP_COUNTER_MAX2 0xc2024
466 /* [RW 16] The maximum value of the competion counter #3 */
467 #define CSDM_REG_CMP_COUNTER_MAX3 0xc2028
468 /* [RW 13] The start address in the internal RAM for the completion
470 #define CSDM_REG_CMP_COUNTER_START_ADDR 0xc200c
471 /* [RW 32] Interrupt mask register #0 read/write */
472 #define CSDM_REG_CSDM_INT_MASK_0 0xc229c
473 #define CSDM_REG_CSDM_INT_MASK_1 0xc22ac
474 /* [R 32] Interrupt register #0 read */
475 #define CSDM_REG_CSDM_INT_STS_0 0xc2290
476 #define CSDM_REG_CSDM_INT_STS_1 0xc22a0
477 /* [RW 11] Parity mask register #0 read/write */
478 #define CSDM_REG_CSDM_PRTY_MASK 0xc22bc
479 /* [R 11] Parity register #0 read */
480 #define CSDM_REG_CSDM_PRTY_STS 0xc22b0
481 /* [RC 11] Parity register #0 read clear */
482 #define CSDM_REG_CSDM_PRTY_STS_CLR 0xc22b4
483 #define CSDM_REG_ENABLE_IN1 0xc2238
484 #define CSDM_REG_ENABLE_IN2 0xc223c
485 #define CSDM_REG_ENABLE_OUT1 0xc2240
486 #define CSDM_REG_ENABLE_OUT2 0xc2244
487 /* [RW 4] The initial number of messages that can be sent to the pxp control
488 interface without receiving any ACK. */
489 #define CSDM_REG_INIT_CREDIT_PXP_CTRL 0xc24bc
490 /* [ST 32] The number of ACK after placement messages received */
491 #define CSDM_REG_NUM_OF_ACK_AFTER_PLACE 0xc227c
492 /* [ST 32] The number of packet end messages received from the parser */
493 #define CSDM_REG_NUM_OF_PKT_END_MSG 0xc2274
494 /* [ST 32] The number of requests received from the pxp async if */
495 #define CSDM_REG_NUM_OF_PXP_ASYNC_REQ 0xc2278
496 /* [ST 32] The number of commands received in queue 0 */
497 #define CSDM_REG_NUM_OF_Q0_CMD 0xc2248
498 /* [ST 32] The number of commands received in queue 10 */
499 #define CSDM_REG_NUM_OF_Q10_CMD 0xc226c
500 /* [ST 32] The number of commands received in queue 11 */
501 #define CSDM_REG_NUM_OF_Q11_CMD 0xc2270
502 /* [ST 32] The number of commands received in queue 1 */
503 #define CSDM_REG_NUM_OF_Q1_CMD 0xc224c
504 /* [ST 32] The number of commands received in queue 3 */
505 #define CSDM_REG_NUM_OF_Q3_CMD 0xc2250
506 /* [ST 32] The number of commands received in queue 4 */
507 #define CSDM_REG_NUM_OF_Q4_CMD 0xc2254
508 /* [ST 32] The number of commands received in queue 5 */
509 #define CSDM_REG_NUM_OF_Q5_CMD 0xc2258
510 /* [ST 32] The number of commands received in queue 6 */
511 #define CSDM_REG_NUM_OF_Q6_CMD 0xc225c
512 /* [ST 32] The number of commands received in queue 7 */
513 #define CSDM_REG_NUM_OF_Q7_CMD 0xc2260
514 /* [ST 32] The number of commands received in queue 8 */
515 #define CSDM_REG_NUM_OF_Q8_CMD 0xc2264
516 /* [ST 32] The number of commands received in queue 9 */
517 #define CSDM_REG_NUM_OF_Q9_CMD 0xc2268
518 /* [RW 13] The start address in the internal RAM for queue counters */
519 #define CSDM_REG_Q_COUNTER_START_ADDR 0xc2010
520 /* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */
521 #define CSDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0xc2548
522 /* [R 1] parser fifo empty in sdm_sync block */
523 #define CSDM_REG_SYNC_PARSER_EMPTY 0xc2550
524 /* [R 1] parser serial fifo empty in sdm_sync block */
525 #define CSDM_REG_SYNC_SYNC_EMPTY 0xc2558
526 /* [RW 32] Tick for timer counter. Applicable only when
527 ~csdm_registers_timer_tick_enable.timer_tick_enable =1 */
528 #define CSDM_REG_TIMER_TICK 0xc2000
529 /* [RW 5] The number of time_slots in the arbitration cycle */
530 #define CSEM_REG_ARB_CYCLE_SIZE 0x200034
531 /* [RW 3] The source that is associated with arbitration element 0. Source
532 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
533 sleeping thread with priority 1; 4- sleeping thread with priority 2 */
534 #define CSEM_REG_ARB_ELEMENT0 0x200020
535 /* [RW 3] The source that is associated with arbitration element 1. Source
536 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
537 sleeping thread with priority 1; 4- sleeping thread with priority 2.
538 Could not be equal to register ~csem_registers_arb_element0.arb_element0 */
539 #define CSEM_REG_ARB_ELEMENT1 0x200024
540 /* [RW 3] The source that is associated with arbitration element 2. Source
541 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
542 sleeping thread with priority 1; 4- sleeping thread with priority 2.
543 Could not be equal to register ~csem_registers_arb_element0.arb_element0
544 and ~csem_registers_arb_element1.arb_element1 */
545 #define CSEM_REG_ARB_ELEMENT2 0x200028
546 /* [RW 3] The source that is associated with arbitration element 3. Source
547 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
548 sleeping thread with priority 1; 4- sleeping thread with priority 2.Could
549 not be equal to register ~csem_registers_arb_element0.arb_element0 and
550 ~csem_registers_arb_element1.arb_element1 and
551 ~csem_registers_arb_element2.arb_element2 */
552 #define CSEM_REG_ARB_ELEMENT3 0x20002c
553 /* [RW 3] The source that is associated with arbitration element 4. Source
554 decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
555 sleeping thread with priority 1; 4- sleeping thread with priority 2.
556 Could not be equal to register ~csem_registers_arb_element0.arb_element0
557 and ~csem_registers_arb_element1.arb_element1 and
558 ~csem_registers_arb_element2.arb_element2 and
559 ~csem_registers_arb_element3.arb_element3 */
560 #define CSEM_REG_ARB_ELEMENT4 0x200030
561 /* [RW 32] Interrupt mask register #0 read/write */
562 #define CSEM_REG_CSEM_INT_MASK_0 0x200110
563 #define CSEM_REG_CSEM_INT_MASK_1 0x200120
564 /* [R 32] Interrupt register #0 read */
565 #define CSEM_REG_CSEM_INT_STS_0 0x200104
566 #define CSEM_REG_CSEM_INT_STS_1 0x200114
567 /* [RW 32] Parity mask register #0 read/write */
568 #define CSEM_REG_CSEM_PRTY_MASK_0 0x200130
569 #define CSEM_REG_CSEM_PRTY_MASK_1 0x200140
570 /* [R 32] Parity register #0 read */
571 #define CSEM_REG_CSEM_PRTY_STS_0 0x200124
572 #define CSEM_REG_CSEM_PRTY_STS_1 0x200134
573 /* [RC 32] Parity register #0 read clear */
574 #define CSEM_REG_CSEM_PRTY_STS_CLR_0 0x200128
575 #define CSEM_REG_CSEM_PRTY_STS_CLR_1 0x200138
576 #define CSEM_REG_ENABLE_IN 0x2000a4
577 #define CSEM_REG_ENABLE_OUT 0x2000a8
578 /* [RW 32] This address space contains all registers and memories that are
579 placed in SEM_FAST block. The SEM_FAST registers are described in
580 appendix B. In order to access the sem_fast registers the base address
581 ~fast_memory.fast_memory should be added to eachsem_fast register offset. */
582 #define CSEM_REG_FAST_MEMORY 0x220000
583 /* [RW 1] Disables input messages from FIC0 May be updated during run_time
585 #define CSEM_REG_FIC0_DISABLE 0x200224
586 /* [RW 1] Disables input messages from FIC1 May be updated during run_time
588 #define CSEM_REG_FIC1_DISABLE 0x200234
589 /* [RW 15] Interrupt table Read and write access to it is not possible in
590 the middle of the work */
591 #define CSEM_REG_INT_TABLE 0x200400
592 /* [ST 24] Statistics register. The number of messages that entered through
594 #define CSEM_REG_MSG_NUM_FIC0 0x200000
595 /* [ST 24] Statistics register. The number of messages that entered through
597 #define CSEM_REG_MSG_NUM_FIC1 0x200004
598 /* [ST 24] Statistics register. The number of messages that were sent to
600 #define CSEM_REG_MSG_NUM_FOC0 0x200008
601 /* [ST 24] Statistics register. The number of messages that were sent to
603 #define CSEM_REG_MSG_NUM_FOC1 0x20000c
604 /* [ST 24] Statistics register. The number of messages that were sent to
606 #define CSEM_REG_MSG_NUM_FOC2 0x200010
607 /* [ST 24] Statistics register. The number of messages that were sent to
609 #define CSEM_REG_MSG_NUM_FOC3 0x200014
610 /* [RW 1] Disables input messages from the passive buffer May be updated
611 during run_time by the microcode */
612 #define CSEM_REG_PAS_DISABLE 0x20024c
613 /* [WB 128] Debug only. Passive buffer memory */
614 #define CSEM_REG_PASSIVE_BUFFER 0x202000
615 /* [WB 46] pram memory. B45 is parity; b[44:0] - data. */
616 #define CSEM_REG_PRAM 0x240000
617 /* [R 16] Valid sleeping threads indication have bit per thread */
618 #define CSEM_REG_SLEEP_THREADS_VALID 0x20026c
619 /* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */
620 #define CSEM_REG_SLOW_EXT_STORE_EMPTY 0x2002a0
621 /* [RW 16] List of free threads . There is a bit per thread. */
622 #define CSEM_REG_THREADS_LIST 0x2002e4
623 /* [RW 3] The arbitration scheme of time_slot 0 */
624 #define CSEM_REG_TS_0_AS 0x200038
625 /* [RW 3] The arbitration scheme of time_slot 10 */
626 #define CSEM_REG_TS_10_AS 0x200060
627 /* [RW 3] The arbitration scheme of time_slot 11 */
628 #define CSEM_REG_TS_11_AS 0x200064
629 /* [RW 3] The arbitration scheme of time_slot 12 */
630 #define CSEM_REG_TS_12_AS 0x200068
631 /* [RW 3] The arbitration scheme of time_slot 13 */
632 #define CSEM_REG_TS_13_AS 0x20006c
633 /* [RW 3] The arbitration scheme of time_slot 14 */
634 #define CSEM_REG_TS_14_AS 0x200070
635 /* [RW 3] The arbitration scheme of time_slot 15 */
636 #define CSEM_REG_TS_15_AS 0x200074
637 /* [RW 3] The arbitration scheme of time_slot 16 */
638 #define CSEM_REG_TS_16_AS 0x200078
639 /* [RW 3] The arbitration scheme of time_slot 17 */
640 #define CSEM_REG_TS_17_AS 0x20007c
641 /* [RW 3] The arbitration scheme of time_slot 18 */
642 #define CSEM_REG_TS_18_AS 0x200080
643 /* [RW 3] The arbitration scheme of time_slot 1 */
644 #define CSEM_REG_TS_1_AS 0x20003c
645 /* [RW 3] The arbitration scheme of time_slot 2 */
646 #define CSEM_REG_TS_2_AS 0x200040
647 /* [RW 3] The arbitration scheme of time_slot 3 */
648 #define CSEM_REG_TS_3_AS 0x200044
649 /* [RW 3] The arbitration scheme of time_slot 4 */
650 #define CSEM_REG_TS_4_AS 0x200048
651 /* [RW 3] The arbitration scheme of time_slot 5 */
652 #define CSEM_REG_TS_5_AS 0x20004c
653 /* [RW 3] The arbitration scheme of time_slot 6 */
654 #define CSEM_REG_TS_6_AS 0x200050
655 /* [RW 3] The arbitration scheme of time_slot 7 */
656 #define CSEM_REG_TS_7_AS 0x200054
657 /* [RW 3] The arbitration scheme of time_slot 8 */
658 #define CSEM_REG_TS_8_AS 0x200058
659 /* [RW 3] The arbitration scheme of time_slot 9 */
660 #define CSEM_REG_TS_9_AS 0x20005c
661 /* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64
662 * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */
663 #define CSEM_REG_VFPF_ERR_NUM 0x200380
664 /* [RW 1] Parity mask register #0 read/write */
665 #define DBG_REG_DBG_PRTY_MASK 0xc0a8
666 /* [R 1] Parity register #0 read */
667 #define DBG_REG_DBG_PRTY_STS 0xc09c
668 /* [RC 1] Parity register #0 read clear */
669 #define DBG_REG_DBG_PRTY_STS_CLR 0xc0a0
670 /* [RW 1] When set the DMAE will process the commands as in E1.5. 1.The
671 * function that is used is always SRC-PCI; 2.VF_Valid = 0; 3.VFID=0;
672 * 4.Completion function=0; 5.Error handling=0 */
673 #define DMAE_REG_BACKWARD_COMP_EN 0x10207c
674 /* [RW 32] Commands memory. The address to command X; row Y is to calculated
676 #define DMAE_REG_CMD_MEM 0x102400
677 #define DMAE_REG_CMD_MEM_SIZE 224
678 /* [RW 1] If 0 - the CRC-16c initial value is all zeroes; if 1 - the CRC-16c
679 initial value is all ones. */
680 #define DMAE_REG_CRC16C_INIT 0x10201c
681 /* [RW 1] If 0 - the CRC-16 T10 initial value is all zeroes; if 1 - the
682 CRC-16 T10 initial value is all ones. */
683 #define DMAE_REG_CRC16T10_INIT 0x102020
684 /* [RW 2] Interrupt mask register #0 read/write */
685 #define DMAE_REG_DMAE_INT_MASK 0x102054
686 /* [RW 4] Parity mask register #0 read/write */
687 #define DMAE_REG_DMAE_PRTY_MASK 0x102064
688 /* [R 4] Parity register #0 read */
689 #define DMAE_REG_DMAE_PRTY_STS 0x102058
690 /* [RC 4] Parity register #0 read clear */
691 #define DMAE_REG_DMAE_PRTY_STS_CLR 0x10205c
692 /* [RW 1] Command 0 go. */
693 #define DMAE_REG_GO_C0 0x102080
694 /* [RW 1] Command 1 go. */
695 #define DMAE_REG_GO_C1 0x102084
696 /* [RW 1] Command 10 go. */
697 #define DMAE_REG_GO_C10 0x102088
698 /* [RW 1] Command 11 go. */
699 #define DMAE_REG_GO_C11 0x10208c
700 /* [RW 1] Command 12 go. */
701 #define DMAE_REG_GO_C12 0x102090
702 /* [RW 1] Command 13 go. */
703 #define DMAE_REG_GO_C13 0x102094
704 /* [RW 1] Command 14 go. */
705 #define DMAE_REG_GO_C14 0x102098
706 /* [RW 1] Command 15 go. */
707 #define DMAE_REG_GO_C15 0x10209c
708 /* [RW 1] Command 2 go. */
709 #define DMAE_REG_GO_C2 0x1020a0
710 /* [RW 1] Command 3 go. */
711 #define DMAE_REG_GO_C3 0x1020a4
712 /* [RW 1] Command 4 go. */
713 #define DMAE_REG_GO_C4 0x1020a8
714 /* [RW 1] Command 5 go. */
715 #define DMAE_REG_GO_C5 0x1020ac
716 /* [RW 1] Command 6 go. */
717 #define DMAE_REG_GO_C6 0x1020b0
718 /* [RW 1] Command 7 go. */
719 #define DMAE_REG_GO_C7 0x1020b4
720 /* [RW 1] Command 8 go. */
721 #define DMAE_REG_GO_C8 0x1020b8
722 /* [RW 1] Command 9 go. */
723 #define DMAE_REG_GO_C9 0x1020bc
724 /* [RW 1] DMAE GRC Interface (Target; aster) enable. If 0 - the acknowledge
725 input is disregarded; valid is deasserted; all other signals are treated
726 as usual; if 1 - normal activity. */
727 #define DMAE_REG_GRC_IFEN 0x102008
728 /* [RW 1] DMAE PCI Interface (Request; ead; rite) enable. If 0 - the
729 acknowledge input is disregarded; valid is deasserted; full is asserted;
730 all other signals are treated as usual; if 1 - normal activity. */
731 #define DMAE_REG_PCI_IFEN 0x102004
732 /* [RW 4] DMAE- PCI Request Interface initial credit. Write writes the
733 initial value to the credit counter; related to the address. Read returns
734 the current value of the counter. */
735 #define DMAE_REG_PXP_REQ_INIT_CRD 0x1020c0
736 /* [RW 8] Aggregation command. */
737 #define DORQ_REG_AGG_CMD0 0x170060
738 /* [RW 8] Aggregation command. */
739 #define DORQ_REG_AGG_CMD1 0x170064
740 /* [RW 8] Aggregation command. */
741 #define DORQ_REG_AGG_CMD2 0x170068
742 /* [RW 8] Aggregation command. */
743 #define DORQ_REG_AGG_CMD3 0x17006c
744 /* [RW 28] UCM Header. */
745 #define DORQ_REG_CMHEAD_RX 0x170050
746 /* [RW 32] Doorbell address for RBC doorbells (function 0). */
747 #define DORQ_REG_DB_ADDR0 0x17008c
748 /* [RW 5] Interrupt mask register #0 read/write */
749 #define DORQ_REG_DORQ_INT_MASK 0x170180
750 /* [R 5] Interrupt register #0 read */
751 #define DORQ_REG_DORQ_INT_STS 0x170174
752 /* [RC 5] Interrupt register #0 read clear */
753 #define DORQ_REG_DORQ_INT_STS_CLR 0x170178
754 /* [RW 2] Parity mask register #0 read/write */
755 #define DORQ_REG_DORQ_PRTY_MASK 0x170190
756 /* [R 2] Parity register #0 read */
757 #define DORQ_REG_DORQ_PRTY_STS 0x170184
758 /* [RC 2] Parity register #0 read clear */
759 #define DORQ_REG_DORQ_PRTY_STS_CLR 0x170188
760 /* [RW 8] The address to write the DPM CID to STORM. */
761 #define DORQ_REG_DPM_CID_ADDR 0x170044
762 /* [RW 5] The DPM mode CID extraction offset. */
763 #define DORQ_REG_DPM_CID_OFST 0x170030
764 /* [RW 12] The threshold of the DQ FIFO to send the almost full interrupt. */
765 #define DORQ_REG_DQ_FIFO_AFULL_TH 0x17007c
766 /* [RW 12] The threshold of the DQ FIFO to send the full interrupt. */
767 #define DORQ_REG_DQ_FIFO_FULL_TH 0x170078
768 /* [R 13] Current value of the DQ FIFO fill level according to following
769 pointer. The range is 0 - 256 FIFO rows; where each row stands for the
771 #define DORQ_REG_DQ_FILL_LVLF 0x1700a4
772 /* [R 1] DQ FIFO full status. Is set; when FIFO filling level is more or
773 equal to full threshold; reset on full clear. */
774 #define DORQ_REG_DQ_FULL_ST 0x1700c0
775 /* [RW 28] The value sent to CM header in the case of CFC load error. */
776 #define DORQ_REG_ERR_CMHEAD 0x170058
777 #define DORQ_REG_IF_EN 0x170004
778 #define DORQ_REG_MODE_ACT 0x170008
779 /* [RW 5] The normal mode CID extraction offset. */
780 #define DORQ_REG_NORM_CID_OFST 0x17002c
781 /* [RW 28] TCM Header when only TCP context is loaded. */
782 #define DORQ_REG_NORM_CMHEAD_TX 0x17004c
783 /* [RW 3] The number of simultaneous outstanding requests to Context Fetch
785 #define DORQ_REG_OUTST_REQ 0x17003c
786 #define DORQ_REG_REGN 0x170038
787 /* [R 4] Current value of response A counter credit. Initial credit is
788 configured through write to ~dorq_registers_rsp_init_crd.rsp_init_crd
790 #define DORQ_REG_RSPA_CRD_CNT 0x1700ac
791 /* [R 4] Current value of response B counter credit. Initial credit is
792 configured through write to ~dorq_registers_rsp_init_crd.rsp_init_crd
794 #define DORQ_REG_RSPB_CRD_CNT 0x1700b0
795 /* [RW 4] The initial credit at the Doorbell Response Interface. The write
796 writes the same initial credit to the rspa_crd_cnt and rspb_crd_cnt. The
797 read reads this written value. */
798 #define DORQ_REG_RSP_INIT_CRD 0x170048
799 /* [RW 4] Initial activity counter value on the load request; when the
801 #define DORQ_REG_SHRT_ACT_CNT 0x170070
802 /* [RW 28] TCM Header when both ULP and TCP context is loaded. */
803 #define DORQ_REG_SHRT_CMHEAD 0x170054
804 #define HC_CONFIG_0_REG_ATTN_BIT_EN_0 (0x1<<4)
805 #define HC_CONFIG_0_REG_INT_LINE_EN_0 (0x1<<3)
806 #define HC_CONFIG_0_REG_MSI_ATTN_EN_0 (0x1<<7)
807 #define HC_CONFIG_0_REG_MSI_MSIX_INT_EN_0 (0x1<<2)
808 #define HC_CONFIG_0_REG_SINGLE_ISR_EN_0 (0x1<<1)
809 #define HC_REG_AGG_INT_0 0x108050
810 #define HC_REG_AGG_INT_1 0x108054
811 #define HC_REG_ATTN_BIT 0x108120
812 #define HC_REG_ATTN_IDX 0x108100
813 #define HC_REG_ATTN_MSG0_ADDR_L 0x108018
814 #define HC_REG_ATTN_MSG1_ADDR_L 0x108020
815 #define HC_REG_ATTN_NUM_P0 0x108038
816 #define HC_REG_ATTN_NUM_P1 0x10803c
817 #define HC_REG_COMMAND_REG 0x108180
818 #define HC_REG_CONFIG_0 0x108000
819 #define HC_REG_CONFIG_1 0x108004
820 #define HC_REG_FUNC_NUM_P0 0x1080ac
821 #define HC_REG_FUNC_NUM_P1 0x1080b0
822 /* [RW 3] Parity mask register #0 read/write */
823 #define HC_REG_HC_PRTY_MASK 0x1080a0
824 /* [R 3] Parity register #0 read */
825 #define HC_REG_HC_PRTY_STS 0x108094
826 /* [RC 3] Parity register #0 read clear */
827 #define HC_REG_HC_PRTY_STS_CLR 0x108098
828 #define HC_REG_INT_MASK 0x108108
829 #define HC_REG_LEADING_EDGE_0 0x108040
830 #define HC_REG_LEADING_EDGE_1 0x108048
831 #define HC_REG_MAIN_MEMORY 0x108800
832 #define HC_REG_MAIN_MEMORY_SIZE 152
833 #define HC_REG_P0_PROD_CONS 0x108200
834 #define HC_REG_P1_PROD_CONS 0x108400
835 #define HC_REG_PBA_COMMAND 0x108140
836 #define HC_REG_PCI_CONFIG_0 0x108010
837 #define HC_REG_PCI_CONFIG_1 0x108014
838 #define HC_REG_STATISTIC_COUNTERS 0x109000
839 #define HC_REG_TRAILING_EDGE_0 0x108044
840 #define HC_REG_TRAILING_EDGE_1 0x10804c
841 #define HC_REG_UC_RAM_ADDR_0 0x108028
842 #define HC_REG_UC_RAM_ADDR_1 0x108030
843 #define HC_REG_USTORM_ADDR_FOR_COALESCE 0x108068
844 #define HC_REG_VQID_0 0x108008
845 #define HC_REG_VQID_1 0x10800c
846 #define IGU_BLOCK_CONFIGURATION_REG_BACKWARD_COMP_EN (0x1<<1)
847 #define IGU_REG_ATTENTION_ACK_BITS 0x130108
848 /* [R 4] Debug: attn_fsm */
849 #define IGU_REG_ATTN_FSM 0x130054
850 #define IGU_REG_ATTN_MSG_ADDR_H 0x13011c
851 #define IGU_REG_ATTN_MSG_ADDR_L 0x130120
852 /* [R 4] Debug: [3] - attention write done message is pending (0-no pending;
853 * 1-pending). [2:0] = PFID. Pending means attention message was sent; but
854 * write done didnt receive. */
855 #define IGU_REG_ATTN_WRITE_DONE_PENDING 0x130030
856 #define IGU_REG_BLOCK_CONFIGURATION 0x130000
857 #define IGU_REG_COMMAND_REG_32LSB_DATA 0x130124
858 #define IGU_REG_COMMAND_REG_CTRL 0x13012c
859 /* [WB_R 32] Cleanup bit status per SB. 1 = cleanup is set. 0 = cleanup bit
860 * is clear. The bits in this registers are set and clear via the producer
861 * command. Data valid only in addresses 0-4. all the rest are zero. */
862 #define IGU_REG_CSTORM_TYPE_0_SB_CLEANUP 0x130200
863 /* [R 5] Debug: ctrl_fsm */
864 #define IGU_REG_CTRL_FSM 0x130064
865 /* [R 1] data availble for error memory. If this bit is clear do not red
866 * from error_handling_memory. */
867 #define IGU_REG_ERROR_HANDLING_DATA_VALID 0x130130
868 /* [RW 11] Parity mask register #0 read/write */
869 #define IGU_REG_IGU_PRTY_MASK 0x1300a8
870 /* [R 11] Parity register #0 read */
871 #define IGU_REG_IGU_PRTY_STS 0x13009c
872 /* [RC 11] Parity register #0 read clear */
873 #define IGU_REG_IGU_PRTY_STS_CLR 0x1300a0
874 /* [R 4] Debug: int_handle_fsm */
875 #define IGU_REG_INT_HANDLE_FSM 0x130050
876 #define IGU_REG_LEADING_EDGE_LATCH 0x130134
877 /* [RW 14] mapping CAM; relevant for E2 operating mode only. [0] - valid.
878 * [6:1] - vector number; [13:7] - FID (if VF - [13] = 0; [12:7] = VF
879 * number; if PF - [13] = 1; [12:10] = 0; [9:7] = PF number); */
880 #define IGU_REG_MAPPING_MEMORY 0x131000
881 #define IGU_REG_MAPPING_MEMORY_SIZE 136
882 #define IGU_REG_PBA_STATUS_LSB 0x130138
883 #define IGU_REG_PBA_STATUS_MSB 0x13013c
884 #define IGU_REG_PCI_PF_MSI_EN 0x130140
885 #define IGU_REG_PCI_PF_MSIX_EN 0x130144
886 #define IGU_REG_PCI_PF_MSIX_FUNC_MASK 0x130148
887 /* [WB_R 32] Each bit represent the pending bits status for that SB. 0 = no
888 * pending; 1 = pending. Pendings means interrupt was asserted; and write
889 * done was not received. Data valid only in addresses 0-4. all the rest are
891 #define IGU_REG_PENDING_BITS_STATUS 0x130300
892 #define IGU_REG_PF_CONFIGURATION 0x130154
893 /* [RW 20] producers only. E2 mode: address 0-135 match to the mapping
894 * memory; 136 - PF0 default prod; 137 PF1 default prod; 138 - PF2 default
895 * prod; 139 PF3 default prod; 140 - PF0 - ATTN prod; 141 - PF1 - ATTN prod;
896 * 142 - PF2 - ATTN prod; 143 - PF3 - ATTN prod; 144-147 reserved. E1.5 mode
897 * - In backward compatible mode; for non default SB; each even line in the
898 * memory holds the U producer and each odd line hold the C producer. The
899 * first 128 producer are for NDSB (PF0 - 0-31; PF1 - 32-63 and so on). The
900 * last 20 producers are for the DSB for each PF. each PF has five segments
901 * (the order inside each segment is PF0; PF1; PF2; PF3) - 128-131 U prods;
902 * 132-135 C prods; 136-139 X prods; 140-143 T prods; 144-147 ATTN prods; */
903 #define IGU_REG_PROD_CONS_MEMORY 0x132000
904 /* [R 3] Debug: pxp_arb_fsm */
905 #define IGU_REG_PXP_ARB_FSM 0x130068
906 /* [RW 6] Write one for each bit will reset the appropriate memory. When the
907 * memory reset finished the appropriate bit will be clear. Bit 0 - mapping
908 * memory; Bit 1 - SB memory; Bit 2 - SB interrupt and mask register; Bit 3
909 * - MSIX memory; Bit 4 - PBA memory; Bit 5 - statistics; */
910 #define IGU_REG_RESET_MEMORIES 0x130158
911 /* [R 4] Debug: sb_ctrl_fsm */
912 #define IGU_REG_SB_CTRL_FSM 0x13004c
913 #define IGU_REG_SB_INT_BEFORE_MASK_LSB 0x13015c
914 #define IGU_REG_SB_INT_BEFORE_MASK_MSB 0x130160
915 #define IGU_REG_SB_MASK_LSB 0x130164
916 #define IGU_REG_SB_MASK_MSB 0x130168
917 /* [RW 16] Number of command that were dropped without causing an interrupt
918 * due to: read access for WO BAR address; or write access for RO BAR
919 * address or any access for reserved address or PCI function error is set
920 * and address is not MSIX; PBA or cleanup */
921 #define IGU_REG_SILENT_DROP 0x13016c
922 /* [RW 10] Number of MSI/MSIX/ATTN messages sent for the function: 0-63 -
923 * number of MSIX messages per VF; 64-67 - number of MSI/MSIX messages per
924 * PF; 68-71 number of ATTN messages per PF */
925 #define IGU_REG_STATISTIC_NUM_MESSAGE_SENT 0x130800
926 /* [RW 32] Number of cycles the timer mask masking the IGU interrupt when a
927 * timer mask command arrives. Value must be bigger than 100. */
928 #define IGU_REG_TIMER_MASKING_VALUE 0x13003c
929 #define IGU_REG_TRAILING_EDGE_LATCH 0x130104
930 #define IGU_REG_VF_CONFIGURATION 0x130170
931 /* [WB_R 32] Each bit represent write done pending bits status for that SB
932 * (MSI/MSIX message was sent and write done was not received yet). 0 =
933 * clear; 1 = set. Data valid only in addresses 0-4. all the rest are zero. */
934 #define IGU_REG_WRITE_DONE_PENDING 0x130480
935 #define MCP_A_REG_MCPR_SCRATCH 0x3a0000
936 #define MCP_REG_MCPR_NVM_ACCESS_ENABLE 0x86424
937 #define MCP_REG_MCPR_NVM_ADDR 0x8640c
938 #define MCP_REG_MCPR_NVM_CFG4 0x8642c
939 #define MCP_REG_MCPR_NVM_COMMAND 0x86400
940 #define MCP_REG_MCPR_NVM_READ 0x86410
941 #define MCP_REG_MCPR_NVM_SW_ARB 0x86420
942 #define MCP_REG_MCPR_NVM_WRITE 0x86408
943 #define MCP_REG_MCPR_SCRATCH 0xa0000
944 #define MISC_AEU_GENERAL_MASK_REG_AEU_NIG_CLOSE_MASK (0x1<<1)
945 #define MISC_AEU_GENERAL_MASK_REG_AEU_PXP_CLOSE_MASK (0x1<<0)
946 /* [R 32] read first 32 bit after inversion of function 0. mapped as
947 follows: [0] NIG attention for function0; [1] NIG attention for
948 function1; [2] GPIO1 mcp; [3] GPIO2 mcp; [4] GPIO3 mcp; [5] GPIO4 mcp;
949 [6] GPIO1 function 1; [7] GPIO2 function 1; [8] GPIO3 function 1; [9]
950 GPIO4 function 1; [10] PCIE glue/PXP VPD event function0; [11] PCIE
951 glue/PXP VPD event function1; [12] PCIE glue/PXP Expansion ROM event0;
952 [13] PCIE glue/PXP Expansion ROM event1; [14] SPIO4; [15] SPIO5; [16]
953 MSI/X indication for mcp; [17] MSI/X indication for function 1; [18] BRB
954 Parity error; [19] BRB Hw interrupt; [20] PRS Parity error; [21] PRS Hw
955 interrupt; [22] SRC Parity error; [23] SRC Hw interrupt; [24] TSDM Parity
956 error; [25] TSDM Hw interrupt; [26] TCM Parity error; [27] TCM Hw
957 interrupt; [28] TSEMI Parity error; [29] TSEMI Hw interrupt; [30] PBF
958 Parity error; [31] PBF Hw interrupt; */
959 #define MISC_REG_AEU_AFTER_INVERT_1_FUNC_0 0xa42c
960 #define MISC_REG_AEU_AFTER_INVERT_1_FUNC_1 0xa430
961 /* [R 32] read first 32 bit after inversion of mcp. mapped as follows: [0]
962 NIG attention for function0; [1] NIG attention for function1; [2] GPIO1
963 mcp; [3] GPIO2 mcp; [4] GPIO3 mcp; [5] GPIO4 mcp; [6] GPIO1 function 1;
964 [7] GPIO2 function 1; [8] GPIO3 function 1; [9] GPIO4 function 1; [10]
965 PCIE glue/PXP VPD event function0; [11] PCIE glue/PXP VPD event
966 function1; [12] PCIE glue/PXP Expansion ROM event0; [13] PCIE glue/PXP
967 Expansion ROM event1; [14] SPIO4; [15] SPIO5; [16] MSI/X indication for
968 mcp; [17] MSI/X indication for function 1; [18] BRB Parity error; [19]
969 BRB Hw interrupt; [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC
970 Parity error; [23] SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw
971 interrupt; [26] TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI
972 Parity error; [29] TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw
974 #define MISC_REG_AEU_AFTER_INVERT_1_MCP 0xa434
975 /* [R 32] read second 32 bit after inversion of function 0. mapped as
976 follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
977 Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
978 interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
979 error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
980 interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
981 NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
982 [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
983 interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
984 Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
985 Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
986 Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
988 #define MISC_REG_AEU_AFTER_INVERT_2_FUNC_0 0xa438
989 #define MISC_REG_AEU_AFTER_INVERT_2_FUNC_1 0xa43c
990 /* [R 32] read second 32 bit after inversion of mcp. mapped as follows: [0]
991 PBClient Parity error; [1] PBClient Hw interrupt; [2] QM Parity error;
992 [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw interrupt;
993 [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity error; [9]
994 XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw interrupt; [12]
995 DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14] NIG Parity
996 error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error; [17] Vaux
997 PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw interrupt;
998 [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM Parity error;
999 [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI Hw interrupt;
1000 [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM Parity error;
1001 [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw interrupt; */
1002 #define MISC_REG_AEU_AFTER_INVERT_2_MCP 0xa440
1003 /* [R 32] read third 32 bit after inversion of function 0. mapped as
1004 follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP Parity
1005 error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error; [5]
1006 PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
1007 interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
1008 error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
1009 Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
1010 pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
1011 MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
1012 SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
1013 timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
1014 func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
1016 #define MISC_REG_AEU_AFTER_INVERT_3_FUNC_0 0xa444
1017 #define MISC_REG_AEU_AFTER_INVERT_3_FUNC_1 0xa448
1018 /* [R 32] read third 32 bit after inversion of mcp. mapped as follows: [0]
1019 CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP Parity error; [3] PXP
1020 Hw interrupt; [4] PXPpciClockClient Parity error; [5] PXPpciClockClient
1021 Hw interrupt; [6] CFC Parity error; [7] CFC Hw interrupt; [8] CDU Parity
1022 error; [9] CDU Hw interrupt; [10] DMAE Parity error; [11] DMAE Hw
1023 interrupt; [12] IGU (HC) Parity error; [13] IGU (HC) Hw interrupt; [14]
1024 MISC Parity error; [15] MISC Hw interrupt; [16] pxp_misc_mps_attn; [17]
1025 Flash event; [18] SMB event; [19] MCP attn0; [20] MCP attn1; [21] SW
1026 timers attn_1 func0; [22] SW timers attn_2 func0; [23] SW timers attn_3
1027 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW timers attn_1
1028 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3 func1; [29] SW
1029 timers attn_4 func1; [30] General attn0; [31] General attn1; */
1030 #define MISC_REG_AEU_AFTER_INVERT_3_MCP 0xa44c
1031 /* [R 32] read fourth 32 bit after inversion of function 0. mapped as
1032 follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
1033 General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
1034 [7] General attn9; [8] General attn10; [9] General attn11; [10] General
1035 attn12; [11] General attn13; [12] General attn14; [13] General attn15;
1036 [14] General attn16; [15] General attn17; [16] General attn18; [17]
1037 General attn19; [18] General attn20; [19] General attn21; [20] Main power
1038 interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
1039 Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
1040 Latched timeout attention; [27] GRC Latched reserved access attention;
1041 [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
1042 Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
1043 #define MISC_REG_AEU_AFTER_INVERT_4_FUNC_0 0xa450
1044 #define MISC_REG_AEU_AFTER_INVERT_4_FUNC_1 0xa454
1045 /* [R 32] read fourth 32 bit after inversion of mcp. mapped as follows: [0]
1046 General attn2; [1] General attn3; [2] General attn4; [3] General attn5;
1047 [4] General attn6; [5] General attn7; [6] General attn8; [7] General
1048 attn9; [8] General attn10; [9] General attn11; [10] General attn12; [11]
1049 General attn13; [12] General attn14; [13] General attn15; [14] General
1050 attn16; [15] General attn17; [16] General attn18; [17] General attn19;
1051 [18] General attn20; [19] General attn21; [20] Main power interrupt; [21]
1052 RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN Latched attn; [24]
1053 RBCU Latched attn; [25] RBCP Latched attn; [26] GRC Latched timeout
1054 attention; [27] GRC Latched reserved access attention; [28] MCP Latched
1055 rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP Latched
1056 ump_tx_parity; [31] MCP Latched scpad_parity; */
1057 #define MISC_REG_AEU_AFTER_INVERT_4_MCP 0xa458
1058 /* [R 32] Read fifth 32 bit after inversion of function 0. Mapped as
1059 * follows: [0] PGLUE config_space; [1] PGLUE misc_flr; [2] PGLUE B RBC
1060 * attention [3] PGLUE B RBC parity; [4] ATC attention; [5] ATC parity; [6]
1061 * CNIG attention (reserved); [7] CNIG parity (reserved); [31-8] Reserved; */
1062 #define MISC_REG_AEU_AFTER_INVERT_5_FUNC_0 0xa700
1063 /* [W 14] write to this register results with the clear of the latched
1064 signals; one in d0 clears RBCR latch; one in d1 clears RBCT latch; one in
1065 d2 clears RBCN latch; one in d3 clears RBCU latch; one in d4 clears RBCP
1066 latch; one in d5 clears GRC Latched timeout attention; one in d6 clears
1067 GRC Latched reserved access attention; one in d7 clears Latched
1068 rom_parity; one in d8 clears Latched ump_rx_parity; one in d9 clears
1069 Latched ump_tx_parity; one in d10 clears Latched scpad_parity (both
1070 ports); one in d11 clears pxpv_misc_mps_attn; one in d12 clears
1071 pxp_misc_exp_rom_attn0; one in d13 clears pxp_misc_exp_rom_attn1; read
1072 from this register return zero */
1073 #define MISC_REG_AEU_CLR_LATCH_SIGNAL 0xa45c
1074 /* [RW 32] first 32b for enabling the output for function 0 output0. mapped
1075 as follows: [0] NIG attention for function0; [1] NIG attention for
1076 function1; [2] GPIO1 function 0; [3] GPIO2 function 0; [4] GPIO3 function
1077 0; [5] GPIO4 function 0; [6] GPIO1 function 1; [7] GPIO2 function 1; [8]
1078 GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
1079 function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
1080 Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
1081 SPIO4; [15] SPIO5; [16] MSI/X indication for function 0; [17] MSI/X
1082 indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt;
1083 [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23]
1084 SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26]
1085 TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29]
1086 TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
1087 #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_0 0xa06c
1088 #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_1 0xa07c
1089 #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_2 0xa08c
1090 #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_3 0xa09c
1091 #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_5 0xa0bc
1092 #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_6 0xa0cc
1093 #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_7 0xa0dc
1094 /* [RW 32] first 32b for enabling the output for function 1 output0. mapped
1095 as follows: [0] NIG attention for function0; [1] NIG attention for
1096 function1; [2] GPIO1 function 1; [3] GPIO2 function 1; [4] GPIO3 function
1097 1; [5] GPIO4 function 1; [6] GPIO1 function 1; [7] GPIO2 function 1; [8]
1098 GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
1099 function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
1100 Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
1101 SPIO4; [15] SPIO5; [16] MSI/X indication for function 1; [17] MSI/X
1102 indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt;
1103 [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23]
1104 SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26]
1105 TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29]
1106 TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
1107 #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_0 0xa10c
1108 #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_1 0xa11c
1109 #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_2 0xa12c
1110 #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_3 0xa13c
1111 #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_5 0xa15c
1112 #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_6 0xa16c
1113 #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_7 0xa17c
1114 /* [RW 32] first 32b for enabling the output for close the gate nig. mapped
1115 as follows: [0] NIG attention for function0; [1] NIG attention for
1116 function1; [2] GPIO1 function 0; [3] GPIO2 function 0; [4] GPIO3 function
1117 0; [5] GPIO4 function 0; [6] GPIO1 function 1; [7] GPIO2 function 1; [8]
1118 GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
1119 function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
1120 Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
1121 SPIO4; [15] SPIO5; [16] MSI/X indication for function 0; [17] MSI/X
1122 indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt;
1123 [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23]
1124 SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26]
1125 TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29]
1126 TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
1127 #define MISC_REG_AEU_ENABLE1_NIG_0 0xa0ec
1128 #define MISC_REG_AEU_ENABLE1_NIG_1 0xa18c
1129 /* [RW 32] first 32b for enabling the output for close the gate pxp. mapped
1130 as follows: [0] NIG attention for function0; [1] NIG attention for
1131 function1; [2] GPIO1 function 0; [3] GPIO2 function 0; [4] GPIO3 function
1132 0; [5] GPIO4 function 0; [6] GPIO1 function 1; [7] GPIO2 function 1; [8]
1133 GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
1134 function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
1135 Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
1136 SPIO4; [15] SPIO5; [16] MSI/X indication for function 0; [17] MSI/X
1137 indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt;
1138 [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23]
1139 SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26]
1140 TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29]
1141 TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
1142 #define MISC_REG_AEU_ENABLE1_PXP_0 0xa0fc
1143 #define MISC_REG_AEU_ENABLE1_PXP_1 0xa19c
1144 /* [RW 32] second 32b for enabling the output for function 0 output0. mapped
1145 as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
1146 Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
1147 interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
1148 error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
1149 interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
1150 NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
1151 [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
1152 interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
1153 Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
1154 Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
1155 Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
1157 #define MISC_REG_AEU_ENABLE2_FUNC_0_OUT_0 0xa070
1158 #define MISC_REG_AEU_ENABLE2_FUNC_0_OUT_1 0xa080
1159 /* [RW 32] second 32b for enabling the output for function 1 output0. mapped
1160 as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
1161 Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
1162 interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
1163 error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
1164 interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
1165 NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
1166 [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
1167 interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
1168 Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
1169 Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
1170 Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
1172 #define MISC_REG_AEU_ENABLE2_FUNC_1_OUT_0 0xa110
1173 #define MISC_REG_AEU_ENABLE2_FUNC_1_OUT_1 0xa120
1174 /* [RW 32] second 32b for enabling the output for close the gate nig. mapped
1175 as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
1176 Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
1177 interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
1178 error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
1179 interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
1180 NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
1181 [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
1182 interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
1183 Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
1184 Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
1185 Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
1187 #define MISC_REG_AEU_ENABLE2_NIG_0 0xa0f0
1188 #define MISC_REG_AEU_ENABLE2_NIG_1 0xa190
1189 /* [RW 32] second 32b for enabling the output for close the gate pxp. mapped
1190 as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
1191 Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
1192 interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
1193 error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
1194 interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
1195 NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
1196 [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
1197 interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
1198 Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
1199 Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
1200 Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
1202 #define MISC_REG_AEU_ENABLE2_PXP_0 0xa100
1203 #define MISC_REG_AEU_ENABLE2_PXP_1 0xa1a0
1204 /* [RW 32] third 32b for enabling the output for function 0 output0. mapped
1205 as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP
1206 Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error;
1207 [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
1208 interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
1209 error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
1210 Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
1211 pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
1212 MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
1213 SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
1214 timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
1215 func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
1217 #define MISC_REG_AEU_ENABLE3_FUNC_0_OUT_0 0xa074
1218 #define MISC_REG_AEU_ENABLE3_FUNC_0_OUT_1 0xa084
1219 /* [RW 32] third 32b for enabling the output for function 1 output0. mapped
1220 as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP
1221 Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error;
1222 [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
1223 interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
1224 error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
1225 Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
1226 pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
1227 MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
1228 SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
1229 timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
1230 func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
1232 #define MISC_REG_AEU_ENABLE3_FUNC_1_OUT_0 0xa114
1233 #define MISC_REG_AEU_ENABLE3_FUNC_1_OUT_1 0xa124
1234 /* [RW 32] third 32b for enabling the output for close the gate nig. mapped
1235 as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP
1236 Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error;
1237 [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
1238 interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
1239 error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
1240 Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
1241 pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
1242 MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
1243 SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
1244 timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
1245 func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
1247 #define MISC_REG_AEU_ENABLE3_NIG_0 0xa0f4
1248 #define MISC_REG_AEU_ENABLE3_NIG_1 0xa194
1249 /* [RW 32] third 32b for enabling the output for close the gate pxp. mapped
1250 as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP
1251 Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error;
1252 [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
1253 interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
1254 error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
1255 Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
1256 pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
1257 MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
1258 SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
1259 timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
1260 func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
1262 #define MISC_REG_AEU_ENABLE3_PXP_0 0xa104
1263 #define MISC_REG_AEU_ENABLE3_PXP_1 0xa1a4
1264 /* [RW 32] fourth 32b for enabling the output for function 0 output0.mapped
1265 as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
1266 General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
1267 [7] General attn9; [8] General attn10; [9] General attn11; [10] General
1268 attn12; [11] General attn13; [12] General attn14; [13] General attn15;
1269 [14] General attn16; [15] General attn17; [16] General attn18; [17]
1270 General attn19; [18] General attn20; [19] General attn21; [20] Main power
1271 interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
1272 Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
1273 Latched timeout attention; [27] GRC Latched reserved access attention;
1274 [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
1275 Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
1276 #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_0 0xa078
1277 #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_2 0xa098
1278 #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_4 0xa0b8
1279 #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_5 0xa0c8
1280 #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_6 0xa0d8
1281 #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_7 0xa0e8
1282 /* [RW 32] fourth 32b for enabling the output for function 1 output0.mapped
1283 as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
1284 General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
1285 [7] General attn9; [8] General attn10; [9] General attn11; [10] General
1286 attn12; [11] General attn13; [12] General attn14; [13] General attn15;
1287 [14] General attn16; [15] General attn17; [16] General attn18; [17]
1288 General attn19; [18] General attn20; [19] General attn21; [20] Main power
1289 interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
1290 Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
1291 Latched timeout attention; [27] GRC Latched reserved access attention;
1292 [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
1293 Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
1294 #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_0 0xa118
1295 #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_2 0xa138
1296 #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_4 0xa158
1297 #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_5 0xa168
1298 #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_6 0xa178
1299 #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_7 0xa188
1300 /* [RW 32] fourth 32b for enabling the output for close the gate nig.mapped
1301 as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
1302 General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
1303 [7] General attn9; [8] General attn10; [9] General attn11; [10] General
1304 attn12; [11] General attn13; [12] General attn14; [13] General attn15;
1305 [14] General attn16; [15] General attn17; [16] General attn18; [17]
1306 General attn19; [18] General attn20; [19] General attn21; [20] Main power
1307 interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
1308 Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
1309 Latched timeout attention; [27] GRC Latched reserved access attention;
1310 [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
1311 Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
1312 #define MISC_REG_AEU_ENABLE4_NIG_0 0xa0f8
1313 #define MISC_REG_AEU_ENABLE4_NIG_1 0xa198
1314 /* [RW 32] fourth 32b for enabling the output for close the gate pxp.mapped
1315 as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
1316 General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
1317 [7] General attn9; [8] General attn10; [9] General attn11; [10] General
1318 attn12; [11] General attn13; [12] General attn14; [13] General attn15;
1319 [14] General attn16; [15] General attn17; [16] General attn18; [17]
1320 General attn19; [18] General attn20; [19] General attn21; [20] Main power
1321 interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
1322 Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
1323 Latched timeout attention; [27] GRC Latched reserved access attention;
1324 [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
1325 Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
1326 #define MISC_REG_AEU_ENABLE4_PXP_0 0xa108
1327 #define MISC_REG_AEU_ENABLE4_PXP_1 0xa1a8
1328 /* [RW 1] set/clr general attention 0; this will set/clr bit 94 in the aeu
1330 #define MISC_REG_AEU_GENERAL_ATTN_0 0xa000
1331 #define MISC_REG_AEU_GENERAL_ATTN_1 0xa004
1332 #define MISC_REG_AEU_GENERAL_ATTN_10 0xa028
1333 #define MISC_REG_AEU_GENERAL_ATTN_11 0xa02c
1334 #define MISC_REG_AEU_GENERAL_ATTN_12 0xa030
1335 #define MISC_REG_AEU_GENERAL_ATTN_2 0xa008
1336 #define MISC_REG_AEU_GENERAL_ATTN_3 0xa00c
1337 #define MISC_REG_AEU_GENERAL_ATTN_4 0xa010
1338 #define MISC_REG_AEU_GENERAL_ATTN_5 0xa014
1339 #define MISC_REG_AEU_GENERAL_ATTN_6 0xa018
1340 #define MISC_REG_AEU_GENERAL_ATTN_7 0xa01c
1341 #define MISC_REG_AEU_GENERAL_ATTN_8 0xa020
1342 #define MISC_REG_AEU_GENERAL_ATTN_9 0xa024
1343 #define MISC_REG_AEU_GENERAL_MASK 0xa61c
1344 /* [RW 32] first 32b for inverting the input for function 0; for each bit:
1345 0= do not invert; 1= invert; mapped as follows: [0] NIG attention for
1346 function0; [1] NIG attention for function1; [2] GPIO1 mcp; [3] GPIO2 mcp;
1347 [4] GPIO3 mcp; [5] GPIO4 mcp; [6] GPIO1 function 1; [7] GPIO2 function 1;
1348 [8] GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
1349 function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
1350 Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
1351 SPIO4; [15] SPIO5; [16] MSI/X indication for mcp; [17] MSI/X indication
1352 for function 1; [18] BRB Parity error; [19] BRB Hw interrupt; [20] PRS
1353 Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23] SRC Hw
1354 interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26] TCM
1355 Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29] TSEMI
1356 Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
1357 #define MISC_REG_AEU_INVERTER_1_FUNC_0 0xa22c
1358 #define MISC_REG_AEU_INVERTER_1_FUNC_1 0xa23c
1359 /* [RW 32] second 32b for inverting the input for function 0; for each bit:
1360 0= do not invert; 1= invert. mapped as follows: [0] PBClient Parity
1361 error; [1] PBClient Hw interrupt; [2] QM Parity error; [3] QM Hw
1362 interrupt; [4] Timers Parity error; [5] Timers Hw interrupt; [6] XSDM
1363 Parity error; [7] XSDM Hw interrupt; [8] XCM Parity error; [9] XCM Hw
1364 interrupt; [10] XSEMI Parity error; [11] XSEMI Hw interrupt; [12]
1365 DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14] NIG Parity
1366 error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error; [17] Vaux
1367 PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw interrupt;
1368 [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM Parity error;
1369 [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI Hw interrupt;
1370 [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM Parity error;
1371 [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw interrupt; */
1372 #define MISC_REG_AEU_INVERTER_2_FUNC_0 0xa230
1373 #define MISC_REG_AEU_INVERTER_2_FUNC_1 0xa240
1374 /* [RW 10] [7:0] = mask 8 attention output signals toward IGU function0;
1375 [9:8] = raserved. Zero = mask; one = unmask */
1376 #define MISC_REG_AEU_MASK_ATTN_FUNC_0 0xa060
1377 #define MISC_REG_AEU_MASK_ATTN_FUNC_1 0xa064
1378 /* [RW 1] If set a system kill occurred */
1379 #define MISC_REG_AEU_SYS_KILL_OCCURRED 0xa610
1380 /* [RW 32] Represent the status of the input vector to the AEU when a system
1381 kill occurred. The register is reset in por reset. Mapped as follows: [0]
1382 NIG attention for function0; [1] NIG attention for function1; [2] GPIO1
1383 mcp; [3] GPIO2 mcp; [4] GPIO3 mcp; [5] GPIO4 mcp; [6] GPIO1 function 1;
1384 [7] GPIO2 function 1; [8] GPIO3 function 1; [9] GPIO4 function 1; [10]
1385 PCIE glue/PXP VPD event function0; [11] PCIE glue/PXP VPD event
1386 function1; [12] PCIE glue/PXP Expansion ROM event0; [13] PCIE glue/PXP
1387 Expansion ROM event1; [14] SPIO4; [15] SPIO5; [16] MSI/X indication for
1388 mcp; [17] MSI/X indication for function 1; [18] BRB Parity error; [19]
1389 BRB Hw interrupt; [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC
1390 Parity error; [23] SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw
1391 interrupt; [26] TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI
1392 Parity error; [29] TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw
1394 #define MISC_REG_AEU_SYS_KILL_STATUS_0 0xa600
1395 #define MISC_REG_AEU_SYS_KILL_STATUS_1 0xa604
1396 #define MISC_REG_AEU_SYS_KILL_STATUS_2 0xa608
1397 #define MISC_REG_AEU_SYS_KILL_STATUS_3 0xa60c
1398 /* [R 4] This field indicates the type of the device. '0' - 2 Ports; '1' - 1
1400 #define MISC_REG_BOND_ID 0xa400
1401 /* [R 8] These bits indicate the metal revision of the chip. This value
1402 starts at 0x00 for each all-layer tape-out and increments by one for each
1404 #define MISC_REG_CHIP_METAL 0xa404
1405 /* [R 16] These bits indicate the part number for the chip. */
1406 #define MISC_REG_CHIP_NUM 0xa408
1407 /* [R 4] These bits indicate the base revision of the chip. This value
1408 starts at 0x0 for the A0 tape-out and increments by one for each
1409 all-layer tape-out. */
1410 #define MISC_REG_CHIP_REV 0xa40c
1411 /* [RW 32] The following driver registers(1...16) represent 16 drivers and
1412 32 clients. Each client can be controlled by one driver only. One in each
1413 bit represent that this driver control the appropriate client (Ex: bit 5
1414 is set means this driver control client number 5). addr1 = set; addr0 =
1415 clear; read from both addresses will give the same result = status. write
1416 to address 1 will set a request to control all the clients that their
1417 appropriate bit (in the write command) is set. if the client is free (the
1418 appropriate bit in all the other drivers is clear) one will be written to
1419 that driver register; if the client isn't free the bit will remain zero.
1420 if the appropriate bit is set (the driver request to gain control on a
1421 client it already controls the ~MISC_REGISTERS_INT_STS.GENERIC_SW
1422 interrupt will be asserted). write to address 0 will set a request to
1423 free all the clients that their appropriate bit (in the write command) is
1424 set. if the appropriate bit is clear (the driver request to free a client
1425 it doesn't controls the ~MISC_REGISTERS_INT_STS.GENERIC_SW interrupt will
1427 #define MISC_REG_DRIVER_CONTROL_1 0xa510
1428 #define MISC_REG_DRIVER_CONTROL_7 0xa3c8
1429 /* [RW 1] e1hmf for WOL. If clr WOL signal o the PXP will be send on bit 0
1431 #define MISC_REG_E1HMF_MODE 0xa5f8
1432 /* [RW 32] Debug only: spare RW register reset by core reset */
1433 #define MISC_REG_GENERIC_CR_0 0xa460
1434 #define MISC_REG_GENERIC_CR_1 0xa464
1435 /* [RW 32] Debug only: spare RW register reset by por reset */
1436 #define MISC_REG_GENERIC_POR_1 0xa474
1437 /* [RW 32] GPIO. [31-28] FLOAT port 0; [27-24] FLOAT port 0; When any of
1438 these bits is written as a '1'; the corresponding SPIO bit will turn off
1439 it's drivers and become an input. This is the reset state of all GPIO
1440 pins. The read value of these bits will be a '1' if that last command
1441 (#SET; #CLR; or #FLOAT) for this bit was a #FLOAT. (reset value 0xff).
1442 [23-20] CLR port 1; 19-16] CLR port 0; When any of these bits is written
1443 as a '1'; the corresponding GPIO bit will drive low. The read value of
1444 these bits will be a '1' if that last command (#SET; #CLR; or #FLOAT) for
1445 this bit was a #CLR. (reset value 0). [15-12] SET port 1; 11-8] port 0;
1446 SET When any of these bits is written as a '1'; the corresponding GPIO
1447 bit will drive high (if it has that capability). The read value of these
1448 bits will be a '1' if that last command (#SET; #CLR; or #FLOAT) for this
1449 bit was a #SET. (reset value 0). [7-4] VALUE port 1; [3-0] VALUE port 0;
1450 RO; These bits indicate the read value of each of the eight GPIO pins.
1451 This is the result value of the pin; not the drive value. Writing these
1452 bits will have not effect. */
1453 #define MISC_REG_GPIO 0xa490
1454 /* [RW 8] These bits enable the GPIO_INTs to signals event to the
1455 IGU/MCP.according to the following map: [0] p0_gpio_0; [1] p0_gpio_1; [2]
1456 p0_gpio_2; [3] p0_gpio_3; [4] p1_gpio_0; [5] p1_gpio_1; [6] p1_gpio_2;
1458 #define MISC_REG_GPIO_EVENT_EN 0xa2bc
1459 /* [RW 32] GPIO INT. [31-28] OLD_CLR port1; [27-24] OLD_CLR port0; Writing a
1460 '1' to these bit clears the corresponding bit in the #OLD_VALUE register.
1461 This will acknowledge an interrupt on the falling edge of corresponding
1462 GPIO input (reset value 0). [23-16] OLD_SET [23-16] port1; OLD_SET port0;
1463 Writing a '1' to these bit sets the corresponding bit in the #OLD_VALUE
1464 register. This will acknowledge an interrupt on the rising edge of
1465 corresponding SPIO input (reset value 0). [15-12] OLD_VALUE [11-8] port1;
1466 OLD_VALUE port0; RO; These bits indicate the old value of the GPIO input
1467 value. When the ~INT_STATE bit is set; this bit indicates the OLD value
1468 of the pin such that if ~INT_STATE is set and this bit is '0'; then the
1469 interrupt is due to a low to high edge. If ~INT_STATE is set and this bit
1470 is '1'; then the interrupt is due to a high to low edge (reset value 0).
1471 [7-4] INT_STATE port1; [3-0] INT_STATE RO port0; These bits indicate the
1472 current GPIO interrupt state for each GPIO pin. This bit is cleared when
1473 the appropriate #OLD_SET or #OLD_CLR command bit is written. This bit is
1474 set when the GPIO input does not match the current value in #OLD_VALUE
1476 #define MISC_REG_GPIO_INT 0xa494
1477 /* [R 28] this field hold the last information that caused reserved
1478 attention. bits [19:0] - address; [22:20] function; [23] reserved;
1479 [27:24] the master that caused the attention - according to the following
1480 encodeing:1 = pxp; 2 = mcp; 3 = usdm; 4 = tsdm; 5 = xsdm; 6 = csdm; 7 =
1482 #define MISC_REG_GRC_RSV_ATTN 0xa3c0
1483 /* [R 28] this field hold the last information that caused timeout
1484 attention. bits [19:0] - address; [22:20] function; [23] reserved;
1485 [27:24] the master that caused the attention - according to the following
1486 encodeing:1 = pxp; 2 = mcp; 3 = usdm; 4 = tsdm; 5 = xsdm; 6 = csdm; 7 =
1488 #define MISC_REG_GRC_TIMEOUT_ATTN 0xa3c4
1489 /* [RW 1] Setting this bit enables a timer in the GRC block to timeout any
1490 access that does not finish within
1491 ~misc_registers_grc_timout_val.grc_timeout_val cycles. When this bit is
1492 cleared; this timeout is disabled. If this timeout occurs; the GRC shall
1493 assert it attention output. */
1494 #define MISC_REG_GRC_TIMEOUT_EN 0xa280
1495 /* [RW 28] 28 LSB of LCPLL first register; reset val = 521. inside order of
1496 the bits is: [2:0] OAC reset value 001) CML output buffer bias control;
1497 111 for +40%; 011 for +20%; 001 for 0%; 000 for -20%. [5:3] Icp_ctrl
1498 (reset value 001) Charge pump current control; 111 for 720u; 011 for
1499 600u; 001 for 480u and 000 for 360u. [7:6] Bias_ctrl (reset value 00)
1500 Global bias control; When bit 7 is high bias current will be 10 0gh; When
1501 bit 6 is high bias will be 100w; Valid values are 00; 10; 01. [10:8]
1502 Pll_observe (reset value 010) Bits to control observability. bit 10 is
1503 for test bias; bit 9 is for test CK; bit 8 is test Vc. [12:11] Vth_ctrl
1504 (reset value 00) Comparator threshold control. 00 for 0.6V; 01 for 0.54V
1505 and 10 for 0.66V. [13] pllSeqStart (reset value 0) Enables VCO tuning
1506 sequencer: 1= sequencer disabled; 0= sequencer enabled (inverted
1507 internally). [14] reserved (reset value 0) Reset for VCO sequencer is
1508 connected to RESET input directly. [15] capRetry_en (reset value 0)
1509 enable retry on cap search failure (inverted). [16] freqMonitor_e (reset
1510 value 0) bit to continuously monitor vco freq (inverted). [17]
1511 freqDetRestart_en (reset value 0) bit to enable restart when not freq
1512 locked (inverted). [18] freqDetRetry_en (reset value 0) bit to enable
1513 retry on freq det failure(inverted). [19] pllForceFdone_en (reset value
1514 0) bit to enable pllForceFdone & pllForceFpass into pllSeq. [20]
1515 pllForceFdone (reset value 0) bit to force freqDone. [21] pllForceFpass
1516 (reset value 0) bit to force freqPass. [22] pllForceDone_en (reset value
1517 0) bit to enable pllForceCapDone. [23] pllForceCapDone (reset value 0)
1518 bit to force capDone. [24] pllForceCapPass_en (reset value 0) bit to
1519 enable pllForceCapPass. [25] pllForceCapPass (reset value 0) bit to force
1520 capPass. [26] capRestart (reset value 0) bit to force cap sequencer to
1521 restart. [27] capSelectM_en (reset value 0) bit to enable cap select
1523 #define MISC_REG_LCPLL_CTRL_1 0xa2a4
1524 #define MISC_REG_LCPLL_CTRL_REG_2 0xa2a8
1525 /* [RW 4] Interrupt mask register #0 read/write */
1526 #define MISC_REG_MISC_INT_MASK 0xa388
1527 /* [RW 1] Parity mask register #0 read/write */
1528 #define MISC_REG_MISC_PRTY_MASK 0xa398
1529 /* [R 1] Parity register #0 read */
1530 #define MISC_REG_MISC_PRTY_STS 0xa38c
1531 /* [RC 1] Parity register #0 read clear */
1532 #define MISC_REG_MISC_PRTY_STS_CLR 0xa390
1533 #define MISC_REG_NIG_WOL_P0 0xa270
1534 #define MISC_REG_NIG_WOL_P1 0xa274
1535 /* [R 1] If set indicate that the pcie_rst_b was asserted without perst
1537 #define MISC_REG_PCIE_HOT_RESET 0xa618
1538 /* [RW 32] 32 LSB of storm PLL first register; reset val = 0x 071d2911.
1539 inside order of the bits is: [0] P1 divider[0] (reset value 1); [1] P1
1540 divider[1] (reset value 0); [2] P1 divider[2] (reset value 0); [3] P1
1541 divider[3] (reset value 0); [4] P2 divider[0] (reset value 1); [5] P2
1542 divider[1] (reset value 0); [6] P2 divider[2] (reset value 0); [7] P2
1543 divider[3] (reset value 0); [8] ph_det_dis (reset value 1); [9]
1544 freq_det_dis (reset value 0); [10] Icpx[0] (reset value 0); [11] Icpx[1]
1545 (reset value 1); [12] Icpx[2] (reset value 0); [13] Icpx[3] (reset value
1546 1); [14] Icpx[4] (reset value 0); [15] Icpx[5] (reset value 0); [16]
1547 Rx[0] (reset value 1); [17] Rx[1] (reset value 0); [18] vc_en (reset
1548 value 1); [19] vco_rng[0] (reset value 1); [20] vco_rng[1] (reset value
1549 1); [21] Kvco_xf[0] (reset value 0); [22] Kvco_xf[1] (reset value 0);
1550 [23] Kvco_xf[2] (reset value 0); [24] Kvco_xs[0] (reset value 1); [25]
1551 Kvco_xs[1] (reset value 1); [26] Kvco_xs[2] (reset value 1); [27]
1552 testd_en (reset value 0); [28] testd_sel[0] (reset value 0); [29]
1553 testd_sel[1] (reset value 0); [30] testd_sel[2] (reset value 0); [31]
1554 testa_en (reset value 0); */
1555 #define MISC_REG_PLL_STORM_CTRL_1 0xa294
1556 #define MISC_REG_PLL_STORM_CTRL_2 0xa298
1557 #define MISC_REG_PLL_STORM_CTRL_3 0xa29c
1558 #define MISC_REG_PLL_STORM_CTRL_4 0xa2a0
1559 /* [R 1] Status of 4 port mode enable input pin. */
1560 #define MISC_REG_PORT4MODE_EN 0xa750
1561 /* [RW 2] 4 port mode enable overwrite.[0] - Overwrite control; if it is 0 -
1562 * the port4mode_en output is equal to 4 port mode input pin; if it is 1 -
1563 * the port4mode_en output is equal to bit[1] of this register; [1] -
1564 * Overwrite value. If bit[0] of this register is 1 this is the value that
1565 * receives the port4mode_en output . */
1566 #define MISC_REG_PORT4MODE_EN_OVWR 0xa720
1567 /* [RW 32] reset reg#2; rite/read one = the specific block is out of reset;
1568 write/read zero = the specific block is in reset; addr 0-wr- the write
1569 value will be written to the register; addr 1-set - one will be written
1570 to all the bits that have the value of one in the data written (bits that
1571 have the value of zero will not be change) ; addr 2-clear - zero will be
1572 written to all the bits that have the value of one in the data written
1573 (bits that have the value of zero will not be change); addr 3-ignore;
1574 read ignore from all addr except addr 00; inside order of the bits is:
1575 [0] rst_bmac0; [1] rst_bmac1; [2] rst_emac0; [3] rst_emac1; [4] rst_grc;
1576 [5] rst_mcp_n_reset_reg_hard_core; [6] rst_ mcp_n_hard_core_rst_b; [7]
1577 rst_ mcp_n_reset_cmn_cpu; [8] rst_ mcp_n_reset_cmn_core; [9] rst_rbcn;
1578 [10] rst_dbg; [11] rst_misc_core; [12] rst_dbue (UART); [13]
1579 Pci_resetmdio_n; [14] rst_emac0_hard_core; [15] rst_emac1_hard_core; 16]
1580 rst_pxp_rq_rd_wr; 31:17] reserved */
1581 #define MISC_REG_RESET_REG_2 0xa590
1582 /* [RW 20] 20 bit GRC address where the scratch-pad of the MCP that is
1583 shared with the driver resides */
1584 #define MISC_REG_SHARED_MEM_ADDR 0xa2b4
1585 /* [RW 32] SPIO. [31-24] FLOAT When any of these bits is written as a '1';
1586 the corresponding SPIO bit will turn off it's drivers and become an
1587 input. This is the reset state of all SPIO pins. The read value of these
1588 bits will be a '1' if that last command (#SET; #CL; or #FLOAT) for this
1589 bit was a #FLOAT. (reset value 0xff). [23-16] CLR When any of these bits
1590 is written as a '1'; the corresponding SPIO bit will drive low. The read
1591 value of these bits will be a '1' if that last command (#SET; #CLR; or
1592 #FLOAT) for this bit was a #CLR. (reset value 0). [15-8] SET When any of
1593 these bits is written as a '1'; the corresponding SPIO bit will drive
1594 high (if it has that capability). The read value of these bits will be a
1595 '1' if that last command (#SET; #CLR; or #FLOAT) for this bit was a #SET.
1596 (reset value 0). [7-0] VALUE RO; These bits indicate the read value of
1597 each of the eight SPIO pins. This is the result value of the pin; not the
1598 drive value. Writing these bits will have not effect. Each 8 bits field
1599 is divided as follows: [0] VAUX Enable; when pulsed low; enables supply
1600 from VAUX. (This is an output pin only; the FLOAT field is not applicable
1601 for this pin); [1] VAUX Disable; when pulsed low; disables supply form
1602 VAUX. (This is an output pin only; FLOAT field is not applicable for this
1603 pin); [2] SEL_VAUX_B - Control to power switching logic. Drive low to
1604 select VAUX supply. (This is an output pin only; it is not controlled by
1605 the SET and CLR fields; it is controlled by the Main Power SM; the FLOAT
1606 field is not applicable for this pin; only the VALUE fields is relevant -
1607 it reflects the output value); [3] port swap [4] spio_4; [5] spio_5; [6]
1608 Bit 0 of UMP device ID select; read by UMP firmware; [7] Bit 1 of UMP
1609 device ID select; read by UMP firmware. */
1610 #define MISC_REG_SPIO 0xa4fc
1611 /* [RW 8] These bits enable the SPIO_INTs to signals event to the IGU/MC.
1612 according to the following map: [3:0] reserved; [4] spio_4 [5] spio_5;
1614 #define MISC_REG_SPIO_EVENT_EN 0xa2b8
1615 /* [RW 32] SPIO INT. [31-24] OLD_CLR Writing a '1' to these bit clears the
1616 corresponding bit in the #OLD_VALUE register. This will acknowledge an
1617 interrupt on the falling edge of corresponding SPIO input (reset value
1618 0). [23-16] OLD_SET Writing a '1' to these bit sets the corresponding bit
1619 in the #OLD_VALUE register. This will acknowledge an interrupt on the
1620 rising edge of corresponding SPIO input (reset value 0). [15-8] OLD_VALUE
1621 RO; These bits indicate the old value of the SPIO input value. When the
1622 ~INT_STATE bit is set; this bit indicates the OLD value of the pin such
1623 that if ~INT_STATE is set and this bit is '0'; then the interrupt is due
1624 to a low to high edge. If ~INT_STATE is set and this bit is '1'; then the
1625 interrupt is due to a high to low edge (reset value 0). [7-0] INT_STATE
1626 RO; These bits indicate the current SPIO interrupt state for each SPIO
1627 pin. This bit is cleared when the appropriate #OLD_SET or #OLD_CLR
1628 command bit is written. This bit is set when the SPIO input does not
1629 match the current value in #OLD_VALUE (reset value 0). */
1630 #define MISC_REG_SPIO_INT 0xa500
1631 /* [RW 32] reload value for counter 4 if reload; the value will be reload if
1632 the counter reached zero and the reload bit
1633 (~misc_registers_sw_timer_cfg_4.sw_timer_cfg_4[1] ) is set */
1634 #define MISC_REG_SW_TIMER_RELOAD_VAL_4 0xa2fc
1635 /* [RW 32] the value of the counter for sw timers1-8. there are 8 addresses
1636 in this register. address 0 - timer 1; address 1 - timer 2, ... address 7 -
1638 #define MISC_REG_SW_TIMER_VAL 0xa5c0
1639 /* [RW 1] Set by the MCP to remember if one or more of the drivers is/are
1640 loaded; 0-prepare; -unprepare */
1641 #define MISC_REG_UNPREPARED 0xa424
1642 #define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_BRCST (0x1<<0)
1643 #define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_MLCST (0x1<<1)
1644 #define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_NO_VLAN (0x1<<4)
1645 #define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_UNCST (0x1<<2)
1646 #define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_VLAN (0x1<<3)
1647 #define NIG_LLH0_XCM_MASK_REG_LLH0_XCM_MASK_BCN (0x1<<0)
1648 #define NIG_LLH1_XCM_MASK_REG_LLH1_XCM_MASK_BCN (0x1<<0)
1649 #define NIG_MASK_INTERRUPT_PORT0_REG_MASK_EMAC0_MISC_MI_INT (0x1<<0)
1650 #define NIG_MASK_INTERRUPT_PORT0_REG_MASK_SERDES0_LINK_STATUS (0x1<<9)
1651 #define NIG_MASK_INTERRUPT_PORT0_REG_MASK_XGXS0_LINK10G (0x1<<15)
1652 #define NIG_MASK_INTERRUPT_PORT0_REG_MASK_XGXS0_LINK_STATUS (0xf<<18)
1653 /* [RW 1] Input enable for RX_BMAC0 IF */
1654 #define NIG_REG_BMAC0_IN_EN 0x100ac
1655 /* [RW 1] output enable for TX_BMAC0 IF */
1656 #define NIG_REG_BMAC0_OUT_EN 0x100e0
1657 /* [RW 1] output enable for TX BMAC pause port 0 IF */
1658 #define NIG_REG_BMAC0_PAUSE_OUT_EN 0x10110
1659 /* [RW 1] output enable for RX_BMAC0_REGS IF */
1660 #define NIG_REG_BMAC0_REGS_OUT_EN 0x100e8
1661 /* [RW 1] output enable for RX BRB1 port0 IF */
1662 #define NIG_REG_BRB0_OUT_EN 0x100f8
1663 /* [RW 1] Input enable for TX BRB1 pause port 0 IF */
1664 #define NIG_REG_BRB0_PAUSE_IN_EN 0x100c4
1665 /* [RW 1] output enable for RX BRB1 port1 IF */
1666 #define NIG_REG_BRB1_OUT_EN 0x100fc
1667 /* [RW 1] Input enable for TX BRB1 pause port 1 IF */
1668 #define NIG_REG_BRB1_PAUSE_IN_EN 0x100c8
1669 /* [RW 1] output enable for RX BRB1 LP IF */
1670 #define NIG_REG_BRB_LB_OUT_EN 0x10100
1671 /* [WB_W 82] Debug packet to LP from RBC; Data spelling:[63:0] data; 64]
1672 error; [67:65]eop_bvalid; [68]eop; [69]sop; [70]port_id; 71]flush;
1673 72:73]-vnic_num; 81:74]-sideband_info */
1674 #define NIG_REG_DEBUG_PACKET_LB 0x10800
1675 /* [RW 1] Input enable for TX Debug packet */
1676 #define NIG_REG_EGRESS_DEBUG_IN_EN 0x100dc
1677 /* [RW 1] If 1 - egress drain mode for port0 is active. In this mode all
1678 packets from PBFare not forwarded to the MAC and just deleted from FIFO.
1679 First packet may be deleted from the middle. And last packet will be
1680 always deleted till the end. */
1681 #define NIG_REG_EGRESS_DRAIN0_MODE 0x10060
1682 /* [RW 1] Output enable to EMAC0 */
1683 #define NIG_REG_EGRESS_EMAC0_OUT_EN 0x10120
1684 /* [RW 1] MAC configuration for packets of port0. If 1 - all packet outputs
1685 to emac for port0; other way to bmac for port0 */
1686 #define NIG_REG_EGRESS_EMAC0_PORT 0x10058
1687 /* [RW 1] Input enable for TX PBF user packet port0 IF */
1688 #define NIG_REG_EGRESS_PBF0_IN_EN 0x100cc
1689 /* [RW 1] Input enable for TX PBF user packet port1 IF */
1690 #define NIG_REG_EGRESS_PBF1_IN_EN 0x100d0
1691 /* [RW 1] Input enable for TX UMP management packet port0 IF */
1692 #define NIG_REG_EGRESS_UMP0_IN_EN 0x100d4
1693 /* [RW 1] Input enable for RX_EMAC0 IF */
1694 #define NIG_REG_EMAC0_IN_EN 0x100a4
1695 /* [RW 1] output enable for TX EMAC pause port 0 IF */
1696 #define NIG_REG_EMAC0_PAUSE_OUT_EN 0x10118
1697 /* [R 1] status from emac0. This bit is set when MDINT from either the
1698 EXT_MDINT pin or from the Copper PHY is driven low. This condition must
1699 be cleared in the attached PHY device that is driving the MINT pin. */
1700 #define NIG_REG_EMAC0_STATUS_MISC_MI_INT 0x10494
1701 /* [WB 48] This address space contains BMAC0 registers. The BMAC registers
1702 are described in appendix A. In order to access the BMAC0 registers; the
1703 base address; NIG_REGISTERS_INGRESS_BMAC0_MEM; Offset: 0x10c00; should be
1704 added to each BMAC register offset */
1705 #define NIG_REG_INGRESS_BMAC0_MEM 0x10c00
1706 /* [WB 48] This address space contains BMAC1 registers. The BMAC registers
1707 are described in appendix A. In order to access the BMAC0 registers; the
1708 base address; NIG_REGISTERS_INGRESS_BMAC1_MEM; Offset: 0x11000; should be
1709 added to each BMAC register offset */
1710 #define NIG_REG_INGRESS_BMAC1_MEM 0x11000
1711 /* [R 1] FIFO empty in EOP descriptor FIFO of LP in NIG_RX_EOP */
1712 #define NIG_REG_INGRESS_EOP_LB_EMPTY 0x104e0
1713 /* [RW 17] Debug only. RX_EOP_DSCR_lb_FIFO in NIG_RX_EOP. Data
1714 packet_length[13:0]; mac_error[14]; trunc_error[15]; parity[16] */
1715 #define NIG_REG_INGRESS_EOP_LB_FIFO 0x104e4
1716 /* [RW 27] 0 - must be active for Everest A0; 1- for Everest B0 when latch
1717 logic for interrupts must be used. Enable per bit of interrupt of
1718 ~latch_status.latch_status */
1719 #define NIG_REG_LATCH_BC_0 0x16210
1720 /* [RW 27] Latch for each interrupt from Unicore.b[0]
1721 status_emac0_misc_mi_int; b[1] status_emac0_misc_mi_complete;
1722 b[2]status_emac0_misc_cfg_change; b[3]status_emac0_misc_link_status;
1723 b[4]status_emac0_misc_link_change; b[5]status_emac0_misc_attn;
1724 b[6]status_serdes0_mac_crs; b[7]status_serdes0_autoneg_complete;
1725 b[8]status_serdes0_fiber_rxact; b[9]status_serdes0_link_status;
1726 b[10]status_serdes0_mr_page_rx; b[11]status_serdes0_cl73_an_complete;
1727 b[12]status_serdes0_cl73_mr_page_rx; b[13]status_serdes0_rx_sigdet;
1728 b[14]status_xgxs0_remotemdioreq; b[15]status_xgxs0_link10g;
1729 b[16]status_xgxs0_autoneg_complete; b[17]status_xgxs0_fiber_rxact;
1730 b[21:18]status_xgxs0_link_status; b[22]status_xgxs0_mr_page_rx;
1731 b[23]status_xgxs0_cl73_an_complete; b[24]status_xgxs0_cl73_mr_page_rx;
1732 b[25]status_xgxs0_rx_sigdet; b[26]status_xgxs0_mac_crs */
1733 #define NIG_REG_LATCH_STATUS_0 0x18000
1734 /* [RW 1] led 10g for port 0 */
1735 #define NIG_REG_LED_10G_P0 0x10320
1736 /* [RW 1] led 10g for port 1 */
1737 #define NIG_REG_LED_10G_P1 0x10324
1738 /* [RW 1] Port0: This bit is set to enable the use of the
1739 ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 field
1740 defined below. If this bit is cleared; then the blink rate will be about
1742 #define NIG_REG_LED_CONTROL_BLINK_RATE_ENA_P0 0x10318
1743 /* [RW 12] Port0: Specifies the period of each blink cycle (on + off) for
1744 Traffic LED in milliseconds. Must be a non-zero value. This 12-bit field
1745 is reset to 0x080; giving a default blink period of approximately 8Hz. */
1746 #define NIG_REG_LED_CONTROL_BLINK_RATE_P0 0x10310
1747 /* [RW 1] Port0: If set along with the
1748 ~nig_registers_led_control_override_traffic_p0.led_control_override_traffic_p0
1749 bit and ~nig_registers_led_control_traffic_p0.led_control_traffic_p0 LED
1750 bit; the Traffic LED will blink with the blink rate specified in
1751 ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 and
1752 ~nig_registers_led_control_blink_rate_ena_p0.led_control_blink_rate_ena_p0
1754 #define NIG_REG_LED_CONTROL_BLINK_TRAFFIC_P0 0x10308
1755 /* [RW 1] Port0: If set overrides hardware control of the Traffic LED. The
1756 Traffic LED will then be controlled via bit ~nig_registers_
1757 led_control_traffic_p0.led_control_traffic_p0 and bit
1758 ~nig_registers_led_control_blink_traffic_p0.led_control_blink_traffic_p0 */
1759 #define NIG_REG_LED_CONTROL_OVERRIDE_TRAFFIC_P0 0x102f8
1760 /* [RW 1] Port0: If set along with the led_control_override_trafic_p0 bit;
1761 turns on the Traffic LED. If the led_control_blink_traffic_p0 bit is also
1762 set; the LED will blink with blink rate specified in
1763 ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 and
1764 ~nig_regsters_led_control_blink_rate_ena_p0.led_control_blink_rate_ena_p0
1766 #define NIG_REG_LED_CONTROL_TRAFFIC_P0 0x10300
1767 /* [RW 4] led mode for port0: 0 MAC; 1-3 PHY1; 4 MAC2; 5-7 PHY4; 8-MAC3;
1768 9-11PHY7; 12 MAC4; 13-15 PHY10; */
1769 #define NIG_REG_LED_MODE_P0 0x102f0
1770 /* [RW 3] for port0 enable for llfc ppp and pause. b0 - brb1 enable; b1-
1771 tsdm enable; b2- usdm enable */
1772 #define NIG_REG_LLFC_EGRESS_SRC_ENABLE_0 0x16070
1773 #define NIG_REG_LLFC_EGRESS_SRC_ENABLE_1 0x16074
1774 /* [RW 1] SAFC enable for port0. This register may get 1 only when
1775 ~ppp_enable.ppp_enable = 0 and pause_enable.pause_enable =0 for the same
1777 #define NIG_REG_LLFC_ENABLE_0 0x16208
1778 #define NIG_REG_LLFC_ENABLE_1 0x1620c
1779 /* [RW 16] classes are high-priority for port0 */
1780 #define NIG_REG_LLFC_HIGH_PRIORITY_CLASSES_0 0x16058
1781 #define NIG_REG_LLFC_HIGH_PRIORITY_CLASSES_1 0x1605c
1782 /* [RW 16] classes are low-priority for port0 */
1783 #define NIG_REG_LLFC_LOW_PRIORITY_CLASSES_0 0x16060
1784 #define NIG_REG_LLFC_LOW_PRIORITY_CLASSES_1 0x16064
1785 /* [RW 1] Output enable of message to LLFC BMAC IF for port0 */
1786 #define NIG_REG_LLFC_OUT_EN_0 0x160c8
1787 #define NIG_REG_LLFC_OUT_EN_1 0x160cc
1788 #define NIG_REG_LLH0_ACPI_PAT_0_CRC 0x1015c
1789 #define NIG_REG_LLH0_ACPI_PAT_6_LEN 0x10154
1790 #define NIG_REG_LLH0_BRB1_DRV_MASK 0x10244
1791 #define NIG_REG_LLH0_BRB1_DRV_MASK_MF 0x16048
1792 /* [RW 1] send to BRB1 if no match on any of RMP rules. */
1793 #define NIG_REG_LLH0_BRB1_NOT_MCP 0x1025c
1794 /* [RW 2] Determine the classification participants. 0: no classification.1:
1795 classification upon VLAN id. 2: classification upon MAC address. 3:
1796 classification upon both VLAN id & MAC addr. */
1797 #define NIG_REG_LLH0_CLS_TYPE 0x16080
1798 /* [RW 32] cm header for llh0 */
1799 #define NIG_REG_LLH0_CM_HEADER 0x1007c
1800 #define NIG_REG_LLH0_DEST_IP_0_1 0x101dc
1801 #define NIG_REG_LLH0_DEST_MAC_0_0 0x101c0
1802 /* [RW 16] destination TCP address 1. The LLH will look for this address in
1803 all incoming packets. */
1804 #define NIG_REG_LLH0_DEST_TCP_0 0x10220
1805 /* [RW 16] destination UDP address 1 The LLH will look for this address in
1806 all incoming packets. */
1807 #define NIG_REG_LLH0_DEST_UDP_0 0x10214
1808 #define NIG_REG_LLH0_ERROR_MASK 0x1008c
1809 /* [RW 8] event id for llh0 */
1810 #define NIG_REG_LLH0_EVENT_ID 0x10084
1811 #define NIG_REG_LLH0_FUNC_EN 0x160fc
1812 #define NIG_REG_LLH0_FUNC_MEM 0x16180
1813 #define NIG_REG_LLH0_FUNC_MEM_ENABLE 0x16140
1814 #define NIG_REG_LLH0_FUNC_VLAN_ID 0x16100
1815 /* [RW 1] Determine the IP version to look for in
1816 ~nig_registers_llh0_dest_ip_0.llh0_dest_ip_0. 0 - IPv6; 1-IPv4 */
1817 #define NIG_REG_LLH0_IPV4_IPV6_0 0x10208
1818 /* [RW 1] t bit for llh0 */
1819 #define NIG_REG_LLH0_T_BIT 0x10074
1820 /* [RW 12] VLAN ID 1. In case of VLAN packet the LLH will look for this ID. */
1821 #define NIG_REG_LLH0_VLAN_ID_0 0x1022c
1822 /* [RW 8] init credit counter for port0 in LLH */
1823 #define NIG_REG_LLH0_XCM_INIT_CREDIT 0x10554
1824 #define NIG_REG_LLH0_XCM_MASK 0x10130
1825 #define NIG_REG_LLH1_BRB1_DRV_MASK 0x10248
1826 /* [RW 1] send to BRB1 if no match on any of RMP rules. */
1827 #define NIG_REG_LLH1_BRB1_NOT_MCP 0x102dc
1828 /* [RW 2] Determine the classification participants. 0: no classification.1:
1829 classification upon VLAN id. 2: classification upon MAC address. 3:
1830 classification upon both VLAN id & MAC addr. */
1831 #define NIG_REG_LLH1_CLS_TYPE 0x16084
1832 /* [RW 32] cm header for llh1 */
1833 #define NIG_REG_LLH1_CM_HEADER 0x10080
1834 #define NIG_REG_LLH1_ERROR_MASK 0x10090
1835 /* [RW 8] event id for llh1 */
1836 #define NIG_REG_LLH1_EVENT_ID 0x10088
1837 #define NIG_REG_LLH1_FUNC_MEM 0x161c0
1838 #define NIG_REG_LLH1_FUNC_MEM_ENABLE 0x16160
1839 #define NIG_REG_LLH1_FUNC_MEM_SIZE 16
1840 /* [RW 8] init credit counter for port1 in LLH */
1841 #define NIG_REG_LLH1_XCM_INIT_CREDIT 0x10564
1842 #define NIG_REG_LLH1_XCM_MASK 0x10134
1843 /* [RW 1] When this bit is set; the LLH will expect all packets to be with
1845 #define NIG_REG_LLH_E1HOV_MODE 0x160d8
1846 /* [RW 1] When this bit is set; the LLH will classify the packet before
1847 sending it to the BRB or calculating WoL on it. */
1848 #define NIG_REG_LLH_MF_MODE 0x16024
1849 #define NIG_REG_MASK_INTERRUPT_PORT0 0x10330
1850 #define NIG_REG_MASK_INTERRUPT_PORT1 0x10334
1851 /* [RW 1] Output signal from NIG to EMAC0. When set enables the EMAC0 block. */
1852 #define NIG_REG_NIG_EMAC0_EN 0x1003c
1853 /* [RW 1] Output signal from NIG to EMAC1. When set enables the EMAC1 block. */
1854 #define NIG_REG_NIG_EMAC1_EN 0x10040
1855 /* [RW 1] Output signal from NIG to TX_EMAC0. When set indicates to the
1856 EMAC0 to strip the CRC from the ingress packets. */
1857 #define NIG_REG_NIG_INGRESS_EMAC0_NO_CRC 0x10044
1858 /* [R 32] Interrupt register #0 read */
1859 #define NIG_REG_NIG_INT_STS_0 0x103b0
1860 #define NIG_REG_NIG_INT_STS_1 0x103c0
1861 /* [R 32] Legacy E1 and E1H location for parity error status register. */
1862 #define NIG_REG_NIG_PRTY_STS 0x103d0
1863 /* [R 32] Parity register #0 read */
1864 #define NIG_REG_NIG_PRTY_STS_0 0x183bc
1865 #define NIG_REG_NIG_PRTY_STS_1 0x183cc
1866 /* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic
1867 * Ethernet header. */
1868 #define NIG_REG_P0_HDRS_AFTER_BASIC 0x18038
1869 /* [RW 1] HW PFC enable bit. Set this bit to enable the PFC functionality in
1870 * the NIG. Other flow control modes such as PAUSE and SAFC/LLFC should be
1871 * disabled when this bit is set. */
1872 #define NIG_REG_P0_HWPFC_ENABLE 0x18078
1873 #define NIG_REG_P0_LLH_FUNC_MEM2 0x18480
1874 #define NIG_REG_P0_LLH_FUNC_MEM2_ENABLE 0x18440
1875 /* [RW 32] Eight 4-bit configurations for specifying which COS (0-15 for
1876 * future expansion) each priorty is to be mapped to. Bits 3:0 specify the
1877 * COS for priority 0. Bits 31:28 specify the COS for priority 7. The 3-bit
1878 * priority field is extracted from the outer-most VLAN in receive packet.
1879 * Only COS 0 and COS 1 are supported in E2. */
1880 #define NIG_REG_P0_PKT_PRIORITY_TO_COS 0x18054
1881 /* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 0. A
1882 * priority is mapped to COS 0 when the corresponding mask bit is 1. More
1883 * than one bit may be set; allowing multiple priorities to be mapped to one
1885 #define NIG_REG_P0_RX_COS0_PRIORITY_MASK 0x18058
1886 /* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 1. A
1887 * priority is mapped to COS 1 when the corresponding mask bit is 1. More
1888 * than one bit may be set; allowing multiple priorities to be mapped to one
1890 #define NIG_REG_P0_RX_COS1_PRIORITY_MASK 0x1805c
1891 /* [RW 15] Specify which of the credit registers the client is to be mapped
1892 * to. Bits[2:0] are for client 0; bits [14:12] are for client 4. For
1893 * clients that are not subject to WFQ credit blocking - their
1894 * specifications here are not used. */
1895 #define NIG_REG_P0_TX_ARB_CLIENT_CREDIT_MAP 0x180f0
1896 /* [RW 5] Specify whether the client competes directly in the strict
1897 * priority arbiter. The bits are mapped according to client ID (client IDs
1898 * are defined in tx_arb_priority_client). Default value is set to enable
1899 * strict priorities for clients 0-2 -- management and debug traffic. */
1900 #define NIG_REG_P0_TX_ARB_CLIENT_IS_STRICT 0x180e8
1901 /* [RW 5] Specify whether the client is subject to WFQ credit blocking. The
1902 * bits are mapped according to client ID (client IDs are defined in
1903 * tx_arb_priority_client). Default value is 0 for not using WFQ credit
1905 #define NIG_REG_P0_TX_ARB_CLIENT_IS_SUBJECT2WFQ 0x180ec
1906 /* [RW 32] Specify the upper bound that credit register 0 is allowed to
1908 #define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_0 0x1810c
1909 #define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_1 0x18110
1910 /* [RW 32] Specify the weight (in bytes) to be added to credit register 0
1911 * when it is time to increment. */
1912 #define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0 0x180f8
1913 #define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1 0x180fc
1914 /* [RW 12] Specify the number of strict priority arbitration slots between
1915 * two round-robin arbitration slots to avoid starvation. A value of 0 means
1916 * no strict priority cycles - the strict priority with anti-starvation
1917 * arbiter becomes a round-robin arbiter. */
1918 #define NIG_REG_P0_TX_ARB_NUM_STRICT_ARB_SLOTS 0x180f4
1919 /* [RW 15] Specify the client number to be assigned to each priority of the
1920 * strict priority arbiter. Priority 0 is the highest priority. Bits [2:0]
1921 * are for priority 0 client; bits [14:12] are for priority 4 client. The
1922 * clients are assigned the following IDs: 0-management; 1-debug traffic
1923 * from this port; 2-debug traffic from other port; 3-COS0 traffic; 4-COS1
1924 * traffic. The reset value[14:0] is set to 0x4688 (15'b100_011_010_001_000)
1925 * for management at priority 0; debug traffic at priorities 1 and 2; COS0
1926 * traffic at priority 3; and COS1 traffic at priority 4. */
1927 #define NIG_REG_P0_TX_ARB_PRIORITY_CLIENT 0x180e4
1928 #define NIG_REG_P1_LLH_FUNC_MEM2 0x184c0
1929 #define NIG_REG_P1_LLH_FUNC_MEM2_ENABLE 0x18460
1930 /* [RW 32] Eight 4-bit configurations for specifying which COS (0-15 for
1931 * future expansion) each priorty is to be mapped to. Bits 3:0 specify the
1932 * COS for priority 0. Bits 31:28 specify the COS for priority 7. The 3-bit
1933 * priority field is extracted from the outer-most VLAN in receive packet.
1934 * Only COS 0 and COS 1 are supported in E2. */
1935 #define NIG_REG_P1_PKT_PRIORITY_TO_COS 0x181a8
1936 /* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 0. A
1937 * priority is mapped to COS 0 when the corresponding mask bit is 1. More
1938 * than one bit may be set; allowing multiple priorities to be mapped to one
1940 #define NIG_REG_P1_RX_COS0_PRIORITY_MASK 0x181ac
1941 /* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 1. A
1942 * priority is mapped to COS 1 when the corresponding mask bit is 1. More
1943 * than one bit may be set; allowing multiple priorities to be mapped to one
1945 #define NIG_REG_P1_RX_COS1_PRIORITY_MASK 0x181b0
1946 /* [RW 1] Pause enable for port0. This register may get 1 only when
1947 ~safc_enable.safc_enable = 0 and ppp_enable.ppp_enable =0 for the same
1949 #define NIG_REG_PAUSE_ENABLE_0 0x160c0
1950 #define NIG_REG_PAUSE_ENABLE_1 0x160c4
1951 /* [RW 1] Input enable for RX PBF LP IF */
1952 #define NIG_REG_PBF_LB_IN_EN 0x100b4
1953 /* [RW 1] Value of this register will be transmitted to port swap when
1954 ~nig_registers_strap_override.strap_override =1 */
1955 #define NIG_REG_PORT_SWAP 0x10394
1956 /* [RW 1] PPP enable for port0. This register may get 1 only when
1957 * ~safc_enable.safc_enable = 0 and pause_enable.pause_enable =0 for the
1959 #define NIG_REG_PPP_ENABLE_0 0x160b0
1960 #define NIG_REG_PPP_ENABLE_1 0x160b4
1961 /* [RW 1] output enable for RX parser descriptor IF */
1962 #define NIG_REG_PRS_EOP_OUT_EN 0x10104
1963 /* [RW 1] Input enable for RX parser request IF */
1964 #define NIG_REG_PRS_REQ_IN_EN 0x100b8
1965 /* [RW 5] control to serdes - CL45 DEVAD */
1966 #define NIG_REG_SERDES0_CTRL_MD_DEVAD 0x10370
1967 /* [RW 1] control to serdes; 0 - clause 45; 1 - clause 22 */
1968 #define NIG_REG_SERDES0_CTRL_MD_ST 0x1036c
1969 /* [RW 5] control to serdes - CL22 PHY_ADD and CL45 PRTAD */
1970 #define NIG_REG_SERDES0_CTRL_PHY_ADDR 0x10374
1971 /* [R 1] status from serdes0 that inputs to interrupt logic of link status */
1972 #define NIG_REG_SERDES0_STATUS_LINK_STATUS 0x10578
1973 /* [R 32] Rx statistics : In user packets discarded due to BRB backpressure
1975 #define NIG_REG_STAT0_BRB_DISCARD 0x105f0
1976 /* [R 32] Rx statistics : In user packets truncated due to BRB backpressure
1978 #define NIG_REG_STAT0_BRB_TRUNCATE 0x105f8
1979 /* [WB_R 36] Tx statistics : Number of packets from emac0 or bmac0 that
1980 between 1024 and 1522 bytes for port0 */
1981 #define NIG_REG_STAT0_EGRESS_MAC_PKT0 0x10750
1982 /* [WB_R 36] Tx statistics : Number of packets from emac0 or bmac0 that
1983 between 1523 bytes and above for port0 */
1984 #define NIG_REG_STAT0_EGRESS_MAC_PKT1 0x10760
1985 /* [R 32] Rx statistics : In user packets discarded due to BRB backpressure
1987 #define NIG_REG_STAT1_BRB_DISCARD 0x10628
1988 /* [WB_R 36] Tx statistics : Number of packets from emac1 or bmac1 that
1989 between 1024 and 1522 bytes for port1 */
1990 #define NIG_REG_STAT1_EGRESS_MAC_PKT0 0x107a0
1991 /* [WB_R 36] Tx statistics : Number of packets from emac1 or bmac1 that
1992 between 1523 bytes and above for port1 */
1993 #define NIG_REG_STAT1_EGRESS_MAC_PKT1 0x107b0
1994 /* [WB_R 64] Rx statistics : User octets received for LP */
1995 #define NIG_REG_STAT2_BRB_OCTET 0x107e0
1996 #define NIG_REG_STATUS_INTERRUPT_PORT0 0x10328
1997 #define NIG_REG_STATUS_INTERRUPT_PORT1 0x1032c
1998 /* [RW 1] port swap mux selection. If this register equal to 0 then port
1999 swap is equal to SPIO pin that inputs from ifmux_serdes_swap. If 1 then
2000 ort swap is equal to ~nig_registers_port_swap.port_swap */
2001 #define NIG_REG_STRAP_OVERRIDE 0x10398
2002 /* [RW 1] output enable for RX_XCM0 IF */
2003 #define NIG_REG_XCM0_OUT_EN 0x100f0
2004 /* [RW 1] output enable for RX_XCM1 IF */
2005 #define NIG_REG_XCM1_OUT_EN 0x100f4
2006 /* [RW 1] control to xgxs - remote PHY in-band MDIO */
2007 #define NIG_REG_XGXS0_CTRL_EXTREMOTEMDIOST 0x10348
2008 /* [RW 5] control to xgxs - CL45 DEVAD */
2009 #define NIG_REG_XGXS0_CTRL_MD_DEVAD 0x1033c
2010 /* [RW 1] control to xgxs; 0 - clause 45; 1 - clause 22 */
2011 #define NIG_REG_XGXS0_CTRL_MD_ST 0x10338
2012 /* [RW 5] control to xgxs - CL22 PHY_ADD and CL45 PRTAD */
2013 #define NIG_REG_XGXS0_CTRL_PHY_ADDR 0x10340
2014 /* [R 1] status from xgxs0 that inputs to interrupt logic of link10g. */
2015 #define NIG_REG_XGXS0_STATUS_LINK10G 0x10680
2016 /* [R 4] status from xgxs0 that inputs to interrupt logic of link status */
2017 #define NIG_REG_XGXS0_STATUS_LINK_STATUS 0x10684
2018 /* [RW 2] selection for XGXS lane of port 0 in NIG_MUX block */
2019 #define NIG_REG_XGXS_LANE_SEL_P0 0x102e8
2020 /* [RW 1] selection for port0 for NIG_MUX block : 0 = SerDes; 1 = XGXS */
2021 #define NIG_REG_XGXS_SERDES0_MODE_SEL 0x102e0
2022 #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_EMAC0_MISC_MI_INT (0x1<<0)
2023 #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_SERDES0_LINK_STATUS (0x1<<9)
2024 #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK10G (0x1<<15)
2025 #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK_STATUS (0xf<<18)
2026 #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK_STATUS_SIZE 18
2027 /* [RW 31] The upper bound of the weight of COS0 in the ETS command arbiter. */
2028 #define PBF_REG_COS0_UPPER_BOUND 0x15c05c
2029 /* [RW 31] The weight of COS0 in the ETS command arbiter. */
2030 #define PBF_REG_COS0_WEIGHT 0x15c054
2031 /* [RW 31] The upper bound of the weight of COS1 in the ETS command arbiter. */
2032 #define PBF_REG_COS1_UPPER_BOUND 0x15c060
2033 /* [RW 31] The weight of COS1 in the ETS command arbiter. */
2034 #define PBF_REG_COS1_WEIGHT 0x15c058
2035 /* [RW 1] Disable processing further tasks from port 0 (after ending the
2036 current task in process). */
2037 #define PBF_REG_DISABLE_NEW_TASK_PROC_P0 0x14005c
2038 /* [RW 1] Disable processing further tasks from port 1 (after ending the
2039 current task in process). */
2040 #define PBF_REG_DISABLE_NEW_TASK_PROC_P1 0x140060
2041 /* [RW 1] Disable processing further tasks from port 4 (after ending the
2042 current task in process). */
2043 #define PBF_REG_DISABLE_NEW_TASK_PROC_P4 0x14006c
2044 #define PBF_REG_DISABLE_PF 0x1402e8
2045 /* [RW 1] Indicates that ETS is performed between the COSes in the command
2046 * arbiter. If reset strict priority w/ anti-starvation will be performed
2048 #define PBF_REG_ETS_ENABLED 0x15c050
2049 /* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic
2050 * Ethernet header. */
2051 #define PBF_REG_HDRS_AFTER_BASIC 0x15c0a8
2052 /* [RW 1] Indicates which COS is conncted to the highest priority in the
2053 * command arbiter. */
2054 #define PBF_REG_HIGH_PRIORITY_COS_NUM 0x15c04c
2055 #define PBF_REG_IF_ENABLE_REG 0x140044
2056 /* [RW 1] Init bit. When set the initial credits are copied to the credit
2057 registers (except the port credits). Should be set and then reset after
2058 the configuration of the block has ended. */
2059 #define PBF_REG_INIT 0x140000
2060 /* [RW 1] Init bit for port 0. When set the initial credit of port 0 is
2061 copied to the credit register. Should be set and then reset after the
2062 configuration of the port has ended. */
2063 #define PBF_REG_INIT_P0 0x140004
2064 /* [RW 1] Init bit for port 1. When set the initial credit of port 1 is
2065 copied to the credit register. Should be set and then reset after the
2066 configuration of the port has ended. */
2067 #define PBF_REG_INIT_P1 0x140008
2068 /* [RW 1] Init bit for port 4. When set the initial credit of port 4 is
2069 copied to the credit register. Should be set and then reset after the
2070 configuration of the port has ended. */
2071 #define PBF_REG_INIT_P4 0x14000c
2072 /* [RW 1] Enable for mac interface 0. */
2073 #define PBF_REG_MAC_IF0_ENABLE 0x140030
2074 /* [RW 1] Enable for mac interface 1. */
2075 #define PBF_REG_MAC_IF1_ENABLE 0x140034
2076 /* [RW 1] Enable for the loopback interface. */
2077 #define PBF_REG_MAC_LB_ENABLE 0x140040
2078 /* [RW 6] Bit-map indicating which headers must appear in the packet */
2079 #define PBF_REG_MUST_HAVE_HDRS 0x15c0c4
2080 /* [RW 16] The number of strict priority arbitration slots between 2 RR
2081 * arbitration slots. A value of 0 means no strict priority cycles; i.e. the
2082 * strict-priority w/ anti-starvation arbiter is a RR arbiter. */
2083 #define PBF_REG_NUM_STRICT_ARB_SLOTS 0x15c064
2084 /* [RW 10] Port 0 threshold used by arbiter in 16 byte lines used when pause
2086 #define PBF_REG_P0_ARB_THRSH 0x1400e4
2087 /* [R 11] Current credit for port 0 in the tx port buffers in 16 byte lines. */
2088 #define PBF_REG_P0_CREDIT 0x140200
2089 /* [RW 11] Initial credit for port 0 in the tx port buffers in 16 byte
2091 #define PBF_REG_P0_INIT_CRD 0x1400d0
2092 /* [RW 1] Indication that pause is enabled for port 0. */
2093 #define PBF_REG_P0_PAUSE_ENABLE 0x140014
2094 /* [R 8] Number of tasks in port 0 task queue. */
2095 #define PBF_REG_P0_TASK_CNT 0x140204
2096 /* [R 11] Current credit for port 1 in the tx port buffers in 16 byte lines. */
2097 #define PBF_REG_P1_CREDIT 0x140208
2098 /* [RW 11] Initial credit for port 1 in the tx port buffers in 16 byte
2100 #define PBF_REG_P1_INIT_CRD 0x1400d4
2101 /* [R 8] Number of tasks in port 1 task queue. */
2102 #define PBF_REG_P1_TASK_CNT 0x14020c
2103 /* [R 11] Current credit for port 4 in the tx port buffers in 16 byte lines. */
2104 #define PBF_REG_P4_CREDIT 0x140210
2105 /* [RW 11] Initial credit for port 4 in the tx port buffers in 16 byte
2107 #define PBF_REG_P4_INIT_CRD 0x1400e0
2108 /* [R 8] Number of tasks in port 4 task queue. */
2109 #define PBF_REG_P4_TASK_CNT 0x140214
2110 /* [RW 5] Interrupt mask register #0 read/write */
2111 #define PBF_REG_PBF_INT_MASK 0x1401d4
2112 /* [R 5] Interrupt register #0 read */
2113 #define PBF_REG_PBF_INT_STS 0x1401c8
2114 /* [RW 20] Parity mask register #0 read/write */
2115 #define PBF_REG_PBF_PRTY_MASK 0x1401e4
2116 /* [RC 20] Parity register #0 read clear */
2117 #define PBF_REG_PBF_PRTY_STS_CLR 0x1401dc
2118 #define PB_REG_CONTROL 0
2119 /* [RW 2] Interrupt mask register #0 read/write */
2120 #define PB_REG_PB_INT_MASK 0x28
2121 /* [R 2] Interrupt register #0 read */
2122 #define PB_REG_PB_INT_STS 0x1c
2123 /* [RW 4] Parity mask register #0 read/write */
2124 #define PB_REG_PB_PRTY_MASK 0x38
2125 /* [R 4] Parity register #0 read */
2126 #define PB_REG_PB_PRTY_STS 0x2c
2127 /* [RC 4] Parity register #0 read clear */
2128 #define PB_REG_PB_PRTY_STS_CLR 0x30
2129 #define PGLUE_B_PGLUE_B_INT_STS_REG_ADDRESS_ERROR (0x1<<0)
2130 #define PGLUE_B_PGLUE_B_INT_STS_REG_CSSNOOP_FIFO_OVERFLOW (0x1<<8)
2131 #define PGLUE_B_PGLUE_B_INT_STS_REG_INCORRECT_RCV_BEHAVIOR (0x1<<1)
2132 #define PGLUE_B_PGLUE_B_INT_STS_REG_TCPL_ERROR_ATTN (0x1<<6)
2133 #define PGLUE_B_PGLUE_B_INT_STS_REG_TCPL_IN_TWO_RCBS_ATTN (0x1<<7)
2134 #define PGLUE_B_PGLUE_B_INT_STS_REG_VF_GRC_SPACE_VIOLATION_ATTN (0x1<<4)
2135 #define PGLUE_B_PGLUE_B_INT_STS_REG_VF_LENGTH_VIOLATION_ATTN (0x1<<3)
2136 #define PGLUE_B_PGLUE_B_INT_STS_REG_VF_MSIX_BAR_VIOLATION_ATTN (0x1<<5)
2137 #define PGLUE_B_PGLUE_B_INT_STS_REG_WAS_ERROR_ATTN (0x1<<2)
2138 /* [R 8] Config space A attention dirty bits. Each bit indicates that the
2139 * corresponding PF generates config space A attention. Set by PXP. Reset by
2140 * MCP writing 1 to icfg_space_a_request_clr. Note: register contains bits
2141 * from both paths. */
2142 #define PGLUE_B_REG_CFG_SPACE_A_REQUEST 0x9010
2143 /* [R 8] Config space B attention dirty bits. Each bit indicates that the
2144 * corresponding PF generates config space B attention. Set by PXP. Reset by
2145 * MCP writing 1 to icfg_space_b_request_clr. Note: register contains bits
2146 * from both paths. */
2147 #define PGLUE_B_REG_CFG_SPACE_B_REQUEST 0x9014
2148 /* [RW 1] Type A PF enable inbound interrupt table for CSDM. 0 - disable; 1
2150 #define PGLUE_B_REG_CSDM_INB_INT_A_PF_ENABLE 0x9194
2151 /* [RW 18] Type B VF inbound interrupt table for CSDM: bits[17:9]-mask;
2152 * its[8:0]-address. Bits [1:0] must be zero (DW resolution address). */
2153 #define PGLUE_B_REG_CSDM_INB_INT_B_VF 0x916c
2154 /* [RW 1] Type B VF enable inbound interrupt table for CSDM. 0 - disable; 1
2156 #define PGLUE_B_REG_CSDM_INB_INT_B_VF_ENABLE 0x919c
2157 /* [RW 16] Start offset of CSDM zone A (queue zone) in the internal RAM */
2158 #define PGLUE_B_REG_CSDM_START_OFFSET_A 0x9100
2159 /* [RW 16] Start offset of CSDM zone B (legacy zone) in the internal RAM */
2160 #define PGLUE_B_REG_CSDM_START_OFFSET_B 0x9108
2161 /* [RW 5] VF Shift of CSDM zone B (legacy zone) in the internal RAM */
2162 #define PGLUE_B_REG_CSDM_VF_SHIFT_B 0x9110
2163 /* [RW 1] 0 - Zone A size is 136x32B; 1 - Zone A size is 152x32B. */
2164 #define PGLUE_B_REG_CSDM_ZONE_A_SIZE_PF 0x91ac
2165 /* [R 8] FLR request attention dirty bits for PFs 0 to 7. Each bit indicates
2166 * that the FLR register of the corresponding PF was set. Set by PXP. Reset
2167 * by MCP writing 1 to flr_request_pf_7_0_clr. Note: register contains bits
2168 * from both paths. */
2169 #define PGLUE_B_REG_FLR_REQUEST_PF_7_0 0x9028
2170 /* [W 8] FLR request attention dirty bits clear for PFs 0 to 7. MCP writes 1
2171 * to a bit in this register in order to clear the corresponding bit in
2172 * flr_request_pf_7_0 register. Note: register contains bits from both
2174 #define PGLUE_B_REG_FLR_REQUEST_PF_7_0_CLR 0x9418
2175 /* [R 32] FLR request attention dirty bits for VFs 96 to 127. Each bit
2176 * indicates that the FLR register of the corresponding VF was set. Set by
2177 * PXP. Reset by MCP writing 1 to flr_request_vf_127_96_clr. */
2178 #define PGLUE_B_REG_FLR_REQUEST_VF_127_96 0x9024
2179 /* [R 32] FLR request attention dirty bits for VFs 0 to 31. Each bit
2180 * indicates that the FLR register of the corresponding VF was set. Set by
2181 * PXP. Reset by MCP writing 1 to flr_request_vf_31_0_clr. */
2182 #define PGLUE_B_REG_FLR_REQUEST_VF_31_0 0x9018
2183 /* [R 32] FLR request attention dirty bits for VFs 32 to 63. Each bit
2184 * indicates that the FLR register of the corresponding VF was set. Set by
2185 * PXP. Reset by MCP writing 1 to flr_request_vf_63_32_clr. */
2186 #define PGLUE_B_REG_FLR_REQUEST_VF_63_32 0x901c
2187 /* [R 32] FLR request attention dirty bits for VFs 64 to 95. Each bit
2188 * indicates that the FLR register of the corresponding VF was set. Set by
2189 * PXP. Reset by MCP writing 1 to flr_request_vf_95_64_clr. */
2190 #define PGLUE_B_REG_FLR_REQUEST_VF_95_64 0x9020
2191 /* [R 8] Each bit indicates an incorrect behavior in user RX interface. Bit
2192 * 0 - Target memory read arrived with a correctable error. Bit 1 - Target
2193 * memory read arrived with an uncorrectable error. Bit 2 - Configuration RW
2194 * arrived with a correctable error. Bit 3 - Configuration RW arrived with
2195 * an uncorrectable error. Bit 4 - Completion with Configuration Request
2196 * Retry Status. Bit 5 - Expansion ROM access received with a write request.
2197 * Bit 6 - Completion with pcie_rx_err of 0000; CMPL_STATUS of non-zero; and
2198 * pcie_rx_last not asserted. Bit 7 - Completion with pcie_rx_err of 1010;
2199 * and pcie_rx_last not asserted. */
2200 #define PGLUE_B_REG_INCORRECT_RCV_DETAILS 0x9068
2201 #define PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER 0x942c
2202 #define PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ 0x9430
2203 #define PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_WRITE 0x9434
2204 #define PGLUE_B_REG_INTERNAL_VFID_ENABLE 0x9438
2205 /* [R 9] Interrupt register #0 read */
2206 #define PGLUE_B_REG_PGLUE_B_INT_STS 0x9298
2207 /* [RC 9] Interrupt register #0 read clear */
2208 #define PGLUE_B_REG_PGLUE_B_INT_STS_CLR 0x929c
2209 /* [R 2] Parity register #0 read */
2210 #define PGLUE_B_REG_PGLUE_B_PRTY_STS 0x92a8
2211 /* [R 13] Details of first request received with error. [2:0] - PFID. [3] -
2212 * VF_VALID. [9:4] - VFID. [11:10] - Error Code - 0 - Indicates Completion
2213 * Timeout of a User Tx non-posted request. 1 - unsupported request. 2 -
2214 * completer abort. 3 - Illegal value for this field. [12] valid - indicates
2215 * if there was a completion error since the last time this register was
2217 #define PGLUE_B_REG_RX_ERR_DETAILS 0x9080
2218 /* [R 18] Details of first ATS Translation Completion request received with
2219 * error. [2:0] - PFID. [3] - VF_VALID. [9:4] - VFID. [11:10] - Error Code -
2220 * 0 - Indicates Completion Timeout of a User Tx non-posted request. 1 -
2221 * unsupported request. 2 - completer abort. 3 - Illegal value for this
2222 * field. [16:12] - ATC OTB EntryID. [17] valid - indicates if there was a
2223 * completion error since the last time this register was cleared. */
2224 #define PGLUE_B_REG_RX_TCPL_ERR_DETAILS 0x9084
2225 /* [W 8] Debug only - Shadow BME bits clear for PFs 0 to 7. MCP writes 1 to
2226 * a bit in this register in order to clear the corresponding bit in
2227 * shadow_bme_pf_7_0 register. MCP should never use this unless a
2228 * work-around is needed. Note: register contains bits from both paths. */
2229 #define PGLUE_B_REG_SHADOW_BME_PF_7_0_CLR 0x9458
2230 /* [R 8] SR IOV disabled attention dirty bits. Each bit indicates that the
2231 * VF enable register of the corresponding PF is written to 0 and was
2232 * previously 1. Set by PXP. Reset by MCP writing 1 to
2233 * sr_iov_disabled_request_clr. Note: register contains bits from both
2235 #define PGLUE_B_REG_SR_IOV_DISABLED_REQUEST 0x9030
2236 /* [R 32] Indicates the status of tags 32-63. 0 - tags is used - read
2237 * completion did not return yet. 1 - tag is unused. Same functionality as
2238 * pxp2_registers_pgl_exp_rom_data2 for tags 0-31. */
2239 #define PGLUE_B_REG_TAGS_63_32 0x9244
2240 /* [RW 1] Type A PF enable inbound interrupt table for TSDM. 0 - disable; 1
2242 #define PGLUE_B_REG_TSDM_INB_INT_A_PF_ENABLE 0x9170
2243 /* [RW 16] Start offset of TSDM zone A (queue zone) in the internal RAM */
2244 #define PGLUE_B_REG_TSDM_START_OFFSET_A 0x90c4
2245 /* [RW 16] Start offset of TSDM zone B (legacy zone) in the internal RAM */
2246 #define PGLUE_B_REG_TSDM_START_OFFSET_B 0x90cc
2247 /* [RW 5] VF Shift of TSDM zone B (legacy zone) in the internal RAM */
2248 #define PGLUE_B_REG_TSDM_VF_SHIFT_B 0x90d4
2249 /* [RW 1] 0 - Zone A size is 136x32B; 1 - Zone A size is 152x32B. */
2250 #define PGLUE_B_REG_TSDM_ZONE_A_SIZE_PF 0x91a0
2251 /* [R 32] Address [31:0] of first read request not submitted due to error */
2252 #define PGLUE_B_REG_TX_ERR_RD_ADD_31_0 0x9098
2253 /* [R 32] Address [63:32] of first read request not submitted due to error */
2254 #define PGLUE_B_REG_TX_ERR_RD_ADD_63_32 0x909c
2255 /* [R 31] Details of first read request not submitted due to error. [4:0]
2256 * VQID. [5] TREQ. 1 - Indicates the request is a Translation Request.
2257 * [20:8] - Length in bytes. [23:21] - PFID. [24] - VF_VALID. [30:25] -
2259 #define PGLUE_B_REG_TX_ERR_RD_DETAILS 0x90a0
2260 /* [R 26] Details of first read request not submitted due to error. [15:0]
2261 * Request ID. [19:16] client ID. [20] - last SR. [24:21] - Error type -
2262 * [21] - Indicates was_error was set; [22] - Indicates BME was cleared;
2263 * [23] - Indicates FID_enable was cleared; [24] - Indicates VF with parent
2264 * PF FLR_request or IOV_disable_request dirty bit is set. [25] valid -
2265 * indicates if there was a request not submitted due to error since the
2266 * last time this register was cleared. */
2267 #define PGLUE_B_REG_TX_ERR_RD_DETAILS2 0x90a4
2268 /* [R 32] Address [31:0] of first write request not submitted due to error */
2269 #define PGLUE_B_REG_TX_ERR_WR_ADD_31_0 0x9088
2270 /* [R 32] Address [63:32] of first write request not submitted due to error */
2271 #define PGLUE_B_REG_TX_ERR_WR_ADD_63_32 0x908c
2272 /* [R 31] Details of first write request not submitted due to error. [4:0]
2273 * VQID. [20:8] - Length in bytes. [23:21] - PFID. [24] - VF_VALID. [30:25]
2275 #define PGLUE_B_REG_TX_ERR_WR_DETAILS 0x9090
2276 /* [R 26] Details of first write request not submitted due to error. [15:0]
2277 * Request ID. [19:16] client ID. [20] - last SR. [24:21] - Error type -
2278 * [21] - Indicates was_error was set; [22] - Indicates BME was cleared;
2279 * [23] - Indicates FID_enable was cleared; [24] - Indicates VF with parent
2280 * PF FLR_request or IOV_disable_request dirty bit is set. [25] valid -
2281 * indicates if there was a request not submitted due to error since the
2282 * last time this register was cleared. */
2283 #define PGLUE_B_REG_TX_ERR_WR_DETAILS2 0x9094
2284 /* [RW 10] Type A PF/VF inbound interrupt table for USDM: bits[9:5]-mask;
2285 * its[4:0]-address relative to start_offset_a. Bits [1:0] can have any
2286 * value (Byte resolution address). */
2287 #define PGLUE_B_REG_USDM_INB_INT_A_0 0x9128
2288 #define PGLUE_B_REG_USDM_INB_INT_A_1 0x912c
2289 #define PGLUE_B_REG_USDM_INB_INT_A_2 0x9130
2290 #define PGLUE_B_REG_USDM_INB_INT_A_3 0x9134
2291 #define PGLUE_B_REG_USDM_INB_INT_A_4 0x9138
2292 #define PGLUE_B_REG_USDM_INB_INT_A_5 0x913c
2293 #define PGLUE_B_REG_USDM_INB_INT_A_6 0x9140
2294 /* [RW 1] Type A PF enable inbound interrupt table for USDM. 0 - disable; 1
2296 #define PGLUE_B_REG_USDM_INB_INT_A_PF_ENABLE 0x917c
2297 /* [RW 1] Type A VF enable inbound interrupt table for USDM. 0 - disable; 1
2299 #define PGLUE_B_REG_USDM_INB_INT_A_VF_ENABLE 0x9180
2300 /* [RW 1] Type B VF enable inbound interrupt table for USDM. 0 - disable; 1
2302 #define PGLUE_B_REG_USDM_INB_INT_B_VF_ENABLE 0x9184
2303 /* [RW 16] Start offset of USDM zone A (queue zone) in the internal RAM */
2304 #define PGLUE_B_REG_USDM_START_OFFSET_A 0x90d8
2305 /* [RW 16] Start offset of USDM zone B (legacy zone) in the internal RAM */
2306 #define PGLUE_B_REG_USDM_START_OFFSET_B 0x90e0
2307 /* [RW 5] VF Shift of USDM zone B (legacy zone) in the internal RAM */
2308 #define PGLUE_B_REG_USDM_VF_SHIFT_B 0x90e8
2309 /* [RW 1] 0 - Zone A size is 136x32B; 1 - Zone A size is 152x32B. */
2310 #define PGLUE_B_REG_USDM_ZONE_A_SIZE_PF 0x91a4
2311 /* [R 26] Details of first target VF request accessing VF GRC space that
2312 * failed permission check. [14:0] Address. [15] w_nr: 0 - Read; 1 - Write.
2313 * [21:16] VFID. [24:22] - PFID. [25] valid - indicates if there was a
2314 * request accessing VF GRC space that failed permission check since the
2315 * last time this register was cleared. Permission checks are: function
2316 * permission; R/W permission; address range permission. */
2317 #define PGLUE_B_REG_VF_GRC_SPACE_VIOLATION_DETAILS 0x9234
2318 /* [R 31] Details of first target VF request with length violation (too many
2319 * DWs) accessing BAR0. [12:0] Address in DWs (bits [14:2] of byte address).
2320 * [14:13] BAR. [20:15] VFID. [23:21] - PFID. [29:24] - Length in DWs. [30]
2321 * valid - indicates if there was a request with length violation since the
2322 * last time this register was cleared. Length violations: length of more
2323 * than 2DWs; length of 2DWs and address not QW aligned; window is GRC and
2324 * length is more than 1 DW. */
2325 #define PGLUE_B_REG_VF_LENGTH_VIOLATION_DETAILS 0x9230
2326 /* [R 8] Was_error indication dirty bits for PFs 0 to 7. Each bit indicates
2327 * that there was a completion with uncorrectable error for the
2328 * corresponding PF. Set by PXP. Reset by MCP writing 1 to
2329 * was_error_pf_7_0_clr. */
2330 #define PGLUE_B_REG_WAS_ERROR_PF_7_0 0x907c
2331 /* [W 8] Was_error indication dirty bits clear for PFs 0 to 7. MCP writes 1
2332 * to a bit in this register in order to clear the corresponding bit in
2333 * flr_request_pf_7_0 register. */
2334 #define PGLUE_B_REG_WAS_ERROR_PF_7_0_CLR 0x9470
2335 /* [R 32] Was_error indication dirty bits for VFs 96 to 127. Each bit
2336 * indicates that there was a completion with uncorrectable error for the
2337 * corresponding VF. Set by PXP. Reset by MCP writing 1 to
2338 * was_error_vf_127_96_clr. */
2339 #define PGLUE_B_REG_WAS_ERROR_VF_127_96 0x9078
2340 /* [W 32] Was_error indication dirty bits clear for VFs 96 to 127. MCP
2341 * writes 1 to a bit in this register in order to clear the corresponding
2342 * bit in was_error_vf_127_96 register. */
2343 #define PGLUE_B_REG_WAS_ERROR_VF_127_96_CLR 0x9474
2344 /* [R 32] Was_error indication dirty bits for VFs 0 to 31. Each bit
2345 * indicates that there was a completion with uncorrectable error for the
2346 * corresponding VF. Set by PXP. Reset by MCP writing 1 to
2347 * was_error_vf_31_0_clr. */
2348 #define PGLUE_B_REG_WAS_ERROR_VF_31_0 0x906c
2349 /* [W 32] Was_error indication dirty bits clear for VFs 0 to 31. MCP writes
2350 * 1 to a bit in this register in order to clear the corresponding bit in
2351 * was_error_vf_31_0 register. */
2352 #define PGLUE_B_REG_WAS_ERROR_VF_31_0_CLR 0x9478
2353 /* [R 32] Was_error indication dirty bits for VFs 32 to 63. Each bit
2354 * indicates that there was a completion with uncorrectable error for the
2355 * corresponding VF. Set by PXP. Reset by MCP writing 1 to
2356 * was_error_vf_63_32_clr. */
2357 #define PGLUE_B_REG_WAS_ERROR_VF_63_32 0x9070
2358 /* [W 32] Was_error indication dirty bits clear for VFs 32 to 63. MCP writes
2359 * 1 to a bit in this register in order to clear the corresponding bit in
2360 * was_error_vf_63_32 register. */
2361 #define PGLUE_B_REG_WAS_ERROR_VF_63_32_CLR 0x947c
2362 /* [R 32] Was_error indication dirty bits for VFs 64 to 95. Each bit
2363 * indicates that there was a completion with uncorrectable error for the
2364 * corresponding VF. Set by PXP. Reset by MCP writing 1 to
2365 * was_error_vf_95_64_clr. */
2366 #define PGLUE_B_REG_WAS_ERROR_VF_95_64 0x9074
2367 /* [W 32] Was_error indication dirty bits clear for VFs 64 to 95. MCP writes
2368 * 1 to a bit in this register in order to clear the corresponding bit in
2369 * was_error_vf_95_64 register. */
2370 #define PGLUE_B_REG_WAS_ERROR_VF_95_64_CLR 0x9480
2371 /* [RW 1] Type A PF enable inbound interrupt table for XSDM. 0 - disable; 1
2373 #define PGLUE_B_REG_XSDM_INB_INT_A_PF_ENABLE 0x9188
2374 /* [RW 16] Start offset of XSDM zone A (queue zone) in the internal RAM */
2375 #define PGLUE_B_REG_XSDM_START_OFFSET_A 0x90ec
2376 /* [RW 16] Start offset of XSDM zone B (legacy zone) in the internal RAM */
2377 #define PGLUE_B_REG_XSDM_START_OFFSET_B 0x90f4
2378 /* [RW 5] VF Shift of XSDM zone B (legacy zone) in the internal RAM */
2379 #define PGLUE_B_REG_XSDM_VF_SHIFT_B 0x90fc
2380 /* [RW 1] 0 - Zone A size is 136x32B; 1 - Zone A size is 152x32B. */
2381 #define PGLUE_B_REG_XSDM_ZONE_A_SIZE_PF 0x91a8
2382 #define PRS_REG_A_PRSU_20 0x40134
2383 /* [R 8] debug only: CFC load request current credit. Transaction based. */
2384 #define PRS_REG_CFC_LD_CURRENT_CREDIT 0x40164
2385 /* [R 8] debug only: CFC search request current credit. Transaction based. */
2386 #define PRS_REG_CFC_SEARCH_CURRENT_CREDIT 0x40168
2387 /* [RW 6] The initial credit for the search message to the CFC interface.
2388 Credit is transaction based. */
2389 #define PRS_REG_CFC_SEARCH_INITIAL_CREDIT 0x4011c
2390 /* [RW 24] CID for port 0 if no match */
2391 #define PRS_REG_CID_PORT_0 0x400fc
2392 /* [RW 32] The CM header for flush message where 'load existed' bit in CFC
2393 load response is reset and packet type is 0. Used in packet start message
2395 #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_0 0x400dc
2396 #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_1 0x400e0
2397 #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_2 0x400e4
2398 #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_3 0x400e8
2399 #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_4 0x400ec
2400 #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_5 0x400f0
2401 /* [RW 32] The CM header for flush message where 'load existed' bit in CFC
2402 load response is set and packet type is 0. Used in packet start message
2404 #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_0 0x400bc
2405 #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_1 0x400c0
2406 #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_2 0x400c4
2407 #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_3 0x400c8
2408 #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_4 0x400cc
2409 #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_5 0x400d0
2410 /* [RW 32] The CM header for a match and packet type 1 for loopback port.
2411 Used in packet start message to TCM. */
2412 #define PRS_REG_CM_HDR_LOOPBACK_TYPE_1 0x4009c
2413 #define PRS_REG_CM_HDR_LOOPBACK_TYPE_2 0x400a0
2414 #define PRS_REG_CM_HDR_LOOPBACK_TYPE_3 0x400a4
2415 #define PRS_REG_CM_HDR_LOOPBACK_TYPE_4 0x400a8
2416 /* [RW 32] The CM header for a match and packet type 0. Used in packet start
2418 #define PRS_REG_CM_HDR_TYPE_0 0x40078
2419 #define PRS_REG_CM_HDR_TYPE_1 0x4007c
2420 #define PRS_REG_CM_HDR_TYPE_2 0x40080
2421 #define PRS_REG_CM_HDR_TYPE_3 0x40084
2422 #define PRS_REG_CM_HDR_TYPE_4 0x40088
2423 /* [RW 32] The CM header in case there was not a match on the connection */
2424 #define PRS_REG_CM_NO_MATCH_HDR 0x400b8
2425 /* [RW 1] Indicates if in e1hov mode. 0=non-e1hov mode; 1=e1hov mode. */
2426 #define PRS_REG_E1HOV_MODE 0x401c8
2427 /* [RW 8] The 8-bit event ID for a match and packet type 1. Used in packet
2428 start message to TCM. */
2429 #define PRS_REG_EVENT_ID_1 0x40054
2430 #define PRS_REG_EVENT_ID_2 0x40058
2431 #define PRS_REG_EVENT_ID_3 0x4005c
2432 /* [RW 16] The Ethernet type value for FCoE */
2433 #define PRS_REG_FCOE_TYPE 0x401d0
2434 /* [RW 8] Context region for flush packet with packet type 0. Used in CFC
2435 load request message. */
2436 #define PRS_REG_FLUSH_REGIONS_TYPE_0 0x40004
2437 #define PRS_REG_FLUSH_REGIONS_TYPE_1 0x40008
2438 #define PRS_REG_FLUSH_REGIONS_TYPE_2 0x4000c
2439 #define PRS_REG_FLUSH_REGIONS_TYPE_3 0x40010
2440 #define PRS_REG_FLUSH_REGIONS_TYPE_4 0x40014
2441 #define PRS_REG_FLUSH_REGIONS_TYPE_5 0x40018
2442 #define PRS_REG_FLUSH_REGIONS_TYPE_6 0x4001c
2443 #define PRS_REG_FLUSH_REGIONS_TYPE_7 0x40020
2444 /* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic
2445 * Ethernet header. */
2446 #define PRS_REG_HDRS_AFTER_BASIC 0x40238
2447 /* [RW 4] The increment value to send in the CFC load request message */
2448 #define PRS_REG_INC_VALUE 0x40048
2449 /* [RW 6] Bit-map indicating which headers must appear in the packet */
2450 #define PRS_REG_MUST_HAVE_HDRS 0x40254
2451 #define PRS_REG_NIC_MODE 0x40138
2452 /* [RW 8] The 8-bit event ID for cases where there is no match on the
2453 connection. Used in packet start message to TCM. */
2454 #define PRS_REG_NO_MATCH_EVENT_ID 0x40070
2455 /* [ST 24] The number of input CFC flush packets */
2456 #define PRS_REG_NUM_OF_CFC_FLUSH_MESSAGES 0x40128
2457 /* [ST 32] The number of cycles the Parser halted its operation since it
2458 could not allocate the next serial number */
2459 #define PRS_REG_NUM_OF_DEAD_CYCLES 0x40130
2460 /* [ST 24] The number of input packets */
2461 #define PRS_REG_NUM_OF_PACKETS 0x40124
2462 /* [ST 24] The number of input transparent flush packets */
2463 #define PRS_REG_NUM_OF_TRANSPARENT_FLUSH_MESSAGES 0x4012c
2464 /* [RW 8] Context region for received Ethernet packet with a match and
2465 packet type 0. Used in CFC load request message */
2466 #define PRS_REG_PACKET_REGIONS_TYPE_0 0x40028
2467 #define PRS_REG_PACKET_REGIONS_TYPE_1 0x4002c
2468 #define PRS_REG_PACKET_REGIONS_TYPE_2 0x40030
2469 #define PRS_REG_PACKET_REGIONS_TYPE_3 0x40034
2470 #define PRS_REG_PACKET_REGIONS_TYPE_4 0x40038
2471 #define PRS_REG_PACKET_REGIONS_TYPE_5 0x4003c
2472 #define PRS_REG_PACKET_REGIONS_TYPE_6 0x40040
2473 #define PRS_REG_PACKET_REGIONS_TYPE_7 0x40044
2474 /* [R 2] debug only: Number of pending requests for CAC on port 0. */
2475 #define PRS_REG_PENDING_BRB_CAC0_RQ 0x40174
2476 /* [R 2] debug only: Number of pending requests for header parsing. */
2477 #define PRS_REG_PENDING_BRB_PRS_RQ 0x40170
2478 /* [R 1] Interrupt register #0 read */
2479 #define PRS_REG_PRS_INT_STS 0x40188
2480 /* [RW 8] Parity mask register #0 read/write */
2481 #define PRS_REG_PRS_PRTY_MASK 0x401a4
2482 /* [R 8] Parity register #0 read */
2483 #define PRS_REG_PRS_PRTY_STS 0x40198
2484 /* [RC 8] Parity register #0 read clear */
2485 #define PRS_REG_PRS_PRTY_STS_CLR 0x4019c
2486 /* [RW 8] Context region for pure acknowledge packets. Used in CFC load
2488 #define PRS_REG_PURE_REGIONS 0x40024
2489 /* [R 32] debug only: Serial number status lsb 32 bits. '1' indicates this
2490 serail number was released by SDM but cannot be used because a previous
2491 serial number was not released. */
2492 #define PRS_REG_SERIAL_NUM_STATUS_LSB 0x40154
2493 /* [R 32] debug only: Serial number status msb 32 bits. '1' indicates this
2494 serail number was released by SDM but cannot be used because a previous
2495 serial number was not released. */
2496 #define PRS_REG_SERIAL_NUM_STATUS_MSB 0x40158
2497 /* [R 4] debug only: SRC current credit. Transaction based. */
2498 #define PRS_REG_SRC_CURRENT_CREDIT 0x4016c
2499 /* [R 8] debug only: TCM current credit. Cycle based. */
2500 #define PRS_REG_TCM_CURRENT_CREDIT 0x40160
2501 /* [R 8] debug only: TSDM current credit. Transaction based. */
2502 #define PRS_REG_TSDM_CURRENT_CREDIT 0x4015c
2503 #define PXP2_PXP2_INT_MASK_0_REG_PGL_CPL_AFT (0x1<<19)
2504 #define PXP2_PXP2_INT_MASK_0_REG_PGL_CPL_OF (0x1<<20)
2505 #define PXP2_PXP2_INT_MASK_0_REG_PGL_PCIE_ATTN (0x1<<22)
2506 #define PXP2_PXP2_INT_MASK_0_REG_PGL_READ_BLOCKED (0x1<<23)
2507 #define PXP2_PXP2_INT_MASK_0_REG_PGL_WRITE_BLOCKED (0x1<<24)
2508 #define PXP2_PXP2_INT_STS_0_REG_WR_PGLUE_EOP_ERROR (0x1<<7)
2509 #define PXP2_PXP2_INT_STS_CLR_0_REG_WR_PGLUE_EOP_ERROR (0x1<<7)
2510 /* [R 6] Debug only: Number of used entries in the data FIFO */
2511 #define PXP2_REG_HST_DATA_FIFO_STATUS 0x12047c
2512 /* [R 7] Debug only: Number of used entries in the header FIFO */
2513 #define PXP2_REG_HST_HEADER_FIFO_STATUS 0x120478
2514 #define PXP2_REG_PGL_ADDR_88_F0 0x120534
2515 #define PXP2_REG_PGL_ADDR_8C_F0 0x120538
2516 #define PXP2_REG_PGL_ADDR_90_F0 0x12053c
2517 #define PXP2_REG_PGL_ADDR_94_F0 0x120540
2518 #define PXP2_REG_PGL_CONTROL0 0x120490
2519 #define PXP2_REG_PGL_CONTROL1 0x120514
2520 #define PXP2_REG_PGL_DEBUG 0x120520
2521 /* [RW 32] third dword data of expansion rom request. this register is
2522 special. reading from it provides a vector outstanding read requests. if
2523 a bit is zero it means that a read request on the corresponding tag did
2524 not finish yet (not all completions have arrived for it) */
2525 #define PXP2_REG_PGL_EXP_ROM2 0x120808
2526 /* [RW 32] Inbound interrupt table for CSDM: bits[31:16]-mask;
2527 its[15:0]-address */
2528 #define PXP2_REG_PGL_INT_CSDM_0 0x1204f4
2529 #define PXP2_REG_PGL_INT_CSDM_1 0x1204f8
2530 #define PXP2_REG_PGL_INT_CSDM_2 0x1204fc
2531 #define PXP2_REG_PGL_INT_CSDM_3 0x120500
2532 #define PXP2_REG_PGL_INT_CSDM_4 0x120504
2533 #define PXP2_REG_PGL_INT_CSDM_5 0x120508
2534 #define PXP2_REG_PGL_INT_CSDM_6 0x12050c
2535 #define PXP2_REG_PGL_INT_CSDM_7 0x120510
2536 /* [RW 32] Inbound interrupt table for TSDM: bits[31:16]-mask;
2537 its[15:0]-address */
2538 #define PXP2_REG_PGL_INT_TSDM_0 0x120494
2539 #define PXP2_REG_PGL_INT_TSDM_1 0x120498
2540 #define PXP2_REG_PGL_INT_TSDM_2 0x12049c
2541 #define PXP2_REG_PGL_INT_TSDM_3 0x1204a0
2542 #define PXP2_REG_PGL_INT_TSDM_4 0x1204a4
2543 #define PXP2_REG_PGL_INT_TSDM_5 0x1204a8
2544 #define PXP2_REG_PGL_INT_TSDM_6 0x1204ac
2545 #define PXP2_REG_PGL_INT_TSDM_7 0x1204b0
2546 /* [RW 32] Inbound interrupt table for USDM: bits[31:16]-mask;
2547 its[15:0]-address */
2548 #define PXP2_REG_PGL_INT_USDM_0 0x1204b4
2549 #define PXP2_REG_PGL_INT_USDM_1 0x1204b8
2550 #define PXP2_REG_PGL_INT_USDM_2 0x1204bc
2551 #define PXP2_REG_PGL_INT_USDM_3 0x1204c0
2552 #define PXP2_REG_PGL_INT_USDM_4 0x1204c4
2553 #define PXP2_REG_PGL_INT_USDM_5 0x1204c8
2554 #define PXP2_REG_PGL_INT_USDM_6 0x1204cc
2555 #define PXP2_REG_PGL_INT_USDM_7 0x1204d0
2556 /* [RW 32] Inbound interrupt table for XSDM: bits[31:16]-mask;
2557 its[15:0]-address */
2558 #define PXP2_REG_PGL_INT_XSDM_0 0x1204d4
2559 #define PXP2_REG_PGL_INT_XSDM_1 0x1204d8
2560 #define PXP2_REG_PGL_INT_XSDM_2 0x1204dc
2561 #define PXP2_REG_PGL_INT_XSDM_3 0x1204e0
2562 #define PXP2_REG_PGL_INT_XSDM_4 0x1204e4
2563 #define PXP2_REG_PGL_INT_XSDM_5 0x1204e8
2564 #define PXP2_REG_PGL_INT_XSDM_6 0x1204ec
2565 #define PXP2_REG_PGL_INT_XSDM_7 0x1204f0
2566 /* [RW 3] this field allows one function to pretend being another function
2567 when accessing any BAR mapped resource within the device. the value of
2568 the field is the number of the function that will be accessed
2569 effectively. after software write to this bit it must read it in order to
2570 know that the new value is updated */
2571 #define PXP2_REG_PGL_PRETEND_FUNC_F0 0x120674
2572 #define PXP2_REG_PGL_PRETEND_FUNC_F1 0x120678
2573 #define PXP2_REG_PGL_PRETEND_FUNC_F2 0x12067c
2574 #define PXP2_REG_PGL_PRETEND_FUNC_F3 0x120680
2575 #define PXP2_REG_PGL_PRETEND_FUNC_F4 0x120684
2576 #define PXP2_REG_PGL_PRETEND_FUNC_F5 0x120688
2577 #define PXP2_REG_PGL_PRETEND_FUNC_F6 0x12068c
2578 #define PXP2_REG_PGL_PRETEND_FUNC_F7 0x120690
2579 /* [R 1] this bit indicates that a read request was blocked because of
2580 bus_master_en was deasserted */
2581 #define PXP2_REG_PGL_READ_BLOCKED 0x120568
2582 #define PXP2_REG_PGL_TAGS_LIMIT 0x1205a8
2583 /* [R 18] debug only */
2584 #define PXP2_REG_PGL_TXW_CDTS 0x12052c
2585 /* [R 1] this bit indicates that a write request was blocked because of
2586 bus_master_en was deasserted */
2587 #define PXP2_REG_PGL_WRITE_BLOCKED 0x120564
2588 #define PXP2_REG_PSWRQ_BW_ADD1 0x1201c0
2589 #define PXP2_REG_PSWRQ_BW_ADD10 0x1201e4
2590 #define PXP2_REG_PSWRQ_BW_ADD11 0x1201e8
2591 #define PXP2_REG_PSWRQ_BW_ADD2 0x1201c4
2592 #define PXP2_REG_PSWRQ_BW_ADD28 0x120228
2593 #define PXP2_REG_PSWRQ_BW_ADD3 0x1201c8
2594 #define PXP2_REG_PSWRQ_BW_ADD6 0x1201d4
2595 #define PXP2_REG_PSWRQ_BW_ADD7 0x1201d8
2596 #define PXP2_REG_PSWRQ_BW_ADD8 0x1201dc
2597 #define PXP2_REG_PSWRQ_BW_ADD9 0x1201e0
2598 #define PXP2_REG_PSWRQ_BW_CREDIT 0x12032c
2599 #define PXP2_REG_PSWRQ_BW_L1 0x1202b0
2600 #define PXP2_REG_PSWRQ_BW_L10 0x1202d4
2601 #define PXP2_REG_PSWRQ_BW_L11 0x1202d8
2602 #define PXP2_REG_PSWRQ_BW_L2 0x1202b4
2603 #define PXP2_REG_PSWRQ_BW_L28 0x120318
2604 #define PXP2_REG_PSWRQ_BW_L3 0x1202b8
2605 #define PXP2_REG_PSWRQ_BW_L6 0x1202c4
2606 #define PXP2_REG_PSWRQ_BW_L7 0x1202c8
2607 #define PXP2_REG_PSWRQ_BW_L8 0x1202cc
2608 #define PXP2_REG_PSWRQ_BW_L9 0x1202d0
2609 #define PXP2_REG_PSWRQ_BW_RD 0x120324
2610 #define PXP2_REG_PSWRQ_BW_UB1 0x120238
2611 #define PXP2_REG_PSWRQ_BW_UB10 0x12025c
2612 #define PXP2_REG_PSWRQ_BW_UB11 0x120260
2613 #define PXP2_REG_PSWRQ_BW_UB2 0x12023c
2614 #define PXP2_REG_PSWRQ_BW_UB28 0x1202a0
2615 #define PXP2_REG_PSWRQ_BW_UB3 0x120240
2616 #define PXP2_REG_PSWRQ_BW_UB6 0x12024c
2617 #define PXP2_REG_PSWRQ_BW_UB7 0x120250
2618 #define PXP2_REG_PSWRQ_BW_UB8 0x120254
2619 #define PXP2_REG_PSWRQ_BW_UB9 0x120258
2620 #define PXP2_REG_PSWRQ_BW_WR 0x120328
2621 #define PXP2_REG_PSWRQ_CDU0_L2P 0x120000
2622 #define PXP2_REG_PSWRQ_QM0_L2P 0x120038
2623 #define PXP2_REG_PSWRQ_SRC0_L2P 0x120054
2624 #define PXP2_REG_PSWRQ_TM0_L2P 0x12001c
2625 #define PXP2_REG_PSWRQ_TSDM0_L2P 0x1200e0
2626 /* [RW 32] Interrupt mask register #0 read/write */
2627 #define PXP2_REG_PXP2_INT_MASK_0 0x120578
2628 /* [R 32] Interrupt register #0 read */
2629 #define PXP2_REG_PXP2_INT_STS_0 0x12056c
2630 #define PXP2_REG_PXP2_INT_STS_1 0x120608
2631 /* [RC 32] Interrupt register #0 read clear */
2632 #define PXP2_REG_PXP2_INT_STS_CLR_0 0x120570
2633 /* [RW 32] Parity mask register #0 read/write */
2634 #define PXP2_REG_PXP2_PRTY_MASK_0 0x120588
2635 #define PXP2_REG_PXP2_PRTY_MASK_1 0x120598
2636 /* [R 32] Parity register #0 read */
2637 #define PXP2_REG_PXP2_PRTY_STS_0 0x12057c
2638 #define PXP2_REG_PXP2_PRTY_STS_1 0x12058c
2639 /* [RC 32] Parity register #0 read clear */
2640 #define PXP2_REG_PXP2_PRTY_STS_CLR_0 0x120580
2641 #define PXP2_REG_PXP2_PRTY_STS_CLR_1 0x120590
2642 /* [R 1] Debug only: The 'almost full' indication from each fifo (gives
2643 indication about backpressure) */
2644 #define PXP2_REG_RD_ALMOST_FULL_0 0x120424
2645 /* [R 8] Debug only: The blocks counter - number of unused block ids */
2646 #define PXP2_REG_RD_BLK_CNT 0x120418
2647 /* [RW 8] Debug only: Total number of available blocks in Tetris Buffer.
2648 Must be bigger than 6. Normally should not be changed. */
2649 #define PXP2_REG_RD_BLK_NUM_CFG 0x12040c
2650 /* [RW 2] CDU byte swapping mode configuration for master read requests */
2651 #define PXP2_REG_RD_CDURD_SWAP_MODE 0x120404
2652 /* [RW 1] When '1'; inputs to the PSWRD block are ignored */
2653 #define PXP2_REG_RD_DISABLE_INPUTS 0x120374
2654 /* [R 1] PSWRD internal memories initialization is done */
2655 #define PXP2_REG_RD_INIT_DONE 0x120370
2656 /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
2657 allocated for vq10 */
2658 #define PXP2_REG_RD_MAX_BLKS_VQ10 0x1203a0
2659 /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
2660 allocated for vq11 */
2661 #define PXP2_REG_RD_MAX_BLKS_VQ11 0x1203a4
2662 /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
2663 allocated for vq17 */
2664 #define PXP2_REG_RD_MAX_BLKS_VQ17 0x1203bc
2665 /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
2666 allocated for vq18 */
2667 #define PXP2_REG_RD_MAX_BLKS_VQ18 0x1203c0
2668 /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
2669 allocated for vq19 */
2670 #define PXP2_REG_RD_MAX_BLKS_VQ19 0x1203c4
2671 /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
2672 allocated for vq22 */
2673 #define PXP2_REG_RD_MAX_BLKS_VQ22 0x1203d0