diff options
Diffstat (limited to 'arch/mips/include/asm/octeon/cvmx-pescx-defs.h')
-rw-r--r-- | arch/mips/include/asm/octeon/cvmx-pescx-defs.h | 246 |
1 files changed, 245 insertions, 1 deletions
diff --git a/arch/mips/include/asm/octeon/cvmx-pescx-defs.h b/arch/mips/include/asm/octeon/cvmx-pescx-defs.h index aef84851a94c..59b3dc565442 100644 --- a/arch/mips/include/asm/octeon/cvmx-pescx-defs.h +++ b/arch/mips/include/asm/octeon/cvmx-pescx-defs.h | |||
@@ -4,7 +4,7 @@ | |||
4 | * Contact: support@caviumnetworks.com | 4 | * Contact: support@caviumnetworks.com |
5 | * This file is part of the OCTEON SDK | 5 | * This file is part of the OCTEON SDK |
6 | * | 6 | * |
7 | * Copyright (c) 2003-2010 Cavium Networks | 7 | * Copyright (c) 2003-2012 Cavium Networks |
8 | * | 8 | * |
9 | * This file is free software; you can redistribute it and/or modify | 9 | * This file is free software; you can redistribute it and/or modify |
10 | * it under the terms of the GNU General Public License, Version 2, as | 10 | * it under the terms of the GNU General Public License, Version 2, as |
@@ -48,6 +48,7 @@ | |||
48 | union cvmx_pescx_bist_status { | 48 | union cvmx_pescx_bist_status { |
49 | uint64_t u64; | 49 | uint64_t u64; |
50 | struct cvmx_pescx_bist_status_s { | 50 | struct cvmx_pescx_bist_status_s { |
51 | #ifdef __BIG_ENDIAN_BITFIELD | ||
51 | uint64_t reserved_13_63:51; | 52 | uint64_t reserved_13_63:51; |
52 | uint64_t rqdata5:1; | 53 | uint64_t rqdata5:1; |
53 | uint64_t ctlp_or:1; | 54 | uint64_t ctlp_or:1; |
@@ -62,9 +63,26 @@ union cvmx_pescx_bist_status { | |||
62 | uint64_t rqhdr1:1; | 63 | uint64_t rqhdr1:1; |
63 | uint64_t rqhdr0:1; | 64 | uint64_t rqhdr0:1; |
64 | uint64_t sot:1; | 65 | uint64_t sot:1; |
66 | #else | ||
67 | uint64_t sot:1; | ||
68 | uint64_t rqhdr0:1; | ||
69 | uint64_t rqhdr1:1; | ||
70 | uint64_t rqdata4:1; | ||
71 | uint64_t rqdata3:1; | ||
72 | uint64_t rqdata2:1; | ||
73 | uint64_t rqdata1:1; | ||
74 | uint64_t rqdata0:1; | ||
75 | uint64_t retry:1; | ||
76 | uint64_t ptlp_or:1; | ||
77 | uint64_t ntlp_or:1; | ||
78 | uint64_t ctlp_or:1; | ||
79 | uint64_t rqdata5:1; | ||
80 | uint64_t reserved_13_63:51; | ||
81 | #endif | ||
65 | } s; | 82 | } s; |
66 | struct cvmx_pescx_bist_status_s cn52xx; | 83 | struct cvmx_pescx_bist_status_s cn52xx; |
67 | struct cvmx_pescx_bist_status_cn52xxp1 { | 84 | struct cvmx_pescx_bist_status_cn52xxp1 { |
85 | #ifdef __BIG_ENDIAN_BITFIELD | ||
68 | uint64_t reserved_12_63:52; | 86 | uint64_t reserved_12_63:52; |
69 | uint64_t ctlp_or:1; | 87 | uint64_t ctlp_or:1; |
70 | uint64_t ntlp_or:1; | 88 | uint64_t ntlp_or:1; |
@@ -78,6 +96,21 @@ union cvmx_pescx_bist_status { | |||
78 | uint64_t rqhdr1:1; | 96 | uint64_t rqhdr1:1; |
79 | uint64_t rqhdr0:1; | 97 | uint64_t rqhdr0:1; |
80 | uint64_t sot:1; | 98 | uint64_t sot:1; |
99 | #else | ||
100 | uint64_t sot:1; | ||
101 | uint64_t rqhdr0:1; | ||
102 | uint64_t rqhdr1:1; | ||
103 | uint64_t rqdata4:1; | ||
104 | uint64_t rqdata3:1; | ||
105 | uint64_t rqdata2:1; | ||
106 | uint64_t rqdata1:1; | ||
107 | uint64_t rqdata0:1; | ||
108 | uint64_t retry:1; | ||
109 | uint64_t ptlp_or:1; | ||
110 | uint64_t ntlp_or:1; | ||
111 | uint64_t ctlp_or:1; | ||
112 | uint64_t reserved_12_63:52; | ||
113 | #endif | ||
81 | } cn52xxp1; | 114 | } cn52xxp1; |
82 | struct cvmx_pescx_bist_status_s cn56xx; | 115 | struct cvmx_pescx_bist_status_s cn56xx; |
83 | struct cvmx_pescx_bist_status_cn52xxp1 cn56xxp1; | 116 | struct cvmx_pescx_bist_status_cn52xxp1 cn56xxp1; |
@@ -86,6 +119,7 @@ union cvmx_pescx_bist_status { | |||
86 | union cvmx_pescx_bist_status2 { | 119 | union cvmx_pescx_bist_status2 { |
87 | uint64_t u64; | 120 | uint64_t u64; |
88 | struct cvmx_pescx_bist_status2_s { | 121 | struct cvmx_pescx_bist_status2_s { |
122 | #ifdef __BIG_ENDIAN_BITFIELD | ||
89 | uint64_t reserved_14_63:50; | 123 | uint64_t reserved_14_63:50; |
90 | uint64_t cto_p2e:1; | 124 | uint64_t cto_p2e:1; |
91 | uint64_t e2p_cpl:1; | 125 | uint64_t e2p_cpl:1; |
@@ -101,6 +135,23 @@ union cvmx_pescx_bist_status2 { | |||
101 | uint64_t pef_tcf1:1; | 135 | uint64_t pef_tcf1:1; |
102 | uint64_t pef_tc0:1; | 136 | uint64_t pef_tc0:1; |
103 | uint64_t ppf:1; | 137 | uint64_t ppf:1; |
138 | #else | ||
139 | uint64_t ppf:1; | ||
140 | uint64_t pef_tc0:1; | ||
141 | uint64_t pef_tcf1:1; | ||
142 | uint64_t pef_tnf:1; | ||
143 | uint64_t pef_tpf0:1; | ||
144 | uint64_t pef_tpf1:1; | ||
145 | uint64_t rsl_p2e:1; | ||
146 | uint64_t peai_p2e:1; | ||
147 | uint64_t dbg_p2e:1; | ||
148 | uint64_t e2p_rsl:1; | ||
149 | uint64_t e2p_p:1; | ||
150 | uint64_t e2p_n:1; | ||
151 | uint64_t e2p_cpl:1; | ||
152 | uint64_t cto_p2e:1; | ||
153 | uint64_t reserved_14_63:50; | ||
154 | #endif | ||
104 | } s; | 155 | } s; |
105 | struct cvmx_pescx_bist_status2_s cn52xx; | 156 | struct cvmx_pescx_bist_status2_s cn52xx; |
106 | struct cvmx_pescx_bist_status2_s cn52xxp1; | 157 | struct cvmx_pescx_bist_status2_s cn52xxp1; |
@@ -111,8 +162,13 @@ union cvmx_pescx_bist_status2 { | |||
111 | union cvmx_pescx_cfg_rd { | 162 | union cvmx_pescx_cfg_rd { |
112 | uint64_t u64; | 163 | uint64_t u64; |
113 | struct cvmx_pescx_cfg_rd_s { | 164 | struct cvmx_pescx_cfg_rd_s { |
165 | #ifdef __BIG_ENDIAN_BITFIELD | ||
114 | uint64_t data:32; | 166 | uint64_t data:32; |
115 | uint64_t addr:32; | 167 | uint64_t addr:32; |
168 | #else | ||
169 | uint64_t addr:32; | ||
170 | uint64_t data:32; | ||
171 | #endif | ||
116 | } s; | 172 | } s; |
117 | struct cvmx_pescx_cfg_rd_s cn52xx; | 173 | struct cvmx_pescx_cfg_rd_s cn52xx; |
118 | struct cvmx_pescx_cfg_rd_s cn52xxp1; | 174 | struct cvmx_pescx_cfg_rd_s cn52xxp1; |
@@ -123,8 +179,13 @@ union cvmx_pescx_cfg_rd { | |||
123 | union cvmx_pescx_cfg_wr { | 179 | union cvmx_pescx_cfg_wr { |
124 | uint64_t u64; | 180 | uint64_t u64; |
125 | struct cvmx_pescx_cfg_wr_s { | 181 | struct cvmx_pescx_cfg_wr_s { |
182 | #ifdef __BIG_ENDIAN_BITFIELD | ||
126 | uint64_t data:32; | 183 | uint64_t data:32; |
127 | uint64_t addr:32; | 184 | uint64_t addr:32; |
185 | #else | ||
186 | uint64_t addr:32; | ||
187 | uint64_t data:32; | ||
188 | #endif | ||
128 | } s; | 189 | } s; |
129 | struct cvmx_pescx_cfg_wr_s cn52xx; | 190 | struct cvmx_pescx_cfg_wr_s cn52xx; |
130 | struct cvmx_pescx_cfg_wr_s cn52xxp1; | 191 | struct cvmx_pescx_cfg_wr_s cn52xxp1; |
@@ -135,8 +196,13 @@ union cvmx_pescx_cfg_wr { | |||
135 | union cvmx_pescx_cpl_lut_valid { | 196 | union cvmx_pescx_cpl_lut_valid { |
136 | uint64_t u64; | 197 | uint64_t u64; |
137 | struct cvmx_pescx_cpl_lut_valid_s { | 198 | struct cvmx_pescx_cpl_lut_valid_s { |
199 | #ifdef __BIG_ENDIAN_BITFIELD | ||
138 | uint64_t reserved_32_63:32; | 200 | uint64_t reserved_32_63:32; |
139 | uint64_t tag:32; | 201 | uint64_t tag:32; |
202 | #else | ||
203 | uint64_t tag:32; | ||
204 | uint64_t reserved_32_63:32; | ||
205 | #endif | ||
140 | } s; | 206 | } s; |
141 | struct cvmx_pescx_cpl_lut_valid_s cn52xx; | 207 | struct cvmx_pescx_cpl_lut_valid_s cn52xx; |
142 | struct cvmx_pescx_cpl_lut_valid_s cn52xxp1; | 208 | struct cvmx_pescx_cpl_lut_valid_s cn52xxp1; |
@@ -147,6 +213,7 @@ union cvmx_pescx_cpl_lut_valid { | |||
147 | union cvmx_pescx_ctl_status { | 213 | union cvmx_pescx_ctl_status { |
148 | uint64_t u64; | 214 | uint64_t u64; |
149 | struct cvmx_pescx_ctl_status_s { | 215 | struct cvmx_pescx_ctl_status_s { |
216 | #ifdef __BIG_ENDIAN_BITFIELD | ||
150 | uint64_t reserved_28_63:36; | 217 | uint64_t reserved_28_63:36; |
151 | uint64_t dnum:5; | 218 | uint64_t dnum:5; |
152 | uint64_t pbus:8; | 219 | uint64_t pbus:8; |
@@ -163,10 +230,29 @@ union cvmx_pescx_ctl_status { | |||
163 | uint64_t reserved_2_2:1; | 230 | uint64_t reserved_2_2:1; |
164 | uint64_t inv_ecrc:1; | 231 | uint64_t inv_ecrc:1; |
165 | uint64_t inv_lcrc:1; | 232 | uint64_t inv_lcrc:1; |
233 | #else | ||
234 | uint64_t inv_lcrc:1; | ||
235 | uint64_t inv_ecrc:1; | ||
236 | uint64_t reserved_2_2:1; | ||
237 | uint64_t ro_ctlp:1; | ||
238 | uint64_t lnk_enb:1; | ||
239 | uint64_t dly_one:1; | ||
240 | uint64_t nf_ecrc:1; | ||
241 | uint64_t reserved_7_8:2; | ||
242 | uint64_t ob_p_cmd:1; | ||
243 | uint64_t pm_xpme:1; | ||
244 | uint64_t pm_xtoff:1; | ||
245 | uint64_t lane_swp:1; | ||
246 | uint64_t qlm_cfg:2; | ||
247 | uint64_t pbus:8; | ||
248 | uint64_t dnum:5; | ||
249 | uint64_t reserved_28_63:36; | ||
250 | #endif | ||
166 | } s; | 251 | } s; |
167 | struct cvmx_pescx_ctl_status_s cn52xx; | 252 | struct cvmx_pescx_ctl_status_s cn52xx; |
168 | struct cvmx_pescx_ctl_status_s cn52xxp1; | 253 | struct cvmx_pescx_ctl_status_s cn52xxp1; |
169 | struct cvmx_pescx_ctl_status_cn56xx { | 254 | struct cvmx_pescx_ctl_status_cn56xx { |
255 | #ifdef __BIG_ENDIAN_BITFIELD | ||
170 | uint64_t reserved_28_63:36; | 256 | uint64_t reserved_28_63:36; |
171 | uint64_t dnum:5; | 257 | uint64_t dnum:5; |
172 | uint64_t pbus:8; | 258 | uint64_t pbus:8; |
@@ -183,6 +269,24 @@ union cvmx_pescx_ctl_status { | |||
183 | uint64_t reserved_2_2:1; | 269 | uint64_t reserved_2_2:1; |
184 | uint64_t inv_ecrc:1; | 270 | uint64_t inv_ecrc:1; |
185 | uint64_t inv_lcrc:1; | 271 | uint64_t inv_lcrc:1; |
272 | #else | ||
273 | uint64_t inv_lcrc:1; | ||
274 | uint64_t inv_ecrc:1; | ||
275 | uint64_t reserved_2_2:1; | ||
276 | uint64_t ro_ctlp:1; | ||
277 | uint64_t lnk_enb:1; | ||
278 | uint64_t dly_one:1; | ||
279 | uint64_t nf_ecrc:1; | ||
280 | uint64_t reserved_7_8:2; | ||
281 | uint64_t ob_p_cmd:1; | ||
282 | uint64_t pm_xpme:1; | ||
283 | uint64_t pm_xtoff:1; | ||
284 | uint64_t reserved_12_12:1; | ||
285 | uint64_t qlm_cfg:2; | ||
286 | uint64_t pbus:8; | ||
287 | uint64_t dnum:5; | ||
288 | uint64_t reserved_28_63:36; | ||
289 | #endif | ||
186 | } cn56xx; | 290 | } cn56xx; |
187 | struct cvmx_pescx_ctl_status_cn56xx cn56xxp1; | 291 | struct cvmx_pescx_ctl_status_cn56xx cn56xxp1; |
188 | }; | 292 | }; |
@@ -190,14 +294,25 @@ union cvmx_pescx_ctl_status { | |||
190 | union cvmx_pescx_ctl_status2 { | 294 | union cvmx_pescx_ctl_status2 { |
191 | uint64_t u64; | 295 | uint64_t u64; |
192 | struct cvmx_pescx_ctl_status2_s { | 296 | struct cvmx_pescx_ctl_status2_s { |
297 | #ifdef __BIG_ENDIAN_BITFIELD | ||
193 | uint64_t reserved_2_63:62; | 298 | uint64_t reserved_2_63:62; |
194 | uint64_t pclk_run:1; | 299 | uint64_t pclk_run:1; |
195 | uint64_t pcierst:1; | 300 | uint64_t pcierst:1; |
301 | #else | ||
302 | uint64_t pcierst:1; | ||
303 | uint64_t pclk_run:1; | ||
304 | uint64_t reserved_2_63:62; | ||
305 | #endif | ||
196 | } s; | 306 | } s; |
197 | struct cvmx_pescx_ctl_status2_s cn52xx; | 307 | struct cvmx_pescx_ctl_status2_s cn52xx; |
198 | struct cvmx_pescx_ctl_status2_cn52xxp1 { | 308 | struct cvmx_pescx_ctl_status2_cn52xxp1 { |
309 | #ifdef __BIG_ENDIAN_BITFIELD | ||
199 | uint64_t reserved_1_63:63; | 310 | uint64_t reserved_1_63:63; |
200 | uint64_t pcierst:1; | 311 | uint64_t pcierst:1; |
312 | #else | ||
313 | uint64_t pcierst:1; | ||
314 | uint64_t reserved_1_63:63; | ||
315 | #endif | ||
201 | } cn52xxp1; | 316 | } cn52xxp1; |
202 | struct cvmx_pescx_ctl_status2_s cn56xx; | 317 | struct cvmx_pescx_ctl_status2_s cn56xx; |
203 | struct cvmx_pescx_ctl_status2_cn52xxp1 cn56xxp1; | 318 | struct cvmx_pescx_ctl_status2_cn52xxp1 cn56xxp1; |
@@ -206,6 +321,7 @@ union cvmx_pescx_ctl_status2 { | |||
206 | union cvmx_pescx_dbg_info { | 321 | union cvmx_pescx_dbg_info { |
207 | uint64_t u64; | 322 | uint64_t u64; |
208 | struct cvmx_pescx_dbg_info_s { | 323 | struct cvmx_pescx_dbg_info_s { |
324 | #ifdef __BIG_ENDIAN_BITFIELD | ||
209 | uint64_t reserved_31_63:33; | 325 | uint64_t reserved_31_63:33; |
210 | uint64_t ecrc_e:1; | 326 | uint64_t ecrc_e:1; |
211 | uint64_t rawwpp:1; | 327 | uint64_t rawwpp:1; |
@@ -238,6 +354,40 @@ union cvmx_pescx_dbg_info { | |||
238 | uint64_t rtlplle:1; | 354 | uint64_t rtlplle:1; |
239 | uint64_t rtlpmal:1; | 355 | uint64_t rtlpmal:1; |
240 | uint64_t spoison:1; | 356 | uint64_t spoison:1; |
357 | #else | ||
358 | uint64_t spoison:1; | ||
359 | uint64_t rtlpmal:1; | ||
360 | uint64_t rtlplle:1; | ||
361 | uint64_t recrce:1; | ||
362 | uint64_t rpoison:1; | ||
363 | uint64_t rcemrc:1; | ||
364 | uint64_t rnfemrc:1; | ||
365 | uint64_t rfemrc:1; | ||
366 | uint64_t rpmerc:1; | ||
367 | uint64_t rptamrc:1; | ||
368 | uint64_t rumep:1; | ||
369 | uint64_t rvdm:1; | ||
370 | uint64_t acto:1; | ||
371 | uint64_t rte:1; | ||
372 | uint64_t mre:1; | ||
373 | uint64_t rdwdle:1; | ||
374 | uint64_t rtwdle:1; | ||
375 | uint64_t dpeoosd:1; | ||
376 | uint64_t fcpvwt:1; | ||
377 | uint64_t rpe:1; | ||
378 | uint64_t fcuv:1; | ||
379 | uint64_t rqo:1; | ||
380 | uint64_t rauc:1; | ||
381 | uint64_t racur:1; | ||
382 | uint64_t racca:1; | ||
383 | uint64_t caar:1; | ||
384 | uint64_t rarwdns:1; | ||
385 | uint64_t ramtlp:1; | ||
386 | uint64_t racpp:1; | ||
387 | uint64_t rawwpp:1; | ||
388 | uint64_t ecrc_e:1; | ||
389 | uint64_t reserved_31_63:33; | ||
390 | #endif | ||
241 | } s; | 391 | } s; |
242 | struct cvmx_pescx_dbg_info_s cn52xx; | 392 | struct cvmx_pescx_dbg_info_s cn52xx; |
243 | struct cvmx_pescx_dbg_info_s cn52xxp1; | 393 | struct cvmx_pescx_dbg_info_s cn52xxp1; |
@@ -248,6 +398,7 @@ union cvmx_pescx_dbg_info { | |||
248 | union cvmx_pescx_dbg_info_en { | 398 | union cvmx_pescx_dbg_info_en { |
249 | uint64_t u64; | 399 | uint64_t u64; |
250 | struct cvmx_pescx_dbg_info_en_s { | 400 | struct cvmx_pescx_dbg_info_en_s { |
401 | #ifdef __BIG_ENDIAN_BITFIELD | ||
251 | uint64_t reserved_31_63:33; | 402 | uint64_t reserved_31_63:33; |
252 | uint64_t ecrc_e:1; | 403 | uint64_t ecrc_e:1; |
253 | uint64_t rawwpp:1; | 404 | uint64_t rawwpp:1; |
@@ -280,6 +431,40 @@ union cvmx_pescx_dbg_info_en { | |||
280 | uint64_t rtlplle:1; | 431 | uint64_t rtlplle:1; |
281 | uint64_t rtlpmal:1; | 432 | uint64_t rtlpmal:1; |
282 | uint64_t spoison:1; | 433 | uint64_t spoison:1; |
434 | #else | ||
435 | uint64_t spoison:1; | ||
436 | uint64_t rtlpmal:1; | ||
437 | uint64_t rtlplle:1; | ||
438 | uint64_t recrce:1; | ||
439 | uint64_t rpoison:1; | ||
440 | uint64_t rcemrc:1; | ||
441 | uint64_t rnfemrc:1; | ||
442 | uint64_t rfemrc:1; | ||
443 | uint64_t rpmerc:1; | ||
444 | uint64_t rptamrc:1; | ||
445 | uint64_t rumep:1; | ||
446 | uint64_t rvdm:1; | ||
447 | uint64_t acto:1; | ||
448 | uint64_t rte:1; | ||
449 | uint64_t mre:1; | ||
450 | uint64_t rdwdle:1; | ||
451 | uint64_t rtwdle:1; | ||
452 | uint64_t dpeoosd:1; | ||
453 | uint64_t fcpvwt:1; | ||
454 | uint64_t rpe:1; | ||
455 | uint64_t fcuv:1; | ||
456 | uint64_t rqo:1; | ||
457 | uint64_t rauc:1; | ||
458 | uint64_t racur:1; | ||
459 | uint64_t racca:1; | ||
460 | uint64_t caar:1; | ||
461 | uint64_t rarwdns:1; | ||
462 | uint64_t ramtlp:1; | ||
463 | uint64_t racpp:1; | ||
464 | uint64_t rawwpp:1; | ||
465 | uint64_t ecrc_e:1; | ||
466 | uint64_t reserved_31_63:33; | ||
467 | #endif | ||
283 | } s; | 468 | } s; |
284 | struct cvmx_pescx_dbg_info_en_s cn52xx; | 469 | struct cvmx_pescx_dbg_info_en_s cn52xx; |
285 | struct cvmx_pescx_dbg_info_en_s cn52xxp1; | 470 | struct cvmx_pescx_dbg_info_en_s cn52xxp1; |
@@ -290,11 +475,19 @@ union cvmx_pescx_dbg_info_en { | |||
290 | union cvmx_pescx_diag_status { | 475 | union cvmx_pescx_diag_status { |
291 | uint64_t u64; | 476 | uint64_t u64; |
292 | struct cvmx_pescx_diag_status_s { | 477 | struct cvmx_pescx_diag_status_s { |
478 | #ifdef __BIG_ENDIAN_BITFIELD | ||
293 | uint64_t reserved_4_63:60; | 479 | uint64_t reserved_4_63:60; |
294 | uint64_t pm_dst:1; | 480 | uint64_t pm_dst:1; |
295 | uint64_t pm_stat:1; | 481 | uint64_t pm_stat:1; |
296 | uint64_t pm_en:1; | 482 | uint64_t pm_en:1; |
297 | uint64_t aux_en:1; | 483 | uint64_t aux_en:1; |
484 | #else | ||
485 | uint64_t aux_en:1; | ||
486 | uint64_t pm_en:1; | ||
487 | uint64_t pm_stat:1; | ||
488 | uint64_t pm_dst:1; | ||
489 | uint64_t reserved_4_63:60; | ||
490 | #endif | ||
298 | } s; | 491 | } s; |
299 | struct cvmx_pescx_diag_status_s cn52xx; | 492 | struct cvmx_pescx_diag_status_s cn52xx; |
300 | struct cvmx_pescx_diag_status_s cn52xxp1; | 493 | struct cvmx_pescx_diag_status_s cn52xxp1; |
@@ -305,8 +498,13 @@ union cvmx_pescx_diag_status { | |||
305 | union cvmx_pescx_p2n_bar0_start { | 498 | union cvmx_pescx_p2n_bar0_start { |
306 | uint64_t u64; | 499 | uint64_t u64; |
307 | struct cvmx_pescx_p2n_bar0_start_s { | 500 | struct cvmx_pescx_p2n_bar0_start_s { |
501 | #ifdef __BIG_ENDIAN_BITFIELD | ||
308 | uint64_t addr:50; | 502 | uint64_t addr:50; |
309 | uint64_t reserved_0_13:14; | 503 | uint64_t reserved_0_13:14; |
504 | #else | ||
505 | uint64_t reserved_0_13:14; | ||
506 | uint64_t addr:50; | ||
507 | #endif | ||
310 | } s; | 508 | } s; |
311 | struct cvmx_pescx_p2n_bar0_start_s cn52xx; | 509 | struct cvmx_pescx_p2n_bar0_start_s cn52xx; |
312 | struct cvmx_pescx_p2n_bar0_start_s cn52xxp1; | 510 | struct cvmx_pescx_p2n_bar0_start_s cn52xxp1; |
@@ -317,8 +515,13 @@ union cvmx_pescx_p2n_bar0_start { | |||
317 | union cvmx_pescx_p2n_bar1_start { | 515 | union cvmx_pescx_p2n_bar1_start { |
318 | uint64_t u64; | 516 | uint64_t u64; |
319 | struct cvmx_pescx_p2n_bar1_start_s { | 517 | struct cvmx_pescx_p2n_bar1_start_s { |
518 | #ifdef __BIG_ENDIAN_BITFIELD | ||
320 | uint64_t addr:38; | 519 | uint64_t addr:38; |
321 | uint64_t reserved_0_25:26; | 520 | uint64_t reserved_0_25:26; |
521 | #else | ||
522 | uint64_t reserved_0_25:26; | ||
523 | uint64_t addr:38; | ||
524 | #endif | ||
322 | } s; | 525 | } s; |
323 | struct cvmx_pescx_p2n_bar1_start_s cn52xx; | 526 | struct cvmx_pescx_p2n_bar1_start_s cn52xx; |
324 | struct cvmx_pescx_p2n_bar1_start_s cn52xxp1; | 527 | struct cvmx_pescx_p2n_bar1_start_s cn52xxp1; |
@@ -329,8 +532,13 @@ union cvmx_pescx_p2n_bar1_start { | |||
329 | union cvmx_pescx_p2n_bar2_start { | 532 | union cvmx_pescx_p2n_bar2_start { |
330 | uint64_t u64; | 533 | uint64_t u64; |
331 | struct cvmx_pescx_p2n_bar2_start_s { | 534 | struct cvmx_pescx_p2n_bar2_start_s { |
535 | #ifdef __BIG_ENDIAN_BITFIELD | ||
332 | uint64_t addr:25; | 536 | uint64_t addr:25; |
333 | uint64_t reserved_0_38:39; | 537 | uint64_t reserved_0_38:39; |
538 | #else | ||
539 | uint64_t reserved_0_38:39; | ||
540 | uint64_t addr:25; | ||
541 | #endif | ||
334 | } s; | 542 | } s; |
335 | struct cvmx_pescx_p2n_bar2_start_s cn52xx; | 543 | struct cvmx_pescx_p2n_bar2_start_s cn52xx; |
336 | struct cvmx_pescx_p2n_bar2_start_s cn52xxp1; | 544 | struct cvmx_pescx_p2n_bar2_start_s cn52xxp1; |
@@ -341,8 +549,13 @@ union cvmx_pescx_p2n_bar2_start { | |||
341 | union cvmx_pescx_p2p_barx_end { | 549 | union cvmx_pescx_p2p_barx_end { |
342 | uint64_t u64; | 550 | uint64_t u64; |
343 | struct cvmx_pescx_p2p_barx_end_s { | 551 | struct cvmx_pescx_p2p_barx_end_s { |
552 | #ifdef __BIG_ENDIAN_BITFIELD | ||
344 | uint64_t addr:52; | 553 | uint64_t addr:52; |
345 | uint64_t reserved_0_11:12; | 554 | uint64_t reserved_0_11:12; |
555 | #else | ||
556 | uint64_t reserved_0_11:12; | ||
557 | uint64_t addr:52; | ||
558 | #endif | ||
346 | } s; | 559 | } s; |
347 | struct cvmx_pescx_p2p_barx_end_s cn52xx; | 560 | struct cvmx_pescx_p2p_barx_end_s cn52xx; |
348 | struct cvmx_pescx_p2p_barx_end_s cn52xxp1; | 561 | struct cvmx_pescx_p2p_barx_end_s cn52xxp1; |
@@ -353,8 +566,13 @@ union cvmx_pescx_p2p_barx_end { | |||
353 | union cvmx_pescx_p2p_barx_start { | 566 | union cvmx_pescx_p2p_barx_start { |
354 | uint64_t u64; | 567 | uint64_t u64; |
355 | struct cvmx_pescx_p2p_barx_start_s { | 568 | struct cvmx_pescx_p2p_barx_start_s { |
569 | #ifdef __BIG_ENDIAN_BITFIELD | ||
356 | uint64_t addr:52; | 570 | uint64_t addr:52; |
357 | uint64_t reserved_0_11:12; | 571 | uint64_t reserved_0_11:12; |
572 | #else | ||
573 | uint64_t reserved_0_11:12; | ||
574 | uint64_t addr:52; | ||
575 | #endif | ||
358 | } s; | 576 | } s; |
359 | struct cvmx_pescx_p2p_barx_start_s cn52xx; | 577 | struct cvmx_pescx_p2p_barx_start_s cn52xx; |
360 | struct cvmx_pescx_p2p_barx_start_s cn52xxp1; | 578 | struct cvmx_pescx_p2p_barx_start_s cn52xxp1; |
@@ -365,9 +583,14 @@ union cvmx_pescx_p2p_barx_start { | |||
365 | union cvmx_pescx_tlp_credits { | 583 | union cvmx_pescx_tlp_credits { |
366 | uint64_t u64; | 584 | uint64_t u64; |
367 | struct cvmx_pescx_tlp_credits_s { | 585 | struct cvmx_pescx_tlp_credits_s { |
586 | #ifdef __BIG_ENDIAN_BITFIELD | ||
587 | uint64_t reserved_0_63:64; | ||
588 | #else | ||
368 | uint64_t reserved_0_63:64; | 589 | uint64_t reserved_0_63:64; |
590 | #endif | ||
369 | } s; | 591 | } s; |
370 | struct cvmx_pescx_tlp_credits_cn52xx { | 592 | struct cvmx_pescx_tlp_credits_cn52xx { |
593 | #ifdef __BIG_ENDIAN_BITFIELD | ||
371 | uint64_t reserved_56_63:8; | 594 | uint64_t reserved_56_63:8; |
372 | uint64_t peai_ppf:8; | 595 | uint64_t peai_ppf:8; |
373 | uint64_t pesc_cpl:8; | 596 | uint64_t pesc_cpl:8; |
@@ -376,8 +599,19 @@ union cvmx_pescx_tlp_credits { | |||
376 | uint64_t npei_cpl:8; | 599 | uint64_t npei_cpl:8; |
377 | uint64_t npei_np:8; | 600 | uint64_t npei_np:8; |
378 | uint64_t npei_p:8; | 601 | uint64_t npei_p:8; |
602 | #else | ||
603 | uint64_t npei_p:8; | ||
604 | uint64_t npei_np:8; | ||
605 | uint64_t npei_cpl:8; | ||
606 | uint64_t pesc_p:8; | ||
607 | uint64_t pesc_np:8; | ||
608 | uint64_t pesc_cpl:8; | ||
609 | uint64_t peai_ppf:8; | ||
610 | uint64_t reserved_56_63:8; | ||
611 | #endif | ||
379 | } cn52xx; | 612 | } cn52xx; |
380 | struct cvmx_pescx_tlp_credits_cn52xxp1 { | 613 | struct cvmx_pescx_tlp_credits_cn52xxp1 { |
614 | #ifdef __BIG_ENDIAN_BITFIELD | ||
381 | uint64_t reserved_38_63:26; | 615 | uint64_t reserved_38_63:26; |
382 | uint64_t peai_ppf:8; | 616 | uint64_t peai_ppf:8; |
383 | uint64_t pesc_cpl:5; | 617 | uint64_t pesc_cpl:5; |
@@ -386,6 +620,16 @@ union cvmx_pescx_tlp_credits { | |||
386 | uint64_t npei_cpl:5; | 620 | uint64_t npei_cpl:5; |
387 | uint64_t npei_np:5; | 621 | uint64_t npei_np:5; |
388 | uint64_t npei_p:5; | 622 | uint64_t npei_p:5; |
623 | #else | ||
624 | uint64_t npei_p:5; | ||
625 | uint64_t npei_np:5; | ||
626 | uint64_t npei_cpl:5; | ||
627 | uint64_t pesc_p:5; | ||
628 | uint64_t pesc_np:5; | ||
629 | uint64_t pesc_cpl:5; | ||
630 | uint64_t peai_ppf:8; | ||
631 | uint64_t reserved_38_63:26; | ||
632 | #endif | ||
389 | } cn52xxp1; | 633 | } cn52xxp1; |
390 | struct cvmx_pescx_tlp_credits_cn52xx cn56xx; | 634 | struct cvmx_pescx_tlp_credits_cn52xx cn56xx; |
391 | struct cvmx_pescx_tlp_credits_cn52xxp1 cn56xxp1; | 635 | struct cvmx_pescx_tlp_credits_cn52xxp1 cn56xxp1; |