Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cvmx-pemx-defs.h
Go to the documentation of this file.
1 /***********************license start***************
2  * Author: Cavium Networks
3  *
4  * Contact: [email protected]
5  * This file is part of the OCTEON SDK
6  *
7  * Copyright (c) 2003-2012 Cavium Networks
8  *
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
11  * published by the Free Software Foundation.
12  *
13  * This file is distributed in the hope that it will be useful, but
14  * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
15  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
16  * NONINFRINGEMENT. See the GNU General Public License for more
17  * details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this file; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22  * or visit http://www.gnu.org/licenses/.
23  *
24  * This file may also be available under a different license from Cavium.
25  * Contact Cavium Networks for more information
26  ***********************license end**************************************/
27 
28 #ifndef __CVMX_PEMX_DEFS_H__
29 #define __CVMX_PEMX_DEFS_H__
30 
31 #define CVMX_PEMX_BAR1_INDEXX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800C00000A8ull) + (((offset) & 15) + ((block_id) & 1) * 0x200000ull) * 8)
32 #define CVMX_PEMX_BAR2_MASK(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000130ull) + ((block_id) & 1) * 0x1000000ull)
33 #define CVMX_PEMX_BAR_CTL(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000128ull) + ((block_id) & 1) * 0x1000000ull)
34 #define CVMX_PEMX_BIST_STATUS(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000018ull) + ((block_id) & 1) * 0x1000000ull)
35 #define CVMX_PEMX_BIST_STATUS2(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000420ull) + ((block_id) & 1) * 0x1000000ull)
36 #define CVMX_PEMX_CFG_RD(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000030ull) + ((block_id) & 1) * 0x1000000ull)
37 #define CVMX_PEMX_CFG_WR(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000028ull) + ((block_id) & 1) * 0x1000000ull)
38 #define CVMX_PEMX_CPL_LUT_VALID(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000098ull) + ((block_id) & 1) * 0x1000000ull)
39 #define CVMX_PEMX_CTL_STATUS(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000000ull) + ((block_id) & 1) * 0x1000000ull)
40 #define CVMX_PEMX_DBG_INFO(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000008ull) + ((block_id) & 1) * 0x1000000ull)
41 #define CVMX_PEMX_DBG_INFO_EN(block_id) (CVMX_ADD_IO_SEG(0x00011800C00000A0ull) + ((block_id) & 1) * 0x1000000ull)
42 #define CVMX_PEMX_DIAG_STATUS(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000020ull) + ((block_id) & 1) * 0x1000000ull)
43 #define CVMX_PEMX_INB_READ_CREDITS(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000138ull) + ((block_id) & 1) * 0x1000000ull)
44 #define CVMX_PEMX_INT_ENB(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000410ull) + ((block_id) & 1) * 0x1000000ull)
45 #define CVMX_PEMX_INT_ENB_INT(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000418ull) + ((block_id) & 1) * 0x1000000ull)
46 #define CVMX_PEMX_INT_SUM(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000408ull) + ((block_id) & 1) * 0x1000000ull)
47 #define CVMX_PEMX_P2N_BAR0_START(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000080ull) + ((block_id) & 1) * 0x1000000ull)
48 #define CVMX_PEMX_P2N_BAR1_START(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000088ull) + ((block_id) & 1) * 0x1000000ull)
49 #define CVMX_PEMX_P2N_BAR2_START(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000090ull) + ((block_id) & 1) * 0x1000000ull)
50 #define CVMX_PEMX_P2P_BARX_END(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800C0000048ull) + (((offset) & 3) + ((block_id) & 1) * 0x100000ull) * 16)
51 #define CVMX_PEMX_P2P_BARX_START(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800C0000040ull) + (((offset) & 3) + ((block_id) & 1) * 0x100000ull) * 16)
52 #define CVMX_PEMX_TLP_CREDITS(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000038ull) + ((block_id) & 1) * 0x1000000ull)
53 
57 #ifdef __BIG_ENDIAN_BITFIELD
59  uint64_t addr_idx:16;
60  uint64_t ca:1;
61  uint64_t end_swp:2;
62  uint64_t addr_v:1;
63 #else
69 #endif
70  } s;
78 };
79 
83 #ifdef __BIG_ENDIAN_BITFIELD
85  uint64_t mask:35;
87 #else
91 #endif
92  } s;
98 };
99 
103 #ifdef __BIG_ENDIAN_BITFIELD
105  uint64_t bar1_siz:3;
106  uint64_t bar2_enb:1;
107  uint64_t bar2_esx:2;
108  uint64_t bar2_cax:1;
109 #else
115 #endif
116  } s;
124 };
125 
129 #ifdef __BIG_ENDIAN_BITFIELD
131  uint64_t retry:1;
132  uint64_t rqdata0:1;
133  uint64_t rqdata1:1;
134  uint64_t rqdata2:1;
135  uint64_t rqdata3:1;
136  uint64_t rqhdr1:1;
137  uint64_t rqhdr0:1;
138  uint64_t sot:1;
139 #else
149 #endif
150  } s;
158 };
159 
163 #ifdef __BIG_ENDIAN_BITFIELD
165  uint64_t e2p_cpl:1;
166  uint64_t e2p_n:1;
167  uint64_t e2p_p:1;
168  uint64_t peai_p2e:1;
169  uint64_t pef_tpf1:1;
170  uint64_t pef_tpf0:1;
171  uint64_t pef_tnf:1;
172  uint64_t pef_tcf1:1;
173  uint64_t pef_tc0:1;
174  uint64_t ppf:1;
175 #else
187 #endif
188  } s;
196 };
197 
201 #ifdef __BIG_ENDIAN_BITFIELD
202  uint64_t data:32;
203  uint64_t addr:32;
204 #else
207 #endif
208  } s;
216 };
217 
221 #ifdef __BIG_ENDIAN_BITFIELD
222  uint64_t data:32;
223  uint64_t addr:32;
224 #else
227 #endif
228  } s;
236 };
237 
241 #ifdef __BIG_ENDIAN_BITFIELD
243  uint64_t tag:32;
244 #else
247 #endif
248  } s;
256 };
257 
261 #ifdef __BIG_ENDIAN_BITFIELD
263  uint64_t auto_sd:1;
264  uint64_t dnum:5;
265  uint64_t pbus:8;
267  uint64_t cfg_rtry:16;
269  uint64_t pm_xtoff:1;
270  uint64_t pm_xpme:1;
271  uint64_t ob_p_cmd:1;
273  uint64_t nf_ecrc:1;
274  uint64_t dly_one:1;
275  uint64_t lnk_enb:1;
276  uint64_t ro_ctlp:1;
277  uint64_t fast_lm:1;
278  uint64_t inv_ecrc:1;
279  uint64_t inv_lcrc:1;
280 #else
299 #endif
300  } s;
308 };
309 
313 #ifdef __BIG_ENDIAN_BITFIELD
315  uint64_t ecrc_e:1;
316  uint64_t rawwpp:1;
317  uint64_t racpp:1;
318  uint64_t ramtlp:1;
319  uint64_t rarwdns:1;
320  uint64_t caar:1;
321  uint64_t racca:1;
322  uint64_t racur:1;
323  uint64_t rauc:1;
324  uint64_t rqo:1;
325  uint64_t fcuv:1;
326  uint64_t rpe:1;
327  uint64_t fcpvwt:1;
328  uint64_t dpeoosd:1;
329  uint64_t rtwdle:1;
330  uint64_t rdwdle:1;
331  uint64_t mre:1;
332  uint64_t rte:1;
333  uint64_t acto:1;
334  uint64_t rvdm:1;
335  uint64_t rumep:1;
336  uint64_t rptamrc:1;
337  uint64_t rpmerc:1;
338  uint64_t rfemrc:1;
339  uint64_t rnfemrc:1;
340  uint64_t rcemrc:1;
341  uint64_t rpoison:1;
342  uint64_t recrce:1;
343  uint64_t rtlplle:1;
344  uint64_t rtlpmal:1;
345  uint64_t spoison:1;
346 #else
379 #endif
380  } s;
388 };
389 
393 #ifdef __BIG_ENDIAN_BITFIELD
395  uint64_t ecrc_e:1;
396  uint64_t rawwpp:1;
397  uint64_t racpp:1;
398  uint64_t ramtlp:1;
399  uint64_t rarwdns:1;
400  uint64_t caar:1;
401  uint64_t racca:1;
402  uint64_t racur:1;
403  uint64_t rauc:1;
404  uint64_t rqo:1;
405  uint64_t fcuv:1;
406  uint64_t rpe:1;
407  uint64_t fcpvwt:1;
408  uint64_t dpeoosd:1;
409  uint64_t rtwdle:1;
410  uint64_t rdwdle:1;
411  uint64_t mre:1;
412  uint64_t rte:1;
413  uint64_t acto:1;
414  uint64_t rvdm:1;
415  uint64_t rumep:1;
416  uint64_t rptamrc:1;
417  uint64_t rpmerc:1;
418  uint64_t rfemrc:1;
419  uint64_t rnfemrc:1;
420  uint64_t rcemrc:1;
421  uint64_t rpoison:1;
422  uint64_t recrce:1;
423  uint64_t rtlplle:1;
424  uint64_t rtlpmal:1;
425  uint64_t spoison:1;
426 #else
459 #endif
460  } s;
468 };
469 
473 #ifdef __BIG_ENDIAN_BITFIELD
475  uint64_t pm_dst:1;
476  uint64_t pm_stat:1;
477  uint64_t pm_en:1;
478  uint64_t aux_en:1;
479 #else
485 #endif
486  } s;
494 };
495 
499 #ifdef __BIG_ENDIAN_BITFIELD
501  uint64_t num:6;
502 #else
505 #endif
506  } s;
511 };
512 
516 #ifdef __BIG_ENDIAN_BITFIELD
518  uint64_t crs_dr:1;
519  uint64_t crs_er:1;
520  uint64_t rdlk:1;
521  uint64_t exc:1;
522  uint64_t un_bx:1;
523  uint64_t un_b2:1;
524  uint64_t un_b1:1;
525  uint64_t up_bx:1;
526  uint64_t up_b2:1;
527  uint64_t up_b1:1;
528  uint64_t pmem:1;
529  uint64_t pmei:1;
530  uint64_t se:1;
531  uint64_t aeri:1;
532 #else
548 #endif
549  } s;
557 };
558 
562 #ifdef __BIG_ENDIAN_BITFIELD
564  uint64_t crs_dr:1;
565  uint64_t crs_er:1;
566  uint64_t rdlk:1;
567  uint64_t exc:1;
568  uint64_t un_bx:1;
569  uint64_t un_b2:1;
570  uint64_t un_b1:1;
571  uint64_t up_bx:1;
572  uint64_t up_b2:1;
573  uint64_t up_b1:1;
574  uint64_t pmem:1;
575  uint64_t pmei:1;
576  uint64_t se:1;
577  uint64_t aeri:1;
578 #else
594 #endif
595  } s;
603 };
604 
608 #ifdef __BIG_ENDIAN_BITFIELD
610  uint64_t crs_dr:1;
611  uint64_t crs_er:1;
612  uint64_t rdlk:1;
613  uint64_t exc:1;
614  uint64_t un_bx:1;
615  uint64_t un_b2:1;
616  uint64_t un_b1:1;
617  uint64_t up_bx:1;
618  uint64_t up_b2:1;
619  uint64_t up_b1:1;
620  uint64_t pmem:1;
621  uint64_t pmei:1;
622  uint64_t se:1;
623  uint64_t aeri:1;
624 #else
640 #endif
641  } s;
649 };
650 
654 #ifdef __BIG_ENDIAN_BITFIELD
655  uint64_t addr:50;
657 #else
660 #endif
661  } s;
669 };
670 
674 #ifdef __BIG_ENDIAN_BITFIELD
675  uint64_t addr:38;
677 #else
680 #endif
681  } s;
689 };
690 
694 #ifdef __BIG_ENDIAN_BITFIELD
695  uint64_t addr:23;
697 #else
700 #endif
701  } s;
709 };
710 
714 #ifdef __BIG_ENDIAN_BITFIELD
715  uint64_t addr:52;
717 #else
720 #endif
721  } s;
727 };
728 
732 #ifdef __BIG_ENDIAN_BITFIELD
733  uint64_t addr:52;
735 #else
738 #endif
739  } s;
745 };
746 
750 #ifdef __BIG_ENDIAN_BITFIELD
752  uint64_t peai_ppf:8;
753  uint64_t pem_cpl:8;
754  uint64_t pem_np:8;
755  uint64_t pem_p:8;
756  uint64_t sli_cpl:8;
757  uint64_t sli_np:8;
758  uint64_t sli_p:8;
759 #else
768 #endif
769  } s;
771 #ifdef __BIG_ENDIAN_BITFIELD
773  uint64_t peai_ppf:8;
775  uint64_t sli_cpl:8;
776  uint64_t sli_np:8;
777  uint64_t sli_p:8;
778 #else
785 #endif
786  } cn61xx;
793 };
794 
795 #endif