1 /***********************license start***************
2 * Author: Cavium Networks
4 * Contact: support@caviumnetworks.com
5 * This file is part of the OCTEON SDK
7 * Copyright (c) 2003-2012 Cavium Networks
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.
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
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/.
24 * This file may also be available under a different license from Cavium.
25 * Contact Cavium Networks for more information
26 ***********************license end**************************************/
28 #ifndef __CVMX_IOB_DEFS_H__
29 #define __CVMX_IOB_DEFS_H__
31 #define CVMX_IOB_BIST_STATUS (CVMX_ADD_IO_SEG(0x00011800F00007F8ull))
32 #define CVMX_IOB_CTL_STATUS (CVMX_ADD_IO_SEG(0x00011800F0000050ull))
33 #define CVMX_IOB_DWB_PRI_CNT (CVMX_ADD_IO_SEG(0x00011800F0000028ull))
34 #define CVMX_IOB_FAU_TIMEOUT (CVMX_ADD_IO_SEG(0x00011800F0000000ull))
35 #define CVMX_IOB_I2C_PRI_CNT (CVMX_ADD_IO_SEG(0x00011800F0000010ull))
36 #define CVMX_IOB_INB_CONTROL_MATCH (CVMX_ADD_IO_SEG(0x00011800F0000078ull))
37 #define CVMX_IOB_INB_CONTROL_MATCH_ENB (CVMX_ADD_IO_SEG(0x00011800F0000088ull))
38 #define CVMX_IOB_INB_DATA_MATCH (CVMX_ADD_IO_SEG(0x00011800F0000070ull))
39 #define CVMX_IOB_INB_DATA_MATCH_ENB (CVMX_ADD_IO_SEG(0x00011800F0000080ull))
40 #define CVMX_IOB_INT_ENB (CVMX_ADD_IO_SEG(0x00011800F0000060ull))
41 #define CVMX_IOB_INT_SUM (CVMX_ADD_IO_SEG(0x00011800F0000058ull))
42 #define CVMX_IOB_N2C_L2C_PRI_CNT (CVMX_ADD_IO_SEG(0x00011800F0000020ull))
43 #define CVMX_IOB_N2C_RSP_PRI_CNT (CVMX_ADD_IO_SEG(0x00011800F0000008ull))
44 #define CVMX_IOB_OUTB_COM_PRI_CNT (CVMX_ADD_IO_SEG(0x00011800F0000040ull))
45 #define CVMX_IOB_OUTB_CONTROL_MATCH (CVMX_ADD_IO_SEG(0x00011800F0000098ull))
46 #define CVMX_IOB_OUTB_CONTROL_MATCH_ENB (CVMX_ADD_IO_SEG(0x00011800F00000A8ull))
47 #define CVMX_IOB_OUTB_DATA_MATCH (CVMX_ADD_IO_SEG(0x00011800F0000090ull))
48 #define CVMX_IOB_OUTB_DATA_MATCH_ENB (CVMX_ADD_IO_SEG(0x00011800F00000A0ull))
49 #define CVMX_IOB_OUTB_FPA_PRI_CNT (CVMX_ADD_IO_SEG(0x00011800F0000048ull))
50 #define CVMX_IOB_OUTB_REQ_PRI_CNT (CVMX_ADD_IO_SEG(0x00011800F0000038ull))
51 #define CVMX_IOB_P2C_REQ_PRI_CNT (CVMX_ADD_IO_SEG(0x00011800F0000018ull))
52 #define CVMX_IOB_PKT_ERR (CVMX_ADD_IO_SEG(0x00011800F0000068ull))
53 #define CVMX_IOB_TO_CMB_CREDITS (CVMX_ADD_IO_SEG(0x00011800F00000B0ull))
54 #define CVMX_IOB_TO_NCB_DID_00_CREDITS (CVMX_ADD_IO_SEG(0x00011800F0000800ull))
55 #define CVMX_IOB_TO_NCB_DID_111_CREDITS (CVMX_ADD_IO_SEG(0x00011800F0000B78ull))
56 #define CVMX_IOB_TO_NCB_DID_223_CREDITS (CVMX_ADD_IO_SEG(0x00011800F0000EF8ull))
57 #define CVMX_IOB_TO_NCB_DID_24_CREDITS (CVMX_ADD_IO_SEG(0x00011800F00008C0ull))
58 #define CVMX_IOB_TO_NCB_DID_32_CREDITS (CVMX_ADD_IO_SEG(0x00011800F0000900ull))
59 #define CVMX_IOB_TO_NCB_DID_40_CREDITS (CVMX_ADD_IO_SEG(0x00011800F0000940ull))
60 #define CVMX_IOB_TO_NCB_DID_55_CREDITS (CVMX_ADD_IO_SEG(0x00011800F00009B8ull))
61 #define CVMX_IOB_TO_NCB_DID_64_CREDITS (CVMX_ADD_IO_SEG(0x00011800F0000A00ull))
62 #define CVMX_IOB_TO_NCB_DID_79_CREDITS (CVMX_ADD_IO_SEG(0x00011800F0000A78ull))
63 #define CVMX_IOB_TO_NCB_DID_96_CREDITS (CVMX_ADD_IO_SEG(0x00011800F0000B00ull))
64 #define CVMX_IOB_TO_NCB_DID_98_CREDITS (CVMX_ADD_IO_SEG(0x00011800F0000B10ull))
66 union cvmx_iob_bist_status
{
68 struct cvmx_iob_bist_status_s
{
69 #ifdef __BIG_ENDIAN_BITFIELD
70 uint64_t reserved_2_63
:62;
76 uint64_t reserved_2_63
:62;
79 struct cvmx_iob_bist_status_cn30xx
{
80 #ifdef __BIG_ENDIAN_BITFIELD
81 uint64_t reserved_18_63
:46;
119 uint64_t reserved_18_63
:46;
122 struct cvmx_iob_bist_status_cn61xx
{
123 #ifdef __BIG_ENDIAN_BITFIELD
124 uint64_t reserved_23_63
:41;
172 uint64_t reserved_23_63
:41;
175 struct cvmx_iob_bist_status_cn68xx
{
176 #ifdef __BIG_ENDIAN_BITFIELD
177 uint64_t reserved_18_63
:46;
215 uint64_t reserved_18_63
:46;
220 union cvmx_iob_ctl_status
{
222 struct cvmx_iob_ctl_status_s
{
223 #ifdef __BIG_ENDIAN_BITFIELD
224 uint64_t reserved_11_63
:53;
227 uint64_t reserved_5_5
:1;
239 uint64_t reserved_5_5
:1;
242 uint64_t reserved_11_63
:53;
245 struct cvmx_iob_ctl_status_cn30xx
{
246 #ifdef __BIG_ENDIAN_BITFIELD
247 uint64_t reserved_5_63
:59;
259 uint64_t reserved_5_63
:59;
262 struct cvmx_iob_ctl_status_cn52xx
{
263 #ifdef __BIG_ENDIAN_BITFIELD
264 uint64_t reserved_6_63
:58;
278 uint64_t reserved_6_63
:58;
281 struct cvmx_iob_ctl_status_cn61xx
{
282 #ifdef __BIG_ENDIAN_BITFIELD
283 uint64_t reserved_11_63
:53;
301 uint64_t reserved_11_63
:53;
304 struct cvmx_iob_ctl_status_cn63xx
{
305 #ifdef __BIG_ENDIAN_BITFIELD
306 uint64_t reserved_10_63
:54;
322 uint64_t reserved_10_63
:54;
325 struct cvmx_iob_ctl_status_cn68xx
{
326 #ifdef __BIG_ENDIAN_BITFIELD
327 uint64_t reserved_11_63
:53;
345 uint64_t reserved_11_63
:53;
350 union cvmx_iob_dwb_pri_cnt
{
352 struct cvmx_iob_dwb_pri_cnt_s
{
353 #ifdef __BIG_ENDIAN_BITFIELD
354 uint64_t reserved_16_63
:48;
360 uint64_t reserved_16_63
:48;
365 union cvmx_iob_fau_timeout
{
367 struct cvmx_iob_fau_timeout_s
{
368 #ifdef __BIG_ENDIAN_BITFIELD
369 uint64_t reserved_13_63
:51;
371 uint64_t tout_val
:12;
373 uint64_t tout_val
:12;
375 uint64_t reserved_13_63
:51;
380 union cvmx_iob_i2c_pri_cnt
{
382 struct cvmx_iob_i2c_pri_cnt_s
{
383 #ifdef __BIG_ENDIAN_BITFIELD
384 uint64_t reserved_16_63
:48;
390 uint64_t reserved_16_63
:48;
395 union cvmx_iob_inb_control_match
{
397 struct cvmx_iob_inb_control_match_s
{
398 #ifdef __BIG_ENDIAN_BITFIELD
399 uint64_t reserved_29_63
:35;
409 uint64_t reserved_29_63
:35;
414 union cvmx_iob_inb_control_match_enb
{
416 struct cvmx_iob_inb_control_match_enb_s
{
417 #ifdef __BIG_ENDIAN_BITFIELD
418 uint64_t reserved_29_63
:35;
428 uint64_t reserved_29_63
:35;
433 union cvmx_iob_inb_data_match
{
435 struct cvmx_iob_inb_data_match_s
{
436 #ifdef __BIG_ENDIAN_BITFIELD
444 union cvmx_iob_inb_data_match_enb
{
446 struct cvmx_iob_inb_data_match_enb_s
{
447 #ifdef __BIG_ENDIAN_BITFIELD
455 union cvmx_iob_int_enb
{
457 struct cvmx_iob_int_enb_s
{
458 #ifdef __BIG_ENDIAN_BITFIELD
459 uint64_t reserved_6_63
:58;
473 uint64_t reserved_6_63
:58;
476 struct cvmx_iob_int_enb_cn30xx
{
477 #ifdef __BIG_ENDIAN_BITFIELD
478 uint64_t reserved_4_63
:60;
488 uint64_t reserved_4_63
:60;
491 struct cvmx_iob_int_enb_cn68xx
{
492 #ifdef __BIG_ENDIAN_BITFIELD
493 uint64_t reserved_0_63
:64;
495 uint64_t reserved_0_63
:64;
500 union cvmx_iob_int_sum
{
502 struct cvmx_iob_int_sum_s
{
503 #ifdef __BIG_ENDIAN_BITFIELD
504 uint64_t reserved_6_63
:58;
518 uint64_t reserved_6_63
:58;
521 struct cvmx_iob_int_sum_cn30xx
{
522 #ifdef __BIG_ENDIAN_BITFIELD
523 uint64_t reserved_4_63
:60;
533 uint64_t reserved_4_63
:60;
536 struct cvmx_iob_int_sum_cn68xx
{
537 #ifdef __BIG_ENDIAN_BITFIELD
538 uint64_t reserved_0_63
:64;
540 uint64_t reserved_0_63
:64;
545 union cvmx_iob_n2c_l2c_pri_cnt
{
547 struct cvmx_iob_n2c_l2c_pri_cnt_s
{
548 #ifdef __BIG_ENDIAN_BITFIELD
549 uint64_t reserved_16_63
:48;
555 uint64_t reserved_16_63
:48;
560 union cvmx_iob_n2c_rsp_pri_cnt
{
562 struct cvmx_iob_n2c_rsp_pri_cnt_s
{
563 #ifdef __BIG_ENDIAN_BITFIELD
564 uint64_t reserved_16_63
:48;
570 uint64_t reserved_16_63
:48;
575 union cvmx_iob_outb_com_pri_cnt
{
577 struct cvmx_iob_outb_com_pri_cnt_s
{
578 #ifdef __BIG_ENDIAN_BITFIELD
579 uint64_t reserved_16_63
:48;
585 uint64_t reserved_16_63
:48;
590 union cvmx_iob_outb_control_match
{
592 struct cvmx_iob_outb_control_match_s
{
593 #ifdef __BIG_ENDIAN_BITFIELD
594 uint64_t reserved_26_63
:38;
604 uint64_t reserved_26_63
:38;
609 union cvmx_iob_outb_control_match_enb
{
611 struct cvmx_iob_outb_control_match_enb_s
{
612 #ifdef __BIG_ENDIAN_BITFIELD
613 uint64_t reserved_26_63
:38;
623 uint64_t reserved_26_63
:38;
628 union cvmx_iob_outb_data_match
{
630 struct cvmx_iob_outb_data_match_s
{
631 #ifdef __BIG_ENDIAN_BITFIELD
639 union cvmx_iob_outb_data_match_enb
{
641 struct cvmx_iob_outb_data_match_enb_s
{
642 #ifdef __BIG_ENDIAN_BITFIELD
650 union cvmx_iob_outb_fpa_pri_cnt
{
652 struct cvmx_iob_outb_fpa_pri_cnt_s
{
653 #ifdef __BIG_ENDIAN_BITFIELD
654 uint64_t reserved_16_63
:48;
660 uint64_t reserved_16_63
:48;
665 union cvmx_iob_outb_req_pri_cnt
{
667 struct cvmx_iob_outb_req_pri_cnt_s
{
668 #ifdef __BIG_ENDIAN_BITFIELD
669 uint64_t reserved_16_63
:48;
675 uint64_t reserved_16_63
:48;
680 union cvmx_iob_p2c_req_pri_cnt
{
682 struct cvmx_iob_p2c_req_pri_cnt_s
{
683 #ifdef __BIG_ENDIAN_BITFIELD
684 uint64_t reserved_16_63
:48;
690 uint64_t reserved_16_63
:48;
695 union cvmx_iob_pkt_err
{
697 struct cvmx_iob_pkt_err_s
{
698 #ifdef __BIG_ENDIAN_BITFIELD
699 uint64_t reserved_12_63
:52;
705 uint64_t reserved_12_63
:52;
708 struct cvmx_iob_pkt_err_cn30xx
{
709 #ifdef __BIG_ENDIAN_BITFIELD
710 uint64_t reserved_6_63
:58;
714 uint64_t reserved_6_63
:58;
719 union cvmx_iob_to_cmb_credits
{
721 struct cvmx_iob_to_cmb_credits_s
{
722 #ifdef __BIG_ENDIAN_BITFIELD
723 uint64_t reserved_6_63
:58;
729 uint64_t reserved_6_63
:58;
732 struct cvmx_iob_to_cmb_credits_cn52xx
{
733 #ifdef __BIG_ENDIAN_BITFIELD
734 uint64_t reserved_9_63
:55;
742 uint64_t reserved_9_63
:55;
745 struct cvmx_iob_to_cmb_credits_cn68xx
{
746 #ifdef __BIG_ENDIAN_BITFIELD
747 uint64_t reserved_9_63
:55;
755 uint64_t reserved_9_63
:55;
760 union cvmx_iob_to_ncb_did_00_credits
{
762 struct cvmx_iob_to_ncb_did_00_credits_s
{
763 #ifdef __BIG_ENDIAN_BITFIELD
764 uint64_t reserved_7_63
:57;
768 uint64_t reserved_7_63
:57;
773 union cvmx_iob_to_ncb_did_111_credits
{
775 struct cvmx_iob_to_ncb_did_111_credits_s
{
776 #ifdef __BIG_ENDIAN_BITFIELD
777 uint64_t reserved_7_63
:57;
781 uint64_t reserved_7_63
:57;
786 union cvmx_iob_to_ncb_did_223_credits
{
788 struct cvmx_iob_to_ncb_did_223_credits_s
{
789 #ifdef __BIG_ENDIAN_BITFIELD
790 uint64_t reserved_7_63
:57;
794 uint64_t reserved_7_63
:57;
799 union cvmx_iob_to_ncb_did_24_credits
{
801 struct cvmx_iob_to_ncb_did_24_credits_s
{
802 #ifdef __BIG_ENDIAN_BITFIELD
803 uint64_t reserved_7_63
:57;
807 uint64_t reserved_7_63
:57;
812 union cvmx_iob_to_ncb_did_32_credits
{
814 struct cvmx_iob_to_ncb_did_32_credits_s
{
815 #ifdef __BIG_ENDIAN_BITFIELD
816 uint64_t reserved_7_63
:57;
820 uint64_t reserved_7_63
:57;
825 union cvmx_iob_to_ncb_did_40_credits
{
827 struct cvmx_iob_to_ncb_did_40_credits_s
{
828 #ifdef __BIG_ENDIAN_BITFIELD
829 uint64_t reserved_7_63
:57;
833 uint64_t reserved_7_63
:57;
838 union cvmx_iob_to_ncb_did_55_credits
{
840 struct cvmx_iob_to_ncb_did_55_credits_s
{
841 #ifdef __BIG_ENDIAN_BITFIELD
842 uint64_t reserved_7_63
:57;
846 uint64_t reserved_7_63
:57;
851 union cvmx_iob_to_ncb_did_64_credits
{
853 struct cvmx_iob_to_ncb_did_64_credits_s
{
854 #ifdef __BIG_ENDIAN_BITFIELD
855 uint64_t reserved_7_63
:57;
859 uint64_t reserved_7_63
:57;
864 union cvmx_iob_to_ncb_did_79_credits
{
866 struct cvmx_iob_to_ncb_did_79_credits_s
{
867 #ifdef __BIG_ENDIAN_BITFIELD
868 uint64_t reserved_7_63
:57;
872 uint64_t reserved_7_63
:57;
877 union cvmx_iob_to_ncb_did_96_credits
{
879 struct cvmx_iob_to_ncb_did_96_credits_s
{
880 #ifdef __BIG_ENDIAN_BITFIELD
881 uint64_t reserved_7_63
:57;
885 uint64_t reserved_7_63
:57;
890 union cvmx_iob_to_ncb_did_98_credits
{
892 struct cvmx_iob_to_ncb_did_98_credits_s
{
893 #ifdef __BIG_ENDIAN_BITFIELD
894 uint64_t reserved_7_63
:57;
898 uint64_t reserved_7_63
:57;